Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Converting spring-web-mvc testcase for annotation-based config?

  1. #11
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    It should be in the central maven repos. Which is also what I used to get the dependencies from...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  2. #12

  3. #13
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Hmm the jboss one seems to be a pom only ...

    However you said you already use the one from resin, so basically removing the crippled jar should be enough (assuming the resin one has also the apis included).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  4. #14

    Default

    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 find).

  5. #15

    Default

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

    Code:
    <artifact:remoteRepository id="glassfish.repository" url="https://maven.java.net/content/repositories/releases"/>
    <dependency groupId="org.glassfish.main.extras" artifactId="glassfish-embedded-all" version="3.1.2.2" scope="provided"/>
    I also think I know why the previous configuration was working: I was referencing javax.servlet/servlet-api version 2.5. Perhaps one of those was actually an implementation? I'm not sure where my jars came from: one of http://mirrors.ibiblio.org/maven2 or http://mirrors.dotsrc.org/maven2. I still feel like those were only the interfaces, not implementations, but I can't think of another reason why my previous configuration worked. The servlet-api JAR I have is only 105KB, doesn't seem big enough to have an implementation, but who knows?

    Anyway, my tests are running again (although one is failing, gotta figure out why). Thanks so much for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •