yes, i'am aware, but it seems that migrating from 1.3 to 1.4, wouldn't go that easy as migrating from 1.2 to 1.3 (remember 1.0 to 1.1)
minus for sun, they claim os independency but they haven't have version indepencency for me backward compatibilty is a mayor issue I'am only thinking in the future Tbone ----- Original Message ----- From: "Jason Dillon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 29, 2001 9:28 PM Subject: Re: [JBoss-dev] build fails strangely with jdk1.4 We do not officially support JDK 1.4 yet. We are migrating in that direction for compatibility, but that is about it. --jason On Sat, 29 Sep 2001, Ceki [iso-8859-1] G�lc� wrote: > At 16:02 29.09.2001 +0200, Philip Van Bogaert wrote: > >If i build jboss with jdk1.3 everything works fine > > > >but if i try to build it with jdk1.4 i get a strange error, > > it seems that the compiler can't find the log4j Category class. > >does this meen that jdk1.4 internally use the new log4j package where > >Category is changed to Logger ? > > I don't think jdk1.4 uses log4j internally. That would be illegal for > Sun to change the Apache Software license to the Sun Community > License. I assume that you are compiling against log4j 1.1.3 where the > Category class declares a method called "assert" which is a JDK 1.4 > language-reserved keyword. See > http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html for more > details. BTW, are you compiling with the -source 1.4 option? > > I humbly suggest you compile with log4j 1.2alpha1 to see if that > helps. However, compiling with 1.2alpha and Jboss is likely to > fail. Here is why: > > In log4j 1.2, one caveat is that the > org.apache.log4j.spi.CategoryFactory has been removed. It has been > replaced with the org.apache.log4j.spi.LoggerFactory class. For most > users this change is invisible. However, if you have sub-classed the > Category class then you must modify your sub-class to extend Logger > instead of Category. In your subclass you must refer to LoggerFactory > instead of CategoryFactory. Moreover, in configuration scripts parsed > by PropertyConfigurator the log4j.categoryFactory keyword has been > replaced with log4j.loggerFactory. > > With these changes jboss is very likely to compile with log4j 1.2 and > JDK 1.4. The downside is that you'd be using an alpha version of > log4j. > > One other problem is that JBoss uses one of the deprecated methods and > now removed methods in OptionHandler an interface implemented by Layout > and Appenders. It is one of getOptionStings/setOption/getOptions method. > Log4j uses introspection to configure Appender/Layouts and the > getOptionStings/setOption/getOption methods are no longer needed. > > Hope this helps, Ceki > > >Tbone > > > > > >compile-bean-sources: > > [mkdir] Created dir: C:\sandbox\jboss-all\server\output\beans > > [mkdir] Created dir: > >C:\sandbox\jboss-all\server\output\metadata\META-INF > > > >BUILD FAILED > > > >java.lang.NoClassDefFoundError: org/apache/log4j/Category > > at java.lang.Class.getDeclaredMethods0(Native Method) > > at java.lang.Class.privateGetDeclaredMethods(Class.java:1618) > > at java.lang.Class.getMethod0(Class.java:1737) > > at java.lang.Class.getDeclaredMethod(Class.java:1224) > > at > >java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:1180) > > at java.io.ObjectStreamClass.access$1800(ObjectStreamClass.java:48) > > at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:353) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:332) > > at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:252) > > at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:328) > > at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:252) > > at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:328) > > at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:252) > > at > >java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1013) > > > > at > >java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1227) > > at > >java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1053) > > > > at > >java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1333) > > at > >java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1305) > > at > >java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1248 ) > > at > >java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1055) > > > > at > >java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:281) > > at xdoclet.AbstractDocletTask.saveContext(Unknown Source) > > at xdoclet.ejb.EjbDocletTask.execute(Unknown Source) > > at > >org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104) > > at org.apache.tools.ant.Task.perform(Task.java:217) > > at org.apache.tools.ant.Target.execute(Target.java:164) > > at org.apache.tools.ant.Target.performTasks(Target.java:182) > > at org.apache.tools.ant.Project.executeTarget(Project.java:601) > > at planet57.tools.buildmagic.task.Ant.execute(Ant.java:261) > > at > >planet57.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteM o > >dules.java:282) > > at > >planet57.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules . > >java:197) > > at org.apache.tools.ant.Task.perform(Task.java:217) > > at org.apache.tools.ant.Target.execute(Target.java:164) > > at org.apache.tools.ant.Target.performTasks(Target.java:182) > > at org.apache.tools.ant.Project.executeTarget(Project.java:601) > > at org.apache.tools.ant.Project.executeTargets(Project.java:560) > > at org.apache.tools.ant.Main.runBuild(Main.java:454) > > at org.apache.tools.ant.Main.start(Main.java:153) > > at org.apache.tools.ant.Main.main(Main.java:176) > > > > > >_______________________________________________ > >Jboss-development mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-development > > -- > Ceki G�lc� - http://qos.ch > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
