You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by khiz <zu...@yahoo.com> on 2006/07/22 23:55:15 UTC

get_authToken problem

hi

I installed juddi happyjuddi.jsp dosent show any errors, but when i used
console to execute get_authToken  get E_unknownUser (10150) error. 

I gave userid = juddi (it is a mysql user) cred = juddi (mysql user
password).if any one authenticated juddi please guide me i need to write a
client application to use juddi server for my final project. i will be very
much thankfull for any kind of guidance.


config details are :

os : winxp
tomcat 5.5.17
axis is happy with no errors.
juddi09.rc4
mysql 5.0.22

i followed 
http://www.socketelf.org:8080/roller/page/socket?entry=juudi_installation
tutorial to configure my juddi 

added 

# The UDDI user
juddi.users = $TOMCAT_HOME\juddi\WEB-INF\juddi-users.xml 

to juddi.properties,

changed juddi-users.xml to specify appropriate user name and password

<?xml version="1.0" encoding="UTF-8"?>
<juddi-users>
  <user userid="sviens" password="password" />
  <user userid="juddi" password="juddi" />
</juddi-users>

FULL ERROR i got is given below : 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Client</faultcode>
   <faultstring>E_unknownUser (10150) The user ID and password pair passed
in a get_authToken message is not known to the Operator Site or is not
valid. get_authToken: userID=juddi</faultstring>
   <detail>
    <dispositionReport generic="2.0" operator="localhost"
xmlns="urn:uddi-org:api_v2">
     <result errno="10150">
      <errInfo errCode="E_unknownUser" xsi:type="xsd:string">E_unknownUser
(10150) The user ID and password pair passed in a get_authToken message is
not known to the Operator Site or is not valid. get_authToken:
userID=juddi</errInfo>
     </result>
    </dispositionReport>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>


thanks in advance.

-- 
View this message in context: http://www.nabble.com/get_authToken-problem-tf1986179.html#a5450759
Sent from the jUDDI - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: get_authToken problem

Posted by jihene <ji...@yahoo.fr>.
Hi , 
can you help me to find the problem, 
it can be the java class that create a custom jUDDI Authentificator because
I have this problem, i don't know .

the error:
?xml versionfiltered="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.generalException</faultcode>
   <faultstring></faultstring>
   <faultactor></faultactor>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
 


 Merci d'avance





khiz wrote:
> 
> thank you for quick reply,
> i checked it: get_authToken works even if cred is not supplied. 
> pubid shall be valid pubid from publisher table.
> bye.
> 
> avinh wrote:
>> 
>> khiz,
>> 
>> I believe the "cred" field in the request is typically the password for 
>> the user as I have seen in some of their other sql statements. However, 
>> the PUBLISHER table that was created using their provided sql statement 
>> has NO column for the password field, so I don't think the "cred" field 
>> is being used at this time in their request - we must keep in mind that 
>> the "console" is a beta product and it may not have everything they want 
>> implemented in it yet.
>> 
>> By credential I mean whatever user that you have created using their 
>> supplied sql statement (see example below). In their example, the userID 
>> is "jdoe" (PUBLISHER_NAME=John Doe). In your case, it looks like your 
>> userID is "pubid1". Notice below that the sql statement used to insert 
>> the user into the jUDDI database does have fields such as IS_ENABLED and 
>> IS_ADMIN but nothing for the password hence I don't think the "cred" 
>> field is being checked/used. If you create another user and insert that 
>> user ID into the "userID" field of the request, it would also work 
>> because that new user ID will also be present in the jUDDI database.
>> 
>> INSERT INTO PUBLISHER 
>> (PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN)
>> VALUES ('jdoe','John Doe','john.doe@apache.org','true','true');
>> 
>> Go into mysql and run the following sql statements and all of your users 
>> listed in the PUBLISHER table will be displayed:
>> 
>> mysql> use juddi;
>> mysql> select * from PUBLISHER;
>> 
>> You should get something like the following output:
>> 
>> +------------------+--------------------------------------+----------------------+-------------+----------------+ 
>> 
>> | PUBLISHER_ID | PUBLISHER_NAME                        | EMAIL_ADDRESS  
>> | IS_ADMIN | IS_ENABLED |
>> +------------------+--------------------------------------+----------------------+-------------+----------------+ 
>> 
>> | jdoe                     | John Doe                                   
>>         | john.doe@apache.org | true             | true                 
>> |
>> | pubid1                 | Whatever you have put here                | 
>> your@your.domain      | true             | true                  |
>> +------------------+--------------------------------------+-----------------------+------------+----------------+ 
>> 
>> 
>> Alan
>> 
>> khiz wrote:
>>> hi alan
>>>
>>> thanks for the help, i followed the link its working fine now. 
>>>
>>> i still have a doubt 
>>>
>>>  <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
>>>       userID="pubid1" 
>>>       cred="***"/>
>>>
>>> what shall i specify in the place of cred="***", what doset it mean by
>>> credentials.
>>>
>>> what do you mean by
>>>
>>> You'll have to change the credential accordingly with your "publisher"
>>> information ?
>>>
>>> thank you again
>>> bye.
>>>
>>>   
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: juddi-user-help@ws.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/get_authToken-problem-tf1986179.html#a6772654
Sent from the jUDDI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: get_authToken problem

