avdyk ([info]avdyk) wrote,
@ 2004-08-25 23:11:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Debian experimental kaffe runs Tomcat4 on powerpc... where IBM's JDK does not!
Free Java environments are not as full as proprietary ones... but in some cases, they are far better! After having multiple problems with IBM's proprietary JDK on Powerpc, I'm managing to speed up my transition to Free Java JDK's/JRE's.

First, there is no Java plugin for Mozilla in the latest IBM's JDK on Powerpc, there is now gcjwebplugin, running on many architectures! For several weeks now IBM's JDK (1.4.1 and 1.4.2) does not run at all on my Debian/sid powerpc. I cannot run ant, tomcat, nothing. I got a javacore_blablabla file with a lot of debug information. SableVM, gic/gcj, Kaffe and JamVM already run Ant (nearly) without problem.

The next peace I need is Tomcat4. It's now done (screenshot). The work around was to remove the xmlParserAPIs.jar and xercesImpl.jar from the tomcat4 directory (/usr/share/tomcat4/common/lib) and replace them with a symlink to gnujaxp.jar (in /usr/share/java). And nearly everything was fine (Struts does not seem to work, but all the servlet examples did work, and every JSP examples did work except two: one because the mail api was not in the tomcat classpath and the other because of an exception in org.apache.jasper.servlet.JspServlet.service... I think it was the same exception that occured with Struts.

JDEE for Emacs seems very bounded to proprietary JDK's but I'd like to investigate a little more to have it working with free JDK's as I use it for sometimes now and I'm very happy with it. Another great environment that would be cool to run is Eclipse...

Long life to Free Java! ;-)



(8 comments) - (Post a new comment)


(Anonymous)
2004-08-26 03:31 am UTC (link)
IBM should then investigate dropping development of the proprietary VM and instead taking part in development of GNU classpath.

Well, that may be just a dream but I wonder who started the recent discussion about 'open sourcing Java' ...

(Reply to this) (Thread)

Could IBM help GNU Classpath?
[info]avdyk
2004-08-26 04:00 am UTC (link)
I think it was Eric Raymond who started the 'open sourcing Java' discussion. Note that IBM already has two free Java compilers: jikes and ecj (the latest is not yet in Debian); and a free runtime, written in Java and able to bootstrap with free JVM: JikesRVM.

IBM already developed a lot of the Java API (like Swing... yes!) and GNU Classpath asks developers to have *NEVER* looked at the Sun's sources...

(Reply to this) (Parent)

Does that mean that tomcat4 will be updated in sarge?
(Anonymous)
2004-09-01 04:20 am UTC (link)
we cannot ship that old version!

jerome_at_coffeebreaks.org

(Reply to this) (Thread)

Yes, Tomcat4 should be updated in sarge!
[info]avdyk
2004-09-03 07:46 am UTC (link)
Tomcat4 should go to Sarge even if it does not go to main. For more informations, see #206034: Java packages in contrib don't move to testing.

(Reply to this) (Parent)

IBM JDK *does* work
(Anonymous)
2004-09-02 06:39 am UTC (link)
Just updated the JDK on my powerbook (fedora core development) to 1.4.2.

All you need to run it with the JIT is the following environment variable:

JITC_PROCESSOR_TYPE=6

Without it, it'll crash horribly. Additionally, it'll run with if you specify JAVA_COMPILER=NONE (but performance will suck).

(Reply to this) (Thread)

Re: IBM JDK *does* work
[info]avdyk
2004-09-03 07:48 am UTC (link)
Many thanks! It does work this way. I did not think about a environment variable as I did not needed it before and it's not needed on x86.

(Reply to this) (Parent)

IBM JDK works for Tomcat 4 & 5, WAS 5.1 on Debian PPC
(Anonymous)
2004-11-12 11:19 am UTC (link)
Arnaud, I am surprised to hear that Tomcat 4 would not run on with IBM 1.4.x JDK for you. I have run Tomcat 4 and 5 as well as WebSphere Application Server 5.1 on Debian sid PowerPC. I use Tomcat 4 the most, but all of them started and ran web apps without issue for me.

Regards,
--
Barry Hawkins
site: www.alltc.com
weblog: www.yepthatsme.com

(Reply to this) (Thread)

Re: IBM JDK works for Tomcat 4 & 5, WAS 5.1 on Debian PPC
[info]avdyk
2004-11-15 06:12 am UTC (link)
Hi Barry,
I don't have problems no more with IBM's JDK since someone told me to set a environment variable... but setting envvar is not a good thing on Debian ;-)

(Reply to this) (Parent)


(8 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…