Arun kumar 10 Years Ago Awesome dude... you rock Please sign in to reply. Reply as... Cancel Pradip A Bhatt Arun kumar 10 Years Ago Really???Is this become helpful to you??? Please sign in to reply. Reply as... Cancel Arun kumar Pradip A Bhatt 10 Years Ago yes. This gave me some idea. Thanks. Can you please let me know if I can do it without the jersey project. I have a portlet created newly of my own. Can you please tell me what I should do to make it a restful Web service?1. Its an empty portlet. Just did "mvn liferay:build-service"2. Is it fine, if I just follow the above steps? I cannot figure out how to where to write this MyWebServiceClass and what to write instead of jersey-servlet.Please suggest. Please sign in to reply. Reply as... Cancel Arun kumar Pradip A Bhatt 10 Years Ago yes. This gave me some idea. Thanks. Can you please let me know if I can do it without the jersey project. I have a portlet created newly of my own. Can you please tell me what I should do to make it a restful Web service?1. Its an empty portlet. Just did "mvn liferay:build-service"2. Is it fine, if I just follow the above steps? I cannot figure out how to where to write this MyWebServiceClass and what to write instead of jersey-servlet.Please suggest. Please sign in to reply. Reply as... Cancel Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel
Pradip A Bhatt Arun kumar 10 Years Ago Really???Is this become helpful to you??? Please sign in to reply. Reply as... Cancel Arun kumar Pradip A Bhatt 10 Years Ago yes. This gave me some idea. Thanks. Can you please let me know if I can do it without the jersey project. I have a portlet created newly of my own. Can you please tell me what I should do to make it a restful Web service?1. Its an empty portlet. Just did "mvn liferay:build-service"2. Is it fine, if I just follow the above steps? I cannot figure out how to where to write this MyWebServiceClass and what to write instead of jersey-servlet.Please suggest. Please sign in to reply. Reply as... Cancel Arun kumar Pradip A Bhatt 10 Years Ago yes. This gave me some idea. Thanks. Can you please let me know if I can do it without the jersey project. I have a portlet created newly of my own. Can you please tell me what I should do to make it a restful Web service?1. Its an empty portlet. Just did "mvn liferay:build-service"2. Is it fine, if I just follow the above steps? I cannot figure out how to where to write this MyWebServiceClass and what to write instead of jersey-servlet.Please suggest. Please sign in to reply. Reply as... Cancel Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel
Arun kumar Pradip A Bhatt 10 Years Ago yes. This gave me some idea. Thanks. Can you please let me know if I can do it without the jersey project. I have a portlet created newly of my own. Can you please tell me what I should do to make it a restful Web service?1. Its an empty portlet. Just did "mvn liferay:build-service"2. Is it fine, if I just follow the above steps? I cannot figure out how to where to write this MyWebServiceClass and what to write instead of jersey-servlet.Please suggest. Please sign in to reply. Reply as... Cancel
Arun kumar Pradip A Bhatt 10 Years Ago yes. This gave me some idea. Thanks. Can you please let me know if I can do it without the jersey project. I have a portlet created newly of my own. Can you please tell me what I should do to make it a restful Web service?1. Its an empty portlet. Just did "mvn liferay:build-service"2. Is it fine, if I just follow the above steps? I cannot figure out how to where to write this MyWebServiceClass and what to write instead of jersey-servlet.Please suggest. Please sign in to reply. Reply as... Cancel Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel
Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel
Arun kumar Arun kumar 10 Years Ago ca you please answer my question posted in http://stackoverflow.com/questions/18832785/is-a-servlet-inside-a-portlet-required-to-make-the-portlet-as-a-web-servicerelated to your above post. Please sign in to reply. Reply as... Cancel
Dmitriy Martynyuk 10 Years Ago Hello, I have tried to implement your solution but have faced with the follling exception:SEVERE: Servlet /portlets-1.0-SNAPSHOT threw load() exceptionjava.lang.ClassNotFoundException: com.sun.jersey.config.property.packages at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5123) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5407) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)Can you please advice what can cause such issue? Please sign in to reply. Reply as... Cancel Pradip A Bhatt Dmitriy Martynyuk 10 Years Ago First of tell when this error occured??another thing First you have to understand this one.http://www.mkyong.com/webservices/jax-rs/jersey-spring-integration-example/ Please sign in to reply. Reply as... Cancel Dmitriy Martynyuk Pradip A Bhatt 10 Years Ago This error occured during deployment process.Looks like I have found an issue. Seems like line <servlet-class>com.sun.jersey.config.property.packages</servlet-class>in your example should be replaced with <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>After that I was able to deploy the project. But I still experience issue with accessing REST APIs in browser. Please sign in to reply. Reply as... Cancel Sneha Jajoo Pradip A Bhatt 9 Years Ago Hi Pradip,Please tell you have integrated REST API with spring portlet.I have to integrate it with spring portlet. should I have to follow same steps.Thanks,Sneha Please sign in to reply. Reply as... Cancel
Pradip A Bhatt Dmitriy Martynyuk 10 Years Ago First of tell when this error occured??another thing First you have to understand this one.http://www.mkyong.com/webservices/jax-rs/jersey-spring-integration-example/ Please sign in to reply. Reply as... Cancel Dmitriy Martynyuk Pradip A Bhatt 10 Years Ago This error occured during deployment process.Looks like I have found an issue. Seems like line <servlet-class>com.sun.jersey.config.property.packages</servlet-class>in your example should be replaced with <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>After that I was able to deploy the project. But I still experience issue with accessing REST APIs in browser. Please sign in to reply. Reply as... Cancel Sneha Jajoo Pradip A Bhatt 9 Years Ago Hi Pradip,Please tell you have integrated REST API with spring portlet.I have to integrate it with spring portlet. should I have to follow same steps.Thanks,Sneha Please sign in to reply. Reply as... Cancel
Dmitriy Martynyuk Pradip A Bhatt 10 Years Ago This error occured during deployment process.Looks like I have found an issue. Seems like line <servlet-class>com.sun.jersey.config.property.packages</servlet-class>in your example should be replaced with <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>After that I was able to deploy the project. But I still experience issue with accessing REST APIs in browser. Please sign in to reply. Reply as... Cancel
Sneha Jajoo Pradip A Bhatt 9 Years Ago Hi Pradip,Please tell you have integrated REST API with spring portlet.I have to integrate it with spring portlet. should I have to follow same steps.Thanks,Sneha Please sign in to reply. Reply as... Cancel
sravan kumar 10 Years Ago Spring 3 already provides rest support, why we need to use jersey,any special reason to use jersey instead of spring webservices? Please sign in to reply. Reply as... Cancel
Wessel Oosthuizen 10 Years Ago Have you got this approach to work with Jersey 2 and asynchronous functionality? Please sign in to reply. Reply as... Cancel
Aymen Debbabi 9 Years Ago thanks for this post. it's helpfull.. But the client program is not very clear :/ Please sign in to reply. Reply as... Cancel