cancel
Showing results for 
Search instead for 
Did you mean: 

Problem running the Remote API examples in Eclpise 3.1

drbaz
Champ in-the-making
Champ in-the-making
When I "Run as Junit Test" the WebServiceSuiteSystemTest example in the Remote API project, I get the following error:

java.io.FileNotFoundException: ./WebServiceTestBootstrap.properties

Where can I find the said file - or can you send it to me please

The AuthenticationServiceSystemTest runs OK

Thanks   :?
5 REPLIES 5

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Before you run any of the webservice unit tests you'll need to run com.alfresco.example.webservice.WebServiceBootstrapTest.java (with Tomcat off).  This creates the missing file you mention.  Then start Tomcat and run the other unit tests and it should work.

Thanks,
Roy

drbaz
Champ in-the-making
Champ in-the-making
When i try to run com.alfresco.example.webservice.WebServiceBootstrapTest.java I get the following error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/application-context.xml]: Can't resolve reference to bean 'systemBootstrap' while setting property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeIndexer' defined in class path resource [alfresco/node-services-context.xml]: Can't resolve reference to bean 'policyComponent' while setting property 'policyComponent'; nested exception is o

plus lots more………………

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

I've had a look and i've found a small bug, but I'm not sure its the same problem you are seeing.

Could you send me the complete stack trace.

Thanks,
Roy

drbaz
Champ in-the-making
Champ in-the-making
Just found this in the Forum:

The reason for asking is that the class not being found is in one of the jibx*.jar files that can be found in <alfresco>/projects/3rd-party/lib/jibx.

Which may resolve my problem. I'll try it and get back to you.

drbaz
Champ in-the-making
Champ in-the-making
Adding the two jibx jar files to my Alfreso Eclipse project did the trick