cancel
Showing results for 
Search instead for 
Did you mean: 

Compiliation problem with my program accessing Alfresco.

fantastic_ray
Champ in-the-making
Champ in-the-making
Hi guys,

I'm trying to experiment with alfresco, and I was trying to access it from a java program using the web services api…

I'm not very familiar with web services, but by looking at the sample code, I wrote a small program to start with and i'm ending up with a wierd compilation error.
The code and compilation error are below, someone please guide me in the right direction.


import org.alfresco.webservice.authentication.AuthenticationResult;
import org.alfresco.webservice.authentication.AuthenticationServiceLocator;
import org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub;

public class Query
{
   public static void main(String[] args) throws Exception
   {
      AuthenticationServiceSoapBindingStub authenticationService =
            (AuthenticationServiceSoapBindingStub) new      AuthenticationServiceLocator().getAuthenticationService();
      
      
      AuthenticationResult result = authenticationService.startSession("admin", "admin");
      String ticket = result.getTicket();
   }
}


The compilation error is:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
   The type javax.xml.rpc.ServiceException cannot be resolved. It is indirectly referenced from required .class files

   at Query.main(Query.java:10)
1 REPLY 1

fantastic_ray
Champ in-the-making
Champ in-the-making
Also, I have downloaded the Alfresco SDK, but I cant find the SDK AlfrescoEmbedded and SDK AlfrescoRemote Projects.

The Alfresco wiki says:

There are two projects of particular importance:

SDK AlfrescoEmbedded - this project provides references to the libraries required for Alfresco Embedded use.
SDK AlfrescoRemote - this project provides references to the libraries required for Alfresco Remote use.

Each of the sample projects depends on one of the above.


Can someone please tell me where I can find these 2 projects?