Re: [fedora-java] Netbeans 5.0-beta2 , Sun Application Server 8.1 and Java-gcj
by Fernando Lozano
Hi,
> > Prong 2: Install SUN's JDK using the Jpackage technique -- not Sun's
> > RPM, and use "alternatives --config java" and "alternatives --config
> > javac" so you can get your other work done.
> Easier said than done.
> 6) Now the installation of netbeans-5.0-beta2 goes fine, but the
> installation of Sun's Application Server 8.1-2005Q2 will not install.
You have the option of not installing SJAS (there's even a NetBeans bundle that does not includes
it). Then Download and install JBoss 4.0.3 which is supported by current Netbeans5 beta, configure
Netbeans to use it (Runtime Window > Servers > Add Server) and you'll have all Java EE features.
If you won't use EJB and JMS you may well forget about SJAS or JBoss and just use the included
Tomcat for JSP, Servlets and WebServices.
[]s, Fernando Lozano
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat
by Fernando Lozano
Hi Daniel,
> >On Wed, 2005-12-21 at 13:57 -0800, Daniel B. Thurman wrote:
> >> I just cannot understand why Eclipse w/ Tomcat fails out of the box.
> >> This whole thing reminds me of M$ announcing a product when
> >the product
> >> is not close to working just prevent customers from buying
> >someone else's
> >> brand.
> >>
> >> Sheesh - what a piece of ****!
Before complaining, you should provide the info people requested to be able to help you. I asked you
twice which Eclipse Plug-in you were using to run Tomcat, and you did not replied. I explained to
you GCJ is not a complete Java implementation, so you should expect problems and incompatibilities.
I also explained you that whatever you are using to run Tomcat under Eclipse is not part of the
Eclipse packatges included Fedora Core, so it may hit something unimplemented or buggy in GCJ and so
makes sense to know which plug-in or which procedure you did used to run Tomcat inside Eclipse.
I also already explained to you why the root requirement and different packaging makes sense and how
to circunvent it, without feedback.
Looks like you want just to complain and expect a magic solution that doesn't requite you to work
and to think. Many people on this list uses Eclise and Tomcat as suplied by Fedora Core 4, so they
both work. Much more people use the original packages from JPackage in which the Fedora work was
based.
If you have a different setup or doen't have the Linux sysadmin knowledge to make this work, it's
your fault, not the people who packaged Fedora Core. And if you do expect someone to help you, you
have to behave in a way people can actually help you, but you don't behave like someone that want to
get help.
[]s, Fernando Lozano
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat
by Dan Thurman
>From: fedora-devel-java-list-bounces(a)redhat.com
>[mailto:fedora-devel-java-list-bounces@redhat.com]On Behalf Of Kenneth
>Porter
>Sent: Wednesday, December 21, 2005 1:07 PM
>To: Fedora Java Development List (E-mail)
>Subject: RE: [fedora-java] Eclipse and Tomcat
>
>
>--On Wednesday, December 21, 2005 8:44 AM -0800 "Daniel B. Thurman"
><dant(a)cdkkt.com> wrote:
>
>> lsof -i | grep tomcat revealed port 8005 but there is nothing there
>>
>> I looked at /var/log/tomcat/catalina.out (logfile) and it says
>> that it started at port 8080. OK... that is good news. I ran
>> the web-browser and apparently it runs forever - showing nothing
>> and spinning it's wheels...
>
>I think the root-run version listens on both those ports by default. I
>think 8005 was the JK2 connector to Apache and 8080 is the web content
>port. (Been awhile since I messed with Tomcat.)
>
>Without the "-i", lsof (list open files) reports all regular
>files, and can
>be used to locate what files a process is actively using. You can also
>strace a process to see what it opens over time. (Redirect
>output to a file
>and filter aggressively as an strace log gets huge fast.)
>
>Look up-thread for how to get Eclipse to run a private copy of Tomcat.
>
>
Ken,
Please note that I am NOT flaming you. Just the person/team that
provided the Tomcat "port" for Fedora. They should be flamed badly.
I have pretty much given up trying to get tomcat running with Fedora's
version. It seems that there are just too many problems with this
version - and this was stated in several sites talking about it.
I have downloaded tomcat binaries from apache's website, installed it in
/usr/local directory, chown tomcat:tomcat the tomcat-5.5.12 directory
and simply ran /usr/bin/dtomcat and tomcat started up with no errors as
far as I can see. Finally - I can now see tomcat's index.jsp and my own
index.html file in my web browser.
I believe whomever created this tomcat version for Fedora has got
some explaining to do. This is a horrible piece of junk, horrible
waste of my time, and files moved all over the place that is it a
major cause of confusion which departs from apache's standard
configuration and installation. Heck, I cannot even simply define
JAVA_HOME and find the binaries!!! Sheesh!!
If anyone can point me to ONE definitive installation guide/faq that
explains PRECISELY how to get tomcat running on FC4 from the original
distro - please do! Nothing I tried so far even works! Yes, I got
tomcat to "run" with a LOT OF WASTED TIME, and I was not able to get
past the tomcat-user.xml file where it is trying to copy *some original
file* to tomcat-user.xml.old and this causes *something* to throw an
exception and on top of that fails to locate or serve any pages. It
just spins it's wheels forever.
I just cannot understand why Eclipse w/ Tomcat fails out of the box.
This whole thing reminds me of M$ announcing a product when the product
is not close to working just prevent customers from buying someone else's
brand.
Sheesh - what a piece of ****!
Now... I have yet to get Eclipse to work in conjunction with Tomcat.
We'll see how THAT goes....
Dan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.2/208 - Release Date: 12/20/2005
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat - where?
by Dan Thurman
>From: Andrew Overholt [mailto:overholt@redhat.com]
>Sent: Tuesday, December 20, 2005 10:29 AM
>To: Daniel B. Thurman
>Cc: Gary Benson; Fedora Java Development List (E-mail)
>Subject: RE: [fedora-java] Eclipse and Tomcat - where?
>
>
>On Tue, 2005-12-20 at 09:48 -0800, Daniel B. Thurman wrote:
>> >From: fedora-devel-java-list-bounces(a)redhat.com
>> >[mailto:fedora-devel-java-list-bounces@redhat.com]On Behalf Of Gary
>> >Benson
>> >Sent: Tuesday, December 20, 2005 9:12 AM
>> >To: Fedora Java Development List (E-mail)
>> >Subject: Re: [fedora-java] Eclipse and Tomcat - where?
>> >
>> >
>> >Daniel B. Thurman wrote:
>> >> Hi Folks,
>> >>
>> >> I finally am ready to test by application on Fedora using Eclipse
>> >> and I am at the point where I am trying to run my web-application
>> >> using Tomcat.
>> >>
>> >> Of course, the Tomcat dialog box pops up and asks where the
>> >> Tomcat installation directory is.... ugh.... I have NO CLUE!
>> >>
>> >> On windows, Tomcat is installed by Eclipse so I dont have to
>> >> figure this out.... but on Fedora, seems like I do.
>> >>
>> >> Can someone tell me what to do?
>> >
>> >Well, I don't know what dialog box this is, but on Fedora the Tomcat
>> >installation directory (CATALINA_HOME) is /usr/share/tomcat5/.
>> >
>> >Cheers,
>> >Gary
>> >
>>
>> Hmmm.. ok, so I have that - but this did not help.
>>
>> The specific dialog box appears when you attempt to run the
>> web-application project (RunAs->Run on Server) and you
>> are then to choose the application server (tomcat 4,5,5.5)
>> and provide the tomcat installation directory otherwise
>> you cannot run the application. I entered the pathname of
>> /usr/share/tomcat5 and it does not allow me to continue.
>> I tried different tomcat versions (5.0, 5.5) and neither
>> worked.
>>
>> So- I am stuck - and cannot even get my application to run
>> at this time. Any ideas?
>
>Is it trying to launch tomcat itself? That won't work as it's supposed
>to run as root (or the tomcat user or whatever).
Tomcat is a java servlet application server and yet developers
using eclipse are doing development work so why should it be a
"root" requirement to run and/or start it? Sure beats me...
But in any case and from what I can tell, no matter what I enter into
the "Tomcat installation directory" textbox, the eclipse program
keeps saying that the directory provided is not a valid tomcat installation
directory and will not allow me to continue. I have used eclipse on windows
for awhile and tomcat (or other server) selections runs fine - "root" or not
and it even "installs" the server (along with Sun's version of their app server
w/ DB support) which makes it pleasant for developers so why not follow the same
pathway for linux-based developers? Why force configuration make us jump through
hoops when all "we" care about is to develop applications? I *should* be able to
choose *any* AS with Eclipse under Linux?
Anyone care to jump in and tell me how to get tomcat started under
Eclipse's control?
Dan
>
>Andrew
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.1/207 - Release
>Date: 12/19/2005
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 12/19/2005
18 years, 4 months
Netbeans 5.0-beta2 , Sun Application Server 8.1 and Java-gcj
by John W. Himpel
All,
Not wanting to "pile on" on the thread from Dan Thurman, but I am unable
to install the Netbeans 5.0 beta2 + AS 8.1 with java-gcj-compat
installed (one single download & install from Sun). I can get the
Netbeans portion of the install to run fine, but the AS 8.1 portion
refuses to recognize a valid location for the JDK.
Is this also a problem with AS8.1 not following the FHS? Or am I not
pointing the the proper directory for the JDK?
I can get Netbeans to generate and work with stand-alone Java apps just
fine. I just can't get an Application Server to work to provide
servlets and EJBs.
Thanks.
John
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat
by Dan Thurman
>From: Chris Hubick [mailto:chris@hubick.com]
>Sent: Wednesday, December 21, 2005 4:37 PM
>To: Daniel B. Thurman
>Subject: RE: [fedora-java] Eclipse and Tomcat
>
>
>On Wed, 2005-12-21 at 13:57 -0800, Daniel B. Thurman wrote:
>> I just cannot understand why Eclipse w/ Tomcat fails out of the box.
>> This whole thing reminds me of M$ announcing a product when
>the product
>> is not close to working just prevent customers from buying
>someone else's
>> brand.
>>
>> Sheesh - what a piece of ****!
>>
>
>Dude!
>
>Do your realize that Tomcat on Fedora Core is compiled to native
>executables using GCJ and GNU Classpath? That is to say, like the rest
>of Fedora, it uses a completely Free(dom) Software implementation of
>Java (GCJ), written by people all around the world in their free time,
>and provided to you FREE of cost.
Yes, that is nice - but when the s--- hits the fan, expect some
complaints. This is so that people know that there are issues and
maybe someone will respond, maybe working on it, or maybe not. Also,
people many avoid it to save time when someone complaints having
been there. Caveat Emptor.
>
>The Free Java tools aren't perfect yet by any means... but considering
>that Tomcat and Eclipse run at all is a huge feat!
Tomcat runs? Not from where I am standing. Does Eclipse run with
Tomcat? Nope! Not even with a Tomcat that I downloaded, and got
it running. So - there you have it.
>These hackers have almost replicated years of work by Sun to create
>Java, so that you can have a Java implementation with all the other
>benefits of Free Software which is why GNU/Linux exists in the first place.
Yada, yada, yada. Java has been around a while, and ported to many
systems and all that. If a poor or incomplete port is made, expect
complaints.
>
>And if you don't like the Fedora Tomcat, just "rpm -e tomcat" and you
>are done with it and can do whatever you want.
Did that. Installed Apache's version per recommendation of *many*
other java/eclipse/tomcat fans.
>
>Most the people you are yelling wont ever see any of your money, and
>unlike MS, they aren't charging you shit for all their effort to
>guarantee your freedom - so show a little fucking gratitude, and maybe
>even some respect.
Yes, that is known. I will praise good work where due. I will also
complain on bad work as well, free or proprietary.
>
>Asshole.
Apparently, you are a very sensitive individual. Get over it.
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.2/208 - Release Date: 12/20/2005
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat
by Dan Thurman
>From: fedora-devel-java-list-bounces(a)redhat.com
>[mailto:fedora-devel-java-list-bounces@redhat.com]On Behalf Of
>Daniel B.
>Thurman
>Sent: Wednesday, December 21, 2005 8:16 AM
>To: Kenneth Porter; Fedora Java Development List (E-mail)
>Subject: RE: [fedora-java] Eclipse and Tomcat
>
>
>>From: fedora-devel-java-list-bounces(a)redhat.com
>>[mailto:fedora-devel-java-list-bounces@redhat.com]On Behalf Of Kenneth
>>Porter
>>Sent: Tuesday, December 20, 2005 5:33 PM
>>To: Fedora Java Development List (E-mail)
>>Subject: Re: [fedora-java] Eclipse and Tomcat
>>
>>
>>--On Tuesday, December 20, 2005 4:50 PM -0800 "Daniel B. Thurman"
>><dant(a)cdkkt.com> wrote:
>>
>>> Now - what port is tomcat running on so that I can see if it
>>is running!
>>> Well, it is not port 80 nor port 8080 (I am running apache
>at 80, and
>>> there is nothing at 8080)
>>>
>>> I cannot seem to find a tomcat listener in netstat -a so I
>>cannot tell if
>>> tomcat is running successfully or not!?!?
>>
>>As root, try "lsof -i | grep tomcat". (The grep is to isolate
>>the list to
>>processes running as user "tomcat". Red Hat typically names the user
>>running a daemon after the daemon.)
>>
>>
>
>Thanks for this tip! My tomcat is running at port 8005. Hmm... but
>when I tried to see this port in my web-browser - it reports a
>connection
>refused... well! At least *something* is running. Now...
>to get *something*
>on tomcat's default www-root directory so that it has a
>index.html file.. I
>wonder where that is... somewhere in /usr/share/tomcat5
>directory or in
>/var ? Any idea while I look?
>
>Dan
>
Oh...
lsof -i | grep tomcat revealed port 8005 but there is nothing there
I looked at /var/log/tomcat/catalina.out (logfile) and it says
that it started at port 8080. OK... that is good news. I ran
the web-browser and apparently it runs forever - showing nothing
and spinning it's wheels...
>From the log, it appears that tomcat is trying to read these
files but is unable to (I am starting/stopping/restarting tomcat
as a root user if that means anything...)
/usr/share/tomcat5/conf: jk2.properties and tomcat-users.xml
Ok, I chgrp these two files to 'tomcat'
However, log says it is now trying to read: tomcat-users.xml.new
so I created a link: tomcat-users.xml.new->tomcat-users.xml and
now it says it is trying to read: tmcat-users.xml.old !?!?!?!?
Hmmm... maybe the crux of this is that I need to get a valid user
created in the tomcat-users.xml file?
What should I do in this case???
Dan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.2/208 - Release Date: 12/20/2005
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat
by Dan Thurman
>From: fedora-devel-java-list-bounces(a)redhat.com
>[mailto:fedora-devel-java-list-bounces@redhat.com]On Behalf Of Kenneth
>Porter
>Sent: Tuesday, December 20, 2005 5:33 PM
>To: Fedora Java Development List (E-mail)
>Subject: Re: [fedora-java] Eclipse and Tomcat
>
>
>--On Tuesday, December 20, 2005 4:50 PM -0800 "Daniel B. Thurman"
><dant(a)cdkkt.com> wrote:
>
>> Now - what port is tomcat running on so that I can see if it
>is running!
>> Well, it is not port 80 nor port 8080 (I am running apache at 80, and
>> there is nothing at 8080)
>>
>> I cannot seem to find a tomcat listener in netstat -a so I
>cannot tell if
>> tomcat is running successfully or not!?!?
>
>As root, try "lsof -i | grep tomcat". (The grep is to isolate
>the list to
>processes running as user "tomcat". Red Hat typically names the user
>running a daemon after the daemon.)
>
>
Thanks for this tip! My tomcat is running at port 8005. Hmm... but
when I tried to see this port in my web-browser - it reports a connection
refused... well! At least *something* is running. Now... to get *something*
on tomcat's default www-root directory so that it has a index.html file.. I
wonder where that is... somewhere in /usr/share/tomcat5 directory or in
/var ? Any idea while I look?
Dan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.2/208 - Release Date: 12/20/2005
18 years, 4 months
Eclipse and Tomcat
by Dan Thurman
Hi Folks,
Has anyone gotten Eclipse and Tomcat working at all? Seems
from google that this has not been working as far as I can tell.
I started focusing on getting Tomcat to run and as far as I can
tell, out of the box, tomcat5 fails to start.
The first thing I noticed was that tomcat tries to start as a tomcat4
user -- tomcat4 on a tomcat v5.0 release? Heh! There already a
tomcat user in the /etc/password file so I changed all places where
tomcat4 user was located. In /etc/initd.d/tomcat and in
/etc/tomcat5/tomcat5.conf
Then I tried to start it again - nope it fails. It breaks because apparently
for java v1.50 which I have installed, tomcat does not even know where
to find jta.jar file. Sheesh - it looks like this file was not included because
of licensing issues? Since I had java v1.4 installed, and the jta.jar was found
at /usr/lib/jvm/java-1.4.2-gcj-..., I simply copied it to /var/lib/tomcat5/common/lib
directory and deleted the [jta].jar broken link. Then I ran /etc/init.d/tomcat5 and
now it appears to run with no errors (as far as I can tell).
Now - what port is tomcat running on so that I can see if it is running! Well, it is
not port 80 nor port 8080 (I am running apache at 80, and there is nothing at
8080)
I cannot seem to find a tomcat listener in netstat -a so I cannot tell if tomcat is running
successfully or not!?!?
Can anyone give me any pointers as to how to locate what port tomcat might be
running at?
Thanks!
Dan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 12/19/2005
18 years, 4 months
RE: [fedora-java] Eclipse and Tomcat - where?
by Dan Thurman
>From: fedora-devel-java-list-bounces(a)redhat.com
>[mailto:fedora-devel-java-list-bounces@redhat.com]On Behalf Of Gary
>Benson
>Sent: Tuesday, December 20, 2005 9:12 AM
>To: Fedora Java Development List (E-mail)
>Subject: Re: [fedora-java] Eclipse and Tomcat - where?
>
>
>Daniel B. Thurman wrote:
>> Hi Folks,
>>
>> I finally am ready to test by application on Fedora using Eclipse
>> and I am at the point where I am trying to run my web-application
>> using Tomcat.
>>
>> Of course, the Tomcat dialog box pops up and asks where the
>> Tomcat installation directory is.... ugh.... I have NO CLUE!
>>
>> On windows, Tomcat is installed by Eclipse so I dont have to
>> figure this out.... but on Fedora, seems like I do.
>>
>> Can someone tell me what to do?
>
>Well, I don't know what dialog box this is, but on Fedora the Tomcat
>installation directory (CATALINA_HOME) is /usr/share/tomcat5/.
>
>Cheers,
>Gary
>
Hmmm.. ok, so I have that - but this did not help.
The specific dialog box appears when you attempt to run the
web-application project (RunAs->Run on Server) and you
are then to choose the application server (tomcat 4,5,5.5)
and provide the tomcat installation directory otherwise
you cannot run the application. I entered the pathname of
/usr/share/tomcat5 and it does not allow me to continue.
I tried different tomcat versions (5.0, 5.5) and neither
worked.
So- I am stuck - and cannot even get my application to run
at this time. Any ideas?
Dan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 12/19/2005
18 years, 4 months