• 关于

    SPI

    的搜索结果

问题

Dubbo SPI 和 Java SPI 区别?

剑曼红尘 2020-03-15 15:23:27 32 浏览量 回答数 2

问题

Dubbo SPI 和 Java SPI 区别?

游客pklijor6gytpx 2019-12-01 21:53:50 13 浏览量 回答数 1

回答

补充,增加了一个Hibernate的包,后又提示: Causedby:org.hibernate.service.spi.ServiceException:Unabletocreaterequestedservice[org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] 郁闷了。 :org.hibernate.service.spi.ServiceException:Unabletocreaterequestedservice  这个没配置 这不是slf4j少包了么 引用来自“泥沙砖瓦浆木匠”的评论 :org.hibernate.service.spi.ServiceException:Unabletocreaterequestedservice  这个没配置 引用来自“luomu32”的评论 这不是slf4j少包了么 引用来自“泥沙砖瓦浆木匠”的评论 :org.hibernate.service.spi.ServiceException:Unabletocreaterequestedservice  这个没配置

爱吃鱼的程序员 2020-06-20 19:18:23 0 浏览量 回答数 0

阿里云试用中心,为您提供0门槛上云实践机会!

0元试用32+款产品,最高免费12个月!拨打95187-1,咨询专业上云建议!

回答

你配置一下 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.2x862013-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.2x862013-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.2x86java.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.2x86java.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.2x862013-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.2x862013-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.2x86java.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.2x86java.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 0 浏览量 回答数 0

回答

请参看这个ueditor+七牛云的  UeditorController.java 或者你就用现在的后面加个renderNull();试试 renderjson就行了,代码如下 renderJson("{'original':'"+up.getOriginalName()+"','url':'"+up.getUrl()+"','fileType':'"+up.getType()+"','title':'"+up.getTitle()+"','state':'"+up.getState()+"'}"); 回复 @超级大富:谢谢,是用的httl模板的问题。另外我用的umeditor或是setAttr,最后renderjson() 目测楼主想返回json 数据,使用renderJson(result)就行,或者在本贴子的最后面加上一句renderNull()也可以 回复 @JFinal:应该是httlRender写的不完善报的错。能帮忙改下httlRender么,楼下有代码。回复 @vviqq:代码已经writer.wirte(...)过了,值在此时已经返回了,加个renderNull()是为了防止jfinal后续会调用默认render,避免抛出异常用的是httl模板renderNull()就不返回值了,用renderJson()就报错,renderJson是writer=response.getWriter();writer.write(jsonText);writer.flush();这种write.print是ueditor示例里面这样写的 /***HttlRender.(Integration,Prototype,ThreadSafe)**@authordafei(myaniuATgmailDOTcom)*/publicclassHttlRenderextendsRender{privatestaticfinallongserialVersionUID=-7218493570717379375L;publicHttlRender(Stringview){this.view=view;}@Overridepublicvoidrender(){try{WebEngine.setRequestAndResponse(request,response);WebEngine.getEngine().getTemplate(this.view,request.getLocale()).render(response);}catch(Exceptione){thrownewRenderException(e.getMessage(),e);}}} 这是httl扩展的render ,httl:1.0.11,jvm:1.6.0_10-rc2,os:WindowsVista6.1x86java.lang.IllegalStateException:Compilationinprogressatcom.sun.tools.javac.api.JavacTool.beginContext(JavacTool.java:148)atcom.sun.tools.javac.api.JavacTaskImpl.beginContext(JavacTaskImpl.java:173)atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:185)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.templates.CompiledVisitor.visit(CompiledVisitor.java:752)athttl.ast.AstVisitor.visit(AstVisitor.java:88)athttl.ast.AstVisitor.visit(AstVisitor.java:63)athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)athttl.ast.AstVisitor.visit(AstVisitor.java:41)athttl.ast.BlockDirective.accept(BlockDirective.java:45)athttl.ast.BlockDirective.accept(BlockDirective.java:48)athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)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:361)athttl.web.jfinal.HttlRender.render(HttlRender.java:40)atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)atorg.eclipse.jetty.server.Server.handle(Server.java:365)atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)atjava.lang.Thread.run(UnknownSource)2014-05-0917:02:01[ERROR]-[Thread:qtp27196165-37]-[com.jfinal.core.ActionHandler.handle()]:/meeting/indexcom.jfinal.render.RenderException:Failedtocompileclass,cause:Compilationinprogress,class:httl.spi.translators.templates.Template__meeting_index_html_main__WEB_INF_httl_UTF_8_1395650186009_stream,stack:java.lang.IllegalStateException:Compilationinprogressjava.lang.IllegalStateException:Compilationinprogressatcom.sun.tools.javac.api.JavacTool.beginContext(JavacTool.java:148)atcom.sun.tools.javac.api.JavacTaskImpl.beginContext(JavacTaskImpl.java:173)atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:185)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.templates.CompiledVisitor.visit(CompiledVisitor.java:752)athttl.ast.AstVisitor.visit(AstVisitor.java:88)athttl.ast.AstVisitor.visit(AstVisitor.java:63)athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)athttl.ast.AstVisitor.visit(AstVisitor.java:41)athttl.ast.BlockDirective.accept(BlockDirective.java:45)athttl.ast.BlockDirective.accept(BlockDirective.java:48)athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)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:361)athttl.web.jfinal.HttlRender.render(HttlRender.java:40)atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)atorg.eclipse.jetty.server.Server.handle(Server.java:365)atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)atjava.lang.Thread.run(UnknownSource)athttl.web.jfinal.HttlRender.render(HttlRender.java:42)atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)atorg.eclipse.jetty.server.Server.handle(Server.java:365)atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)atjava.lang.Thread.run(UnknownSource)Causedby:java.text.ParseException:Failedtocompileclass,cause:Compilationinprogress,class:httl.spi.translators.templates.Template__meeting_index_html_main__WEB_INF_httl_UTF_8_1395650186009_stream,stack:java.lang.IllegalStateException:Compilationinprogressjava.lang.IllegalStateException:Compilationinprogressatcom.sun.tools.javac.api.JavacTool.beginContext(JavacTool.java:148)atcom.sun.tools.javac.api.JavacTaskImpl.beginContext(JavacTaskImpl.java:173)atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)athttl.spi.compilers.JdkCompiler.doCompile(JdkCompiler.java:185)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.templates.CompiledVisitor.visit(CompiledVisitor.java:752)athttl.ast.AstVisitor.visit(AstVisitor.java:88)athttl.ast.AstVisitor.visit(AstVisitor.java:63)athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)athttl.ast.AstVisitor.visit(AstVisitor.java:41)athttl.ast.BlockDirective.accept(BlockDirective.java:45)athttl.ast.BlockDirective.accept(BlockDirective.java:48)athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)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:361)athttl.web.jfinal.HttlRender.render(HttlRender.java:40)atcom.jfinal.core.ActionHandler.handle(ActionHandler.java:92)atcom.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)atcom.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)atcom.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)atorg.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)atorg.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)atorg.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)atorg.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)atorg.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)atorg.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)atorg.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)atorg.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)atorg.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)atorg.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)atorg.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)atorg.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)atorg.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)atorg.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)atorg.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)atorg.eclipse.jetty.server.Server.handle(Server.java:365)atorg.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)atorg.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)atorg.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)atorg.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)atorg.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)atorg.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)atorg.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)atorg.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)atorg.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)atjava.lang.Thread.run(UnknownSource)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.templates.CompiledVisitor.visit(CompiledVisitor.java:752)athttl.ast.AstVisitor.visit(AstVisitor.java:88)athttl.ast.AstVisitor.visit(AstVisitor.java:63)athttl.spi.translators.templates.CompiledVisitor.visit(CompiledVisitor.java:335)athttl.ast.AstVisitor.visit(AstVisitor.java:41)athttl.ast.BlockDirective.accept(BlockDirective.java:45)athttl.ast.BlockDirective.accept(BlockDirective.java:48)athttl.spi.translators.CompiledTranslator.parseClass(CompiledTranslator.java:497)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:361)athttl.web.jfinal.HttlRender.render(HttlRender.java:40)...35more这个貌似是你的httl模版的问题

爱吃鱼的程序员 2020-06-20 19:16:34 0 浏览量 回答数 0

问题

1.1.1版本启动时报错?报错

爱吃鱼的程序员 2020-06-08 12:40:37 0 浏览量 回答数 1

问题

1.1.1版本elastic-job启动错误?报错

爱吃鱼的程序员 2020-06-08 12:36:39 0 浏览量 回答数 1

