Menu

Problems with 0.4.0

2008-01-13
2013-04-29
  • Santiago Ameller

    Hey!!!

    I'm testing nexopen 0.4.0 creating a simple EAR project into an empty PC (no eclipse, no servers, no maven repository...). I have followed all steps from confluence to install nexopen IDE (1.0.1-m1). All well done!

    But when I trying to create my first EAR project I have founded some problems.

    My first problem (solved?):

    The EAR project not compile caused by next error (viewed in Problems view): cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jee:jndi-lookup'. It is referring specifically to line 167 of applicationContext.xml file (<jee:jndi-lookup id="dataSource" jndi-name="jdbc/testDS" resource-ref="true"/>). Why it appears? At this point, I don't create a specific datasource!!! Do I need create it in JBoss integration for my project as first step? I think that it must be an independent step.

    My second problem (not solved). It is related with maven local repository. When I am launching a maven clean install goal for my project, the console shows this message:

    [INFO] Scanning for projects...
    [INFO] Reactor build order:
    [INFO]   test :: Application using NexOpen J2EE framework
    [INFO]   test :: Business objects
    [INFO]   test :: WEB Application
    [INFO]   test :: EJB Application
    [INFO]   test :: Enterprise Application
    [INFO] ----------------------------------------------------------------------------
    [INFO] Building test :: Application using NexOpen J2EE framework
    [INFO]    task-segment: [clean, install]
    [INFO] ----------------------------------------------------------------------------
    [INFO] [clean:clean]
    [INFO] [cobertura:clean {execution: default}]
    [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from nexopen-plugin-releases
    [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-install-plugin' could not be retrieved from repository: nexopen-plugin-releases due to an error: Error transferring file
    [INFO] Repository 'nexopen-plugin-releases' will be blacklisted
    [INFO] [site:attach-descriptor]
    [INFO] [install:install]
    [INFO] Installing C:\nexopen\workspace\test\pom.xml to C:\Documents and settings\Yt.nash\.m2\repository\org\nexopenframework\test\test\1.0.0-SNAPSHOT\test-1.0.0-SNAPSHOT.pom
    [INFO] ----------------------------------------------------------------------------
    [INFO] Building test :: Business objects
    [INFO]    task-segment: [clean, install]
    [INFO] ----------------------------------------------------------------------------
    [INFO] artifact org.apache.maven.plugins:maven-antrun-plugin: checking for updates from nexopen-plugin-releases
    [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-antrun-plugin' could not be retrieved from repository: nexopen-plugin-releases due to an error: Error transferring file
    [INFO] Repository 'nexopen-plugin-releases' will be blacklisted
    [INFO] [clean:clean]
    [INFO] Deleting directory C:\nexopen\workspace\test\business\target
    [INFO] [cobertura:clean {execution: default}]
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] [compiler:compile]
    [INFO] Nothing to compile - all classes are up to date
    Downloading:
    http://www.ibiblio.org/maven2/org/nexopenframework/openfrwk-instrument-annotations/0.4.0/openfrwk-instrument-annotations-0.4.0.pom
    [WARNING] Unable to get resource from repository ibiblio-plugin-releases (http://www.ibiblio.org/maven2)
    Downloading:
    http://repo1.maven.org/maven2/org/nexopenframework/openfrwk-instrument-annotations/0.4.0/openfrwk-instrument-annotations-0.4.0.pom
    [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
    Downloading:
    http://www.ibiblio.org/maven2/org/nexopenframework/openfrwk-instrument-jdk15/0.4.0/openfrwk-instrument-jdk15-0.4.0.pom
    [WARNING] Unable to get resource from repository ibiblio-plugin-releases (http://www.ibiblio.org/maven2)
    Downloading:
    http://repo1.maven.org/maven2/org/nexopenframework/openfrwk-instrument-jdk15/0.4.0/openfrwk-instrument-jdk15-0.4.0.pom
    [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
    Downloading:
    http://www.ibiblio.org/maven2/org/nexopenframework/openfrwk-instrument-annotations/0.4.0/openfrwk-instrument-annotations-0.4.0.jar
    [WARNING] Unable to get resource from repository ibiblio-plugin-releases (http://www.ibiblio.org/maven2)
    Downloading:
    http://repo1.maven.org/maven2/org/nexopenframework/openfrwk-instrument-annotations/0.4.0/openfrwk-instrument-annotations-0.4.0.jar
    [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
    Downloading:
    http://www.ibiblio.org/maven2/org/nexopenframework/openfrwk-instrument-jdk15/0.4.0/openfrwk-instrument-jdk15-0.4.0.jar
    [WARNING] Unable to get resource from repository ibiblio-plugin-releases (http://www.ibiblio.org/maven2)
    Downloading:
    http://repo1.maven.org/maven2/org/nexopenframework/openfrwk-instrument-jdk15/0.4.0/openfrwk-instrument-jdk15-0.4.0.jar
    [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    I can't install project because I don't have all nexopen framework dependencies (openfrwk-instrument-annotations-0.4.0.jar and openfrwk-instrument-jdk15-0.4.0.jar). The most important line in message is: [INFO] Repository 'nexopen-plugin-releases' will be blacklisted.

    Any idea for all problemes?

    Thanks!!

     
    • Francesc Xavier

      Francesc Xavier - 2008-01-15

      Hey santi,

      nice to hearing you again!!! well, before to carry on, the second problem i will be expend more time thinking and making several efforst to solve it. Nevertheless, your first problem was detected in current release!!!

      My first problem (solved?):

      The EAR project not compile caused by next error (viewed in Problems view): cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jee:jndi-lookup'. It is referring specifically to line 167 of applicationContext.xml file (<jee:jndi-lookup id="dataSource" jndi-name="jdbc/testDS" resource-ref="true"/>). Why it appears? At this point, I don't create a specific datasource!!! Do I need create it in JBoss integration for my project as first step? I think that it must be an independent step.

      Certainly, it is a problem due he fact that this information it is not found. This problem has been solved in 1.0.0-m2...unfortunately..when we release the 1.0.0-m1 we do not notice this ugly error...now it is solved!!!!

      I should apologize for this inconvenience ... you can deactivate the validation and problem disappear but..i realize that it is not the correct solution!!!!

      well... we keep in contact for your second problem!!

      Many thanks

       
    • Francesc Xavier

      Francesc Xavier - 2008-01-15

      i started from a empty repository and i get the same error

      WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from repository: nexopen-plugin-releases due to an error: Error transferring file
      [INFO] Repository 'nexopen-plugin-releases' will be blacklisted
      Downloading: http://www.ibiblio.org/maven2/org/codehaus/mojo/maven-weblogic-plugin/1.0/maven-weblogic-plugin-1.0.jar
      [WARNING] Unable to get resource from repository ibiblio-plugin-releases (http://www.ibiblio.org/maven2)
      Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-weblogic-plugin/1.0/maven-weblogic-plugin-1.0.jar
      [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin \         -Dversion=1.0 -Dpackaging=maven-plugin -Dfile=/path/to/file

        org.codehaus.mojo:maven-weblogic-plugin:maven-plugin:1.0

      from the specified remote repositories:
        nexopen-plugin-releases (http://www.nexopen.org/artifactory/repo),
        central (http://repo1.maven.org/maven2),
        ibiblio-plugin-releases (http://www.ibiblio.org/maven2)

        org.codehaus.mojo:maven-weblogic-plugin:maven-plugin:1.0

      ok..error detected just start to solve it!!!!

      many thanks

       
    • Francesc Xavier

      Francesc Xavier - 2008-01-15

      hey santi

      i hope that i have found the problem..i notice that in our nexopen artifactory were found the maven2 plugins without pom.xml and metadata ..and probably maven2 was impossible to check for new updates!! i removed that artifacts ..and it begins to work!!!!
      lovely world of maven2

      please check it and tell me something!!!

      many thanks

       
    • Santiago Ameller

      Hey Francesc,

      The second problem is solved!!! A lot of thanks!!!

       

Log in to post a comment.