3 Replies Latest reply: Aug 16, 2011 9:43 AM by Yong Hao Gao RSS

Need help compiling JBoss Messaging 1.4.8.GA for AS5

Johan Hedin Newbie

Hi all

 

I have trouble compiling JBoss 1.4.8.GA for AS5. I have set the build.properties to integration.base=AS5. I then do

 

ant clean

 

# lots of download

 

Then

 

johan@localhost ~/tmp/JBossMessaging_1_4_8_GA-AS5 $ ant compile

Buildfile: /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/build.xml

 

 

check.inhibit.downloads:

 

 

createthirdparty:

 

 

compile:

 

 

show.version:

     [echo] ========================================

     [echo] Building 1.4.8.GA for AS5!

     [echo] ========================================

 

 

compile-parsers:

    [mkdir] Created dir: /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/output/gen-parsers/org/jboss/jms/server/selector

     [echo] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/thirdparty/sun-javacc/lib/

   [javacc] Java Compiler Compiler Version 4.0 (Parser Generator)

   [javacc] (type "javacc" with no arguments for help)

   [javacc] Reading from file /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/src/main/org/jboss/jms/server/selector/SelectorParser.jj . . .

   [javacc] Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer using a Reader with the correct character encoding.

   [javacc] File "TokenMgrError.java" does not exist.  Will create one.

   [javacc] File "ParseException.java" does not exist.  Will create one.

   [javacc] File "Token.java" does not exist.  Will create one.

   [javacc] File "SimpleCharStream.java" does not exist.  Will create one.

   [javacc] Parser generated successfully.

    [mkdir] Created dir: /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/output/classes

    [javac] Compiling 7 source files to /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/output/classes

    [javac] Note: /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/output/gen-parsers/org/jboss/jms/server/selector/SelectorParser.java uses unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

 

 

compile-classes:

    [javac] Compiling 362 source files to /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/output/classes

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/ServerConnectionFactoryEndpoint.java:49: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContext;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/src/main/org/jboss/messaging/util/JBMExecutor.java:45: warning: [deprecation] org.jboss.messaging.util.NamedThreadQueuedExecutor in org.jboss.messaging.util has been deprecated

    [javac] public class JBMExecutor extends NamedThreadQueuedExecutor

    [javac]                                  ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:31: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContext;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:32: cannot find symbol

    [javac] symbol  : class SecurityContextAssociation

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContextAssociation;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:46: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.container.SecurityActions

    [javac]    static SecurityContext getSecurityContext()

    [javac]           ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:56: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.container.SecurityActions

    [javac]    static void setSecurityContext(final SecurityContext sc)

    [javac]                                         ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityAspect.java:48: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContext;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:31: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContext;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:32: cannot find symbol

    [javac] symbol  : class SecurityContextAssociation

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContextAssociation;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:45: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.endpoint.SecurityActions

    [javac]    static SecurityContext getSecurityContext()

    [javac]           ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:55: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.endpoint.SecurityActions

    [javac]    static void setSecurityContext(final SecurityContext sc)

    [javac]                                         ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:32: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContext;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:33: cannot find symbol

    [javac] symbol  : class SecurityContextAssociation

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContextAssociation;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:34: cannot find symbol

    [javac] symbol  : class SecurityContextFactory

    [javac] location: package org.jboss.security

    [javac] import org.jboss.security.SecurityContextFactory;

    [javac]                          ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:36: cannot find symbol

    [javac] symbol  : class JBossSecurityContext

    [javac] location: package org.jboss.security.plugins

    [javac] import org.jboss.security.plugins.JBossSecurityContext;

    [javac]                                  ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:48: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.security.SecurityActions

    [javac]    static SecurityContext getSecurityContext()

    [javac]           ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:58: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.security.SecurityActions

    [javac]    static void setSecurityContext(final SecurityContext sc)

    [javac]                                         ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/src/main/org/jboss/jms/client/container/ClientConsumer.java:81: warning: [deprecation] isDebugEnabled() in org.jboss.logging.Logger has been deprecated

    [javac]       debug = log.isDebugEnabled();

    [javac]                  ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/ServerConnectionFactoryEndpoint.java:226: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint

    [javac]       SecurityContext previousSCtx = SecurityActions.getSecurityContext();

    [javac]       ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/src/main/org/jboss/jms/server/ServerPeer.java:1806: warning: [deprecation] deployXML(java.net.URL,java.lang.ClassLoader) in org.jboss.aop.AspectXmlLoader has been deprecated

    [javac]       AspectXmlLoader.deployXML(url, this.getClass().getClassLoader());

    [javac]                      ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/src/main/org/jboss/jms/server/endpoint/ServerSessionEndpoint.java:146: warning: [deprecation] isDebugEnabled() in org.jboss.logging.Logger has been deprecated

    [javac]    private boolean debug = log.isDebugEnabled();

    [javac]                               ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:48: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.container.SecurityActions

    [javac]       return  AccessController.doPrivileged(new PrivilegedAction<SecurityContext>(){

    [javac]                                                                  ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:50: cannot find symbol

    [javac] symbol: class SecurityContext

    [javac]          public SecurityContext run()

    [javac]                 ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:52: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             return SecurityContextAssociation.getSecurityContext();

    [javac]                    ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityActions.java:62: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             SecurityContextAssociation.setSecurityContext(sc);

    [javac]             ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/container/SecurityAspect.java:293: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.container.SecurityAspect

    [javac]       SecurityContext previousSCtx = SecurityActions.getSecurityContext();

    [javac]       ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:47: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.endpoint.SecurityActions

    [javac]       return  AccessController.doPrivileged(new PrivilegedAction<SecurityContext>(){

    [javac]                                                                  ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:49: cannot find symbol

    [javac] symbol: class SecurityContext

    [javac]          public SecurityContext run()

    [javac]                 ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:51: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             return SecurityContextAssociation.getSecurityContext();

    [javac]                    ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/endpoint/SecurityActions.java:61: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             SecurityContextAssociation.setSecurityContext(sc);

    [javac]             ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:50: cannot find symbol

    [javac] symbol  : class SecurityContext

    [javac] location: class org.jboss.jms.server.security.SecurityActions

    [javac]       return  AccessController.doPrivileged(new PrivilegedAction<SecurityContext>(){

    [javac]                                                                  ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:52: cannot find symbol

    [javac] symbol: class SecurityContext

    [javac]          public SecurityContext run()

    [javac]                 ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:54: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             return SecurityContextAssociation.getSecurityContext();

    [javac]                    ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:64: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             SecurityContextAssociation.setSecurityContext(sc);

    [javac]             ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:158: cannot find symbol

    [javac] symbol: class SecurityContext

    [javac]             SecurityContext context = SecurityContextFactory.createSecurityContext(principal, passwordChars, subject, secDom);

    [javac]             ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:158: cannot find symbol

    [javac] symbol: variable SecurityContextFactory

    [javac]             SecurityContext context = SecurityContextFactory.createSecurityContext(principal, passwordChars, subject, secDom);

    [javac]                                       ^

    [javac] /home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/integration/AS5/src/main/org/jboss/jms/server/security/SecurityActions.java:159: cannot find symbol

    [javac] symbol: variable SecurityContextAssociation

    [javac]             SecurityContextAssociation.setSecurityContext(context);

    [javac]             ^

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 33 errors

    [javac] 4 warnings

 

 

BUILD FAILED

/home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/build.xml:69: The following error occurred while executing this line:

/home/johan/tmp/JBossMessaging_1_4_8_GA-AS5/build-messaging.xml:218: Compile failed; see the compiler error output for details.

 

 

Total time: 7 seconds

  • 1. Re: Need help compiling JBoss Messaging 1.4.8.GA for AS5
    Yong Hao Gao Master

    Hi,

     

    JBM 1.4.8.GA is for EAP 5. We no longer support releases for AS 5 (community release) as JBM is in maintenance mode. It's successor is HornetQ which has better performance and richer feature.

     

    Howard

  • 2. Re: Need help compiling JBoss Messaging 1.4.8.GA for AS5
    vineet badoni Newbie

    Yong Hao Gao,

     

    Do you have some answer for the below. Actually I am struggling with HornetQ in cluster.

    http://community.jboss.org/message/620624

     

    As a result of it I a, not able to move further with HornetQ. We need to fall back to Jboss 5.1 . I am not sure but in HornetQ Jboss has compromised a very important feature (Failover) in order to gain performance.

     

    Compulsion of using Filesystem only for message persistence is a killer for the ones who wants that messages should be redistributed to the other node of the cluster if some node of the cluster fails.

     

    I did try to plugin Jboss messaging instead of HornetQ. I used the same version of Jboss messaging (1.4.6) which was shipped with Jboss milestone release(Jboss 6.0.0 M2) which did not work for me. The reason was the change in Jgroup version used in Jboss 6.0.0 final. Jboss 6 M2 uses 2.6 Jgroup version but Jboss 6.0.0 final  uses 2.11.0 GA.

     

    I don't understand why someone like JBOSS can leave you in a stage where you can't go anywhere. We used think Jboss is so flexible that I can achieve whatever I want to go with but somewhat disappointed this time.

     

    So real choice which I can think of is to fall back to Jboss 5.1 which has Jboss messaging and use clustered queues where hopefully the Queues cluster with Failover will work (fingers crossed).

     

    Please advice me if I have missed which chould have solved our problem.

     

    Thanks and Regards,

    Vineet

  • 3. Re: Need help compiling JBoss Messaging 1.4.8.GA for AS5
    Yong Hao Gao Master

    Hi Vineet,

     

    I don't think JBM will still be supported in JBoss 6 and later. Current release (1.4.8.SP2) is only for EAP 5.1.x. You can build it from svn tag.

     

    I would still recommend you to use HornetQ as it is being actively developed by community. You can also propose new features to be added in HornetQ.

     

    Regarding to your failover question, I'll follow it at your original post.

     

    Thanks

    Howard