Combination View Flat View Tree View
Threads [ Previous | Next ]
George Cao
liferay 5.0.1 errors with web service authentication
June 16, 2008 4:29 PM
Answer

George Cao

Rank: New Member

Posts: 11

Join Date: September 30, 2007

Recent Posts

Hi all,

I am using liferay 5.0.1 with tomcat6. I have got errors when using portal-client for webservice. The errors always say “(401)Unauthorized”, when I run sample-portal-client-portlet-5.0.0.1.war.
------------------------------------------------- errors msg --------------------------------------------------------
22:30:58,364 ERROR [jsp:52] AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:

(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at com.liferay.util.axis.SimpleHTTPSender.invoke(SimpleHTTPSender.java:83)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
-------------------------------------------- errors msg end --------------------------------------------------------

Also my jbpm workflow's task is always forced to end if I call webservices during user task assignment.

These liferay 5.0.1 errors are quite identical to liferay 4.3.6 ones. However, while I was able to mange to fix the liferay 4.3.6 after adding util-java to lib/ext and adding jaas configure file and setting up JAVA_OPTS for jaas, I could not use the same solutions for liferay 5.0.1. I still got the same error msg.

Any advice will be grateful.

Thanks