Posted by khiz <zu...@yahoo.com>.
thank you for quick reply,
i checked it: get_authToken works even if cred is not supplied. 
pubid shall be valid pubid from publisher table.
bye.

avinh wrote:
> 
> khiz,
> 
> I believe the "cred" field in the request is typically the password for 
> the user as I have seen in some of their other sql statements. However, 
> the PUBLISHER table that was created using their provided sql statement 
> has NO column for the password field, so I don't think the "cred" field 
> is being used at this time in their request - we must keep in mind that 
> the "console" is a beta product and it may not have everything they want 
> implemented in it yet.
> 
> By credential I mean whatever user that you have created using their 
> supplied sql statement (see example below). In their example, the userID 
> is "jdoe" (PUBLISHER_NAME=John Doe). In your case, it looks like your 
> userID is "pubid1". Notice below that the sql statement used to insert 
> the user into the jUDDI database does have fields such as IS_ENABLED and 
> IS_ADMIN but nothing for the password hence I don't think the "cred" 
> field is being checked/used. If you create another user and insert that 
> user ID into the "userID" field of the request, it would also work 
> because that new user ID will also be present in the jUDDI database.
> 
> INSERT INTO PUBLISHER 
> (PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN)
> VALUES ('jdoe','John Doe','john.doe@apache.org','true','true');
> 
> Go into mysql and run the following sql statements and all of your users 
> listed in the PUBLISHER table will be displayed:
> 
> mysql> use juddi;
> mysql> select * from PUBLISHER;
> 
> You should get something like the following output:
> 
> +------------------+--------------------------------------+----------------------+-------------+----------------+ 
> 
> | PUBLISHER_ID | PUBLISHER_NAME                        | EMAIL_ADDRESS  
> | IS_ADMIN | IS_ENABLED |
> +------------------+--------------------------------------+----------------------+-------------+----------------+ 
> 
> | jdoe                     | John Doe                                   
>         | john.doe@apache.org | true             | true                  |
> | pubid1                 | Whatever you have put here                | 
> your@your.domain      | true             | true                  |
> +------------------+--------------------------------------+-----------------------+------------+----------------+ 
> 
> 
> Alan
> 
> khiz wrote:
>> hi alan
>>
>> thanks for the help, i followed the link its working fine now. 
>>
>> i still have a doubt 
>>
>>  <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
>>       userID="pubid1" 
>>       cred="***"/>
>>
>> what shall i specify in the place of cred="***", what doset it mean by
>> credentials.
>>
>> what do you mean by
>>
>> You'll have to change the credential accordingly with your "publisher"
>> information ?
>>
>> thank you again
>> bye.
>>
>>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: juddi-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/get_authToken-problem-tf1986179.html#a5505771
Sent from the jUDDI - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: get_authToken problem