问题

Android_Push_SDK初始化异常:java.lang.ExceptionInInitializerError:Caused by: java.lang.IllegalStateException: Fail to load ams-spi-services for com.alibaba.sdk.android.ams.common.spi.FactoryProvider

k8toledo 2019-12-01 20:18:50 5456 浏览量 回答数 1

问题

树莓派上的GPIO和SPI是什么关系?

我的中国 2019-12-01 19:28:59 831 浏览量 回答数 1

回答

类型转换错误 it.tidalwave.imageio.io.FileImageInputStream2Spi 类不能转换成 javax.imageio.spi.ImageReaderSpi 类

游客ufivfoddcd53c 2020-01-03 18:50:56 0 浏览量 回答数 0

回答

GPIO是通用输入/输出,可以通过GPIO来获取和输入高低电平控制树莓派,原理和单片机类似。而SPI是传输方式,一般可以通过GPIO来实现,模拟SPI。

我的中国 2019-12-02 00:31:25 0 浏览量 回答数 0

回答

JDK SPI: JDK 标准的 SPI 会一次性加载所有的扩展实现,如果有的扩展很耗时,但也没用上,很浪费资源。所以只希望加载某个的实现,就不现实了 DUBBO SPI: 1、对 Dubbo 进行扩展,不需要改动 Dubbo 的源码 2、延迟加载,可以一次只加载自己想要加载的扩展实现。 3、增加了对扩展点 IOC 和 AOP 的支持,一个扩展点可以直接 setter 注入其 它扩展点。 4、Dubbo 的扩展机制能很好的支持第三方 IoC 容器,默认支持 Spring Bean。

剑曼红尘 2020-03-15 15:23:48 0 浏览量 回答数 0

回答

JDK SPI JDK 标准的 SPI 会一次性加载所有的扩展实现,如果有的扩展吃实话很耗时,但也没用上,很浪费资源。 所以只希望加载某个的实现,就不现实了 DUBBO SPI 1,对Dubbo进行扩展,不需要改动Dubbo的源码 2,延迟加载,可以一次只加载自己想要加载的扩展实现。 3,增加了对扩展点 IOC 和 AOP 的支持,一个扩展点可以直接 setter 注入其它扩展点。 3,Dubbo的扩展机制能很好的支持第三方IoC容器,默认支持Spring Bean。

游客pklijor6gytpx 2019-12-02 03:09:28 0 浏览量 回答数 0

回答

我也在遇到了。在alicloud-android-push-sdk-3.0.12上。咋解决呀Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK assets/ams-spi-services/com.alibaba.sdk.android.ams.common.spi.FactoryProvider

alex_chen_bin 2019-12-02 02:52:30 0 浏览量 回答数 0

回答

在我的将配置 com.sun.jersey.spi.spring.container.servlet.SpringServlet 改成com.sun.jersey.spi.container.servlet.ServletContainer之后,项目竟然可以运行了。这个修改对同事的环境也有效果,但另外一个电脑没改配置之前 就有时候 可以运行。 这个项目有配置spring啊,怎么现在Jersey反而 ,要配置没有spring的这个值

a123456678 2019-12-02 02:11:41 0 浏览量 回答数 0

问题

android 移动推送配置SDK出错

alex_chen_bin 2019-12-01 20:28:23 1405 浏览量 回答数 2

问题

百度还有android的蜘蛛吗,怎么显示是android,不解

天下游 2019-12-01 21:21:37 9463 浏览量 回答数 3

问题

JFinal整合HTTL编译错误 各种类找不到 官方demo也错误 空白页面也报错?报错

爱吃鱼的程序员 2020-06-22 13:55:20 2 浏览量 回答数 1

回答

undertow 目前没有可以配置的项,如果要配置,你可以copy jboot下的源码undertowServer,修改为myUndertowServer 然后通过SPI扩展下######回复 @leftmiaomiao : 参考:http://jboot.io/benchmark/######undertow默认配置的话并发能达到多少######下个版本添加 JbootServer 的SPI 扩展。######好的~我试试谢谢了

kun坤 2020-05-31 18:37:54 0 浏览量 回答数 0

回答

