开发者社区> 问答> 正文

关于使用httl的页面显示?报错

@玛雅牛 你好,想跟你请教个问题:

我在使用httl时 需要将数据库读取到的用户,保存的list集合里,然后显示到页面上,但是一直报错,您能看下是什么原因吗 ,取到的list集合该如何遍历显示到页面上

<form name="form1" method="post" action="/user" id="form1">
<div>
<h1>用户管理  
<a /> </h1>
<table>
<tr>
<th width="35%">用户姓名</th>
<th width="12%">操作</th>
</tr>
<!--#if(userList)-->
<tr>
<!--#for(User user:userList)-->
<td style="text-align:left;">${user.username}</td>
<td style="text-align:left;">
  <a />   <a /> </td>
</tr>
</table>
</div>
</form>

错误信息:<!--#for(User user:userList)--...
                ^-here

java.text.ParseException: No such class User, cause: java.lang.IllegalStateException:

java.lang.IllegalStateException: User

展开
收起
爱吃鱼的程序员 2020-06-22 18:17:49 562 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你配置一下 User所在的包名:import.packages=com.xxx

    或者写全类名: <!--#for(com.xxx.Useruser:userList)-- >

    引用来自“梁飞”的答案

    你配置一下 User所在的包名:import.packages=com.xxx

    或者写全类名: <!--#for(com.xxx.Useruser:userList)-- >

    引用来自“玛雅牛”的答案

    引用来自“梁飞”的答案

    你配置一下 User所在的包名:import.packages=com.xxx

    或者写全类名: <!--#for(com.xxx.Useruser:userList)-- >

    引用来自“_菜鸟”的答案

    引用来自“玛雅牛”的答案

    引用来自“梁飞”的答案

    你配置一下 User所在的包名:import.packages=com.xxx

    或者写全类名: <!--#for(com.xxx.Useruser:userList)-- >

    回复 @Mrchenyz:我用JFinal+Httl回复 @_菜鸟:你用的事springmvc的框架吗????第一次用这个多看看httl的官方文档会对你有帮助的,地址:http://httl.github.io/zh/谢谢你,算是把httl弄得知道怎么回事了,这两天都没怎么搞明白,太愚钝了,呵呵

    你好我现在用的是springmvc整合httl遇到这个错误 感觉很奇怪 帮忙看下:

     信息:Usingjclloggerforhttl.,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    2013-12-1116:51:39httl.spi.loggers.JclLoggerinfo
    信息:LoadhttltemplatefromdirectoryE:/framwork/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Lab_Matrix/WEB-INF/templatesbyServletLoader.,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    2013-12-1116:51:40httl.spi.loggers.JclLoggererror
    严重:Failedtocompileclass,cause:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。],class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,code: 
    ================================
    packagehttl.spi.translators.templates;


    importcom.xilei.edu.web.entity.*;
    importjavax.servlet.*;
    importjavax.servlet.http.*;
    importjava.util.*;
    importhttl.*;


    publicfinalclassTemplate__books_httl__WEB_INF_httl_UTF_8_1386748586280_streamextendshttl.spi.translators.templates.OutputStreamTemplate{


    privatestaticfinalbyte[]$TXT1=httl.util.ByteCache.getAndRemove("1");
    privatestaticfinalbyte[]$TXT2=httl.util.ByteCache.getAndRemove("2");
    privatestaticfinalString$TXT3=httl.util.StringCache.getAndRemove("1");
    privatestaticfinalbyte[]$TXT4=httl.util.ByteCache.getAndRemove("3");
    privatestaticfinalbyte[]$TXT5=httl.util.ByteCache.getAndRemove("4");
    privatestaticfinalString$TXT6=httl.util.StringCache.getAndRemove("2");
    privatestaticfinalbyte[]$TXT7=httl.util.ByteCache.getAndRemove("5");
    privatestaticfinalbyte[]$TXT9=httl.util.ByteCache.getAndRemove("6");
    privatestaticfinalString$TXT10=httl.util.StringCache.getAndRemove("3");
    privatestaticfinalbyte[]$TXT11=httl.util.ByteCache.getAndRemove("7");
    privatestaticfinalString$TXT12=httl.util.StringCache.getAndRemove("4");
    privatestaticfinalbyte[]$TXT13=httl.util.ByteCache.getAndRemove("8");
    privatestaticfinalString$TXT14=httl.util.StringCache.getAndRemove("5");
    privatestaticfinalbyte[]$TXT15=httl.util.ByteCache.getAndRemove("9");
    privatestaticfinalString$TXT16=httl.util.StringCache.getAndRemove("6");
    privatestaticfinalbyte[]$TXT17=httl.util.ByteCache.getAndRemove("10");
    privatestaticfinalString$TXT18=httl.util.StringCache.getAndRemove("7");
    privatestaticfinalbyte[]$TXT19=httl.util.ByteCache.getAndRemove("11");
    privatestaticfinalString$TXT20=httl.util.StringCache.getAndRemove("8");
    privatestaticfinalbyte[]$TXT21=httl.util.ByteCache.getAndRemove("12");
    privatestaticfinalString$TXT22=httl.util.StringCache.getAndRemove("9");
    privatestaticfinalbyte[]$TXT23=httl.util.ByteCache.getAndRemove("13");
    privatestaticfinalString$TXT24=httl.util.StringCache.getAndRemove("10");
    privatestaticfinalbyte[]$TXT25=httl.util.ByteCache.getAndRemove("14");
    privatestaticfinalbyte[]$TXT26=httl.util.ByteCache.getAndRemove("15");
    privatestaticfinalbyte[]$TXT27=httl.util.ByteCache.getAndRemove("16");
    privatestaticfinaljava.util.Map$VARS=newhttl.util.OrderedMap(newString[]{"books"},newClass[]{java.util.List.class});


    privatefinalhttl.spi.methods.CodecMethod$httl_spi_methods_CodecMethod;
    privatefinalhttl.spi.methods.FileMethod$httl_spi_methods_FileMethod;
    privatefinalhttl.spi.methods.TypeMethod$httl_spi_methods_TypeMethod;
    privatefinalhttl.spi.methods.MessageMethod$httl_spi_methods_MessageMethod;




    publicTemplate__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream(httl.Engineengine,httl.spi.Interceptorinterceptor,httl.spi.Compilercompiler,httl.spi.SwitcherfilterSwitcher,httl.spi.SwitcherformatterSwitcher,httl.spi.Filterfilter,httl.spi.Formatterformatter,httl.spi.ConvertermapConverter,httl.spi.ConverteroutConverter,java.util.Mapfunctions,java.util.MapimportMacros,httl.Resourceresource,httl.Templateparent,httl.Noderoot){
    super(engine,interceptor,compiler,filterSwitcher,formatterSwitcher,filter,formatter,mapConverter,outConverter,functions,importMacros,resource,parent,root);
    this.$httl_spi_methods_CodecMethod=(httl.spi.methods.CodecMethod)functions.get(httl.spi.methods.CodecMethod.class);
    this.$httl_spi_methods_FileMethod=(httl.spi.methods.FileMethod)functions.get(httl.spi.methods.FileMethod.class);
    this.$httl_spi_methods_TypeMethod=(httl.spi.methods.TypeMethod)functions.get(httl.spi.methods.TypeMethod.class);
    this.$httl_spi_methods_MessageMethod=(httl.spi.methods.MessageMethod)functions.get(httl.spi.methods.MessageMethod.class);
    }


    protectedvoiddoRenderStream(httl.Context$context,java.io.OutputStream$output)throwsjava.lang.Exception{
    httl.spi.Filter$filter=getFilter($context,"filter");
    httl.spi.Filterfilter=$filter;
    httl.spi.formatters.MultiFormatter$formatter=getFormatter($context,"formatter");
    httl.spi.formatters.MultiFormatterformatter=$formatter;
    java.util.Listbooks=(java.util.List)$context.get("books");
    java.util.Mapheader=(java.util.Map)$context.get("header");
    httl.util.Statusforeach=null;
    httl.util.Status$for=null;
    com.xilei.edu.web.entity.Bookbook=null;
    $output.write($TXT1);
    $output.write($TXT2);
    if(((header==null?(java.lang.Object)null:header.get("userAgent")))instanceofhttl.Template){
    ((httl.Template)((header==null?(java.lang.Object)null:header.get("userAgent")))).render($output);
    }else{
    $output.write(doFilter(filter,$TXT3,formatter.toBytes($TXT3,(((header==null?(java.lang.Object)null:header.get("userAgent")))instanceofhttl.Resource?httl.util.IOUtils.readToString(((httl.Resource)((header==null?(java.lang.Object)null:header.get("userAgent")))).openReader()):((header==null?(java.lang.Object)null:header.get("userAgent")))))));
    }
    $output.write($TXT4);
    if((books)!=null&&(books).size()>0){
    $output.write($TXT5);
    $output.write(doFilter(filter,$TXT6,formatter.toBytes($TXT6,$httl_spi_methods_MessageMethod.message("book.title"))));
    $output.write($TXT7);
    Object_d_8=books;
    int_s_8=httl.util.ClassUtils.getSize(_d_8);
    if(_d_8!=null&&_s_8!=0){
    $for=foreach=newhttl.util.Status($for,_d_8,_s_8);
    for(java.util.Iterator_i_book=httl.util.CollectionUtils.toIterator(_d_8);_i_book.hasNext();){
    book=(com.xilei.edu.web.entity.Book)(_i_book.next());
    $context.put("book",httl.util.ClassUtils.boxed(book));
    $output.write($TXT9);
    $output.write(doFilter(filter,$TXT10,formatter.toBytes($TXT10,($for==null?0:$for.getCount()))));
    $output.write($TXT11);
    $output.write(doFilter(filter,$TXT12,formatter.toBytes($TXT12,(book==null?(java.lang.String)null:book.getTitle()))));
    $output.write($TXT13);
    $output.write(doFilter(filter,$TXT14,formatter.toBytes($TXT14,(book==null?(java.lang.String)null:book.getAuthor()))));
    $output.write($TXT15);
    $output.write(doFilter(filter,$TXT16,formatter.toBytes($TXT16,(book==null?(java.lang.String)null:book.getPublisher()))));
    $output.write($TXT17);
    $output.write(doFilter(filter,$TXT18,formatter.toBytes($TXT18,$httl_spi_methods_TypeMethod.format((book==null?(java.util.Date)null:book.getPublication()),"yyyy-MM-dd"))));
    $output.write($TXT19);
    $output.write(doFilter(filter,$TXT20,formatter.toBytes($TXT20,(book==null?0:book.getPrice()))));
    $output.write($TXT21);
    $output.write(doFilter(filter,$TXT22,formatter.toBytes($TXT22,(book==null?0:book.getDiscount()))));
    $output.write($TXT23);
    $output.write(doFilter(filter,$TXT24,formatter.toBytes($TXT24,(book==null?0:book.getPrice())*(book==null?0:book.getDiscount())/100)));
    $output.write($TXT25);
    $for.increment();
    }
    $for=foreach=$for.getParent();
    }
    $output.write($TXT26);
    }
    $output.write($TXT27);
    }


    publicStringgetName(){
    return"/books.httl";
    }


    publicjava.util.MapgetVariables(){
    return$VARS;
    }


    protectedjava.util.MapgetMacroTypes(){
    returnnewhttl.util.OrderedMap(newString[0],newClass[0]);
    }


    publicbooleanisMacro(){
    returnfalse;
    }


    publicintgetOffset(){
    return0;
    }


    }
    ================================
    ,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    2013-12-1116:51:40httl.spi.loggers.JclLoggererror
    严重:Failedtocompileclass,cause:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。],class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,stack:java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]


    java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    ,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    java.text.ParseException:Failedtocompileclass,cause:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。],class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,stack:java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]


    java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:175)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

    引用来自“Mrchenyz”的答案

    你好我现在用的是springmvc整合httl遇到这个错误 感觉很奇怪 帮忙看下:

     信息:Usingjclloggerforhttl.,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    2013-12-1116:51:39httl.spi.loggers.JclLoggerinfo
    信息:LoadhttltemplatefromdirectoryE:/framwork/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Lab_Matrix/WEB-INF/templatesbyServletLoader.,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    2013-12-1116:51:40httl.spi.loggers.JclLoggererror
    严重:Failedtocompileclass,cause:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。],class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,code: 
    ================================
    packagehttl.spi.translators.templates;


    importcom.xilei.edu.web.entity.*;
    importjavax.servlet.*;
    importjavax.servlet.http.*;
    importjava.util.*;
    importhttl.*;


    publicfinalclassTemplate__books_httl__WEB_INF_httl_UTF_8_1386748586280_streamextendshttl.spi.translators.templates.OutputStreamTemplate{


    privatestaticfinalbyte[]$TXT1=httl.util.ByteCache.getAndRemove("1");
    privatestaticfinalbyte[]$TXT2=httl.util.ByteCache.getAndRemove("2");
    privatestaticfinalString$TXT3=httl.util.StringCache.getAndRemove("1");
    privatestaticfinalbyte[]$TXT4=httl.util.ByteCache.getAndRemove("3");
    privatestaticfinalbyte[]$TXT5=httl.util.ByteCache.getAndRemove("4");
    privatestaticfinalString$TXT6=httl.util.StringCache.getAndRemove("2");
    privatestaticfinalbyte[]$TXT7=httl.util.ByteCache.getAndRemove("5");
    privatestaticfinalbyte[]$TXT9=httl.util.ByteCache.getAndRemove("6");
    privatestaticfinalString$TXT10=httl.util.StringCache.getAndRemove("3");
    privatestaticfinalbyte[]$TXT11=httl.util.ByteCache.getAndRemove("7");
    privatestaticfinalString$TXT12=httl.util.StringCache.getAndRemove("4");
    privatestaticfinalbyte[]$TXT13=httl.util.ByteCache.getAndRemove("8");
    privatestaticfinalString$TXT14=httl.util.StringCache.getAndRemove("5");
    privatestaticfinalbyte[]$TXT15=httl.util.ByteCache.getAndRemove("9");
    privatestaticfinalString$TXT16=httl.util.StringCache.getAndRemove("6");
    privatestaticfinalbyte[]$TXT17=httl.util.ByteCache.getAndRemove("10");
    privatestaticfinalString$TXT18=httl.util.StringCache.getAndRemove("7");
    privatestaticfinalbyte[]$TXT19=httl.util.ByteCache.getAndRemove("11");
    privatestaticfinalString$TXT20=httl.util.StringCache.getAndRemove("8");
    privatestaticfinalbyte[]$TXT21=httl.util.ByteCache.getAndRemove("12");
    privatestaticfinalString$TXT22=httl.util.StringCache.getAndRemove("9");
    privatestaticfinalbyte[]$TXT23=httl.util.ByteCache.getAndRemove("13");
    privatestaticfinalString$TXT24=httl.util.StringCache.getAndRemove("10");
    privatestaticfinalbyte[]$TXT25=httl.util.ByteCache.getAndRemove("14");
    privatestaticfinalbyte[]$TXT26=httl.util.ByteCache.getAndRemove("15");
    privatestaticfinalbyte[]$TXT27=httl.util.ByteCache.getAndRemove("16");
    privatestaticfinaljava.util.Map$VARS=newhttl.util.OrderedMap(newString[]{"books"},newClass[]{java.util.List.class});


    privatefinalhttl.spi.methods.CodecMethod$httl_spi_methods_CodecMethod;
    privatefinalhttl.spi.methods.FileMethod$httl_spi_methods_FileMethod;
    privatefinalhttl.spi.methods.TypeMethod$httl_spi_methods_TypeMethod;
    privatefinalhttl.spi.methods.MessageMethod$httl_spi_methods_MessageMethod;




    publicTemplate__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream(httl.Engineengine,httl.spi.Interceptorinterceptor,httl.spi.Compilercompiler,httl.spi.SwitcherfilterSwitcher,httl.spi.SwitcherformatterSwitcher,httl.spi.Filterfilter,httl.spi.Formatterformatter,httl.spi.ConvertermapConverter,httl.spi.ConverteroutConverter,java.util.Mapfunctions,java.util.MapimportMacros,httl.Resourceresource,httl.Templateparent,httl.Noderoot){
    super(engine,interceptor,compiler,filterSwitcher,formatterSwitcher,filter,formatter,mapConverter,outConverter,functions,importMacros,resource,parent,root);
    this.$httl_spi_methods_CodecMethod=(httl.spi.methods.CodecMethod)functions.get(httl.spi.methods.CodecMethod.class);
    this.$httl_spi_methods_FileMethod=(httl.spi.methods.FileMethod)functions.get(httl.spi.methods.FileMethod.class);
    this.$httl_spi_methods_TypeMethod=(httl.spi.methods.TypeMethod)functions.get(httl.spi.methods.TypeMethod.class);
    this.$httl_spi_methods_MessageMethod=(httl.spi.methods.MessageMethod)functions.get(httl.spi.methods.MessageMethod.class);
    }


    protectedvoiddoRenderStream(httl.Context$context,java.io.OutputStream$output)throwsjava.lang.Exception{
    httl.spi.Filter$filter=getFilter($context,"filter");
    httl.spi.Filterfilter=$filter;
    httl.spi.formatters.MultiFormatter$formatter=getFormatter($context,"formatter");
    httl.spi.formatters.MultiFormatterformatter=$formatter;
    java.util.Listbooks=(java.util.List)$context.get("books");
    java.util.Mapheader=(java.util.Map)$context.get("header");
    httl.util.Statusforeach=null;
    httl.util.Status$for=null;
    com.xilei.edu.web.entity.Bookbook=null;
    $output.write($TXT1);
    $output.write($TXT2);
    if(((header==null?(java.lang.Object)null:header.get("userAgent")))instanceofhttl.Template){
    ((httl.Template)((header==null?(java.lang.Object)null:header.get("userAgent")))).render($output);
    }else{
    $output.write(doFilter(filter,$TXT3,formatter.toBytes($TXT3,(((header==null?(java.lang.Object)null:header.get("userAgent")))instanceofhttl.Resource?httl.util.IOUtils.readToString(((httl.Resource)((header==null?(java.lang.Object)null:header.get("userAgent")))).openReader()):((header==null?(java.lang.Object)null:header.get("userAgent")))))));
    }
    $output.write($TXT4);
    if((books)!=null&&(books).size()>0){
    $output.write($TXT5);
    $output.write(doFilter(filter,$TXT6,formatter.toBytes($TXT6,$httl_spi_methods_MessageMethod.message("book.title"))));
    $output.write($TXT7);
    Object_d_8=books;
    int_s_8=httl.util.ClassUtils.getSize(_d_8);
    if(_d_8!=null&&_s_8!=0){
    $for=foreach=newhttl.util.Status($for,_d_8,_s_8);
    for(java.util.Iterator_i_book=httl.util.CollectionUtils.toIterator(_d_8);_i_book.hasNext();){
    book=(com.xilei.edu.web.entity.Book)(_i_book.next());
    $context.put("book",httl.util.ClassUtils.boxed(book));
    $output.write($TXT9);
    $output.write(doFilter(filter,$TXT10,formatter.toBytes($TXT10,($for==null?0:$for.getCount()))));
    $output.write($TXT11);
    $output.write(doFilter(filter,$TXT12,formatter.toBytes($TXT12,(book==null?(java.lang.String)null:book.getTitle()))));
    $output.write($TXT13);
    $output.write(doFilter(filter,$TXT14,formatter.toBytes($TXT14,(book==null?(java.lang.String)null:book.getAuthor()))));
    $output.write($TXT15);
    $output.write(doFilter(filter,$TXT16,formatter.toBytes($TXT16,(book==null?(java.lang.String)null:book.getPublisher()))));
    $output.write($TXT17);
    $output.write(doFilter(filter,$TXT18,formatter.toBytes($TXT18,$httl_spi_methods_TypeMethod.format((book==null?(java.util.Date)null:book.getPublication()),"yyyy-MM-dd"))));
    $output.write($TXT19);
    $output.write(doFilter(filter,$TXT20,formatter.toBytes($TXT20,(book==null?0:book.getPrice()))));
    $output.write($TXT21);
    $output.write(doFilter(filter,$TXT22,formatter.toBytes($TXT22,(book==null?0:book.getDiscount()))));
    $output.write($TXT23);
    $output.write(doFilter(filter,$TXT24,formatter.toBytes($TXT24,(book==null?0:book.getPrice())*(book==null?0:book.getDiscount())/100)));
    $output.write($TXT25);
    $for.increment();
    }
    $for=foreach=$for.getParent();
    }
    $output.write($TXT26);
    }
    $output.write($TXT27);
    }


    publicStringgetName(){
    return"/books.httl";
    }


    publicjava.util.MapgetVariables(){
    return$VARS;
    }


    protectedjava.util.MapgetMacroTypes(){
    returnnewhttl.util.OrderedMap(newString[0],newClass[0]);
    }


    publicbooleanisMacro(){
    returnfalse;
    }


    publicintgetOffset(){
    return0;
    }


    }
    ================================
    ,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    2013-12-1116:51:40httl.spi.loggers.JclLoggererror
    严重:Failedtocompileclass,cause:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。],class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,stack:java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]


    java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    ,httl:1.0.11,jvm:1.6.0_23,os:WindowsNT(unknown)6.2x86
    java.text.ParseException:Failedtocompileclass,cause:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。],class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,stack:java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]


    java.lang.IllegalStateException:Compilationfailed.class:httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream,diagnostics:[Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:4:软件包javax.servlet不存在,Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.java:5:软件包javax.servlet.http不存在,注意:Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream.javafromJavaFileObjectImpl使用了未经检查或不安全的操作。,注意:要了解详细信息,请使用-Xlint:unchecked重新编译。]
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
    athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


    athttl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:175)
    athttl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
    athttl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
    athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
    athttl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
    athttl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
    athttl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
    athttl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
    athttl.Engine.getTemplate(Engine.java:333)
    athttl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    athttl.util.BeanFactory.createBean(BeanFactory.java:147)
    athttl.Engine.getEngine(Engine.java:127)
    athttl.web.WebEngine.setServletContext(WebEngine.java:149)
    athttl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
    atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    atorg.apache.catalina.core.StandardService.start(StandardService.java:525)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)
    atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    atjava.lang.reflect.Method.invoke(Method.java:597)
    atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

    2020-06-22 18:18:05
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多