- This topic has 3 replies, 2 voices, and was last updated 14 years, 4 months ago by support-shalini.
-
AuthorPosts
-
choonhoongParticipantHi,
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
support-shaliniMemberChoon,
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.
choonhoongParticipantHi 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/0Next, 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/0I get that “The requested resource () is not available.” error.
Thanks,
Ding
support-shaliniMemberDing,
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? -
AuthorPosts