8 Replies Latest reply on Feb 11, 2012 12:34 AM by shay1680

    compiling 7.1.0Cr1B   from source fails

    shay1680

      Hi,

       

      1) when building the 710cr1B tag from source , am running into the following exception :

       

      "

      Running org.jboss.as.protocol.mgmt.RemoteChannelManagementTestCase

      21:08:10,106 INFO  (main) [org.xnio] <Xnio.java:63> XNIO Version 3.0.0.CR7

      21:08:10,139 INFO  (main) [org.xnio.nio] <NioXnio.java:55> XNIO NIO Implementation Version 3.0.0.CR7

      21:08:10,194 INFO  (main) [org.jboss.remoting] <EndpointImpl.java:69> JBoss Remoting version 3.2.0.CR8

      /127.0.0.1:32123

      Exception in thread "Remoting "endpoint" task-3" java.lang.NoClassDefFoundError: Could not initialize class org.jboss.as.protocol.ProtocolLogger

          at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleMessage(ManagementChannelReceiver.java:88)

          at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:409)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

          at java.lang.Thread.run(Thread.java:679)

      "

       

      I am ausing ubuntu 11.10 64bit , the same error happpens using standlowne mvn and eclipse.

       

      2) Also the surefire tests are hanging after failure , they do not shutdown or time out , and have to be killed manually.

       

      3) when i builld the code without running the tests ,   i get the following error : 

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-as-cmp: Compilation failure: Compilation failure:

      [ERROR] JBossQLParser.java:[77,15] cannot access Node

      [ERROR] class file for Node not found

      [ERROR] ejbqlNode.jjtAddChild(fromNode, 1);

      [ERROR] JBossQLParser.java:[179,8] openNodeScope(org.jboss.as.cmp.ejbql.Node) in org.jboss.as.cmp.ejbql.JJTJBossQLParserState cannot be applied to (org.jboss.as.cmp.ejbql.ASTEJBQL)

      [ERROR] JBossQLParser.java:[209,11] cannot find symbol

      [ERROR] symbol  : method closeNodeScope(org.jboss.as.cmp.ejbql.ASTEJBQL,boolean)

      [ERROR] location: class org.jboss.as.cmp.ejbql.JJTJBossQLParserState

      [ERROR] JBossQLParser.java:[214,13] clearNodeScope(org.jboss.as.cmp.ejbql.Node) in org.jboss.as.cmp.ejbql.JJTJBossQLParserState cannot be applied to (org.jboss.as.cmp.ejbql.ASTEJBQL)

      [ERROR] JBossQLParser.java:[228,13] cannot find symbol

       

       

      Thanks,

      Shay

        • 1. Re: compiling 7.1.0Cr1B   from source fails
          nickarls

          Are you using JDK 7? If so, try JDK 6, I'm not sure 7 is supported for building yet.

          1 of 1 people found this helpful
          • 2. Re: compiling 7.1.0Cr1B   from source fails
            ctomc

            And also use Sun/Oracle jdk 6, openjdk has some known problems.

             

             

            cheers,

            tomaz

            • 3. Re: compiling 7.1.0Cr1B   from source fails
              shay1680

              Thanks Nicklas and Tomaz,

               

              Yes i have learned the hard way that JDK 7 does not work  

               

              but i did not try the Sun JDK, ill will try it now and report back.

               

              Cheers,

              Shay

              • 4. Re: compiling 7.1.0Cr1B   from source fails
                shay1680

                Yes, it looks like it was openJDK that was the source of the problems , so far compile and test are looking good.

                 

                Thanks,

                Shay

                • 5. Re: compiling 7.1.0Cr1B   from source fails
                  ksreen

                  Hi,

                   

                             I am facing the same problem. I am unable to build using M2Eclipse and get the following error.

                  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-as-cmp: Compilation failure: Compilation failure:

                  [ERROR] \Users\sreenika\JBossWS2\cmp\target\generated-sources\javacc\org\jboss\as\cmp\ejbql\JBossQLParser.java:[77,15] cannot access Node

                  [ERROR] class file for Node not found

                  [ERROR] ejbqlNode.jjtAddChild(fromNode, 1);

                   

                  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-as-cmp: Compilation failure: Compilation failure:

                  [ERROR] \Users\sreenika\JBossWS2\cmp\target\generated-sources\javacc\org\jboss\as\cmp\ejbql\JBossQLParser.java:[77,15] cannot access Node

                  [ERROR] class file for Node not found

                  [ERROR] ejbqlNode.jjtAddChild(fromNode, 1);

                  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                  JDK version used is jdk_1.6.0_25.

                  However, the build using mvn command line goes through. Is this an issue with the plug-in?

                   

                  Regards

                  Kamala

                  • 6. Re: compiling 7.1.0Cr1B   from source fails
                    ctomc

                    hi,

                    1) it is not same problem

                    2) you found solution allready

                     

                    it looks like it is a bug in M2Eclipse, nothing we can do here... mybe try to upgrade m2eclipse.

                     

                    cheers,

                    tomaz

                    • 7. Re: compiling 7.1.0Cr1B   from source fails
                      shay1680

                      Hi ksreen,

                       

                      i have seen this error also , but havent been able  to resolve it fully yet ,  i i suspect that the casue is generated sources that do not get automatically added to the eclispe source folder list .

                       

                      here are some suggestions :

                      1) please make sure that u are using m2e0.13  , i had to jump through nuemours install and uninstall hoops , to get to that version.

                      2) make sure that you are using an external mvn , and not the built in one , which is 3.02

                      3) Try adding the missing folders manually

                      4) Try updateting the project config based on the pom

                       

                      let mw know how that worked , i am also looking at other possible solutions.

                       

                      Cheeres,

                      Shay

                      • 8. Re: compiling 7.1.0Cr1B   from source fails
                        shay1680

                        Hi Krseen,

                         

                        This is not an M2E bug , but actually a JAVACC "oversight" (not taking into account M2E) , and am obslete JAVACC m2e connector.

                        Also JBOSS seemes to be using 2 seperate versions of JAVACC , 2.5 and 2.6 . trying to fix it to one of them resulted in compile errors.

                         

                        the simpliest way to solve this , is to add a maven helper plugin to the CMP pom like below, ill check with the core team to see if i can add it to the code base permanently.

                         

                        <plugin>

                                        <groupId>org.codehaus.mojo</groupId>

                                        <artifactId>build-helper-maven-plugin</artifactId>

                                        <executions>

                                            <execution>

                                                <id>add-source</id>

                                                <phase>generate-sources</phase>

                                                <goals>

                                                    <goal>add-source</goal>

                                                </goals>

                                                <configuration>

                                                    <sources>

                                                        <source>${project.build.directory}/generated-sources/javacc</source>

                                                    </sources>

                                                </configuration>

                                            </execution>

                                        </executions>

                                    </plugin>

                         

                        Cheers,

                        Shay