Re: Axis and Tomcat problem - (401)Unauthorized

2005-10-22 Thread naveen babu
It's actually *.WSDD file. You can name it anything.Without WSDD file, i don't know how are you deploying your web services, it is the main configuration file for deploying your web services when using Apache Axis. see the link below for the documentation on it


http://ws.apache.org/axis/java/user-guide.html#CustomDeploymentIntroducingWSDD

When you download Apache Axis 1.3, see under the axis-1-3/samples/ folder and look at some of the examples where WSDD file has been used.
On 10/21/05, Chen, Donald [EMAIL PROTECTED] wrote:


I could not find the server-config.wsdd file, I use Axis 1.3. 

Don





From: naveen babu [mailto:
[EMAIL PROTECTED]] Sent: Friday, October 21, 2005 5:04 PM
To: axis-user@ws.apache.org
Subject: Re: Axis and Tomcat problem - (401)Unauthorized


it is authentication problem, if you look at your server-config.wsdd file you should have specified something like i have done, see below from my WSDD file.
service name=Subscriber provider=java:RPC wsdlFileSubscriber.wsdl/wsdlFile requestFlow handler type=java:org.apache.axis.handlers.SimpleAuthenticationHandler
/ handler type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/ /requestFlow parameter name=allowedRoles value=wsrole/ 
 /servicetransport name=http requestFlow handler type=URLMapper/ handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler
/ /requestFlow/transportand you specify in web.xml you specify the role as belowsecurity-constraint web-resource-collection web-resource-name/
 url-pattern/services/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint
 role-namewsrole/role-name  /auth-constraint /security-constraintand in jrun-users.xml file you specify the userid and password for the rolei got this error too, let me know if i am not clear


On 10/21/05, Chen, Donald 
[EMAIL PROTECTED] wrote:
Yeah, this error happened when I tried to deploy a WS.Any document available online to show a way to solve this problem?Iassume this is a common problem.
Thanks,Don-Original Message- From: Ebert, Chris [mailto:[EMAIL PROTECTED]
]Sent: Friday, October 21, 2005 4:45 PMTo: axis-user@ws.apache.orgSubject: RE: Axis and Tomcat problem - (401)Unauthorized 
This is when you deploy, right? Not once it's deployed? If it's thedeploy itself it's a tomcat deploy issue (likely because ofconfiguration). While there might be help here, you'll probably havebetter luck on one of the tomcat lists (or in the Tomcat doc or FAQ.) 
Chris-Original Message-From: Chen, Donald [mailto:[EMAIL PROTECTED]]Sent: Friday, October 21, 2005 13:31
To: axis-user@ws.apache.orgSubject: Axis and Tomcat problem - (401)Unauthorized
Hi, there.When I tried to deploy a service, I gotFaultString: (401)UnauthorizedSystem Info: Apache 2.0.5.4
Tomcat 5.5.9Axis: 1.3, Linux OS.Any idea?Thanks,Don



RE: Axis and Tomcat problem - (401)Unauthorized

2005-10-21 Thread Ebert, Chris
This is when you deploy, right? Not once it's deployed? If it's the
deploy itself it's a tomcat deploy issue (likely because of
configuration). While there might be help here, you'll probably have
better luck on one of the tomcat lists (or in the Tomcat doc or FAQ.)

Chris
 

