我是springmvc整合httl的 报java.servlet找不到

Mrchenyz 发布于 2013/12/11 16:59
阅读 949
收藏 2

具体报错内容:

信息: Using jcl logger for httl., httl: 1.0.11, jvm: 1.6.0_23, os: Windows NT (unknown) 6.2 x86
2013-12-11 16:51:39 httl.spi.loggers.JclLogger info
信息: Load httl template from directory E:/framwork/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Lab_Matrix/WEB-INF/templates by ServletLoader., httl: 1.0.11, jvm: 1.6.0_23, os: Windows NT (unknown) 6.2 x86
2013-12-11 16:51:40 httl.spi.loggers.JclLogger error
严重: Failed to compile class, cause: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。], class: httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream, code: 
================================
package httl.spi.translators.templates;


import com.xilei.edu.web.entity.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import httl.*;


public final class Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream extends httl.spi.translators.templates.OutputStreamTemplate {


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


private final httl.spi.methods.CodecMethod $httl_spi_methods_CodecMethod;
private final httl.spi.methods.FileMethod $httl_spi_methods_FileMethod;
private final httl.spi.methods.TypeMethod $httl_spi_methods_TypeMethod;
private final httl.spi.methods.MessageMethod $httl_spi_methods_MessageMethod;




public Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream(httl.Engine engine, httl.spi.Interceptor interceptor, httl.spi.Compiler compiler, httl.spi.Switcher filterSwitcher, httl.spi.Switcher formatterSwitcher, httl.spi.Filter filter, httl.spi.Formatter formatter, httl.spi.Converter mapConverter, httl.spi.Converter outConverter, java.util.Map functions, java.util.Map importMacros, httl.Resource resource, httl.Template parent, httl.Node root) {
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);
}


protected void doRenderStream(httl.Context $context, java.io.OutputStream $output) throws java.lang.Exception {
httl.spi.Filter $filter = getFilter($context, "filter");
httl.spi.Filter filter = $filter;
httl.spi.formatters.MultiFormatter $formatter = getFormatter($context, "formatter");
httl.spi.formatters.MultiFormatter formatter = $formatter;
java.util.List books = (java.util.List) $context.get("books");
java.util.Map header = (java.util.Map) $context.get("header");
httl.util.Status foreach = null;
httl.util.Status $for = null;
com.xilei.edu.web.entity.Book book = null;
$output.write($TXT1);
$output.write($TXT2);
if (((header == null ? (java.lang.Object) null : header.get("userAgent"))) instanceof httl.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"))) instanceof httl.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 = new httl.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);
}


public String getName() {
return "/books.httl";
}


public java.util.Map getVariables() {
return $VARS;
}


protected java.util.Map getMacroTypes() {
return new httl.util.OrderedMap(new String[0], new Class[0]);
}


public boolean isMacro() {
return false;
}


public int getOffset() {
return 0;
}


}
================================
, httl: 1.0.11, jvm: 1.6.0_23, os: Windows NT (unknown) 6.2 x86
java.lang.IllegalStateException: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。]
at httl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
at httl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
at httl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
at httl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
at httl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
at httl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
at httl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
at httl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
at httl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
at httl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
at httl.Engine.getTemplate(Engine.java:333)
at httl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
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 httl.util.BeanFactory.createBean(BeanFactory.java:147)
at httl.Engine.getEngine(Engine.java:127)
at httl.web.WebEngine.setServletContext(WebEngine.java:149)
at httl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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)
2013-12-11 16:51:40 httl.spi.loggers.JclLogger error
严重: Failed to compile class, cause: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。], class: httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream, stack: java.lang.IllegalStateException: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。]


java.lang.IllegalStateException: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。]
at httl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
at httl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
at httl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
at httl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
at httl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
at httl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
at httl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
at httl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
at httl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
at httl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
at httl.Engine.getTemplate(Engine.java:333)
at httl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
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 httl.util.BeanFactory.createBean(BeanFactory.java:147)
at httl.Engine.getEngine(Engine.java:127)
at httl.web.WebEngine.setServletContext(WebEngine.java:149)
at httl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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)
, httl: 1.0.11, jvm: 1.6.0_23, os: Windows NT (unknown) 6.2 x86
java.text.ParseException: Failed to compile class, cause: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。], class: httl.spi.translators.templates.Template__books_httl__WEB_INF_httl_UTF_8_1386748586280_stream, stack: java.lang.IllegalStateException: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。]


