Can't run on Tomcat, Rest samples from ws_jaxrs_basics1

15 views
Skip to first unread message

Marius P

unread,
Oct 21, 2016, 11:15:05 AM10/21/16
to JPassion.com: Web Services Programming
Hi,
Have anyone tested lately with Tomcat, the samples from ws_jaxrs_basics1?
I've tried using Netbeans 7.2 and Netbeans 8.0.2, using Tomcat 6, Tomcat 7.0.14 and Tomcat 7.0.27 with same results:
I can access the index.jsp page:

But when trying to follow the link getting this error:



Anyone has this working?
Have added the jaxb and jaxws-rt jars to Tomcat/lib folder and that did not help.
Have also tried with Eclipse, and with same outcome.
Thank you,
Marius.
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Marius P

unread,
Oct 23, 2016, 2:48:25 AM10/23/16
to JPassion.com: Web Services Programming
Hello everyone,
I've checked more into this issue and seems that it could be related with Jax-rs libraries that I've added to default Tomcat install folder. Have found that there are versions of Tomcat, called Tomcat EE, which have support for Rest, out of the box. Seems that is something also related with EJB support but not sure about this.
The link is here:
http://tomee.apache.org/download/tomee-1.7.1.html
Have tried 2 versions: JAX-RS and Plume and both are working (samples are running as expected).
I believe (would be nice to have) that the lab should be updated with a bit more specifics about how to run these Rest samples on Tomcat.
Thank you,
Marius.

Sang Shin

unread,
Oct 23, 2016, 5:44:45 AM10/23/16
to petan...@gmail.com, JPassion.com: Web Services Programming


On 10/22/2016 11:34 PM, Marius P wrote:
Hello everyone,
I've checked more into this issue and seems that it could be related with Jax-rs libraries that I've added to default Tomcat install folder. Have found that there are versions of Tomcat, called Tomcat EE, which have support for Rest, out of the box. Seems that is something also related with EJB support but not sure about this.
The link is here:
http://tomee.apache.org/download/tomee-1.7.1.html
Have tried 2 versions: JAX-RS and Plume and both are working (samples are running as expected).
I believe (would be nice to have) that the lab should be updated with a bit more specifics about how to run these Rest samples on Tomcat.

Thanks for your suggestion.

-Sang

Thank you,
Marius.


On Friday, October 21, 2016 at 11:15:05 AM UTC-4, Marius P wrote:
Hi,
Have anyone tested lately with Tomcat, the samples from ws_jaxrs_basics1?
I've tried using Netbeans 7.2 and Netbeans 8.0.2, using Tomcat 6, Tomcat 7.0.14 and Tomcat 7.0.27 with same results:
I can access the index.jsp page:

But when trying to follow the link getting this error:



Anyone has this working?
Have added the jaxb and jaxws-rt jars to Tomcat/lib folder and that did not help.
Have also tried with Eclipse, and with same outcome.
Thank you,
Marius.
--
You received this message because you are subscribed to the Google Groups "JPassion.com: Web Services Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpassion_webserv...@googlegroups.com.
Visit this group at https://groups.google.com/group/jpassion_webservices.
For more options, visit https://groups.google.com/d/optout.

-- 
-------------------------------------------------------------------
             Sang Shin, sangshi...@gmail.com
  President and Chief Instructor of JPassion.com (JavaPassion.com)
         http://www.linkedin.com/in/javapassion (Linkedin)
          http://twitter.com/javapassion (Tweeter)
            Life is worth living... with Passion!
    
   Practically Free 3 to 5 days Live, Hands-on, Online Codecamps on
 Java,Spring,Hadoop,HTML5,Ruby/Rails,Grails,JavaScript/jQuery,Android
             http://jpassion.com/codecamps       
----------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages