草庐IT

express-ws

全部标签

javax.faces.FacesException : Expression Error: Named Object: player not found

我正在尝试从Primefaces学习pickList.我有什么jsf文件,PickListBean.java和Player.java.当我运行该项目时,出现错误,如http://code.google.com/p/primefaces/source/browse/examples/trunk/showcase/src/main/java/org/primefaces/示例/域/?r=3692。堆栈跟踪如下。javax.faces.FacesException:ExpressionError:NamedObject:playernotfound.atcom.sun.faces.appli

java - Java 1.7 中的 JAX-WS HTTP 日志记录

我正在使用JAX-WS作为客户端。我曾经使用以下系统属性来记录所有HTTP请求和响应以进行调试:com.sun.xml.ws.transport.local.HTTPTransportPipe.dump=true但是,自从升级到Java1.7并使用内置的JAX-WS(而不是外部库)以来,此功能已停止工作。我已经做了很多搜索来找到1.7中的正确等效项,但没有运气。有人知道如何记录输出吗?感谢您的帮助 最佳答案 试试com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=t

java - 警告 : A HTTP GET method, public javax.ws.rs.core.Response... 抛出 org.codehaus.jettison.json.JSONException,不应消耗任何实体

我有以下GET方法,它无法将结果发送回客户端。/*@GETheredefines,thismethodwillprocessHTTPGETrequests.*/@GET@Path("/test/{name}/{status}")@Produces("application/json")publicResponseName(@PathParam("name,status")Stringname,Stringstatus)throwsJSONException{Stringtotal="100";...Stringresult=""+jsonObject;returnResponse.st

java - 如何从 JAX-WS Web 服务中访问 ApplicationContext?

类似于HowcanIaccesstheServletContextfromwithinaJAX-WSwebservice?,有没有比这更容易访问applicationContext的方法?importjavax.annotation.Resource;importjavax.jws.WebService;importjavax.servlet.ServletContext;importjavax.xml.ws.WebServiceContext;importjavax.xml.ws.handler.MessageContext;importorg.springframework.web

java - Play Framework : How can I read a png image using the WS client?

您好,我想从Web服务读取PNG,然后使用PNG响应客户端。(想想像图像代理之类的东西)。我在WS类中使用Java和PlayFramework2.0。目前我有:publicstaticResultgetimage(){WSRequestHolderrequestHolder=WS.url("http://someimageserver/myimage.png");PromisegetImageResult=requestHolder.get();//HowdoIcreateanplay.mvc.ResultfromthissoIcansentitbacktothecallee?}非常感

java - 错误 : column "id" is of type uuid but expression is of type bytea

我的实体看起来像@EntitypublicclassMember{@IdprivateUUIDid;@Column(name="member_external_id",unique=true,nullable=false)privateStringmemberExternalId;@Column(name="client_id",unique=true,nullable=false)privateStringclientId;@Column(name="client_secret",unique=true,nullable=false)privateStringclientSecret

java - Jersey REST WS 错误 : "Missing dependency for method... at parameter at index X"

我收到以下错误:Apr09,201312:24:26PMcom.sun.jersey.spi.inject.ErrorsprocessErrorMessagesSEVERE:Thefollowingerrorsandwarningshavebeendetectedwithresourceand/orproviderclasses:SEVERE:Missingdependencyformethodpublicjavax.ws.rs.core.Responsecom.package.ImportService.specifyLocalFile(java.lang.String,java.l

java - 无法在 Eclipse 上解析导入 javax.ws

我正在使用Eclipse在java上开发RESTful的Web服务,接下来的步骤是:File>New>DynamicWebProject然后我配置了这些选项:Targetruntime:ApacheTomcatv7.0;Dynamicwebmoduleversion:2.5(becauseIamusingAxis2);Configuration:DefaultConfigurationforApacheTomcatv7.0and(bothoptions)在“修改”标签中,我添加了“Axis2Web服务”和“JAX-RS(RESTWeb服务)”接下来,当我创建我的新类时,我添加了impo

java - Spring 4 和 Rest WS 集成

我一直在研究Spring4和RestWS的集成。我对两者都是新手,接触不到一周。我正在按照博客的说明进行操作。我知道在Spring4和restWS设置中,jackson-core/anotation/databind2将用于JSONJava对象的正确消息转换。org.springframework.http.converter.json.MappingJackson2HttpMessageConverter也用于消息转换。我满足了所有这些要求。但是,当我尝试启动应用程序时,出现beancreate异常。堆栈SEVERE:Exceptionsendingcontextinitialize

java - 无法在 JDK8 上使用 org.jvnet.jax-ws-commons.jaxws-maven-plugin

我正在使用org.jvnet.jax-ws-commons:jaxws-maven-plugin为Soap服务生成客户端stub。升级到JDK8导致此失败并出现以下错误:Failedtoreadschemadocument'xxx.xsd',because'file'accessisnotallowedduetorestrictionsetbytheaccessExternalSchemaproperty.和类似的东西FailedtoreadDTD'XMLSchema.dtd',because'file'accessisnotallowedduetorestrictionsetbyth