Results 1 to 7 of 7

Thread: unable to build samples

  1. #1

    Default unable to build samples

    I get an access denied exception when using maven to build the samples .. what gives?
    How can I build either all the projects or one individual like booking-mvc?

    when building booking-mvc using maven I get

    Code:
    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://repository.jboss.org/maven2/joda-time/joda-time-jsptags/1.0.2/joda-time-jsptags-1.0.2.pom
    when building all the projects I get.

    Code:
    Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.jboss.el:jboss-el:jar:2.0.1.GA in maven2.java.net (http://download.java.net/maven/2)
    	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:945)
    	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
    Its quite frustrating.

  2. #2

    Default

    Finally got it working. Here is what I had to do.
    1. Update as needed to http://www.springframework.org/schem...ebflow-2.0.xsd
    2. Update as needed to http://www.springframework.org/schem...config-2.3.xsd
    3. Removed joda.. I couldn't find a repo that this version of joda was available at.
    4. Removed @DateTimeFormat(pattern = "MM-dd-yyyy") in Booking.java.

    It works after this. I'll probably try to use another version of joda later

    I'll probably try to include joda later on.

  3. #3
    Join Date
    Mar 2012
    Posts
    12

    Default

    me 2 also have problem building booking-mvc sample,it give following exception,plz help me?


    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from relative location [webmvc-config.xml]
    Offending resource: ServletContext resource [/WEB-INF/config/web-application-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 12 in XML document from ServletContext resource [/WEB-INF/config/webmvc-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.

  4. #4

    Default See my steps

    I posted everything I did to get the sample working. If you changed some config that might have broken it because the error message says the relative path is wrong. Try to follow all the steps I did. See steps 1 & 2 change the xsd to the versions I gave.

  5. #5
    Join Date
    Mar 2012
    Posts
    12

    Default

    Thanks for reply,

    now i have following exception.
    java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApp licationContext.setId(Ljava/lang/StringV
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:265)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:196)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3972)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4467)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:519)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:414)

  6. #6

    Default strange

    Not sure what that is about.
    I made the changes as I mentioned and built just booking-mvc using maven
    and deployed on tomcat and it worked.

  7. #7
    Join Date
    Mar 2012
    Posts
    12

    Default

    when am using maven ,i got following errors:
    whats Wrong here?please guide me ?its urgent bases?

    C:\Users\nvprt\Desktop\spring-webflow-2.3.0.CI-118\projects>cd spring-webflow-sa
    mples

    C:\Users\nvprt\Desktop\spring-webflow-2.3.0.CI-118\projects\spring-webflow-sampl
    es>mvn install
    [INFO] Scanning for projects...
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for
    org.springframework.webflow.samples:booking-mvc:war:2.3.0.BUILD-SNAPSHOT
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
    iler-plugin is missing. @ line 245, column 12
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sure
    fire-plugin is missing. @ line 253, column 12
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for
    org.springframework.webflow.samples:booking-faces:war:2.3.0.BUILD-SNAPSHOT
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
    iler-plugin is missing. @ line 227, column 12
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sure
    fire-plugin is missing. @ line 235, column 12
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for
    org.springframework.webflow.samples:booking-portlet-mvc:war:2.3.0.BUILD-SNAPSHOT

    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
    iler-plugin is missing. @ line 205, column 12
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sure
    fire-plugin is missing. @ line 213, column 12
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for
    org.springframework.webflow.samples:booking-portlet-faces:war:2.3.0.BUILD-SNAPSH
    OT
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
    iler-plugin is missing. @ line 199, column 12
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sure
    fire-plugin is missing. @ line 207, column 12
    [WARNING]
    [WARNING] Some problems were encountered while building the effective model for
    org.springframework.webflow.samples:jsf-booking:war:2.3.0.BUILD-SNAPSHOT
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
    iler-plugin is missing. @ line 168, column 12
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sure
    fire-plugin is missing. @ line 176, column 12
    [WARNING]
    [WARNING] It is highly recommended to fix these problems because they threaten t
    he stability of your build.
    [WARNING]
    [WARNING] For this reason, future Maven versions might no longer support buildin
    g such malformed projects.
    [WARNING]
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] Hotel Booking : Spring MVC + Web Flow + JSP
    [INFO] Hotel Booking : Spring MVC + Web Flow + JSF/PrimeFaces
    [INFO] Hotel Booking : Spring Portlet MVC + Web Flow + JSP
    [INFO] Hotel Booking : Spring Portlet MVC + Web Flow + JSF
    [INFO] Hotel Booking : Spring Framework + JSF
    [INFO] Spring Web Flow Samples
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Hotel Booking : Spring MVC + Web Flow + JSP 2.3.0.BUILD-SNAPSHOT

    [INFO] ------------------------------------------------------------------------
    Downloading: http://maven.springframework.org/sna...ramework/webfl
    ow/spring-webflow/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml
    Downloaded: http://maven.springframework.org/sna...amework/webflo
    w/spring-webflow/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml (385 B at 0.2 KB/sec)
    Downloading: http://maven.springframework.org/sna...ramework/webfl
    ow/spring-binding/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml
    Downloaded: http://maven.springframework.org/sna...amework/webflo
    w/spring-binding/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml (385 B at 0.5 KB/sec)
    Downloading: http://maven.springframework.org/sna...ramework/webfl
    ow/spring-js/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml
    Downloaded: http://maven.springframework.org/sna...amework/webflo
    w/spring-js/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml (380 B at 0.5 KB/sec)
    Downloading: http://maven.springframework.org/sna...ramework/webfl
    ow/spring-js-resources/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml
    Downloaded: http://maven.springframework.org/sna...amework/webflo
    w/spring-js-resources/2.3.0.BUILD-SNAPSHOT/maven-metadata.xml (390 B at 0.5 KB/s
    ec)
    Downloading: http://repo1.maven.org/maven2/joda-t...tags/1.0.2/jod
    a-time-jsptags-1.0.2.pom
    Downloading: http://maven.springframework.org/mil...joda-time-jspt
    ags/1.0.2/joda-time-jsptags-1.0.2.pom
    Downloading: http://repository.jboss.org/maven2/j...me-jsptags/1.0.
    2/joda-time-jsptags-1.0.2.pom
    Downloading: http://repo.maven.apache.org/maven2/...me-jsptags/1.0
    .2/joda-time-jsptags-1.0.2.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Hotel Booking : Spring MVC + Web Flow + JSP ....... FAILURE [15.053s]
    [INFO] Hotel Booking : Spring MVC + Web Flow + JSF/PrimeFaces SKIPPED
    [INFO] Hotel Booking : Spring Portlet MVC + Web Flow + JSP SKIPPED
    [INFO] Hotel Booking : Spring Portlet MVC + Web Flow + JSF SKIPPED
    [INFO] Hotel Booking : Spring Framework + JSF ............ SKIPPED
    [INFO] Spring Web Flow Samples ........................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 15.910s
    [INFO] Finished at: Wed Mar 21 10:49:41 IST 2012
    [INFO] Final Memory: 3M/7M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project booking-mvc: Could not resolve depende
    ncies for project org.springframework.webflow.samples:booking-mvc:war:2.3.0.BUIL
    D-SNAPSHOT: Failed to collect dependencies for [org.springframework:spring-webmv
    c:jar:3.0.5.RELEASE (compile), org.springframework:spring-jdbc:jar:3.0.5.RELEASE
    (compile), org.springframework:spring-orm:jar:3.0.5.RELEASE (compile), org.spri
    ngframework.webflow:spring-webflow:jar:2.3.0.BUILD-SNAPSHOT (compile), org.sprin
    gframework.webflow:spring-js:jar:2.3.0.BUILD-SNAPSHOT (compile), org.springframe
    work.security:spring-security-web:jar:3.0.2.RELEASE (compile), org.springframewo
    rk.security:spring-security-taglibs:jar:3.0.2.RELEASE (compile), org.springframe
    work.security:spring-security-config:jar:3.0.2.RELEASE (compile), org.slf4j:slf4
    j-api:jar:1.5.10 (compile), org.slf4j:jcl-over-slf4j:jar:1.5.10 (compile), org.s
    lf4j:slf4j-log4j12:jar:1.5.10 (runtime), log4j:log4j:jar:1.2.15 (runtime), org.h
    sqldb:hsqldb:jar:1.8.0.10 (runtime), org.hibernate:hibernate-entitymanager:jar:3
    .5.0-Final (compile), javax.servlet:servlet-api:jar:2.5 (provided), javax.servle
    t.jsp:jsp-api:jar:2.1 (provided), javax.servlet:jstl:jar:1.2 (compile), org.apac
    he.tiles:tiles-jsp:jar:2.1.3 (compile), org.hibernate:hibernate-validator:jar:4.
    1.0.Beta1 (compile), javax.xml.bind:jaxb-api:jar:2.1 (compile), joda-time:joda-t
    ime:jar:1.6 (compile), joda-time:joda-time-jsptags:jar:1.0.2 (runtime), org.easy
    mock:easymock:jar:2.5.2 (test), junit:junit:jar:3.8.2 (test), org.springframewor
    k:spring-test:jar:3.0.5.RELEASE (test)]: Failed to read artifact descriptor for
    joda-time:joda-time-jsptags:jar:1.0.2: Could not transfer artifact joda-time:jod
    a-time-jsptagsom:1.0.2 from/to org.jboss.repository (http://repository.jboss.o
    rg/maven2): Access denied to: http://repository.jboss.org/maven2/joda-time/joda-
    time-jsptags/1.0.2/joda-time-jsptags-1.0.2.pom, ReasonPhrase:Forbidden. -> [Help
    1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...DependencyReso
    lutionException

Tags for this Thread

Posting Permissions

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