avalon-framework and doclet classes
by Anthony Green
Gary -
I was trying to build something recently that required
org.apache.avalon.framework.logger.Log4JLogger from avalon-framework.
The avalon-framework.jar file in FC4 appears to be missing this class.
I grabbed the SRPM file from rawhide and attempted to build that
instead. The build failed with this...
[javadoc] java.lang.ClassNotFoundException: com.sun.tools.doclets.standard.Standard not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
I've seen this before. It seems that our com-sun-javadoc or
com-sun-tools-doclets-Taglet jar should be on the default classpath
somehow.
In any case, I noticed that this build of the jar file includes the
proper class, but as far as I can tell, this is the same SRPM that was
used in FC4. Why wouldn't the FC4 jar file contain the Log4JLogger
class?
Thanks!
AG
17 years, 11 months
ecj problem and patch
by Anthony Green
As discussed on #fedora-java IRC (irc.freenode.net), The Eclipse batch
compiler appears to place bootclasspath before classpath, making it
impossible to override classes in libgcj.jar. This is a problem for
jpackages wanting to use xml-commons-apis, which provides an alternate
version of org.w3c.dom.
I produced the following patch, which needs to be applied last in our
set of Eclipse patches.
Another snag I hit was that the FC4 Eclipse SRPM doesn't build anymore,
since the archived make files reference an outdated version of mozilla.
swttmp/build.sh should probably contain something like this instead of
hardcoded values:
GECKO_INCLUDES=`pkg-config mozilla-gtkmozembed --cflags`
GECKO_LIBS='pkg-config mozilla-gtkmozembed --libs`
But I see that patching this isn't simple because build.sh is extracted
from a .zip file at build time. Hopefully overholt has a good idea for
fixing this.
While eclipse didn't build - it did build enough to give me a
jdtcore.jar file I could manually install (after generating
jdtcore.jar.so by hand). My tests of the patched compiler indicate that
this is a step closer to the right solution. Can we get this into FC4
and rawhide?
AG
18 years, 1 month
GNU Classpath distro DevJam
by Mark Wielaard
Hi all,
Various Debian packagers and developers are interested in coming
together to improve the Free Software tool chain, the programs and
the free runtime environments for software written in the java
programming language.
For such a meeting we would like to include packagers from various
distributions to coordinate on library names, dependency and
versioning. And to share experiences on how to integrate and map
dependencies of tools like ant and maven when creating traditional
GNU/Linux distribution packages.
So we are proposing a developer and packager meeting around
coordinating and improving the state of packaging of large scale
applications written in the java programming language using the GNU
Classpath, gcj and other free java-like tool chains for the various
GNU/Linux distributions.
Please see DevJam wiki for details:
http://java.debian.net/index.php/DevJam
We hope to get together a group of (20 till 30) people wanting to do
some hands on hacking to show the state of the art in packaging.
Resulting in the availability of several new packages, improvements to
the free tool chains and cross-distribution packaging conventions
quickly after the meeting.
One of the ideas to keep the cost down for now is sharing the meeting
with another group in Oldenburg, Germany, from September 21st to
September 25th. http://meeting.ffis.de/Oldenburg2005/
If you are interested please add you name and thoughts about how to
make such a meeting most effective to the wiki! And please contact us
if you are interested in sponsoring the effort.
Cheers,
Mark
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/
18 years, 2 months
java-gcjHEAD-compat fixes
by Thomas Fitzsimmons
Hi,
I fixed some things in java-gcjHEAD-compat:
- removed the file conflicts with java-gcj-compat, so
java-gcjHEAD-compat will install cleanly beside other java-gcj-compat
installations
- added "javac" to the installed tools, using Gary's bootstrap ecj jar
Here are Andrew's instructions for creating a JPackage alternative for
GCJ HEAD:
https://www.redhat.com/archives/fedora-devel-java-list/2005-May/msg00046....
The installation of these packages runs smoothly now.
Tom
18 years, 2 months
[OT] jpackage.org site down?
by Dariusz J. Garbowski
Hi,
Does anybody know what's wrong with http://www.jpackage.org/ website?
I cannot access it, the browser waits forever for the content...
Anybody else seeing this?
Regards,
Dariusz
--
Dariusz J. Garbowski
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
18 years, 3 months
HelloWorld Example Won't compile
by Charles Curley
I took the source for the HelloWorld example in the Tomcat5 samples
(http://your.server:8080/servlets-examples/helloworld.html), and tried
to compile it.
[javac] Compiling 1 source file to /home/ccurley/src/com/charlescurley/hello/classes
[javac] ----------
[javac] 1. WARNING in /home/ccurley/src/com/charlescurley/hello/src/HelloWorld.java
[javac] (at line 5)
[javac] public class HelloWorld extends HttpServlet {
[javac] ^^^^^^^^^^
[javac] The serializable class HelloWorld does not declare a static final serialVersionUID field of type long
[javac] ----------
[javac] 1 problem (1 warning)
What am I missing here?
[ccurley@taltos src]$ echo $CLASSPATH
/usr/share/tomcat5/bin/:/usr/bin:/usr/share/java/servletapi5.jar:.
--
Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
18 years, 3 months
Java OpenGL on FC4
by John M. Gabriele
What's preferred for use on FC4: jogl or lwjgl? Or
is there a third option -- maybe some way to do it
with Java-Gnome?
I can't find jogl or lwjgl with yum search.
I found some jogl rpms in Anthony Green's folder:
http://people.redhat.com/green/FC4/
but when I try to install them it tells me:
[root@localhost temp]# ls *.rpm
jogl-1.1b11-1fc.i386.rpm jogl-javadoc-1.1b11-1fc.i386.rpm
[root@localhost temp]# rpm -ihv jogl-*
error: Failed dependencies:
libjawt.so.6 is needed by jogl-1.1b11-1fc.i386
Looks like a libjawt was renamed, but these rpms don't
know about it.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
18 years, 3 months
Starting Tomcat
by Charles Curley
I have FC4 as updated, and a slew of Java packages installed in order
to run tomcat. I get the following error when trying to start it:
--------------------------------------------------
[root@taltos lib]# service tomcat5 start
Starting tomcat5: lock file found but no process running for pid 11395, continuing
/usr/bin/rebuild-jar-repository: error: could not find jta Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: All detected jars were not found for this jvm
find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME: /usr/lib/jvm/java
[ OK ]
[root@taltos lib]#
--------------------------------------------------
I notice that /var/lib/tomcat5/common/lib/[jta].jar ->
/could/not/find/extension/for/this/jvm, which is a cute way of telling
me that the symlink is broken. OK, what should this link point to?
--------------------------------------------------
[root@taltos lib]# locate jta | xargs ls -l
-rwx------ 1 ccurley ccurley 6841 May 26 13:06 /home/ccurley/.emacs.d/site-lisp/jde/lisp/jtags
-rwx------ 1 ccurley ccurley 6678 May 26 13:06 /home/ccurley/.emacs.d/site-lisp/jde/lisp/jtags.csh
lrwxrwxrwx 1 root root 51 Aug 18 13:10 /usr/lib/jvm-exports/java-1.4.2-gcj-1.4.2.0/jta-1.4.2.0.jar -> /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/jta.jar
lrwxrwxrwx 1 root root 15 Aug 18 13:10 /usr/lib/jvm-exports/java-1.4.2-gcj-1.4.2.0/jta-1.4.2.jar -> jta-1.4.2.0.jar
lrwxrwxrwx 1 root root 15 Aug 18 13:10 /usr/lib/jvm-exports/java-1.4.2-gcj-1.4.2.0/jta.jar -> jta-1.4.2.0.jar
lrwxrwxrwx 1 root root 32 Aug 18 13:10 /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/jta.jar -> /usr/share/java/libgcj-4.0.1.jar
lrwxrwxrwx 1 root root 38 Aug 21 19:08 /var/lib/tomcat5/common/lib/[jta].jar -> /could/not/find/extension/for/this/jvm
--------------------------------------------------
I have installed Sun's jvm via the jpackage proceedure.
--------------------------------------------------
[root@taltos lib]# pre sun
java-1.5.0-sun-1.5.0.04-1jpp
java-1.5.0-sun-demo-1.5.0.04-1jpp
java-1.5.0-sun-devel-1.5.0.04-1jpp
java-1.5.0-sun-fonts-1.5.0.04-1jpp
java-1.5.0-sun-alsa-1.5.0.04-1jpp
java-1.5.0-sun-plugin-1.5.0.04-1jpp
java-1.5.0-sun-jdbc-1.5.0.04-1jpp
--------------------------------------------------
Do I need Sun's jdk in order to develop servlets?
--
Charles Curley /"\ ASCII Ribbon Campaign
Looking for fine software \ / Respect for open standards
and/or writing? X No HTML/RTF in email
http://www.charlescurley.com / \ No M$ Word docs in email
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
18 years, 3 months
JOnAS on gcj conformance test results
by Andrew Haley
Tom and Bryce made a patch to fix the class loader deadlock that Bryce
said was blocking testsuite runs, and I applied it.
I thought it might be interesting to run the testsuite, but I
remembered Bryce's comment about running out of memory with many
threads, so I reduced the thread stack size to 256k, which is the same
as Sun IIRC.
I ran the testsuite, and got some results: 91.07% success rate.
Results here:
http://people.redhat.com/~aph/jeremie-Linux-HSQL1-1.4.2-$%7bwebcontainer....
Running the same tests with IBM's jvm gets 95.75%. This is good, I
think.
The *really* good news is that JOnAS did not grow unreasonably: it
never exceeded about 300M. On that basis, I don't think there's any
pressing need to search for memory leaks.
However, the test harness was running under IBM's java, not gcj.
That's why the test result is reported as IBM. JOnAS itself was
running on gcj. I had trouble running the test harness itself on gcj,
so I'm going to explore that later if I get the chance. It seems that
the test harness relies on some correct behaviour of javax.naming that
we're not handling correctly: all the tests fail on the harness side
with traces like
Exception raised in setup: javax.naming.NamingException: javax.naming.NamingException: javax.naming.NameNotFoundException: 1.412
name "bankManagerROHome" not bound Caused by: javax.naming.NameNotFoundException: name "bankManagerROHome" not bound at
org.objectweb.jeremie.services.registry.jndi.JRMIRegistryContext.lookup(javax.naming.Name)
(/usr/lib/libjonathan-jeremie-4.2.jar.so) at javax.naming.InitialContext.lookup(javax.naming.Name)
(/home/aph/gcc-4_0-branch/install/lib/libgcj.so.6.0.0) at
org.objectweb.carol.jndi.spi.JEREMIEContext.lookup(javax.naming.Name) (/usr/lib/libow_carol-1.8.9.3.jar.so) at
org.objectweb.carol.jndi.spi.JEREMIEContext.lookup(java.lang.String) (/usr/lib/libow_carol-1.8.9.3.jar.so) at
javax.naming.InitialContext.lookup(java.lang.String) (/home/aph/gcc-4_0-branch/install/lib/libgcj.so.6.0.0) at
org.objectweb.carol.jndi.spi.MultiContext.lookup(java.lang.String) (/usr/lib/libow_carol-1.8.9.3.jar.so) at
org.objectweb.carol.jndi.spi.ContextWrapper.lookup(java.lang.String) (/usr/lib/libow_carol-1.8.9.3.jar.so) at
javax.naming.InitialContext.lookup(java.lang.String) (/home/aph/gcc-4_0-branch/install/lib/libgcj.so.6.0.0) at
...
So, we need to find out why all tests fail with a
javax.naming.NameNotFoundException when the test harness is run under
gcj. Many of the test failures also seem to be caused by a
javax.naming.NameNotFoundException, so this might be a common problem.
On the downside:
I saw the deadlock in the class loader again, even after Bryce's
patch. I'll try to liase with Tom and Bryce to do some more
debugging.
gcj is not correctly initializing JOnAS' trace properties. This
means that it's impossible to enable -- for example -- CAROL
tracing. This is v.v.v. annoying, so I'm going to investigate it.
More later.
Andrew.
18 years, 3 months