IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

Maestro 1.2 et les exemples Jetty et Equinox


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2003
    Messages : 98
    Par défaut Maestro 1.2 et les exemples Jetty et Equinox
    Bonjour,

    J'ai voulu utiliser maestro en me servant des exemples livrés avec le package, à savoir. Lorsque je crée tout bien comme il faut le projet Equinox, au moment de la création j'ai le message suivant sur la console :

    jvm 1 | 2007-05-29 13:21:03,588 [pool-4-thread-1] INFO ShellCommandHelper:default - Working directory: /home/maestro/maestro-1.2/project-server/data/continuum/working-directory/6
    jvm 1 | 2007-05-29 13:21:17,277 [SocketListener0-1] ERROR DispatcherUtils - Could not find action
    jvm 1 | There is no Action mapped for namespace / and action name proxy. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action classexists. Check also the log to see if the action class is successfully loaded. - [unknown location]
    jvm 1 | at com.opensymphony.xwork.DefaultActionProxy.<init>(DefaultActionProxy.java:72)
    jvm 1 | at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:46)
    jvm 1 | at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:216)
    jvm 1 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
    jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    jvm 1 | at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    jvm 1 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    jvm 1 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
    jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
    jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    jvm 1 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
    jvm 1 | at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
    jvm 1 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
    jvm 1 | at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    jvm 1 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
    jvm 1 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
    jvm 1 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
    jvm 1 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
    jvm 1 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    jvm 1 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    jvm 1 | 2007-05-29 13:21:19,633 [pool-4-thread-1] INFO ContinuumBuildExecutor:maven2 - Exit code: 1
    jvm 1 | 2007-05-29 13:21:19,879 [pool-4-thread-1] INFO BuildController:default - Performing action deploy-artifact


    A quoi celà est du?

    De plus j'ai un soucis. Le rapport de build est le suivant :

    INFO] Scanning for projects...
    Downloading: http://localhost:8080/archiva/proxy/...1.0-beta-2.pom
    [WARNING] Unable to get resource 'org.apache.maven.wagon:wagon-provider-api:pom:1.0-beta-2' from repository maestro-project-server (http://localhost:8080/archiva/proxy)
    Downloading: http://192.168.0.91/org/apache/maven...1.0-beta-2.pom
    [WARNING] Unable to get resource 'org.apache.maven.wagon:wagon-provider-api:pom:1.0-beta-2' from repository central (http://repo.mergere.com/maven2)
    Downloading: http://localhost:8080/archiva/proxy/...davlib-2.1.pom
    [WARNING] Unable to get resource 'slide:slide-webdavlib:pom:2.1' from repository maestro-project-server (http://localhost:8080/archiva/proxy)
    Downloading: http://192.168.0.91/slide/slide-webd...davlib-2.1.pom
    [WARNING] Unable to get resource 'slide:slide-webdavlib:pom:2.1' from repository central (http://repo.mergere.com/maven2)
    Downloading: http://localhost:8080/archiva/proxy/...ging-1.0.4.pom
    [WARNING] Unable to get resource 'commons-logging:commons-logging:pom:1.0.4' from repository maestro-project-server (http://localhost:8080/archiva/proxy)
    Downloading: http://192.168.0.91/commons-logging/...ging-1.0.4.pom
    [WARNING] Unable to get resource 'commons-logging:commons-logging:pom:1.0.4' from repository central (http://repo.mergere.com/maven2)
    Downloading: http://localhost:8080/archiva/proxy/...davlib-2.1.jar
    [WARNING] Unable to get resource 'slide:slide-webdavlib:jar:2.1' from repository maestro-project-server (http://localhost:8080/archiva/proxy)
    Downloading: http://192.168.0.91/slide/slide-webd...davlib-2.1.jar
    [WARNING] Unable to get resource 'slide:slide-webdavlib:jar:2.1' from repository central (http://repo.mergere.com/maven2)
    Downloading: http://localhost:8080/archiva/proxy/...1.0-beta-2.jar
    [WARNING] Unable to get resource 'org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2' from repository maestro-project-server (http://localhost:8080/archiva/proxy)
    Downloading: http://192.168.0.91/org/apache/maven...1.0-beta-2.jar
    [WARNING] Unable to get resource 'org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2' from repository central (http://repo.mergere.com/maven2)
    Downloading: http://localhost:8080/archiva/proxy/...ging-1.0.4.jar
    [WARNING] Unable to get resource 'commons-logging:commons-logging:jar:1.0.4' from repository maestro-project-server (http://localhost:8080/archiva/proxy)
    Downloading: http://192.168.0.91/commons-logging/...ging-1.0.4.jar
    [WARNING] Unable to get resource 'commons-logging:commons-logging:jar:1.0.4' from repository central (http://repo.mergere.com/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) slide:slide-webdavlib:jar:2.1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=slide -DartifactId=slide-webdavlib \
    -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file

    Path to dependency:
    1) com.mergere.maestro.samples.equinox:equinox:war:1.6-SNAPSHOT
    2) org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2
    3) slide:slide-webdavlib:jar:2.1

    2) org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-webdav \
    -Dversion=1.0-beta-2 -Dpackaging=jar -Dfile=/path/to/file

    Path to dependency:
    1) com.mergere.maestro.samples.equinox:equinox:war:1.6-SNAPSHOT
    2) org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2

    3) commons-logging:commons-logging:jar:1.0.4

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=commons-logging -DartifactId=commons-logging \
    -Dversion=1.0.4 -Dpackaging=jar -Dfile=/path/to/file

    Path to dependency:
    1) com.mergere.maestro.samples.equinox:equinox:war:1.6-SNAPSHOT
    2) org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2
    3) commons-logging:commons-logging:jar:1.0.4

    ----------
    3 required artifacts are missing.

    for artifact:
    com.mergere.maestro.samples.equinox:equinox:war:1.6-SNAPSHOT

    from the specified remote repositories:
    central (http://repo.mergere.com/maven2),
    maestro-project-server (http://localhost:8080/archiva/proxy)


    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3 seconds
    [INFO] Finished at: Tue May 29 13:09:42 CEST 2007
    [INFO] Final Memory: 1M/3M
    [INFO] ------------------------------------------------------------------------


    Apparemment il trouve rien du repository, qui pourtant, a l'air bien plein de toutes les librairies qu'il faut!!!

    HELP svp...

    Merci d'avance.

    Fred

  2. #2
    Membre Expert

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Par défaut
    Tous les artifacts ne sont pas dans fournis dans l'install.
    Est-ce que ton serveur a un accès à internet? utilises-tu un proxy pour aller sur le net?

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2003
    Messages : 98
    Par défaut
    Justement... c'est là que ça fait mal... Je n'ai pas d'accès internet.

    Donc, de mon côté, j'ai créé un repository "Fred" par l'interface d'archiva dans lequel j'ai placé tous les archetype qui sont dans le repository "Release".

    Ensuite j'ai édité le fichier settings.xml situé dans $HOME/.m2 et je lui ai dit de tout prendre dans le repository "Fred".

    Malheureusement il me dit que les autorisations ne collent pas au moment du build. et donc maven.wagon reste sur le carreau. C'est à dire qu'il n'arrive pas à le trouver alors qu'il est effectivement présent dans le repository "Fred"

    D'ailleurs tu trouveras le message qu'il m'est renvoyé
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
     
    jvm 1    | 2007-05-29 17:12:27,240 [pool-4-thread-1] INFO  ShellCommandHelper:default     - Executing: /home/minatchy/maestro-1.2/maven/bin/mvn --batch-mode --non-recursive clean install
    jvm 1    | 2007-05-29 17:12:27,242 [pool-4-thread-1] INFO  ShellCommandHelper:default     - Working directory: /home/minatchy/maestro-1.2/project-server/data/continuum/working-directory/2
    jvm 1    | -->>> request ----------------------------------------------------------
    jvm 1    | --> http://192.168.0.91:8080/repository
    jvm 1    | GET /archiva/repository/fred/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom HTTP/1.1
    jvm 1    | Accept-Encoding: gzip
    jvm 1    | Pragma: no-cache
    jvm 1    | User-Agent: Java/1.5.0_08
    jvm 1    | Host: 192.168.0.91:8080
    jvm 1    | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    jvm 1    | Connection: keep-alive
    jvm 1    | Content-Type: application/x-www-form-urlencoded
    jvm 1    |
    jvm 1    | ------------------------------------------------------------------------
    jvm 1    | 29 mai 2007 17:12:35 org.mortbay.jetty.servlet.ServletHandler$Context log
    jvm 1    | INFO: RepositoryServlet: Authorization Denied [ip=192.168.0.91,isWriteRequest=false,permission=archiva-read-repository] : no matching permissions
    jvm 1    | -->>> request ----------------------------------------------------------
    jvm 1    | --> http://192.168.0.91:8080/repository
    jvm 1    | GET /archiva/repository/fred/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.pom HTTP/1.1
    jvm 1    | Accept-Encoding: gzip
    jvm 1    | Pragma: no-cache
    jvm 1    | User-Agent: Java/1.5.0_08
    jvm 1    | Host: 192.168.0.91:8080
    jvm 1    | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    jvm 1    | Connection: keep-alive
    jvm 1    | Content-Type: application/x-www-form-urlencoded
    jvm 1    |
    jvm 1    | ------------------------------------------------------------------------
    jvm 1    | 29 mai 2007 17:12:35 org.mortbay.jetty.servlet.ServletHandler$Context log
    jvm 1    | INFO: RepositoryServlet: Authorization Denied [ip=192.168.0.91,isWriteRequest=false,permission=archiva-read-repository] : no matching permissions
    jvm 1    | -->>> request ----------------------------------------------------------
    jvm 1    | --> http://192.168.0.91:8080/repository
    jvm 1    | GET /archiva/repository/fred/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.jar HTTP/1.1
    jvm 1    | Accept-Encoding: gzip
    jvm 1    | Pragma: no-cache
    jvm 1    | User-Agent: Java/1.5.0_08
    jvm 1    | Host: 192.168.0.91:8080
    jvm 1    | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    jvm 1    | Connection: keep-alive
    jvm 1    | Content-Type: application/x-www-form-urlencoded
    jvm 1    |
    jvm 1    | ------------------------------------------------------------------------
    jvm 1    | 29 mai 2007 17:12:35 org.mortbay.jetty.servlet.ServletHandler$Context log
    jvm 1    | INFO: RepositoryServlet: Authorization Denied [ip=192.168.0.91,isWriteRequest=false,permission=archiva-read-repository] : no matching permissions
    jvm 1    | -->>> request ----------------------------------------------------------
    jvm 1    | --> http://192.168.0.91:8080/repository
    jvm 1    | GET /archiva/repository/fred/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.jar HTTP/1.1
    jvm 1    | Accept-Encoding: gzip
    jvm 1    | Pragma: no-cache
    jvm 1    | User-Agent: Java/1.5.0_08
    jvm 1    | Host: 192.168.0.91:8080
    jvm 1    | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    jvm 1    | Connection: keep-alive
    jvm 1    | Content-Type: application/x-www-form-urlencoded
    jvm 1    |
    jvm 1    | ------------------------------------------------------------------------
    jvm 1    | 29 mai 2007 17:12:36 org.mortbay.jetty.servlet.ServletHandler$Context log
    jvm 1    | INFO: RepositoryServlet: Authorization Denied [ip=192.168.0.91,isWriteRequest=false,permission=archiva-read-repository] : no matching permissions
    jvm 1    | 2007-05-29 17:12:36,551 [pool-4-thread-1] INFO  ContinuumBuildExecutor:maven2  - Exit code: 1
    jvm 1    | 2007-05-29 17:12:36,859 [pool-4-thread-1] INFO  BuildController:default        - Performing action deploy-artifact

  4. #4
    Membre Expert

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Par défaut
    Je suppose que tu as défini un mirror dans ton settings.xml, exact?
    Dans ce cas, il faut que tu donnes les droits à l'utilisateur guest d'Archiva pour télécharger les artifacts.

  5. #5
    Membre Expert

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 50
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Par défaut
    Si je me souviens bien, c'est écrit dans la doc

  6. #6
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2003
    Messages
    98
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2003
    Messages : 98
    Par défaut
    Effectivement donner des droits à l'utilisateur Guest sur le nouveau repository a permis de faire avance le shmilblik....

    Mais forcément en problème en attire un autre.... Maintenant c'est les plug in qui ne sont pas vus.


    Effectivement bon nombres de packages sont téléchargés... mais lorsque Surefire doir être utilisé, le message suivant est généré dans le rapport :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
     
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin:pom:2.2' from repository central (http://repo.mergere.com/maven2)
    Downloading: http://192.168.0.91:8080/archiva/repository/fred/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin:pom:2.2' from repository maestro-project-server (http://192.168.0.91:8080/archiva/repository/fred)
    Downloading: http://192.168.0.91:8080/archiva/repository/fred/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.pom
    [WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin:pom:2.2' from repository central (http://repo.mergere.com/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
     
    GroupId: org.apache.maven.plugins
    ArtifactId: maven-surefire-plugin
    Version: 2.2
     
    Reason: Unable to download the artifact from any repository
     
      org.apache.maven.plugins:maven-surefire-plugin:pom:2.2
     
    from the specified remote repositories:
      central (http://repo.mergere.com/maven2),
      maestro-project-server (http://192.168.0.91:8080/archiva/repository/fred)
     
     
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 17 seconds
    [INFO] Finished at: Wed May 30 11:32:50 CEST 2007
    [INFO] Final Memory: 2M/4M
    [INFO] ------------------------------------------------------------------------

    Par contre dans la doc j'ai pas vu où était indiqué l'astuce sur les droits de l'utilisateur Guest... Avec un peu de chance la réponse à ma question se trouve dans le même paragraphe...

    Merci d'avance en tout cas...

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Jasperserver repertoire ou se trouve les exemples
    Par pmono dans le forum Jasperserver
    Réponses: 3
    Dernier message: 08/07/2008, 10h22
  2. [Apache CXF] Pb pour tester les exemples
    Par FlorentBVN dans le forum Services Web
    Réponses: 1
    Dernier message: 26/03/2008, 16h54
  3. Réponses: 3
    Dernier message: 28/08/2007, 09h13
  4. [FOP] Problème avec les exemples fournis
    Par Androrion dans le forum XML/XSL et SOAP
    Réponses: 10
    Dernier message: 22/08/2006, 14h54
  5. [DOM] probleme avec les exemples Xerces.
    Par brune dans le forum Format d'échange (XML, JSON...)
    Réponses: 2
    Dernier message: 26/05/2004, 10h23

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo