facebook

deploying web app to test server

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #310397 Reply

    choonhoong
    Participant

    Hi,

    I have created a REST web app on my local MyEclipse and it works fine with the MyEclipse internal tomcat.

    Now, I would like to deploy this to a test server that runs on Tomcat 6.0. I took the exploded deployed application from the MyEclipse tomcat webapps directory and copied it over to the test server’s tomcat webapps directory. I also added all the jar files that were in the application’s WEB-INF\lib directory to the Java Classpath for the test Tomcat 6.0.

    I assumed that should be all that was necessary to get my application running.

    Unfortunately, whenever I tried to do a POST to the service, I keep getting the following error:
    “The requested resource () is not available.”

    What am I doing wrong?

    Thanks,
    Choon

    #310450 Reply

    Choon,
    I could not replicate this at my end. When I copied the folder under MyEclipse Tomcat to Tomcat 6, the application ran without any errors.

    “The requested resource () is not available.”

    This is generally caused when the URL accessing the application is not correct.
    Can you clarify if the URL you are using is correct? Please verify the port number and the application name.

    #310560 Reply

    choonhoong
    Participant

    Hi Shalini,

    Thanks for your reply.

    I actually tested this using the sample myeclipse project I downloaded from the “Developing REST Web Services Tutorial”.
    First I imported the project into Myeclipse. Deployed it onto the local myeclipse tomcat server. It worked fine. I could view a customer using the following URL:
    http://localhost:8080/restdemo/services/customers/0

    Next, I went to the myeclipse tomcat directory and copied the deployed web application (in exploded form) into an external TOmcat that I installed on a different machine.
    I just copied it into the Webapps directory.
    Started Tomcat and I could view the welcome screen at URL: http://localhost:8080/
    So, tomcat is working fine.

    But when I try to load the following URL:
    http://localhost:8080/restdemo/services/customers/0

    I get that “The requested resource () is not available.” error.

    Thanks,
    Ding

    #310574 Reply

    Ding,
    I tested this on Tomcat 5 and 6 and noted that it works on tomcat 6 and not on 5
    Can you try using tomcat 6 and let me know how that works for you?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: deploying web app to test server

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