草庐IT

GMS_AVAILABLE_BUT_DEPRECATED

全部标签

java - 找不到 JSF 2.1.13 自定义组件 : Tag Library supports namespace: <namsepace> but no tag was defined for name: <compositecomponent>

问题我正在使用JSF2.1.13创建一个原型(prototype),以展示JSF相对于我们当前使用JSP和struts1.1构建的webapp的优势>。我遵循使用JSF2.2.6的代码,但是一旦发现OracleWeblogic12c尚不支持JSF2.2,我不得不降级。使用2.1.13运行代码时,我收到以下错误:/pages/sites/tab-details.xhtml@27,90TagLibrarysupportsnamespace:http://java.sun.com/jsf/composite/ccc,butnotagwasdefinedforname:codedType谷歌搜

java.lang.NoClassDefFoundError : Lorg/apache/logging/log4j/Logger; but the artifact exists 错误

我正在使用Tomcat部署javawebapp。简而言之,我得到了一个很长的堆栈跟踪:GRAVE:Achildcontainerfailedduringstartjava.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/new-webapp]][...]Causedby:java.lang.NoClassDefF

java.lang.IllegalStateException : Neither BindingResult nor plain target object for bean name 'category' available as request attribute 错误

我在网上查看了几乎所有与此问题相关的答案,但无法找出我的代码中的问题。这是我的JSP页面。当我删除它工作正常。我可以与我的Controller通信。所以问题与这一行有关。@ControllerpublicclassSearchCategory{@AutowiredprivateCategoryServicecategoryService;@RequestMapping(value="/search_category",method=RequestMethod.POST)public@ResponseBodyStringsearchCategoryFromDatabase(@ModelA

java - tomcat7-maven-插件 : run multiple webapps but port 8080 already in use

我正在尝试使用tomcat7-maven-plugin设置嵌入式tomcat容器,在pre-integration-test阶段运行webapps,运行集成测试,然后在post-integration-test阶段关闭tomcat。该项目是一个多模块maven项目(包含app1、app2等)。父级pom.xml如下所示,org.apache.tomcat.maventomcat7-maven-plugin2.1path/to/context.xmlpath/to/tomcat-users.xmltruetomcat-runrunpre-integration-testtomcat-sh

java - 加入获取 : "query specified join fetching, but the owner of the fetched association was not present in the select list"

我有以下代码:publicclassValueDAOimplementsBusinessObject{privateLongid;privateStringcode;privateClassDAOclassDAO;....}publicListgetCodesByCodeClass(LongclassId){Stringselect="selectdistinctval.codefromValueDAOvalleft"+"joinfetchval.classDAO";Stringwhere="whereval.classDAO.id=?orderbyval.code";returnge

java - 类数组列表 : ArrayList<Class> but how to force those classes to extend some super class?

我想管理类的ArrayList。例如,我有3种类型的过滤器:TextFilter、DurationFilter和扩展Filter的TimeFilter。这似乎是正确的:Listfilters=newArrayList();filters.add(TextFilter.class);filters.add(DurationFilter.class);filters.add(TimeFilter.class);但是现在我想用来限制ArrayList类型Listfilters=newArrayList();filters.add(TextFilter.class);filters.add(D

java - 签名长度不正确 : got 127 but was expecting 128

java1.8升级后我遇到了一个奇怪的问题。我在我们的一个实用程序中使用jsch-0.1.54.jar从各个地方下载文件。这个特殊的实用程序已经使用了将近4-5年,没有任何问题(当时是jsch-0.1.48)。当时环境是java1.6。最近我们升级到java1.8,因此我们升级了这个特定的实用程序。现在我们遇到一个奇怪的问题,它偶尔会出现,而且大多数时候文件下载都是完美的。错误日志INFO:SSH_MSG_KEXDH_INITsentINFO:expectingSSH_MSG_KEXDH_REPLYINFO:DisconnectingfromSRV2000port222016-10-2

java - Spring HATEOAS 和 HAL : Can I serve just Links but no content?

标题中的内容。我想提供一个根资源,它只包含指向“较低”资源的链接。似乎Resource和HttpEntity都想要一个以某些内容为类型的对象,那么我如何才能只提供链接?谢谢。 最佳答案 因此,您在概念上所做的是返回一个带有附加链接的空集合资源。这可以通过这段代码实现:Listlinks=…returnnewResources(Collections.emptySet(),links); 关于java-SpringHATEOAS和HAL:CanIservejustLinksbutnocon

java - Spring 集成 : no output-channel or replychannel header available

我写了一个简单的spring集成应用程序,将文件从一个目录移动到另一个目录,它看起来像这样:@Bean@InboundChannelAdapter(value="requestChannel",poller=@Poller(fixedDelay="100"))publicFileReadingMessageSourceadapter(){FileReadingMessageSourcesource=newFileReadingMessageSource();source.setDirectory(newFile("D:/TestIn"));returnsource;}@BeanMess

java - 如何摆脱 "HHH90000003: Use of DOM4J entity-mode is considered deprecated"

我刚刚将项目的hibernate版本升级到5.0.0.FINAL。但是我意识到,我收到了这个警告。我想摆脱它。不知道会不会影响我的申请。2015-08-2414:29:22.235WARN---[main]org.hibernate.orm.deprecation:HHH90000003:UseofDOM4Jentity-modeisconsidereddeprecated由于我从来没有明确地使用过entity-mode,所以我在网上搜索了但几乎没有关于它的信息。这是EntityMode枚举。由于不再有DOM4J模式,我怀疑如果我在5.0.0版本中继续使用hibernate,我可能会在