thank you for the hint (must have been blind), but you must admit that it really sucks 
when you start from scratch by downloading everything from JBoss-CVS and all 
module-names are different from the directory-names that are refereced in the 
build.xml's...

I had to change a few more lines to get the code from CVS-HEAD (both JGroups and 
JBossCache) running on JDK 1.3.1:

enable the use of ContextInputStream in  org.jboss.Message.getObject() (otherwise you 
get the same 'ClassNotFoundException: boolean'):

    public Object getObject() {
        if(buf == null) return null;
        try {
            ByteArrayInputStream in_stream=new ByteArrayInputStream(buf, offset, 
length);
            // ObjectInputStream in=new ObjectInputStream(in_stream);
            ObjectInputStream in=new ContextObjectInputStream(in_stream);
            return in.readObject();
        }
        catch(Exception ex) {
            throw new IllegalArgumentException(ex.toString());
        }
    }

remove the use of 'Boolean.valueOf(boolean)' (which is a new method in JDK 1.4) in 
org.jgroups.JChannel.getOpt(int) to fix a 'noSuchMethodException' on JDK 1.3.1:

    public Object getOpt(int option) {
        switch(option) {
            case VIEW:
//                return Boolean.valueOf(receive_views);
                return receive_views ? Boolean.TRUE : Boolean.FALSE;
            case BLOCK:
//                return Boolean.valueOf(receive_blocks);
                return receive_blocks ? Boolean.TRUE : Boolean.FALSE;
            case SUSPECT:
//                return Boolean.valueOf(receive_suspects);
                return receive_suspects ? Boolean.TRUE : Boolean.FALSE;
            case GET_STATE_EVENTS:
//                return Boolean.valueOf(receive_get_states);
                return receive_get_states ? Boolean.TRUE : Boolean.FALSE;
            case LOCAL:
//                return Boolean.valueOf(receive_local_msgs);
                return receive_local_msgs ? Boolean.TRUE : Boolean.FALSE;
            default:
                if(log.isErrorEnabled()) log.error("option " + 
Channel.option2String(option) + " not known");
                return null;
        }
    }


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846524#3846524

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846524


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to