Resource « Web Service « Spring Q&A





1. How to initialize Jersey with a a specific resource instance with specific MessgeBodyReaders/Writers?    stackoverflow.com

I'm trying to start Jersey on a preconfigured port/url with a preconfigured resource instance. I can't quite figure out how to correctly do it. Here is a snippet of a code. Help ...

2. From where to serve multi-Resource Web UI pages in a RESTful architecture?    stackoverflow.com

Almost all web content can be a resource to be served up on its own. Web front-ends, however, mix unconnected resource content in order to serve the user with some ...

3. Creating a CXF endpoint in Grails resources.groovy instead of resources.mxl    stackoverflow.com

I know how to create CXF endpoints in the resources.xml, but I am keen to lean to use the spring bean builder DSL that is used in the resources.groovy instead. I ...

4. Shiro Annotations on a jersey resource    stackoverflow.com

when I am using shiro to do @RequiresAuthorization on a jersey resource i'm getting the following exception:

org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'securedFileResourceImpl' must be of type [org.apache.shiro.samples.sprhib.web.resources.SecuredFileResourceImpl], but was actually of type [$Proxy81]
 ...

5. Error using @Resource and @Service annotation in Spring    stackoverflow.com

I have been trying to use @Resource and @Service annotations in Spring as follows. Here is my service class

@Service("personService")
public class PersonService {
    protected static Logger logger = Logger.getLogger("PersonService");
  ...

6. Spring Extension REST Resource @RequestParam annotation not detected    stackoverflow.com

trying to use the spring extension of Restlet , have configured as per the example http://wiki.restlet.org/docs_2.1/13-restlet/28-restlet/70-restlet/196-restlet.html In addition to that trying to capture the request parameters using the @RequestParam annotation but ...

7. Is a singleton REST database resource a good idea?    stackoverflow.com

Here's my situation. I have a class called somethingDao that contains all my logic for querying a table. Then, I also have somethingDaoResource, which is a Jersey API resource, but also ...

8. Wiring wsclient Webservices in resources.groovy    stackoverflow.com

I have a situation where I need to be able to shovel data down in three classic environments: dev, itg, and CAT. I have working code in my webservice ...

9. looking up beans from resources.xml into controller/service in groovy    stackoverflow.com

I am using groovy-grails with jasper reports to develop an app. I need to lookup 'report bean' based on its parameter (like reportname /id retrived from database, which I will get ...





10. Sitemesh and Freemarker with Jersey resources    stackoverflow.com

I have got a Jersey-based application, which for HTML requests uses Freemarker to generate HTML from templates programatically;

@GET
@Produces("text/html")
public Response getResources(@PathParam("name") String name) {
    LOG.info("got a request for " ...

11. Load resources from a jar file (within a webapp)    forum.springsource.org

Load resources from a jar file (within a webapp) Hi guys, I've got a problem with my current webapp. I have a common jar file, which has some generic resources (css, ...

12. Phantom resource in web application    forum.springsource.org

Phantom resource in web application I've been playing whack-a-bug with this most of the day. I have a web-app that loads information from a properties file in a shared folder on ...

13. Accessing a File Resource From a Web Application    forum.springsource.org

Accessing a File Resource From a Web Application Can anyone tell me how I can access a file on the filesystem from within a web application using Spring? I suspect that ...

14. Velocity and Webapp Resource Loader    forum.springsource.org

Velocity and Webapp Resource Loader Im going through the usual hassles of setting up Velocity with Spring MVC. I'm having a problem with resource loaders. I was first loading from classpath, ...

15. Classpath Resource Loading : different behavior in standalone or web application...    forum.springsource.org

Classpath Resource Loading : different behavior in standalone or web application... Hi folks, I'm using Spring's ApplicationContext.getResource() in order to retrieve some class files at application start-up and do stuff... The ...

16. Requested SOAP resource not available    forum.springsource.org

Requested SOAP resource not available Hi, Via help from this forum I was able to resolve my wsdl problem but now have run into another one :-( I can look at ...





17. InternalViewResolver for web app resources?    forum.springsource.org

Hi, while I can move the JSP pages under WEB-INF using an internalviewresolver I don't seem able to move generic resources (e.g. css, images, js) under WEB-INF. Wouldn't it be nice ...

18. Using AOP with JAX-RS / Jersey resources    forum.springsource.org

Using AOP with JAX-RS / Jersey resources Hi, I have a JAX-RS resource that uses Jersey's own @Inject annotation to inject a transactional Spring service bean. Injection works, and the service ...

19. $Proxy28 cannot be cast to org.restlet.resource.ServerResource    forum.springsource.org

$Proxy28 cannot be cast to org.restlet.resource.ServerResource I'm trying to get transactions to work with spring and restlets. It works fine without reslets involved, but as soon as I introduce a restet ...

20. Serving service contract resources through ResourceServlet    forum.springsource.org

In case anyone else is looking for an easy way to expose schemas and wsdls through Spring-WS. I put together a quick write up that some may find useful: http://dussab.wordpress.com/2010/06/...ma-management/ The ...

21. Web service resource?    forum.springsource.org

Is it possible to use the XML returned from a web service as the resource of a StaxEventItemReader? Currently I configure the web service using a 'org.springframework.remoting.jaxws.JaxWsPortProxy FactoryBean' bean. Any help ...

22. Doubt with REST Resource in Spring    coderanch.com