Menu

Problems Building Branded Gateway

Help
Bill
2009-04-16
2013-05-20
  • Bill

    Bill - 2009-04-16

    I have attempted to build a branded gateway according to the instructions on the page at http://www.josso.org/confluence/display/JOSSO1/Branding+JOSSO. The first step, the mvn archetype... step, seems to work - it generates the project structure as described.

    The next step, the mvn install, produces many errors, as follows, and the branded war is not produced in the maven repository. I'm typing commands exactly as they appear in the instructions (double and triple checked). Is there a step missing from the instructions, or am I doing something boneheaded? I'd rather not install all those files by hand if there's an automated way that works. Thanks.

    ...
    35) org.josso:josso-simple-lostpasswordprocess:jar:1.8.0

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=org.josso -DartifactId=josso-simple-los
    tpasswordprocess -Dversion=1.8.0 -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=org.josso -DartifactId=josso-simple-lostp
    asswordprocess -Dversion=1.8.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
    -DrepositoryId=[id]

      Path to dependency:
            1) mil.defenseimagery.sso:dvi-gateway:war:0.0.1-SNAPSHOT
            2) org.josso:josso-simple-lostpasswordprocess:jar:1.8.0

    ----------
    35 required artifacts are missing.

     
    • Gianluca Brigandi

      Hi Bill,

      All dependencies are actually deployed. For instance, the one you mention can be accessed using this url : http://repository.josso.org/org/josso/josso-simple-lostpasswordprocess/1.8.0/josso-simple-lostpasswordprocess-1.8.0.jar

      Do you have internet access from the box from which you are building your distribution ?

      In case your box is sitting behind an http proxy, make sure that Maven is using it, see : http://maven.apache.org/guides/mini/guide-proxies.html

      Also, is the josso repository properly defined within your branded gateway module pom.xml descriptor ?

      Cheers,
      Gianluca.

       
      • Bill

        Bill - 2009-04-16

        I do have internet access, and there is no http proxy. I can successfully access the repository URL you provided through my browser.

        I don't see anything in the pom.xml file that I can identify as the josso repository. What should this look like in the file? (I have not modified this file in any way.)

        Just for yucks, here's my command line:

        D:\Working\josso-1.8.0>mvn archetype:create -DarchetypeGroupId=org.josso -DarchetypeArtifactId=josso-
        archetype-gateway -DarchetypeVersion=1.8.0 -DgroupId=com.example -DartifactId=my-gateway -Dversion=0.0.1-SNAPSHOT -DremoteR
        epositories=http://repository.josso.org

        Thanks.

         
    • Bill

      Bill - 2009-04-16

      I figured it out. I'm not a Maven maven (sorry) but I googled awhile and found an example of the repositories setting. I hacked it up and added it to the pom.xml and the maven install command now appears to work.

      Shouldn't this be set by the initial maven step that creates the project and its pom.xml?

       
      • Gianluca Brigandi

        Yes, the archetype should be including the JOSSO maven repository definition.

        This will be fixed this week within 1.8.1 branch.

        Cheers,
        Gianluca.

         
    • Santiago Gaviria

      i'm having the same problem, it has not been fixed, there's no 1.8.1 still available as fas as i know. I tried same thing as donutdude but still seeing some lots of messages of this kind ... although JOSSO related resources now do download.

      Downloading: http://repository.jboss.com/maven2/commons-fileupload/commons-fileupload/1.0/commons-fileupload-1.0.jar
      [INFO] Unable to find resource 'commons-beanutils:commons-beanutils:jar:1.6.1' in repository java.net (http://download.java.net/maven/1)
      Downloading: http://repository.jboss.com/maven2/commons-beanutils/commons-beanutils/1.6.1/commons-beanutils-1.6.1.jar
      [INFO] Unable to find resource 'struts:struts:jar:1.1' in repository josso-m2-repo (http://repository.josso.org)
      Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/struts/struts/1.1/struts-1.1.jar
      [INFO] Unable to find resource 'commons-digester:commons-digester:jar:1.6' in repository apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)

      Thanks

       
    • Gianluca Brigandi

      Hi Santiago,

      is your build machine behind an http proxy ? If yes, you may want to have a look at : http://maven.apache.org/guides/mini/guide-proxies.html

      Cheers,
      Gianluca.

       

       
  • Peter Schneeberger

    I ran into the same problems during mvn install. I added this to my pom.xml:

    <repositories>
    - <repository>
      <id>josso</id>
      <name>Josso Repository</name>
      <layout>default</layout>
      <url>http://repository.josso.org</url (repository.josso.org%3c)>
    - <snapshots>
      <enabled>false</enabled>
      </snapshots>
      </repository>
      </repositories>

    mvn install was successful afterwards. 

    BUT! There are still Problems, so I can't finish the branding Tutorial:

    1.) I copied all the mentioned josso-gateway-*.xml, josso-users.xml and josso-credentials.xml to the resources Folder of my project prior to issue the "mvn install" command. In the generated .war File they are included inside the classes folder. Then I deploy the archive via the "gateway install" command as shown. When starting up the Tomcat 6 server I get Exceptions saying josso-agent-config.xml could not be found. Renaming /tomcat6/lib/josso-agent-config.xml.bkp.1 back to josso-agent-config.xml helps.

    2.) I modified my-gateway/src/main/webapp/josso-layout.jsp according to the tutorial and added my Logo to the mentioned resources Folder. After deployment of my gateway the logo file can be found inside C:\tomcat_6\webapps\josso\resources\img\content but \josso\josso-layout.jsp still points to the original logo file. Why hasn't it been overwritten during the deployment of my new gateway? The modified josso-layout.jsp is included in my .war file

    3.) "gateway install" alway tries to fetch the archive from the default local maven repository under windows (c:/documents and settings/username/.m2/repository). I use a different setting on my machine for the local repository but the maven2 configuration is ignored by gatewa install. So I always need to manually copy the repo files from my local repository to the default location before trying to issue the gateway install command.(or use the direct filkepat instead of the mvn notation)

    Regards

    Peter

     
  • Romeo

    Romeo - 2010-06-03

    Hi everyone,

    I was also using branded JOSSO.
    I also copied the jars to my Maven Repo using mvn install:install.
    I was able to build the project and package into WAR.
    The thing is I did this, not because the libraries or dependencies were not downloaded, but,
    because when I deployed JOSSO, there were classes and methods that were not found which
    made JOSSO unable to continue running.
    The jars in the stand-alone package of JOSSO 1.8.0 seemed to be OK, so I used them instead.
    Maven JOSSO jars and the jars in the binary package were not the same.

     
  • alexandra grigoriu

    Hello, please  help me. I wrote in the  command prompt the next sequence:

    mvn archetype:create-DarchetypeGroupId=org.josso-DarchetypeArtifactId=josso-archetype-gateway-DarchetypeVersion=1.8.0-DgroupId=com.test-DartifactId=my-gateway-Dversion=0.0.1-SNAPSHOT-DremoteRepositories=http://repository.josso.org

    and appear a message: "cmd" is not recognized as an internal or external command, operable program or batch file. I don't know what to do. Thank you!

     

Log in to post a comment.

MongoDB Logo MongoDB