23 Replies Latest reply on Apr 3, 2015 8:42 AM by tim.mila

    Jive 8 jive-core jar missing?

    Brian.Welter

      I'm trying to stand up a test instance for a customer and could not build jive 8 using the maven plugin:    mvn -U jive:create-project

       

      The build results in the following errror:

       

      [ERROR] Failed to execute goal on project web: Could not resolve dependencies for project com.jivesoftware.trane.testeight:web:war:8.0.0.0-0-SNAPSHOT: Failed to collect dependencies at com.jivesoftware:jive-core:jar:8.0.0.0_8c4.2_343_cc530af: Failed to read artifact descriptor for com.jivesoftware:jive-core:jar:8.0.0.0_8c4.2_343_cc530af: Could not transfer artifact com.jivesoftware:jive-core:pom:8.0.0.0_8c4.2_343_cc530af from/to jive.internal (https://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Failed to transfer file: https://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/jive-core/8.0.0.0_8c4.2_343_cc530af/jive-core-8.0.0.0_8c4.2_343_cc530af.pom. Return code is: 500 , ReasonPhrase:Unable to fetch artifact resource.



      After digging around on the maven repository, I found that all the 8.x jive-core jar files have been removed from the jive.internal repo.


      Screen Shot 2015-02-25 at 8.35.21 AM.png


      Has anyone built a Jive8 project in the last week or so?

        • Re: Jive 8 jive-core jar missing?
          jrlarson

          Ryan Rutan, a couple of weeks ago these artifacts were available, and now they are not. Have they been moved into a pre-release repository?

           

          Any chance we could get access?

            • Re: Jive 8 jive-core jar missing?
              Ryan Rutan

              Let me ask internally to see whats up with those repos.  I’m not in the normal loop for that process.  Stay tuned.

                • Re: Jive 8 jive-core jar missing?
                  Brian.Welter

                  Any update on this?

                    • Re: Jive 8 jive-core jar missing?
                      jrlarson

                      Ryan Rutan, we have clients that need us to begin the process of upgrading their environment to Jive 8. Lack of availability of the maven artifacts/archetypes is now starting to impact our ability to work on these projects.

                       

                      Even if it's early adopter, likely to change stuff would be very helpful.

                        • Re: Jive 8 jive-core jar missing?
                          Brian.Welter

                          Looks like they're back now.  I'm successfully pulling the jive8 core jar right now and building a project.

                          • Re: Jive 8 jive-core jar missing?
                            Ryan Rutan

                            John,

                             

                            I reached out internally and there is a discussion about this going on right now.  The artifacts that were originally posted were not complete / official hence the reason they were pulled.

                             

                            I’ll try to get them to engage on this thread to share timelines and/or expectations ASAP.

                             

                            RR

                              • Re: Jive 8 jive-core jar missing?
                                jrlarson

                                Thanks Ryan Rutan. Lack of access to these artifacts is going to be a roadblock to progress on several projects that we have.

                                • Re: Jive 8 jive-core jar missing?
                                  inazir

                                  Planning to do a POC for our existing Jive 6 & 7 platforms. Any idea when the jive 8 core jar can be expected

                                    • Re: Jive 8 jive-core jar missing?
                                      jrlarson

                                      Ryan Rutan, now that Jive 8 is 'released', when will the Maven artifacts be available? We are unable to make progress on several projects until those artifacts are available. This is impacting billable work for us.

                                        • Re: Jive 8 jive-core jar missing?
                                          ansarali

                                          I just now checked jive.internal maven repo. Jive 8 core jar is available there now.

                                            • Re: Jive 8 jive-core jar missing?
                                              Ryan Rutan

                                              I’ve gotten confirmation from the release team that these assets will be available in their normal repo's (at the latest) by end of week.  Apologies for the delay John =\

                                              1 person found this helpful
                                                • Re: Jive 8 jive-core jar missing?
                                                  Brian.Welter

                                                  The compiled assets are available and the build appears fully functional.  You'll need to run with Java8 (don't forget to download and install the Cryptography Extensions!)

                                                    • Re: Jive 8 jive-core jar missing?
                                                      Brian.Welter

                                                      Looks like the build might not be quite ready to play with.  Admin console has JSP compilation errors.

                                                      [WARNING] [talledLocalContainer] An error occurred at line: 36 in the jsp file: /admin/main.jsp

                                                      [WARNING] [talledLocalContainer] '<>' operator is not allowed for source level below 1.7

                                                      [WARNING] [talledLocalContainer] 33: <%

                                                      [WARNING] [talledLocalContainer] 34:     if ("true".equals(request.getParameter("logout"))) {

                                                      [WARNING] [talledLocalContainer] 35:         try {

                                                      [WARNING] [talledLocalContainer] 36:             java.util.List<String> removables = new ArrayList<>(10);

                                                       

                                                      If you change that line to the following, it appears to work.

                                                      java.util.List<String> removables = new ArrayList<String>(10);

                                                      The file is located here in your project:

                                                      Screen Shot 2015-04-01 at 11.37.22 AM.png

                                                      This edit will have to be re-done each time the web project is built.

                                                        • Re: Jive 8 jive-core jar missing?
                                                          stefanbelger

                                                          Got the same errors here and some more. It seems that the current maven build isn't fully tested yet.

                                                          • Re: Jive 8 jive-core jar missing?

                                                            This is happening because Tomcat's JspServlet defaults to compiling JSPs with Java 6 unless told otherwise.  You can see this in /web/target/tomcat7x/conf/web.xml.

                                                             

                                                            To fix an existing project we need to update a few things. First copy /web/target/tomcat7x/conf/web.xml to /web/src/test/resources. Then add the following init-params to /web/src/test/resources/web.xml:


                                                            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>

                                                                 ....

                                                                    <init-param>                                  

                                                                      <param-name>compilerSourceVM</param-name>

                                                                      <param-value>1.7</param-value>

                                                                  </init-param>

                                                                  <init-param>

                                                                      <param-name>compilerTargetVM</param-name>

                                                                      <param-value>1.7</param-value>

                                                                  </init-param>

                                                                 <load-on-startup>3</load-on-startup>

                                                             

                                                            As far as I'm aware a a value of 1.8 doesn't work on Tomcat 7.x.

                                                             

                                                            After that's done the /web/pom.xml need to be modified so that cargo copies over the web.xml we changed:

                                                             

                                                            <groupId>org.codehaus.cargo</groupId>

                                                            <artifactId>cargo-maven2-plugin</artifactId>

                                                            ....

                                                            <configuration>

                                                            ....

                                                            <container>

                                                            ...

                                                            </container>

                                                            <configfiles>

                                                                 <configfile>

                                                                      <file>${basedir}/src/test/resources/web.xml</file>

                                                                     <todir>conf</todir>

                                                                 </configfile>

                                                            </configfiles>

                                                             

                                                            After that a mvn clean package && ./cargo-start on the /web module should work.

                                                             

                                                            Also, when creating a new 8.0.0.0 project with "mvn -U jive:create-project" these changes should already be made for you.

                                                            2 people found this helpful
                                                              • Re: Jive 8 jive-core jar missing?
                                                                Brian.Welter

                                                                Also, when creating a new 8.0.0.0 project with "mvn -U jive:create-project" these changes should already be made for you.

                                                                 

                                                                Just to clarify...I used this approach yesterday and still receive JSP compilation errors.

                                                                  • Re: Jive 8 jive-core jar missing?
                                                                    tim.mila

                                                                    I found a couple additional changes to workaround this problem:

                                                                     

                                                                    • The  <configfiles>...</configfiles> configuration was added to the wrong location per the Cargo Maven2 plugin documentation

                                                                        </container>

                                                                        <configuration>

                                                                            <home>target/${cargo.tomcat.id}</home>

                                                                           <configfiles>

                                                                                <configfile>

                                                                                    <file>${basedir}/src/test/resources/web.xml</file>

                                                                                    <todir>conf</todir>

                                                                                </configfile>

                                                                            </configfiles>

                                                                            <properties>

                                                                                <cargo.jvmargs>-Xdebug -Xnoagent

                                                                                    -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Xms512m -Xmx1024m

                                                                                    -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC</cargo.jvmargs>

                                                                                <cargo.servlet.uriencoding>UTF-8</cargo.servlet.uriencoding>

                                                                            </properties>

                                                                    • The web.xml in ${basedir}/src/test/resources can define JSP compiler version 1.8, however is only supported in newer versions of tomcat; I've upgraded my local tomcat instance to 7.0.59 and have been able to run Jive and access all areas of admin console without JSP errors.

                                                                    <servlet>

                                                                            <servlet-name>jsp</servlet-name>

                                                                            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>

                                                                            <init-param>

                                                                                <param-name>fork</param-name>

                                                                                <param-value>false</param-value>

                                                                            </init-param>

                                                                            <init-param>

                                                                                <param-name>xpoweredBy</param-name>

                                                                                <param-value>false</param-value>

                                                                            </init-param>

                                                                            <init-param>                                   

                                                                                <param-name>compilerSourceVM</param-name>

                                                                                <param-value>1.8</param-value>

                                                                            </init-param>

                                                                            <init-param>

                                                                                <param-name>compilerTargetVM</param-name>

                                                                                <param-value>1.8</param-value>

                                                                            </init-param>

                                                                            <load-on-startup>3</load-on-startup>

                                                                        </servlet>

                                                                    5 people found this helpful
                                                                • Re: Jive 8 jive-core jar missing?
                                                                  inazir

                                                                  running into same issue

                                                              • Re: Jive 8 jive-core jar missing?
                                                                inazir

                                                                Finally able to login

                                                                Screen Shot 2015-04-02 at 10.02.12 pm.png

                                                                But throwing some System Error for admin

                                              • Re: Jive 8 jive-core jar missing?
                                                SunilKr

                                                Bingo !!!!

                                                I got my Jive 8

                                                 

                                                Jive8.JPG