-Original Message-
From: Chen, Donald [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005 13:31
To: axis-user@ws.apache.org
Subject: Axis and Tomcat problem - (401)Unauthorized

Hi, there.

When I tried to deploy a service, I got 

FaultString: (401)Unauthorized

System Info: Apache 2.0.5.4  Tomcat 5.5.9  Axis: 1.3, Linux OS.

Any idea?

Thanks,

Don


RE: Axis and Tomcat problem - (401)Unauthorized

2005-10-21 Thread Chen, Donald
Yeah, this error happened when I tried to deploy a WS.

Any document available online to show a way to solve this problem?  I
assume this is a common problem.

Thanks,

Don

-Original Message-
From: Ebert, Chris [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005 4:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis and Tomcat problem - (401)Unauthorized

This is when you deploy, right? Not once it's deployed? If it's the
deploy itself it's a tomcat deploy issue (likely because of
configuration). While there might be help here, you'll probably have
better luck on one of the tomcat lists (or in the Tomcat doc or FAQ.)

Chris
 

-Original Message-
From: Chen, Donald [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005 13:31
To: axis-user@ws.apache.org
Subject: Axis and Tomcat problem - (401)Unauthorized

Hi, there.

When I tried to deploy a service, I got 

FaultString: (401)Unauthorized

System Info: Apache 2.0.5.4  Tomcat 5.5.9  Axis: 1.3, Linux OS.

Any idea?

Thanks,

Don


Re: Axis and Tomcat problem - (401)Unauthorized

2005-10-21 Thread naveen babu
it is authentication problem, if you look at your server-config.wsdd
file you should have specified something like i have done, see below
from my WSDD file.


service name=Subscriber provider=java:RPC
 wsdlFileSubscriber.wsdl/wsdlFile
 requestFlow
 handler type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/
 handler type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/
 /requestFlow
 parameter name=allowedRoles value=wsrole/
 
 
/service
transport name=http
 requestFlow
 handler type=URLMapper/
 handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler/
 /requestFlow
/transport

and you specify in web.xml you specify the role as below

security-constraint
 web-resource-collection
 web-resource-name/
 url-pattern/services/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-namewsrole/role-name 
 /auth-constraint
 /security-constraint

and in jrun-users.xml file you specify the userid and password for the role

i got this error too, let me know if i am not clear

On 10/21/05, Chen, Donald [EMAIL PROTECTED] wrote:
Yeah, this error happened when I tried to deploy a WS.Any document available online to show a way to solve this problem?Iassume this is a common problem.Thanks,Don-Original Message-
From: Ebert, Chris [mailto:[EMAIL PROTECTED]]Sent: Friday, October 21, 2005 4:45 PMTo: axis-user@ws.apache.orgSubject: RE: Axis and Tomcat problem - (401)Unauthorized
This is when you deploy, right? Not once it's deployed? If it's thedeploy itself it's a tomcat deploy issue (likely because ofconfiguration). While there might be help here, you'll probably havebetter luck on one of the tomcat lists (or in the Tomcat doc or FAQ.)
Chris-Original Message-From: Chen, Donald [mailto:[EMAIL PROTECTED]]Sent: Friday, October 21, 2005 13:31To: 
axis-user@ws.apache.orgSubject: Axis and Tomcat problem - (401)UnauthorizedHi, there.When I tried to deploy a service, I gotFaultString: (401)UnauthorizedSystem Info: Apache 
2.0.5.4Tomcat 5.5.9Axis: 1.3, Linux OS.Any idea?Thanks,Don


RE: Axis and Tomcat problem - (401)Unauthorized

2005-10-21 Thread Chen, Donald








I could not find the server-config.wsdd
file, I use Axis 1.3. 



Don











From: naveen babu
[mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005
5:04 PM
To: axis-user@ws.apache.org
Subject: Re: Axis and Tomcat
problem - (401)Unauthorized





it is authentication
problem, if you look at your server-config.wsdd file you should have specified
something like i have done, see below from my WSDD file.


service name=Subscriber provider=java:RPC
 wsdlFileSubscriber.wsdl/wsdlFile
 requestFlow
 handler
type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/
 handler
type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/
 /requestFlow
 parameter name=allowedRoles
value=wsrole/
 
 
/service
transport name=http
 requestFlow
 handler type=URLMapper/
 handler
type=java:org.apache.axis.handlers.http.HTTPAuthHandler/
 /requestFlow
/transport

and you specify in web.xml you specify the role as below

security-constraint
 web-resource-collection
 web-resource-name/

url-pattern/services/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-namewsrole/role-name 
 /auth-constraint
 /security-constraint

and in jrun-users.xml file you specify the userid and password for the role

i got this error too, let me know if i am not clear






On 10/21/05, Chen,
Donald [EMAIL PROTECTED]
wrote:

Yeah, this error happened when I tried to deploy a WS.

Any document available online to show a way to solve this problem?I
assume this is a common problem.

Thanks,

Don

-Original Message- 
From: Ebert, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 21, 2005 4:45 PM
To: axis-user@ws.apache.org
Subject: RE: Axis and Tomcat problem - (401)Unauthorized 

This is when you deploy, right? Not once it's deployed? If it's the
deploy itself it's a tomcat deploy issue (likely because of
configuration). While there might be help here, you'll probably have
better luck on one of the tomcat lists (or in the Tomcat doc or FAQ.) 

Chris


-Original Message-
From: Chen, Donald [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 21, 2005 13:31
To: axis-user@ws.apache.org
Subject: Axis and Tomcat problem - (401)Unauthorized

Hi, there.

When I tried to deploy a service, I got

FaultString: (401)Unauthorized

System Info: Apache 2.0.5.4Tomcat
5.5.9Axis: 1.3, Linux OS.

Any idea?

Thanks,

Don