facebook

How to deploy dependancy from other web service project?

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #302144 Reply

    mongonv
    Participant

    I have two web service projects, the second one needs a class from the first one. When the second project is run in the integrated web server it gets a class not found error. MyEclipse shows the class is imported in the second project and has no errors in the editor, but I have not been able to get the class to be seen when it is deployed to the server.

    I can copy the class definition from the first one to the second (changing the package name) and everything runs fine, but I cannot find the build path combination to make MyEclipse include the class from the first web service project into the second one.

    Any ideas on how to make the first project’s classes available in the second web project would be greatly appreciated.

    Thanks,
    Ed

    #302195 Reply

    Brian Fernandes
    Moderator

    Ed,

    I’m assuming your projects are A (first) and B (second).

    1) How have you setup the relationship between A and B? Have you made B dependent on A? i.e. in B’s project properties, go to the Java Build Path page and the Projects tab. Click Add to add A. Since you already see no compile errors, I assume you have already done this but just wanted to be sure. Please let me know if you have done something else.

    2) Check your deployment preferences. Go to Window > Preferences > MyEclipse > Java Enterprise Project > Web Project and check the Deployment tab. What deployment strategy is selected? Either the first or second should do.

    3) When you deploy B, and go to the deployment location (use the Browse button in the server view), do you see a JAR representing project A? That would signify that it has been deployed.

    Hope this helps – let us know what your current state is and we’ll be able to help further.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to deploy dependancy from other web service project?

You must be logged in to post in the forum log in