Posted by Alan Vinh <al...@nist.gov>.
khiz,

I believe the "cred" field in the request is typically the password for 
the user as I have seen in some of their other sql statements. However, 
the PUBLISHER table that was created using their provided sql statement 
has NO column for the password field, so I don't think the "cred" field 
is being used at this time in their request - we must keep in mind that 
the "console" is a beta product and it may not have everything they want 
implemented in it yet.

By credential I mean whatever user that you have created using their 
supplied sql statement (see example below). In their example, the userID 
is "jdoe" (PUBLISHER_NAME=John Doe). In your case, it looks like your 
userID is "pubid1". Notice below that the sql statement used to insert 
the user into the jUDDI database does have fields such as IS_ENABLED and 
IS_ADMIN but nothing for the password hence I don't think the "cred" 
field is being checked/used. If you create another user and insert that 
user ID into the "userID" field of the request, it would also work 
because that new user ID will also be present in the jUDDI database.

INSERT INTO PUBLISHER 
(PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN)
VALUES ('jdoe','John Doe','john.doe@apache.org','true','true');

Go into mysql and run the following sql statements and all of your users 
listed in the PUBLISHER table will be displayed:

mysql> use juddi;
mysql> select * from PUBLISHER;

You should get something like the following output:

+------------------+--------------------------------------+----------------------+-------------+----------------+ 

| PUBLISHER_ID | PUBLISHER_NAME                        | EMAIL_ADDRESS  
| IS_ADMIN | IS_ENABLED |
+------------------+--------------------------------------+----------------------+-------------+----------------+ 

| jdoe                     | John Doe                                   
        | john.doe@apache.org | true             | true                  |
| pubid1                 | Whatever you have put here                | 
your@your.domain      | true             | true                  |
+------------------+--------------------------------------+-----------------------+------------+----------------+ 


Alan

khiz wrote:
> hi alan
>
> thanks for the help, i followed the link its working fine now. 
>
> i still have a doubt 
>
>  <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
>       userID="pubid1" 
>       cred="***"/>
>
> what shall i specify in the place of cred="***", what doset it mean by
> credentials.
>
> what do you mean by
>
> You'll have to change the credential accordingly with your "publisher"
> information ?
>
> thank you again
> bye.
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: get_authToken problem

Posted by Alan Vinh <al...@nist.gov>.
khiz,

I believe the "cred" field in the request is typically the password for 
the user as I have seen in some of their other sql statements. However, 
the PUBLISHER table that was created using their provided sql statement 
has NO column for the password field, so I don't think the "cred" field 
is being used at this time in their request - we must keep in mind that 
the "console" is a beta product and it may not have everything they want 
implemented in it yet.

By credential I mean whatever user that you have created using their 
supplied sql statement (see example below). In their example, the userID 
is "jdoe" (PUBLISHER_NAME=John Doe). In your case, it looks like your 
userID is "pubid1". Notice below that the sql statement used to insert 
the user into the jUDDI database does have fields such as IS_ENABLED and 
IS_ADMIN but nothing for the password hence I don't think the "cred" 
field is being checked/used. If you create another user and insert that 
user ID into the "userID" field of the request, it would also work 
because that new user ID will also be present in the jUDDI database.

INSERT INTO PUBLISHER 
(PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN)
VALUES ('jdoe','John Doe','john.doe@apache.org','true','true');

Go into mysql and run the following sql statements and all of your users 
listed in the PUBLISHER table will be displayed:

mysql> use juddi;
mysql> select * from PUBLISHER;

You should get something like the following output:

+------------------+--------------------------------------+----------------------+-------------+----------------+
| PUBLISHER_ID | PUBLISHER_NAME                        | EMAIL_ADDRESS  
| IS_ADMIN | IS_ENABLED |
+------------------+--------------------------------------+----------------------+-------------+----------------+
| jdoe                     | John Doe                                   
         | john.doe@apache.org | true             | true                  |
