Search:

Type: Posts; User: jetforme; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Configuring HandlerInterceptors without XML?

    Hi. I've got a pure-annotation-based configured app. I need to add a HandlerInterceptor, but I can't figure out how to configure that using annotations.

    Looking online, it seems that it can't be...
  2. The glassfish repo came back up. I was able to...

    The glassfish repo came back up. I was able to get an implementation from:



    <artifact:remoteRepository id="glassfish.repository" url="https://maven.java.net/content/repositories/releases"/>...
  3. No, I DON'T use the one from Resin. This is what...

    No, I DON'T use the one from Resin. This is what I'm saying. It worked before. There are no JARs in the class path, when running the JUnit test, that would provide the implementation (that I can...
  4. Yeah, I can't find it:...

    Yeah, I can't find it: http://repo1.maven.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.1.Final/
  5. Well, I can't find the JBoss one anywhere, and...

    Well, I can't find the JBoss one anywhere, and all the glassfish repos are giving me 502 errors.
  6. Interesting. Just so I understand: what you're...

    Interesting. Just so I understand: what you're saying suggests that there's a JAR file somewhere in my build that implements these things, and in the previous configuration, it came first, but now...
  7. Sorry, I don't understand. It worked perfectly...

    Sorry, I don't understand. It worked perfectly fine with XML-based config. How is it not working now? I haven't changed the JARs that I use. I've always used the "crappy" jar.
  8. Thanks, Marten. I'm using ant to build (with the...

    Thanks, Marten. I'm using ant to build (with the maven ant task), and yes, I'm using that dependency. I'm not using JBoss or Glassfish, but rather Resin. It runs fine.

    The problem is with the...
  9. I tried changing my test class declaration to...

    I tried changing my test class declaration to this:



    @RunWith(org.springframework.test.context.junit4.SpringJUnit4ClassRunner.class)
    @WebAppConfiguration("file:target/build")...
  10. Oh, I may have spoken too soon. I just found an...

    Oh, I may have spoken too soon. I just found an example. I'll post again if I can't figure it out from there.
    ...
  11. Converting spring-web-mvc testcase for annotation-based config?

    After a very lengthy thread that departed from the original subject, I've decided to post my latest question in a new thread.

    I've got a servlet-3.0-style webapp running in Resin 4.0.33 with...
  12. Everything is working now but my automated unit...

    Everything is working now but my automated unit tests. I don't know how to convert the use of @WebAppConfiguration("file:target/build") and...
  13. Ah. I finally found it in the docs: you can just...

    Ah. I finally found it in the docs: you can just refer to the @Bean methods, and it magically ensures that only a single instance is used (I think that's how I interpret it):
    ...
  14. Okay, turns out that the servlet 3.0 spec says...

    Okay, turns out that the servlet 3.0 spec says that addMapping() doesn't override already-existing mappings. Resin puts in a default mapping for "/", and so I can't override it (they'll fix that in a...
  15. Yeah, in my web.xml I had...

    Yeah, in my web.xml I had <url-pattern>/</url-pattern>, and you can see above I return a single mapping "/".

    By the way, what's the new @WebAppConfiguration and @ContextConfiguration for my test...
  16. Things are getting closer. I've added...

    Things are getting closer. I've added @ComponentScan, and according to the logging it's instantiating my controllers and wiring up my model objects and DAOs, but it's still not mapping requests. I...
  17. Yep there are no .xml files at all. This might be...

    Yep there are no .xml files at all. This might be a bug in resin (maybe it's aggressively instantiating all ServletContextListener implementations it finds?); I've asked those guys to clarify.


    ...
  18. Marten, I've gotten past the servlet-3.0...

    Marten,

    I've gotten past the servlet-3.0 stuff. My org.springframework.web.WebApplicationInitializer is being configured now, but I'm having trouble configuring Spring as described in "A 100%...
  19. I'm trying to implement it as described under "A...

    I'm trying to implement it as described under "A 100% code-based approach to configuration" here:...
  20. I've departed pretty far from what I had. Can...

    I've departed pretty far from what I had.

    Can you clarify: should I be able to completely do away with the servlet.xml config file, and use annotations only? Or MUST I have mvc:annotation-driven...
  21. I did. It didn't work. That is, none of my...

    I did. It didn't work. That is, none of my endpoints could be found. So I re-added the <context:component-scan base-package=...> that I had in there before, because it wasn't creating my @Controller....
  22. My web.xml passed a "contextConfigLocation" param...

    My web.xml passed a "contextConfigLocation" param to the DispatcherServlet. All the examples in the code don't show that, because it will look in the default location, but I had moved mine....
  23. Argh, nope, still not clear. This doc...

    Argh, nope, still not clear. This doc pretty explicitly states I can choose either annotation-based ("Java config") OR XML. It does not say I need both.

    But if I have no .xml file, I get an ERROR...
  24. That can be a LOT of reading for something like...

    That can be a LOT of reading for something like Spring. And I find it very easy to completely forget about the one-time configuration I did way back when, so I wouldn't even know that there was...
  25. Thanks for pointing that out. Seriously?...

    Thanks for pointing that out.



    Seriously? Dude, people here aren't very clear about stuff. I'm extraordinarily busy trying to get my app to work. I spent a lot of time trying to figure this...
Results 1 to 25 of 54
Page 1 of 3 1 2 3