ssh整合时tomcat部署出现问题高手请进

问题描述

2010-9-8 0:20:42 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:Program FilesJavajdk1.6.0_10bin;D:apache-tomcat-6.0.24apache-tomcat-6.0.24bin 2010-9-8 0:20:42 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 2010-9-8 0:20:42 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 639 ms 2010-9-8 0:20:42 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2010-9-8 0:20:42 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.24 2010-9-8 0:20:42 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory epet log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. 2010-9-8 0:20:45 org.apache.catalina.core.ApplicationContext log 信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module '' 2010-9-8 0:20:54 org.apache.catalina.core.ApplicationContext log 严重: action: null org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/petDiary' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [epet.biz.impl.PetInfoBizImpl] to required type [epet.biz.PetDiaryBiz] for property 'biz'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [epet.biz.impl.PetInfoBizImpl] to required type [epet.biz.PetDiaryBiz] for property 'biz': no matching editors or conversion strategy found Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [epet.biz.impl.PetInfoBizImpl] to required type [epet.biz.PetDiaryBiz] for property 'biz'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [epet.biz.impl.PetInfoBizImpl] to required type [epet.biz.PetDiaryBiz] for property 'biz': no matching editors or conversion strategy found Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [epet.biz.impl.PetInfoBizImpl] to required type [epet.biz.PetDiaryBiz] for property 'biz': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:815) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1127) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:355) at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296) at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) 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:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) 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:593) 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:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 2010-9-8 0:20:54 org.apache.catalina.core.ApplicationContext log 信息: Marking servlet action as unavailable 2010-9-8 0:20:54 org.apache.catalina.core.StandardContext loadOnStartup 严重: Servlet /epet threw load() exception javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1169) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) 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:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) 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:593) 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:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 2010-9-8 0:20:54 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory epet.myeclipse.bak log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. 2010-9-8 0:20:56 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory hourse log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. 2010-9-8 0:20:59 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 2010-9-8 0:20:59 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2010-9-8 0:20:59 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/47  config=null 2010-9-8 0:20:59 org.apache.catalina.startup.Catalina start 信息: Server startup in 17017 ms   下面是我的applicationContext.xml文件内容<?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:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" 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="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">  <property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>  <property name="url" value="jdbc:sqlserver://localhost:1433;DataBaseName=epet;SelectMethod=cursor"></property>  <property name="username" value="sa"></property>  <property name="password" value="123456"></property> </bean>  <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">  <property name="dataSource">   <ref local="dataSource"/>  </property>  <property name="mappingResources">   <list>   <value>epet/entity/PetInfo.hbm.xml</value>   <value>epet/entity/PetDiary.hbm.xml</value>   </list>  </property>  <property name="hibernateProperties">   <props>    <prop key="hibernate.dialect">     org.hibernate.dialect.SQLServerDialect    </prop>    <prop key="hibernate.show_sql">true</prop>   </props>  </property> </bean>  <bean id="petInfoDAO" class="epet.dao.hibimpl.PetInfoDAOHiblImpl">  <property name="sessionFactory" ref="sessionFactory"></property> </bean> <bean id="petDiaryDAO" class="epet.dao.hibimpl.PetDiaryDAOHibImpl">  <property name="sessionFactory" ref="sessionFactory"></property> </bean>  <bean id="petInfoBiz" class="epet.biz.impl.PetInfoBizImpl">  <property name="biz" ref="petInfoDAO"></property> </bean> <bean id="petDiaryBiz" class="epet.biz.impl.PetDiaryBIzImpl">  <property name="biz" ref="petDiaryDAO"></property> </bean>  <bean name="/pet" class="epet.web.action.PetAction">  <property name="biz" ref="petInfoBiz"></property> </bean> <bean name="/petDiary" class="epet.web.action.PetDiaryAction">  <property name="biz" ref="petInfoBiz"></property> </bean>  <bean id="myHibTxManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">  <property name="sessionFactory" ref="sessionFactory"></property> </bean> <tx:advice id="txAdvice" transaction-manager="myHibTxManager">  <tx:attributes>   <tx:method name="get*" propagation="SUPPORTS" read-only="true"/>   <tx:method name="load*" propagation="SUPPORTS" read-only="true"/>   <tx:method name="search*" propagation="SUPPORTS" read-only="true"/>   <tx:method name="to*" propagation="SUPPORTS" read-only="true"/>   <tx:method name="do*" propagation="REQUIRED"/>   <tx:method name="*" propagation="REQUIRED"/>  </tx:attributes> </tx:advice> <aop:config>  <aop:pointcut id="bizMethod" expression="execution(* epet.*.*(..))"/>  <aop:advisor advice-ref="txAdvice" pointcut-ref="bizMethod"/> </aop:config></beans>  问题补充:<div class="quote_title">pxb1988 写道</div><div class="quote_div">请检查epet.web.action.PetAction,epet.web.action.PetDiaryAction类中的biz属性的类型,安照你的配置文件他们都应该是epet.biz.impl.PetInfoBiz类型的,<br />重点检查/petDiary对应的epet.web.action.PetDiaryAction<br /><div class="quote_title">引用</div><div class="quote_div"><br /> &lt;bean name="/pet" class="epet.web.action.PetAction"&gt;<br />&nbsp; &lt;property name="biz" ref="petInfoBiz"&gt;&lt;/property&gt;<br /> &lt;/bean&gt;<br /> &lt;bean name="/petDiary" class="epet.web.action.PetDiaryAction"&gt;<br />&nbsp; &lt;property name="biz" ref="petInfoBiz"&gt;&lt;/property&gt;<br /> &lt;/bean&gt;<br /></div><br />其中类<br /><div class="quote_title">引用</div><div class="quote_div">org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/petDiary' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception i</div></div><br />

解决方案

请检查epet.web.action.PetAction,epet.web.action.PetDiaryAction类中的biz属性的类型,安照你的配置文件他们都应该是epet.biz.impl.PetInfoBiz类型的,重点检查/petDiary对应的epet.web.action.PetDiaryAction引用 <bean name="/pet" class="epet.web.action.PetAction"> <property name="biz" ref="petInfoBiz"></property> </bean> <bean name="/petDiary" class="epet.web.action.PetDiaryAction"> <property name="biz" ref="petInfoBiz"></property> </bean>其中类引用org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/petDiary' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception i
解决方案二:
引用 <bean name="/pet" class="epet.web.action.PetAction"> <property name="biz" ref="petInfoBiz"></property> </bean> <bean name="/petDiary" class="epet.web.action.PetDiaryAction"> <property name="biz" ref="petInfoBiz"></property> </bean>你这是配置的action吗???没怎么见过,你可以不用这么配,配置到dao就行了,在struts里用构造函数来初始化bean,这样可以

时间: 2024-11-01 09:29:22

ssh整合时tomcat部署出现问题高手请进的相关文章

图片-Java SSH整合框架.tomcat能正常跑,没问题.用junit测试却报配置错误.

问题描述 Java SSH整合框架.tomcat能正常跑,没问题.用junit测试却报配置错误. 配置如第一张图. 报错如下面两张. new ClassPathXmlApplicationContext("applicationContext.xml");junit初始化配置时出现的问题.最后导致beanFactory.containsBean("Sys_UserDao")为fasle 解决方案 不是已经说了没有引人hibernate属性文件啊, 解决方案二: 你的

ssh整合-SSH整合时出现空指针问题

问题描述 SSH整合时出现空指针问题 最近在做实训,所以想尝试用SSH框架来做个项目,我跟着视频,一步一步的敲代码,一运行, 报空指针,好吧,看看是什么说,根据提示信息:是employeeService为null,可是我在 applicationContext-bean.xml的配置文件中已经注入了啊: 这下就难道我了,在网上搜索了快两天了,还是没有头绪,所以特来请教大神们,教教我呗: 项目我上传在: http://1185651333201311151844.iteye.com/admin/b

