cancel
Showing results for 
Search instead for 
Did you mean: 

Credential error when running SDK sample

greglenain
Champ in-the-making
Champ in-the-making
Hi,

When running from Eclipse the FirstFoundationClient sample (SDK 1.4), I get the following trace:
Exception in thread "main" org.alfresco.repo.security.authentication.AuthenticationException: Bad credentials presented
   at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(AuthenticationComponentImpl.java:69)
   at org.alfresco.repo.security.authentication.AuthenticationServiceImpl.authenticate(AuthenticationServiceImpl.java:104)
…..

However, I use same the login/password as for the Web Client (admin/admin).

Before trying that SDK, I installed a full Alfresco Repository (1.4): all works fine.

What's wrong ?
2 REPLIES 2

davidc
Star Contributor
Star Contributor
Chances are that you have a mismatched alf_data directory & database.  By default, the SDK uses a relative alf_data directory.  You can modify repository.properties (in each SDK project) to point to a common alf_data directory before you execute.

greglenain
Champ in-the-making
Champ in-the-making
Right.

Thanks.