1 六月 23, 2016 11:01:46 上午 org.apache.catalina.core.AprLifecycleListener init 2 INFO: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1. 3 六月 23, 2016 11:01:46 上午 org.apache.catalina.core.AprLifecycleListener init 4 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 5 六月 23, 2016 11:01:48 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL 6 INFO: OpenSSL successfully initialized with version OpenSSL 1.0.1j 15 Oct 2014 7 六月 23, 2016 11:01:48 上午 org.apache.coyote.http11.Http11AprProtocol init 8 INFO: Initializing Coyote HTTP/1.1 on http-8080 9 六月 23, 2016 11:01:48 上午 org.apache.coyote.ajp.AjpAprProtocol init 10 INFO: Initializing Coyote AJP/1.3 on ajp-8009 11 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.Catalina load 12 INFO: Initialization processed in 1523 ms 13 六月 23, 2016 11:01:48 上午 org.apache.catalina.core.StandardService start 14 INFO: Starting service Catalina 15 六月 23, 2016 11:01:48 上午 org.apache.catalina.core.StandardEngine start 16 INFO: Starting Servlet Engine: Apache Tomcat/6.0.43 17 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.HostConfig deployDescriptor 18 INFO: Deploying configuration descriptor host-manager.xml 19 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.HostConfig deployDescriptor 20 INFO: Deploying configuration descriptor manager.xml 21 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.HostConfig deployDirectory 22 INFO: Deploying web application directory docs 23 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.HostConfig deployDirectory 24 INFO: Deploying web application directory examples 25 六月 23, 2016 11:01:48 上午 org.apache.catalina.core.ApplicationContext log 26 INFO: ContextListener: contextInitialized() 27 六月 23, 2016 11:01:48 上午 org.apache.catalina.core.ApplicationContext log 28 INFO: SessionListener: contextInitialized() 29 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.HostConfig deployDirectory 30 INFO: Deploying web application directory ROOT 31 六月 23, 2016 11:01:48 上午 org.apache.catalina.startup.HostConfig deployDirectory 32 INFO: Deploying web application directory WabacusBlank 33 2016-06-23 11:01:49,125 [main] INFO com.wabacus.WabacusServlet - 正在加载配置文件wabacus.cfg.xml及所有报表配置文件... 34 2016-06-23 11:01:49,297 [main] INFO com.wabacus.config.ConfigLoadManager - 报表javascript生成路径:F:\tomcat6\apache-tomcat-6.0.43\webapps\WabacusBlank\wabacus-generatejs\ 35 log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog). 36 log4j:WARN Please initialize the log4j system properly. 37 2016-06-23 11:01:50,752 [main] INFO com.wabacus.config.ConfigLoadManager - 正在加载配置文件:reportconfig/report/report.xml... 38 2016-06-23 11:01:50,810 [main] INFO com.wabacus.config.ConfigLoadManager - 成功加载完所有报表配置文件,开始执行所有页面加载后置动作... 39 2016-06-23 11:01:50,972 [main] ERROR com.wabacus.config.ConfigLoadManager - 执行页面listpage1加载后置动作失败 40 com.wabacus.exception.WabacusConfigLoadingException: 为报表listpage1.report1生成类Pojo_listpage1report1时失败,<format/>代码为:sex=sex==null?"1":sex.trim(); 41 if(sex.equals("0")) sex="女"; 42 else sex="男"; 43 birthday=birthday==null?"":birthday.trim(); 44 int idx=birthday.indexOf(" ");//判断是否有时间,有的话就去掉时间,只显示日期 45 if(idx>0) birthday=birthday.substring(0,idx); 46 at com.wabacus.system.assistant.ReportAssistant.buildPOJOClass(ReportAssistant.java:1112) 47 at com.wabacus.system.assistant.ReportAssistant.buildReportPOJOClass(ReportAssistant.java:1061) 48 at com.wabacus.config.component.application.report.ReportBean.loadPojoClass(ReportBean.java:1478) 49 at com.wabacus.config.component.application.report.ReportBean.doPostLoad(ReportBean.java:1385) 50 at com.wabacus.config.component.container.AbsContainerConfigBean.doPostLoad(AbsContainerConfigBean.java:435) 51 at com.wabacus.config.component.container.page.PageBean.doPostLoad(PageBean.java:330) 52 at com.wabacus.config.ConfigLoadManager.loadAllReportSystemConfigs(ConfigLoadManager.java:198) 53 at com.wabacus.WabacusServlet.loadReportConfigFiles(WabacusServlet.java:111) 54 at com.wabacus.WabacusServlet.contextInitialized(WabacusServlet.java:78) 55 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) 56 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) 57 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802) 58 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) 59 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) 60 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) 61 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) 62 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) 63 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) 64 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) 65 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) 66 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068) 67 at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) 68 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) 69 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) 70 at org.apache.catalina.core.StandardService.start(StandardService.java:525) 71 at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) 72 at org.apache.catalina.startup.Catalina.start(Catalina.java:595) 73 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 74 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 75 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 76 at java.lang.reflect.Method.invoke(Method.java:601) 77 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 78 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 79 Caused by: com.wabacus.exception.WabacusConfigLoadingException: 向类com.wabacus.generateclass.Pojo_listpage1report1中添加方法public void format(){sex=sex==null?"1":sex.trim(); 80 if(sex.equals("0")) sex="女"; 81 else sex="男"; 82 birthday=birthday==null?"":birthday.trim(); 83 int idx=birthday.indexOf(" ");//判断是否有时间,有的话就去掉时间,只显示日期 84 if(idx>0) birthday=birthday.substring(0,idx); 85 }失败 86 at com.wabacus.system.assistant.ClassPoolAssistant.addMethod(ClassPoolAssistant.java:194) 87 at com.wabacus.system.assistant.ReportAssistant.buildPOJOClass(ReportAssistant.java:1099) 88 ... 32 more 89 Caused by: javassist.CannotCompileException: [source error] no such field: sex 90 at javassist.CtNewMethod.make(CtNewMethod.java:78) 91 at javassist.CtNewMethod.make(CtNewMethod.java:44) 92 at com.wabacus.system.assistant.ClassPoolAssistant.addMethod(ClassPoolAssistant.java:189) 93 ... 33 more 94 Caused by: compile error: no such field: sex 95 at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:812) 96 at javassist.compiler.TypeChecker.atFieldAssign(TypeChecker.java:270) 97 at javassist.compiler.JvstTypeChecker.atFieldAssign(JvstTypeChecker.java:83) 98 at javassist.compiler.TypeChecker.atAssignExpr(TypeChecker.java:229) 99 at javassist.compiler.ast.AssignExpr.accept(AssignExpr.java:38) 100 at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235) 101 at javassist.compiler.CodeGen.atStmnt(CodeGen.java:323) 102 at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49) 103 at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344) 104 at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49) 105 at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285) 106 at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:267) 107 at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:43) 108 at javassist.compiler.Javac.compileMethod(Javac.java:158) 109 at javassist.compiler.Javac.compile(Javac.java:93) 110 at javassist.CtNewMethod.make(CtNewMethod.java:73) 111 ... 35 more 112 --- ROOT CAUSE --- 113 com.wabacus.exception.WabacusConfigLoadingException: 向类com.wabacus.generateclass.Pojo_listpage1report1中添加方法public void format(){sex=sex==null?"1":sex.trim(); 114 if(sex.equals("0")) sex="女"; 115 else sex="男"; 116 birthday=birthday==null?"":birthday.trim(); 117 int idx=birthday.indexOf(" ");//判断是否有时间,有的话就去掉时间,只显示日期 118 if(idx>0) birthday=birthday.substring(0,idx); 119 }失败 120 at com.wabacus.system.assistant.ClassPoolAssistant.addMethod(ClassPoolAssistant.java:194) 121 at com.wabacus.system.assistant.ReportAssistant.buildPOJOClass(ReportAssistant.java:1099) 122 at com.wabacus.system.assistant.ReportAssistant.buildReportPOJOClass(ReportAssistant.java:1061) 123 at com.wabacus.config.component.application.report.ReportBean.loadPojoClass(ReportBean.java:1478) 124 at com.wabacus.config.component.application.report.ReportBean.doPostLoad(ReportBean.java:1385) 125 at com.wabacus.config.component.container.AbsContainerConfigBean.doPostLoad(AbsContainerConfigBean.java:435) 126 at com.wabacus.config.component.container.page.PageBean.doPostLoad(PageBean.java:330) 127 at com.wabacus.config.ConfigLoadManager.loadAllReportSystemConfigs(ConfigLoadManager.java:198) 128 at com.wabacus.WabacusServlet.loadReportConfigFiles(WabacusServlet.java:111) 129 at com.wabacus.WabacusServlet.contextInitialized(WabacusServlet.java:78) 130 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) 131 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) 132 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802) 133 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) 134 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) 135 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) 136 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) 137 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) 138 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) 139 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) 140 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) 141 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068) 142 at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) 143 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) 144 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) 145 at org.apache.catalina.core.StandardService.start(StandardService.java:525) 146 at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) 147 at org.apache.catalina.startup.Catalina.start(Catalina.java:595) 148 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 149 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 150 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 151 at java.lang.reflect.Method.invoke(Method.java:601) 152 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 153 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 154 Caused by: javassist.CannotCompileException: [source error] no such field: sex 155 at javassist.CtNewMethod.make(CtNewMethod.java:78) 156 at javassist.CtNewMethod.make(CtNewMethod.java:44) 157 at com.wabacus.system.assistant.ClassPoolAssistant.addMethod(ClassPoolAssistant.java:189) 158 ... 33 more 159 Caused by: compile error: no such field: sex 160 at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:812) 161 at javassist.compiler.TypeChecker.atFieldAssign(TypeChecker.java:270) 162 at javassist.compiler.JvstTypeChecker.atFieldAssign(JvstTypeChecker.java:83) 163 at javassist.compiler.TypeChecker.atAssignExpr(TypeChecker.java:229) 164 at javassist.compiler.ast.AssignExpr.accept(AssignExpr.java:38) 165 at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235) 166 at javassist.compiler.CodeGen.atStmnt(CodeGen.java:323) 167 at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49) 168 at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344) 169 at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49) 170 at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285) 171 at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:267) 172 at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:43) 173 at javassist.compiler.Javac.compileMethod(Javac.java:158) 174 at javassist.compiler.Javac.compile(Javac.java:93) 175 at javassist.CtNewMethod.make(CtNewMethod.java:73) 176 ... 35 more 177 --- ROOT CAUSE --- 178 javassist.CannotCompileException: [source error] no such field: sex 179 at javassist.CtNewMethod.make(CtNewMethod.java:78) 180 at javassist.CtNewMethod.make(CtNewMethod.java:44) 181 at com.wabacus.system.assistant.ClassPoolAssistant.addMethod(ClassPoolAssistant.java:189) 182 at com.wabacus.system.assistant.ReportAssistant.buildPOJOClass(ReportAssistant.java:1099) 183 at com.wabacus.system.assistant.ReportAssistant.buildReportPOJOClass(ReportAssistant.java:1061) 184 at com.wabacus.config.component.application.report.ReportBean.loadPojoClass(ReportBean.java:1478) 185 at com.wabacus.config.component.application.report.ReportBean.doPostLoad(ReportBean.java:1385) 186 at com.wabacus.config.component.container.AbsContainerConfigBean.doPostLoad(AbsContainerConfigBean.java:435) 187 at com.wabacus.config.component.container.page.PageBean.doPostLoad(PageBean.java:330) 188 at com.wabacus.config.ConfigLoadManager.loadAllReportSystemConfigs(ConfigLoadManager.java:198) 189 at com.wabacus.WabacusServlet.loadReportConfigFiles(WabacusServlet.java:111) 190 at com.wabacus.WabacusServlet.contextInitialized(WabacusServlet.java:78) 191 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) 192 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) 193 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802) 194 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) 195 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) 196 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079) 197 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002) 198 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506) 199 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) 200 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) 201 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) 202 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1068) 203 at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) 204 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) 205 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) 206 at org.apache.catalina.core.StandardService.start(StandardService.java:525) 207 at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) 208 at org.apache.catalina.startup.Catalina.start(Catalina.java:595) 209 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 210 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 211 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 212 at java.lang.reflect.Method.invoke(Method.java:601) 213 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 214 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 215 Caused by: compile error: no such field: sex 216 at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:812) 217 at javassist.compiler.TypeChecker.atFieldAssign(TypeChecker.java:270) 218 at javassist.compiler.JvstTypeChecker.atFieldAssign(JvstTypeChecker.java:83) 219 at javassist.compiler.TypeChecker.atAssignExpr(TypeChecker.java:229) 220 at javassist.compiler.ast.AssignExpr.accept(AssignExpr.java:38) 221 at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235) 222 at javassist.compiler.CodeGen.atStmnt(CodeGen.java:323) 223 at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49) 224 at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344) 225 at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49) 226 at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285) 227 at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:267) 228 at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:43) 229 at javassist.compiler.Javac.compileMethod(Javac.java:158) 230 at javassist.compiler.Javac.compile(Javac.java:93) 231 at javassist.CtNewMethod.make(CtNewMethod.java:73) 232 ... 35 more 233 2016-06-23 11:01:50,975 [main] ERROR com.wabacus.WabacusServlet - 加载报表配置文件wabacus.cfg.xml失败 234 六月 23, 2016 11:01:51 上午 org.apache.coyote.http11.Http11AprProtocol start 235 INFO: Starting Coyote HTTP/1.1 on http-8080 236 六月 23, 2016 11:01:51 上午 org.apache.coyote.ajp.AjpAprProtocol start 237 INFO: Starting Coyote AJP/1.3 on ajp-8009 238 六月 23, 2016 11:01:51 上午 org.apache.catalina.startup.Catalina start 239 INFO: Server startup in 2841 ms
去除report.xml format部分
1 <?xml version="1.0" encoding="UTF-8"?> 2 <applications xmlns="http://www.wabacus.com" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://www.wabacus.com ../xsd/wabacus.applications.xsd"> 5 <page id="listpage1"> 6 <report type="blocklist" id="report1" title="员工基本信息列表" pagesize="20" scrollstyle="image" scrollheight="300px" width="1000px" dataexport="richexcel"> 7 <display> 8 <col column="{sequence:1}" label="序号"/> 9 <col column="no" label="工号" clickorderby="true" valuestyleproperty="style='mso-number-format:\@'"/> 10 <col column="name" label="姓名" clickorderby="true"/> 11 <group label="基本信息"> 12 <col column="sex" label="性别"/> 13 <col column="age" label="年龄" clickorderby="true" filter="true" filterwidth="120px"/> 14 <col column="birthday" label="出生日期" clickorderby="true"/> 15 </group> 16 <col column="deptname" label="所属部门" filter="true" filterwidth="120px"/> 17 </display> 18 <sql> 19 <value> 20 <![CDATA[SELECT no,name,sex,age,birthday,deptname FROM tbl_baseinfo A left join tbl_department B on A.deptno=B.deptno where {#condition#} order by no]]> 21 </value> 22 <condition name="txtno" label="工号"> 23 <value> 24 <![CDATA[(no like '%#data#%' )]]> 25 </value> 26 </condition> 27 <condition name="txtname" label="姓名"> 28 <value> 29 <![CDATA[(name like '%#data#%' )]]> 30 </value> 31 </condition> 32 <condition name="txtsex" label="性别"> 33 <value> 34 <![CDATA[(sex =#data#)]]> 35 </value> 36 <inputbox type="selectbox"> 37 <option value="" label="性别"/> 38 <option value="1" label="男"/> 39 <option value="0" label="女" /> 40 </inputbox> 41 </condition> 42 </sql> 43 <format> 44 <value> 45 sex=sex==null?"1":sex.trim(); 46 if(sex.equals("0")) sex="女"; 47 else sex="男"; 48 birthday=birthday==null?"":birthday.trim(); 49 int idx=birthday.indexOf(" ");//判断是否有时间,有的话就去掉时间,只显示日期 50 if(idx>0) birthday=birthday.substring(0,idx); 51 </value> 52 </format> 53 </report> 54 </page> 55 </applications>