Announcement Announcement Module
Collapse
No announcement yet.
airline build and test errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • airline build and test errors

    Hi all,
    I've just downloaded the spring-ws package and tried to deploy the airline sample application. I followed the steps using a mysql database.
    The first step, the creation of the database worked perfectly. However I get a joda-time warning and some test errors when trying to package the project in a war file using the command:
    Code:
    mvn -P mysql package
    The errors I get are:
    Code:
    C:\spring-ws-1.0.3\samples\airline>mvn -P mysql package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Spring WS Airline Sample
    [INFO]    task-segment: [package]
    [INFO] ------------------------------------------------------------------------
    [INFO] [jaxb:generate {execution: default}]
    [INFO] files are up to date
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [WARNING] POM for 'joda-time:joda-time-jsptags:pom:1.0:runtime' is invalid. It w
    ill be ignored for artifact resolution. Reason: Failed to validate POM for proje
    ct joda-time:joda-time-jsptags at Artifact [joda-time:joda-time-jsptags:pom:1.0:
    runtime]
    Downloading: http://download.java.net/maven/1//xml-security/poms/xmlsec-1.3.0.po
    m
    Downloading: https://springframework.svn.sourceforge.net/svnroot/springframework
    /repos/repo-ext//xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
    Downloading: http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.
    0.pom
    [INFO] [compiler:compile]
    [INFO] Nothing to compile - all classes are up to date
    [INFO] [resources:testResources]
    [INFO] Using default encoding to copy filtered resources.
    [WARNING] POM for 'joda-time:joda-time-jsptags:pom:1.0:runtime' is invalid. It w
    ill be ignored for artifact resolution. Reason: Failed to validate POM for proje
    ct joda-time:joda-time-jsptags at Artifact [joda-time:joda-time-jsptags:pom:1.0:
    runtime]
    [INFO] [compiler:testCompile]
    [INFO] Nothing to compile - all classes are up to date
    [WARNING] POM for 'joda-time:joda-time-jsptags:pom:1.0:runtime' is invalid. It w
    ill be ignored for artifact resolution. Reason: Failed to validate POM for proje
    ct joda-time:joda-time-jsptags at Artifact [joda-time:joda-time-jsptags:pom:1.0:
    runtime]
    [INFO] [surefire:test]
    [INFO] Surefire report directory: C:\spring-ws-1.0.3\samples\airline\target\sure
    fire-reports
    
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Running org.springframework.ws.samples.airline.security.AcegiFrequentFlyerSecuri
    tyServiceTest
    Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.031 sec <<< FA
    ILURE!
    Running org.springframework.ws.samples.airline.dao.jpa.JpaTicketDaoTest
    2008-02-18 13:05:32,038 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    TicketDaoTest] - Began transaction (1): transaction manager [org.springframework
    .orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,194 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    TicketDaoTest] - Rolled back transaction after test execution
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.047 sec
    Running org.springframework.ws.samples.airline.ws.GetFrequentFlyerMileageEndpoin
    tTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.015 sec <<< FA
    ILURE!
    Running org.springframework.ws.samples.airline.dao.jpa.JpaFrequentFlyerDaoTest
    2008-02-18 13:05:32,225 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FrequentFlyerDaoTest] - Began transaction (1): transaction manager [org.springfr
    amework.orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,475 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FrequentFlyerDaoTest] - Rolled back transaction after test execution
    2008-02-18 13:05:32,475 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FrequentFlyerDaoTest] - Began transaction (1): transaction manager [org.springfr
    amework.orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,506 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FrequentFlyerDaoTest] - Rolled back transaction after test execution
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec
    Running org.springframework.ws.samples.airline.ws.XPathAirlineEndpointTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILUR
    E!
    Running org.springframework.ws.samples.airline.dao.jpa.JpaFlightDaoTest
    2008-02-18 13:05:32,538 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Began transaction (1): transaction manager [org.springframework
    .orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,569 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Rolled back transaction after test execution
    2008-02-18 13:05:32,569 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Began transaction (1): transaction manager [org.springframework
    .orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,616 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Rolled back transaction after test execution
    2008-02-18 13:05:32,616 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Began transaction (1): transaction manager [org.springframework
    .orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,647 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Rolled back transaction after test execution
    2008-02-18 13:05:32,663 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Began transaction (1): transaction manager [org.springframework
    .orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,694 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Rolled back transaction after test execution
    2008-02-18 13:05:32,694 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Began transaction (1): transaction manager [org.springframework
    .orm.jpa.JpaTransactionManager@1d7b222]; default rollback = true
    2008-02-18 13:05:32,725 INFO [org.springframework.ws.samples.airline.dao.jpa.Jpa
    FlightDaoTest] - Rolled back transaction after test execution
    Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
    Running org.springframework.ws.samples.airline.web.FlightsControllerTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FA
    ILURE!
    Running org.springframework.ws.samples.airline.ws.MarshallingAirlineEndpointTest
    
    Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0 sec <<< FAILUR
    E!
    Running org.springframework.ws.samples.airline.service.impl.AirlineServiceImplTe
    st
    Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.015 sec <<< FA
    ILURE!
    
    Results :
    
    Tests in error:
      testGetCurrentlyAuthenticatedFrequentFlyer(org.springframework.ws.samples.airl
    ine.security.AcegiFrequentFlyerSecurityServiceTest)
      testGetFrequentFlyer(org.springframework.ws.samples.airline.security.AcegiFreq
    uentFlyerSecurityServiceTest)
      testGetFrequentFlyerMileage(org.springframework.ws.samples.airline.ws.GetFrequ
    entFlyerMileageEndpointTest)
      testGetFlights(org.springframework.ws.samples.airline.ws.XPathAirlineEndpointT
    est)
      testFlightList(org.springframework.ws.samples.airline.web.FlightsControllerTes
    t)
      testBookFlightFrequentFlyer(org.springframework.ws.samples.airline.ws.Marshall
    ingAirlineEndpointTest)
      testGetFlights(org.springframework.ws.samples.airline.ws.MarshallingAirlineEnd
    pointTest)
      testBookFlightPassenger(org.springframework.ws.samples.airline.ws.MarshallingA
    irlineEndpointTest)
      testBookFlight(org.springframework.ws.samples.airline.service.impl.AirlineServ
    iceImplTest)
      testBookFlightFrequentFlyer(org.springframework.ws.samples.airline.service.imp
    l.AirlineServiceImplTest)
      testBookFlightNoSeatAvailable(org.springframework.ws.samples.airline.service.i
    mpl.AirlineServiceImplTest)
      testBookFlightNoSuchFlight(org.springframework.ws.samples.airline.service.impl
    .AirlineServiceImplTest)
      testGetFlights(org.springframework.ws.samples.airline.service.impl.AirlineServ
    iceImplTest)
      testGetFlightsDefaultServiceClass(org.springframework.ws.samples.airline.servi
    ce.impl.AirlineServiceImplTest)
    
    Tests run: 22, Failures: 0, Errors: 14, Skipped: 0
    
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] There are test failures.
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 8 seconds
    [INFO] Finished at: Mon Feb 18 13:05:32 CET 2008
    [INFO] Final Memory: 15M/28M
    [INFO] ------------------------------------------------------------------------
    I am using:

    java jdk1.6.0_03
    spring-ws 1.0.3
    maven 2.0.8
    mysql 5.0.51

    I am not used to work in maven-based projects so it's a newbie error, sorry for taking your time. Any help would be appreciated,

    thanks in advance

    guillem

  • #2
    i've solved it but still having problems

    Hi all again,
    I've solved this issue by modifying the pom.xml dependency of joda-time-jsptags from 1.0 to 1.0.1. Now it builds and generates the war file, however when I try to run either the web-mvc (accessing localhost:8080/airline/flights ) or the webservice-client (spring-ws for example) against the server-side app running on a tomcat I get some errors on both client and server consoles.

    Further from asking for a concrete solution for my case, are these samples working to anybody? I don't know if I have a bad configuration on my development environment or this samples just don't work. I am surprised as the spring-ws-1.0.3 release was in late december.

    If you want to see the console errors, just tell me and I'll publish them here.

    As i said before, I am a newbie on Maven, but my experience with it is becoming really disappointing.

    thanks in advance,

    guillem

    Comment

    Working...
    X