Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Consuming Liferay Remote Spring HttpInvoker [RESOLVED]
Hi all
I need to consume liferay remote services exposed using spring httpinvoker
I am getting this error
org.apache.jasper.JasperException: org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/tunnel-web/secure/spring/com_liferay_portal_service_spring_UserService-http]; nested exception is java.io.IOException: Did not receive successful HTTP response: status code = 401, status message = [Unauthorized]
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Any idea what i am missing here
I am using liferay 6 community
I need to consume liferay remote services exposed using spring httpinvoker
I am getting this error
org.apache.jasper.JasperException: org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/tunnel-web/secure/spring/com_liferay_portal_service_spring_UserService-http]; nested exception is java.io.IOException: Did not receive successful HTTP response: status code = 401, status message = [Unauthorized]
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Any idea what i am missing here
I am using liferay 6 community
You need to supply the correct username and password to access the services via basic authentication
See : http://www.liferay.com/community/forums/-/message_boards/message/5504664
See : http://www.liferay.com/community/forums/-/message_boards/message/5504664
thanks jk, the approach worked, i can go with it...
but is there a option to do this thing using spring bean xml definitions
but is there a option to do this thing using spring bean xml definitions
Sure, just make the SimpleHttpInvokerRequestExecutor subclass into it's own class and wire it up in xml
Community
Company
Feedback