| pubid1                 | Whatever you have put here                | 
your@your.domain      | true             | true                  |
+------------------+--------------------------------------+-----------------------+------------+----------------+

Alan

khiz wrote:
> hi alan
>
> thanks for the help, i followed the link its working fine now. 
>
> i still have a doubt 
>
>  <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
>       userID="pubid1" 
>       cred="***"/>
>
> what shall i specify in the place of cred="***", what doset it mean by
> credentials.
>
> what do you mean by
>
> You'll have to change the credential accordingly with your "publisher"
> information ?
>
> thank you again
> bye.
>
>   

-- 
Alan Vinh
Building and Fire Research Laboratory
National Institute of Standards and Technology
100 Bureau Drive, MS 8630
Building 226, Room B316
Gaithersburg, MD 20899-8630, USA
-----------------------------------------------
E-mail: Alan.Vinh@nist.gov
Phone: 301-975-5260
FAX: 301-975-5433
http://www.bfrl.nist.gov/
------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: get_authToken problem

Posted by khiz <zu...@yahoo.com>.
hi alan

thanks for the help, i followed the link its working fine now. 

i still have a doubt 

 <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
      userID="pubid1" 
      cred="***"/>

what shall i specify in the place of cred="***", what doset it mean by
credentials.

what do you mean by

You'll have to change the credential accordingly with your "publisher"
information ?

thank you again
bye.

-- 
View this message in context: http://www.nabble.com/get_authToken-problem-tf1986179.html#a5502302
Sent from the jUDDI - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org


Re: get_authToken problem

Posted by avinh <al...@nist.gov>.
khiz,

Try the following solution to see if it will work for you (see link below).

http://www.nabble.com/RE%3A-get_AuthToken-not-working-at-all%21-p5492620.html

Cheers - Alan


khiz wrote:
> 
> hi
> 
> I installed juddi happyjuddi.jsp dosent show any errors, but when i used
> console to execute get_authToken  get E_unknownUser (10150) error. 
> 
> I gave userid = juddi (it is a mysql user) cred = juddi (mysql user
> password).if any one authenticated juddi please guide me i need to write a
> client application to use juddi server for my final project. i will be
> very much thankfull for any kind of guidance.
> 
> 
> config details are :
> 
> os : winxp
> tomcat 5.5.17
> axis is happy with no errors.
> juddi09.rc4
> mysql 5.0.22
> 
> i followed 
> http://www.socketelf.org:8080/roller/page/socket?entry=juudi_installation
> tutorial to configure my juddi 
> 
> added 
> 
> # The UDDI user
> juddi.users = $TOMCAT_HOME\juddi\WEB-INF\juddi-users.xml 
> 
> to juddi.properties,
> 
> changed juddi-users.xml to specify appropriate user name and password
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <juddi-users>
>   <user userid="sviens" password="password" />
>   <user userid="juddi" password="juddi" />
> </juddi-users>
> 
> FULL ERROR i got is given below : 
> 
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <soapenv:Fault>
>    <faultcode>soapenv:Client</faultcode>
>    <faultstring>E_unknownUser (10150) The user ID and password pair passed
> in a get_authToken message is not known to the Operator Site or is not
> valid. get_authToken: userID=juddi</faultstring>
>    <detail>
>     <dispositionReport generic="2.0" operator="localhost"
> xmlns="urn:uddi-org:api_v2">
>      <result errno="10150">
>       <errInfo errCode="E_unknownUser" xsi:type="xsd:string">E_unknownUser
> (10150) The user ID and password pair passed in a get_authToken message is
> not known to the Operator Site or is not valid. get_authToken:
> userID=juddi</errInfo>
>      </result>
>     </dispositionReport>
>    </detail>
>   </soapenv:Fault>
>  </soapenv:Body>
> </soapenv:Envelope>
> 
> 
> thanks in advance.
> 
> 

-- 
View this message in context: http://www.nabble.com/get_authToken-problem-tf1986179.html#a5492678
Sent from the jUDDI - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-user-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-user-help@ws.apache.org