好吧。上面回答对我都没有用。我直接换了一种方法。 通过SOAPUI测试我们可以获取request里面的请求信息 在通过HTTP发送POST请求。。直接获取返回结果。 没办法先把客户想要的结果拿出来再说。。 ######找到了问题原因。 com.sun.xml.ws.spi.ProviderImpl:与JBoss的org.jboss.ws.core.jaxws.spi.ProviderImpl有冲突。######http://blog.csdn.net/shan9liang/article/details/17269269######conn.setRequestProperty("Host", ""); conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8"); conn.setRequestProperty("Content-Length", String.valueOf(str.length())); conn.setRequestProperty("SOAPAction",""); conn.setRequestProperty("Connection", "Keep-Alive"); conn.setRequestProperty("Accept-Encoding", "gzip,deflate"); conn.setRequestProperty("User-Agent", "Apache-HttpClient/4.1.1 (java 1.5)"); ###### 引用来自“一个比较帅的程序员”的评论找到了问题原因。 com.sun.xml.ws.spi.ProviderImpl:与JBoss的org.jboss.ws.core.jaxws.spi.ProviderImpl有冲突。 你这个属于deploy不成功,往前翻翻,找到jboss启动的日志,看看里面的错误应该有你说的内容

爱吃鱼的程序员 2020-06-05 12:08:52 0 浏览量 回答数 0

问题

Lucene4.0 使用 Ik analyzer FF版 实现中文分词报错?报错

爱吃鱼的程序员 2020-06-20 17:13:31 0 浏览量 回答数 1

回答

"Java中与新IO相关的包如下。 java.nio包:主要包含各种与Buffer相关的类。 java.nio.channels包:主要包含与Channel和Selector相关的类。 java.nio.charset包:主要包含与字符集相关的类。 java.nio.channels.spi包:主要包含与Channel相关的服务提供者编程接口。 java.nio.charset.spi包:包含与字符集相关的服务提供者编程接口。"

星尘linger 2020-04-12 11:36:35 0 浏览量 回答数 0

问题

dubbo 的 spi 思想是什么?【Java问答学堂】50期

剑曼红尘 2020-07-07 09:48:29 25 浏览量 回答数 1

问题

通过阿里OSS联接和聚集任意互联网资源的设想和实现

ops2000 2019-12-01 20:54:52 5499 浏览量 回答数 1

问题

SpringMVC结合HTTL时,模板类编译失败,提示“软件包找不到”,“找不到符号”等信息

a123456678 2019-12-01 20:24:09 1538 浏览量 回答数 1

问题

Hibernate整合EHCACHE报错?报错

爱吃鱼的程序员 2020-06-22 22:23:54 1 浏览量 回答数 1

问题

支付宝java SDK 是不是只支持在tomcat 下使用,不能再jboss wildfly 下使用

kun坤 2020-05-29 12:15:25 0 浏览量 回答数 1

问题

支付宝java SDK 是不是只支持在tomcat 下使用,不能再jboss w?报错

爱吃鱼的程序员 2020-06-12 15:38:36 0 浏览量 回答数 1

回答

一般是先加载自己的类。这个涉及到类的加载机制,具体你查下资料;-XX:+TraceClassLoading 可以在启动时加这个参数看加载过程在前面的类先加载,后面的同名类会失效,maven中对你自己打包的jar引入放前面就行有几次打破双亲委派模型的;打破双亲委派模型的两种情况:一种是关于这种模型本身的的缺陷所致、典型案例就是JNDI服务;还有一种就是对程序的动态性的追求所致、典型的就是常用的热部署、热替换等。都是对的,第一种讲的是JVM类加载器;第二种:jdbc驱动包加载打破了双亲委派,SPI技术,JNDI,Jaxb技术,tomcat、应用了SPI技术的Dubbo都打破了JVM的双亲委派机制

景凌凯 2020-04-22 18:04:27 0 浏览量 回答数 0

回答

spi https://www.jianshu.com/p/46b42f7f593c

黄二刀 2020-08-21 18:59:42 0 浏览量 回答数 0
阿里云大学 云服务器ECS com域名 网站域名whois查询 开发者平台 小程序定制 小程序开发 国内短信套餐包 开发者技术与产品 云数据库 图像识别 开发者问答 阿里云建站 阿里云备案 云市场 万网 阿里云帮助文档 免费套餐 开发者工具 企业信息查询 小程序开发制作 视频内容分析 企业网站制作 视频集锦 代理记账服务 2020阿里巴巴研发效能峰会 企业建站模板 云效成长地图 高端建站