vb参数传递-VB高手请进!在线等。。——shell使用dos命令时参数的传递

问题描述 VB高手请进!在线等..--shell使用dos命令时参数的传递 怎样才能将%LOGPATH%所替代的内容传递到其中? (不要写成调用bat的形式) 解决方案 不行的,%logpath%不能包在括号里,应该这样 Shell "cmd /k mkdir "+LOGPATH+" > nul 2>&1", vbNormalNoFocus vb调用dos是直接运行引号内的,而不给某一变量赋值.另外包在百分号内的是bat变量而不是vb的变量 解决

运维-tomcat 部署项目问题,请看描述。。

问题描述 tomcat 部署项目问题,请看描述.. 由于刚刚接触tomcat服务器有这么几个问题. 1.tomcat 在没有依赖eclipse工具的情况下单独启动,只能通过源目录bin下面的 startup.bat命令来启动服务器吗?有没有其他方式启动服务器的? 2.通过startup.bat命令来启动,我只有一个war包,30多MB,但是启动的时候经 常会崩溃,就是命令框闪退了,这是要在那里配置吗?闪退之后就会在bin目录生成一个hs_err_pid2235.log的日记文件,而且很占硬盘14

微积分-vc 数字图像处理高手请进!

问题描述 vc 数字图像处理高手请进! 图像的梯度锐化 看到上面的公式,我叫一个晕,请问这是哪里才能学到呀?什么意思呀?还需要学习微积分吗? 解决方案 这个公式你仔细琢磨就懂了,第一个实际上是数字的差分,求得是点(i,j)的x和y方向的微分值的和,这里理解为这个像素点的梯度值.第二个就是锐化的过程,当梯度值大于某个阈值时,锐化的结果即此点的梯度值,若梯度小于那个阈值,则锐化的结果是原像素的值. 像这类比较基础的图像处理方法,建议你看一下清华大学章毓名教授写的<图像工程>. 解决方案二: 数字图

c语言-C语言高手请进:这个分块求和C语言程序问题出在哪里??对一组无规律数据按正数、负数和零分块求和,

问题描述 C语言高手请进:这个分块求和C语言程序问题出在哪里??对一组无规律数据按正数.负数和零分块求和, 对一组无规律数据按正数.负数和零分块求和,即要求将序列中相邻的正数.零及负数分块累加输出,格式要求: 源数据: 2,3,8,6,0,0,-2,-1,-4,0,5,6,7,-5,-2,...(共100个) 整理输出为: 2,5,13,19,0,0,-2,-3,-7,0,5,11,18,-5,-7...(共100个) 以下程序哪里出了问题?我搞了2星期,总是得不到完整输出: int main(

java-cxf webservice客户端调用报错.高手请进.

问题描述 cxf webservice客户端调用报错.高手请进. <!-- WebServices设置 --> <servlet> <servlet-name>CXFServices</servlet-name> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-

spring mvc 定时器问题,高手请进。

问题描述 spring mvc 定时器问题,高手请进. 问题是这样的,我写了个定时器,现在需求是这样的,我前台写了个jsp页面,页面生成动态的时间和一个随机数,我如何做到不访问前台jsp页面,调用定时器,定时访问后台的控制层,控制层返回这个前台jsp页面,前台在动态提交给后台,存入数据库,前台jsp页面和后台业务层和dao层已经写好,不要考虑,大神给我个思路,或者其他办法也行,目的就是定时器定时调度控制层返回前台页面. 解决方案 你前台jsp页面可以使用setInterval()函数,定时调用a

php curl采集高手请进

问题描述 php curl采集高手请进 http://www.lecai.com/ 这个网站怎么用php/url技术进行模拟登录?求参考程序..... 解决方案 我大致看了一下,个人习惯使用Snoopy.class.php模拟登陆,觉得不好可以忽略 POST http://www.lecai.com/user/ajax_login.php HTTP/1.1Host: www.lecai.comUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:3