It is currently Sun, 28 May 2017 04:10:13 GMT



 
Author Message
 Problem configuring Resin 2.0.1/Jikes 1.14 on Redhat 6.2
I'm having some trouble using Jikes as a java compiler with Resin
2.0.1 on Redhat linux 6.2.

I've successfully configured Resin 2.0.1 to work with Blackdown's J2SE
1.3.1 java compiler on a Redhat 6.2 box.  It works but is slow as hell
when compiling new or modified JSP's (the box is a P133 w/ 256MB ram).
 I decided to give Jikes a try and downloaded the 1.14 source tar ball
(jikes-1.14.tar.gz) from IBM's site:

http://www.**-**.com/

Successfully compiled/installed jikes and was able to create byte code
for simple "hello world" *.java apps in a bash shell. So far so good
....

Next, I tried replacing javac with the jikes compiler in the
resin.conf file:

<java compiler="/usr/local/bin/jikes" compiler-args=""
work-dir='work'/>

I also added the following lines to /usr/profile:

CLASSPATH=.:/usr/local/j2sdk1.3.1/jre/lib/rt.jar
JIKESPATH=.:/usr/local/j2sdk1.3.1/jre/lib/rt.jar
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
CLASSPATH JIKESPATH

I also added CLASSPATH and JIKESPATH to the startup script that I have
been using to start/stop Resin:

#!/bin/sh

# script name: resin
#
# start/stop script for resin

RESIN_HOME=/usr/local/resin
JAVA_HOME=/usr/local/j2sdk1.3.1
PATH="$PATH:/usr/local/j2sdk1.3.1/bin"
CLASSPATH=/usr/local/j2sdk1.3.1/jre/lib/rt.jar
JIKESPATH=/usr/local/j2sdk1.3.1/jre/lib/rt.jar
export PATH JAVA_HOME RESIN_HOME CLASSPATH JIKESPATH

${RESIN_HOME}/bin/httpd.sh -Xms75M -Xmx100M -java_home ${JAVA_HOME}
"$*"

(Note:  Having JIKESPATH and CLASSPATH is probably redundant but I'm
grasping at straws here).

Just for kicks, I cycled the box after making all these changes (yeah,
old NT habit).

OK, having made all these changes, I tried viewing with a browser a
simple hello.jsp page that worked fine (but was super slow) with
javac.  This is the error I get using Jikes:

500 Servlet Exception
/hello.jsp:158: class ErrorInfo & Tuple<ErrorInfo>::operator
[]<ErrorInfo>(int):
Assertion `i >= 0 && i < top' failed.
--------------------------------------------------------------------------------
Resin 2.0.1 (built Tue Jul 10 13:13:19 PDT 2001)

I've tried a couple of variations in resin.conf (stopping and starting
resin each time):

<java compiler="/usr/local/bin/jikes -classpath
/usr/local/j2sdk1.3.1/jre/lib/rt.jar" compiler-args=""
work-dir='work'/>

and  ....

<java compiler="/usr/local/bin/jikes" compiler-args="-classpath
/usr/local/j2sdk1.3.1/jre/lib/rt.jar" work-dir='work'/>

No luck ....

So .... if anyone has read this far .... any other ideas??  Many
thanks!

Bruce Loth
e-mail: bruce dot loth at iname dot com



 Tue, 20 Jan 2004 03:22:19 GMT   
 Problem configuring Resin 2.0.1/Jikes 1.14 on Redhat 6.2
After a few attempts, I wasn't able to get Jikes working with Resin, either.

There is a Resin mailing list somewhere that you might try.

Or you can compile using Jikes directly, then have Resin use the already
compiled classes.

On 2 Aug 2001 12:22:19 -0700, bl...@my-deja.com (Bruce Loth) wrote:

--

Regards,

Ken Kalish

there is no Java cartel



 Wed, 21 Jan 2004 00:43:03 GMT   
 Problem configuring Resin 2.0.1/Jikes 1.14 on Redhat 6.2
Thanks .... good to know that someone else couldn't make it work
either :-)

Yeah, I posted the question to the Resin mailing list first but the
silence was deafening.  No one touched my question but other questions
like how to reduce white space in the HTML generated by JSP under
Resin would get 10+ responses.  Go figure .... :-/



 Fri, 23 Jan 2004 09:06:59 GMT   
 
   [ 3 post ] 

Similar Threads

1. facing problem while configuring the cyclade z card with redhat 6.2

2. configuring mouse on redhat 6.2

3. intel 82559 nic to configure redhat 6.2

4. redhat 6.2 Apache 1.3.20 configure fails

5. How to find out hard drives configured and their size on redhat 6.2

6. install problems, redhat 6.2 vs redhat 7.2 on PC-104+ single board computer


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software