The gcj based Java implementation is depended upon by over
100 other
packages including OpenOffice.org and Eclipse. So it cannot
be easily
removed without breaking anything.
The best thing to do is to follow step 5 in the blog entry
that I quoted
in an earlier post in this thread:
http://www.weiqigao.com
/blog/2007/01/14/tomcat_5_on_fedora_core_6_in_five_easy_step
s.html
If that sounds too scary and won't give you the version of
Sun Java that
you want (it's only 1.5.0_10), you can try installing the
RPM from Sun's
website (which you seem to have already done) and edit
/use/share/tomcat/conf/tomcat5.conf and alter its $JAVA_HOME
definition.
This is the route that one of my colleagues took when
confronted with a
task similar to yours (getting Tomcat to run on a Fedora
Core 6 server
whie he himself is a Mac OS X fanatic.) The problem with
this approach
that that this step is only the beginning of the
configuration file
editing requires to get the thing working:
"Hey, Weiqi, Tomcat 5 uses JDK 5 now, but Lucene
seems to be not
working. Could you take a look?"
"That worked now, but I can't run XSLT. Can you
come?",
...
He lost patience, and opted to install his own version of
Tomcat 5 and
all the libraries he needed in a separate location and
started that copy
of Tomcat 5 by hand in a terminal window. That worked like
a charm, as
it should.
[BTW, the reason for the gcj stuff is that the Sun JDK does
not have an
Open Source license that is required by FC6. You can't play
mp3's or
flashes on FC6 out of the box for the same reason.]
--
Weiqi
Mailing list for Pebble weblog users wrote:
> Well, no, that is what I meant about not being able to
follow your
> instructions.
>
> Some time ago, I had an unfortunate experience with
Fedora after making
> changes to Python.
>
> I must assume that there is a reason for a different
Java and wish to
> avoid "taking it out of the picture".
>
> On 3/1/07, *Mailing list for Pebble weblog users*
> <pebble-user lists.sourceforge.net
> <mailto:pebble-user lists.sourceforge.net>> wrote:
>
> So you'll need to look at your Tomcat config /
startup to make sure
> it's using the Sun JDK rather than the GNU JDK.
Your first step is
> to take the GNU JDK out of the picture, and make
sure Tomcat still
> starts up.
>
> Once you have that going, then you can go back to
installing Pebble.
>
> -----Original Message-----
> *From
pebble-user-bounces lists.sourceforge.net
> <mailto:pebble-user-bounces lists.sourceforge.net>
> [mailto:pebble-user-bounces lists.sourceforge.net
> <mailto:pebble-user-bounces lists.sourceforge.net>]*On Behalf Of
> *Mailing list for Pebble weblog users
> *Sent Thursday,
March 01, 2007 4:58 AM
> *To
pebble-user lists.sourceforge.net
> <mailto:pebble-user lists.sourceforge.net>
> *Subject Re:
[pebble-user] FC6 TC5.5 3 Days of Frustration
>
> That is a correct assessment. JAVA_HOME is set
in /etc/profile,
> whereas Tomcat starts at boot up.
>
> On 2/28/07, *Mailing list for Pebble weblog
users* <
> pebble-user lists.sourceforge.net
> <mailto:pebble-user lists.sourceforge.net>> wrote:
>
> Apparently, you are picking up
/usr/java/jdk1.6.0/bin/java
> when you
> issue the "java" command because
/usr/java/jdk1.6.0/bin is
> in the $PATH
> environment variable that your bash shell
is running.
>
> When is the directory
/usr/java/jdk1.6.0/bin added to the $PATH?
> Is the Tomcat startup script aware of
this?
>
> One of the possible scenarios is that the
> /usr/java/jdk1.6.0/bin is
> being added to $PATH as part of the login
process (through
> /etc/profile,
> /etc/profile.d/*.sh, or ~/.bash_profile,
etc.) and Tomcat is
> being
> started as the boot up process. In that
case, Tomcat will
> use gcj and
> not Sun Java.
>
> --
> Weiqi
>
> Mailing list for Pebble weblog users
wrote:
> > Nope, if I do that, then I loose
Tomcat.
> >
> > BTW: When I run "java
-version" it tells me "1.6.0"
> > Java(TM) SE Runtime Environment
(build 1.6.0-b105)
> > Java HotSpot(TM) Client VM (build
1.6.0-b105, mixed mode,
> sharing)
> >
> >
> > On 2/28/07, *Jonathan Smith*
<jcwinnie gmail.com
> <mailto:jcwinnie gmail.com>
> > <mailto:jcwinnie gmail.com
<mailto:jcwinnie gmail.com>>>
> wrote:
> >
> > sudo /usr/sbin/alternatives
--config java
> >
> > There are 2 programs which provide
'java'.
> >
> > Selection Command
> >
-----------------------------------------------
> > *+ 1
/usr/lib/jvm/jre-1.4.2-gcj /bin/java
> > 2
/usr/java/jdk1.6.0/bin/java
> >
> > O.K. I am going to switch back and
see if that makes a diff
> >
> >
> > On 2/28/07, * Mailing list for
Pebble weblog users *
> > <pebble-user lists.sourceforge.net
> <mailto:pebble-user lists.sourceforge.net>
> > <mailto:pebble-user lists.sourceforge.net
> <mailto:pebble-user lists.sourceforge.net>>> wrote:
> >
> > Since you mentioned FC6, there
might be a chance
> that you are
> > using the
> > Java that shipped with FC6,
which is not the same
> as Sun Java 5. I
> > don't think Pebble works with
the Java that shipped
> with FC6.
> >
> > What does "java
-version" print out? If it prints
> out anything
> > that
> > mentions GCC or gcj, then you
are using the wrong
> version of Java.
> >
> > I have some instructions on
how to get the Sun Java
> installed on
> > FC6 the
> > right way:
> >
> >
> http://www.weiqigao.com
/blog/2007/01/14/tomcat_5_on_fedora_core_6_in_five_easy_step
s.html
> <http://www.weiqigao
.com/blog/2007/01/14/tomcat_5_on_fedora_core_6_in_five_easy_
steps.html>
> >
> > Even if that is not your
problem, let us know what
> kind of
> > problems you
> > are running into. I have been
running Pebble on
> Red Hat Linux
> > 7.0, 9.0,
> > Fedora Core 1, 3, 4, 5, 6,
with JBoss 2.x, 3.x and
> Tomcat 4.x, 5.x,
> > 5.5.x and JDK 1.4 and 5 for
three and a half years.
> >
> > It really do work.
> >
> > HTH,
> > --
> > Weiqi Gao
> > weiqigao speakeasy.net
> <mailto:weiqigao speakeasy.net>
> <mailto:weiqigao speakeasy.net
<mailto:weiqigao speakeasy.net>>
> > http://www.weiqigao.com
/blog/
> >
> > Mailing list for Pebble weblog
users wrote:
> > > I tried, I really did
try to get it to "just
> work" without
> > having to
> > > resort to joining this
list. I am not a pebble
> user. I wanted
> > to test
> > > it, to consider whether
it might be an
> alternative to what I
> > use daily.
> > >
> > > It is attractive and I
was lured into thinking
> that setup
> > would be easy.
> > > Deploying the war failed
to give me a working copy.
> > >
> > > After various research,
troubleshooting, etc., I
> resorted to
> > svn co and ant.
> > >
> > > Now Tomcat manager tells
me I have a functional
> pebble, but
> > still I am
> > > unable to use it.
> > >
> > > Everything is under
pebble/web. If I move it to
> webapps/pebble the
> > > context path error
returns, which I continually
> have seen
> > while trying
> > > to get it to work.
> > >
> > > Do I need to add a
website directory? I know
> that this thing
> > can work
> > > because I have seen
examples, although none
> acknowledging it
> > runs on
> > > Fedora Core.
> > >
> > > Tomcat5.5 is on
localhost:8080 and everything
> deployed with it
> > works.
> > >
> > > I count it as a small
success that I was able to
> have tomcat
> > indicate
> > > that pebble is running,
although I fail to
> understand what
> > actually is
> > > running.
> >
> >
> >
>
------------------------------------------------------------
-------------
>
> >
> > Take Surveys. Earn Cash.
Influence the Future of IT
> > Join SourceForge.net's Techsay
panel and you'll get
> the chance
> > to share your
> > opinions on IT & business
topics through brief
> surveys-and earn cash
> >
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/defa
ult.php?page=join.php&p=sourceforge&CID=DEVDEV>
a>
> > <
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/
default.php?page=join.php&p=sourceforge&CID=DEVDEV&g
t;>
> >
_______________________________________________
> > Pebble-user mailing list
> > Pebble-user lists.sourceforge.net
> <mailto:Pebble-user lists.sourceforge.net>
> > <mailto:Pebble-user lists.sourceforge.net
> <mailto:Pebble-user lists.sourceforge.net>>
> >
> https://lists.sourceforge.net/lists/listinfo/pebble-user
> >
> <https://lists.sourceforge.net/lists/listinfo/pebble-
user>
> >
> >
> >
> >
> >
>
------------------------------------------------------------
------------
> >
> >
>
------------------------------------------------------------
-------------
> > Take Surveys. Earn Cash. Influence
the Future of IT
> > Join SourceForge.net's Techsay panel
and you'll get the
> chance to share your
> > opinions on IT & business topics
through brief surveys-and
> earn cash
> >
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/defa
ult.php?page=join.php&p=sourceforge&CID=DEVDEV>
a>
> >
> >
> >
>
------------------------------------------------------------
------------
> >
> >
_______________________________________________
> > Pebble-user mailing list
> > Pebble-user lists.sourceforge.net
> <mailto:Pebble-user lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/pebble-user
> <https://lists.sourceforge.net/lists/listinfo/pebble-
user>
>
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the
Future of IT
> Join SourceForge.net's Techsay panel and
you'll get the
> chance to share your
> opinions on IT & business topics
through brief surveys-and
> earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/defa
ult.php?page=join.php&p=sourceforge&CID=DEVDEV>
a>
>
_______________________________________________
> Pebble-user mailing list
> Pebble-user lists.sourceforge.net
> <mailto:Pebble-user lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/pebble-user
>
>
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of
IT
> Join SourceForge.net's Techsay panel and you'll get
the chance to
> share your
> opinions on IT & business topics through brief
surveys-and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/defa
ult.php?page=join.php&p=sourceforge&CID=DEVDEV>
a>
> _______________________________________________
> Pebble-user mailing list
> Pebble-user lists.sourceforge.net
> <mailto:Pebble-user lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/pebble-user
> <https://lists.sourceforge.net/lists/listinfo/pebble-
user>
>
>
>
>
------------------------------------------------------------
------------
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys-and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Pebble-user mailing list
> Pebble-user lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pebble-user
>
>
>
------------------------------------------------------------
------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.5/706 -
Release Date: 2/28/2007 4:09 PM
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pebble-user mailing list
Pebble-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user
|