cancel
Showing results for 
Search instead for 
Did you mean: 

Starting session from Netbeans web application

mmorales
Champ in-the-making
Champ in-the-making
Hello.

I'm trying to connect to Alfresco server via web service from my Netbeans web application, using exactly the same webserviceclient.properties file that's working fine from an eclipse ide. But in netbeans I'm getting that webserviceexception "Error starting session".

Though I'm pointing to the ide as a possible reason, I mean, something that needs to be set of fixed in any option, or project's property… please have in mind that another difference stands… the computer. However everything seems to work fine (building, deploying, running the login jsp for the application)… but seems unable to start session.

In summary:
- The application deploys and connects to Alfresco server correctly in a computer (say A), under an Eclipse IDE.
- The same application deploys fine but does not connect to Alfresco server in another computer B, under a Netbeans IDE.
- The property file with the repository location is the same one in both projects and machines. No change needs to be done, since Alfresco repository runs in a third machine (the one pointed by the property). This is the value:

repository.location=http://10.114.197.218:8080/alfresco/api

and the file is located in WEB-INF\classes\alfresco

¿Some help please? I'm sorry if I seem to be lost… BUT I'M LOST!
Smiley Surprisedops:

Thanks in advance!
2 REPLIES 2

mmorales
Champ in-the-making
Champ in-the-making
Let me add more information to help you address your help:

- The computer where Alfresco repository stands, has granted access to my IP address. So that's not the problem.

Thanks again.

mmorales
Champ in-the-making
Champ in-the-making
Hello again.

Finally I can confirm I was lost, absolutely lost… but now I'm found…  :lol:

The problem was quiet more easy than any theory I had in mind… in my computer I had installed a tomcat server that got port 8080 for itself, while the tomcat server that's provided within Netbeans was using port 8084. The deployment that was triggered in netbeans runned on its own server, trying to connect from port 8084… notice that the repository location is listening on its port 8080… question: is it necessary to establish the connection from the very same port in both computers connecting?

I've deployed the .war manually on the previously installed tomcat server, on port 8080, and it has connected with Alfresco repository fine. So the problem's resolved.

Hope this will help someone anytime.

Thanks to everybody.