apache-wink

Beans injected into Apache Wink with Spring aren't registered

孤者浪人 提交于 2019-12-08 09:37:02
问题 Following on from How do I inject a Spring bean into Apache Wink? I'm now using wink-spring-support and I thought I had things set up correctly. web.xml includes: <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:META-INF/wink/wink-core-context.xml classpath:applicationContext.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>restServlet<

Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407” via https

懵懂的女人 提交于 2019-12-06 04:17:30
问题 I try to connect to a server via https that requires authentication.Moreover, I have an http proxy in the middle that also requires authentication. I use ProxyAuthSecurityHandler to authenticate with the proxy and BasicAuthSecurityHandler to authenticate with the server. Receiving java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Auth Required" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1525) at sun.net.www.protocol

Apache Wink Accept() fails with NullPointerException

自作多情 提交于 2019-12-06 03:11:17
I am deploying my RESTful web application on jBoss EAP 6.1 (7.2.1Final) with Wink 1.2 and getting following exception on all the request; <b>JBWEB000070: exception</b> <pre>java.lang.NullPointerException org.apache.wink.common.internal.http.Accept.valueOf(Accept.java:139) org.apache.wink.server.internal.contexts.HttpHeadersImpl.getAcceptHeader(HttpHeadersImpl.java:152) org.apache.wink.server.internal.contexts.HttpHeadersImpl.getAcceptableMediaTypes(HttpHeadersImpl.java:106) org.apache.wink.server.internal.registry.ResourceRegistry.filterByProduces(ResourceRegistry.java:558) org.apache.wink

Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407” via https

我们两清 提交于 2019-12-04 07:08:45
I try to connect to a server via https that requires authentication.Moreover, I have an http proxy in the middle that also requires authentication. I use ProxyAuthSecurityHandler to authenticate with the proxy and BasicAuthSecurityHandler to authenticate with the server. Receiving java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Auth Required" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1525) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:164) at sun