java.lang.IllegalStateException: Compilation failed. 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.java from JavaFileObjectImpl 使用了未经检查或不安全的操作。, 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。]
at httl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:188)
at httl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:161)
at httl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:161)
at httl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
at httl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
at httl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
at httl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
at httl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
at httl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
at httl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
at httl.Engine.getTemplate(Engine.java:333)
at httl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
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 httl.util.BeanFactory.createBean(BeanFactory.java:147)
at httl.Engine.getEngine(Engine.java:127)
at httl.web.WebEngine.setServletContext(WebEngine.java:149)
at httl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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)


at httl.spi.compilers.AbstractCompiler.compile(AbstractCompiler.java:175)
at httl.spi.compilers.AdaptiveCompiler.compile(AdaptiveCompiler.java:96)
at httl.spi.translators.templates.CompiledVisitor.compile(CompiledVisitor.java:780)
at httl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:498)
at httl.spi.translators.CompiledTranslator.translate(CompiledTranslator.java:412)
at httl.spi.translators.MixedTranslator.translate(MixedTranslator.java:59)
at httl.spi.engines.DefaultEngine.parseTemplate(DefaultEngine.java:255)
at httl.spi.engines.DefaultEngine.getTemplate(DefaultEngine.java:233)
at httl.Engine.getTemplate(Engine.java:333)
at httl.spi.engines.DefaultEngine.inited(DefaultEngine.java:399)
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 httl.util.BeanFactory.createBean(BeanFactory.java:147)
at httl.Engine.getEngine(Engine.java:127)
at httl.web.WebEngine.setServletContext(WebEngine.java:149)
at httl.web.springmvc.HttlViewResolver.afterPropertiesSet(HttlViewResolver.java:40)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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)



加载中
0
webplus3
webplus3

感谢你的回复,不过我更换了tomcat6.0.16后,不会出现javax.servlet.http找不错误,但是会出现httl.spi.methods错误,然后我根据这个关键词,搜索到了一个帖子https://github.com/httl/httl/issues/62,最后根据这个帖子找到了另一个帖子https://github.com/httl/httl/issues/84 根据这个帖子里的提示,我加上了javassist-3.15.0-GA.jar这个jar包,然后将httl.properties中加上了一句compiler=httl.spi.compilers.JavassistCompiler然后我在几个版本的tomcat中都试过了,没有出现任何问题了,就是在tomcat启动的时候会报一个
严重: null, httl: 1.0.11, jvm: 1.6.0_10-rc2, os: Windows Vista 6.1 x86
java.lang.NullPointerException
我觉得,这个错误你应该也遇到过。

0
webplus3
webplus3
哥们,问题解决没,我现在也遇到的这个问题,一起讨论讨论啊!
0
Mrchenyz
Mrchenyz

解决了  是tomcat的原因  我的换成Tomcat-6.0.16这个版本就解决了      如果还不行的话   给你个解决的思路      下载官方的demo---》》热发布包  就是war格式的  然后放到tomcat   webapp下 然后启动tomcat  就这样测试就行  tomcat没问题了就用这个tomcat当项目的服务器就欧了   (这个东西可整死我了 一天的时间都放在这个上了)


0
南湖船老大
南湖船老大

HTTL明确地说了,HTTL依赖Javac来进行编译,如果没有javac的话可以用javassist,但是不推荐,因为javassist实现的不完整。如果你用了javac还报错,那就是JDK版本的问题

0
Mrchenyz
Mrchenyz
恩  我这边应该是tomcat的原因了   我现在换成不同版本的jdk都不会出问题了
0
孤单时会想你
孤单时会想你
和你类似错误。。换jdk Tomcat都没用。。
0
Mrchenyz
Mrchenyz
建议先 下载官方的demo热发布包  就是war格式的  然后放到tomcat   webapp下 然后启动tomcat  就这样测试就行  tomcat没问题了就用这个tomcat当项目的服务器就欧了
返回顶部
顶部