LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2003, 10:51 AM   #1
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Rep: Reputation: 15
Unhappy trying to learn J2EE on Linux


I've been trying to figure out how to learn J2EE on linux for awhile now. I need to setup an environment that I can use. Right now I am running RH 9.0, and I downloaded and installed the J2SE SDK, J2EE SDK, and ANT. But how do I setup an environment to test code. When I installed the J2SE 1.4.1_02 SDK it wouldn't work with the J2EE 1.4 SDK...but I'm not willing to downgrade my J2SE SDK.

Has anybody else run into problems getting the J2EE -verbose command to run the server? I am just having a really hard time figuring out how to get all this going.

I am so desparate I think I might Win2k's IIS server, but I'm not sure if that server lets me run Servlets or JSP. Can somebody give me a hand in setting up my J2EE environment and server?
 
Old 04-21-2003, 11:57 AM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
Jakarta Tomcat is good for running jsp's and servlets.

and this link may be of help:
http://www.blackdown.org/java-linux/java2-status/
 
Old 04-21-2003, 03:10 PM   #3
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Original Poster
Rep: Reputation: 15
Do you know anything about the J2EE SDK? Namely the server that comes with that Development Kit, is giving me trouble, as well as the ANT make. Also I don't know what I'm really getting from teh J2EE SDK server, but I was hoping it would be an all in one, easier to use server. Do you know anything about that?
 
Old 04-21-2003, 03:20 PM   #4
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
do you mean cloudscape? is that the server that comes with j2ee? I haven't used it much... all the developing I've done has been tested and released on the Tomcat application server. If you want to post your error messages I'd be happy to help you in any way I can though.
 
Old 04-21-2003, 10:48 PM   #5
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Original Poster
Rep: Reputation: 15
Well the error is as follows
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:175)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
Caused by: java.lang.NullPointerException
at java.net.InetAddress.cacheAddress(InetAddress.java:648)
at java.net.InetAddress.cacheAddress(InetAddress.java:633)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
at com.sun.enterprise.util.Utility.getLocalHost(Utility.java:56)
at com.sun.enterprise.repository.ConfigurationImpl.<clinit>(ConfigurationImpl.java:18)

I ran J2ee -verbose...my .bashrc looks like this
alias cp='cp -i'
alias mv='mv -i'
alias rem='rem -i'

# Setting environment variables
J2EE_HOME=/home/wmui/java/j2sdkee1.3.1
JAVA_HOME=/home/wmui/java/j2sdk1.4.1_02
ANT_HOME=/home/wmui/java/jakarta-ant-1.3
J=$HOME/java/java_src
C=$HOME/C++/c++_src

# Setting Path
PATH=".:$JAVA_HOME/bin:$J2EE_HOME/bin:$ANT_HOME/bin:$PATH"
export PATH

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

What did i do wrong...?
 
Old 04-22-2003, 08:43 AM   #6
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
this is the error you get when you execute what command?

null pointer exception says that if all you're doing is trying to start the server and not starting your own code then sun messed up somewhere. did a quick google... nothing obvious came up. I'll do some more searching here in a bit.
 
Old 04-22-2003, 12:15 PM   #7
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Original Poster
Rep: Reputation: 15
this is the error when I ran J2EE -verbose.
 
Old 04-22-2003, 12:25 PM   #8
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
When I get home tonight I'll put j2ee on my machine and let you know the results.
 
Old 04-22-2003, 06:27 PM   #9
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
deadseasquirrel, I haven't forgotten about you. I'm afraid that the original plans are not gonna be able to happen. Before I left work today my boss told me I have to go to jersey till Friday. So I'm running around doin laundry and payin bills and what not. I'm very sorry but I'm not gonna be able to look at this until friday... I can try it on my laptop at the hotel... but I can tell you right now I'm pretty sure its gonna work on that one. I had better chances of recreating the error on my desktop as I built that one from scratch... so if its something wierd like a missing library, etc I won't know until friday and I can test it on my desktop.

again, I'm very sorry.
best of luck,
jpbarto
 
Old 04-22-2003, 10:21 PM   #10
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Original Poster
Rep: Reputation: 15
no problem...let me know if you come up with anything. It may be some sort of mismatch between the J2EE SDK, and the J2SE SDK versions, on top of the fact that some J2EE SDK wasn't written specifically for RH 9.0
 
Old 04-25-2003, 02:58 PM   #11
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
also remove gcj using the package manager in redhat
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
j2ee 1.3.1 deploytool hangs sneak Linux - Software 0 11-24-2004 06:29 AM
J2EE 1.4 on Mandrake 10 tumana Linux - Software 5 06-16-2004 07:47 PM
I don't like J2EE and .NET melinda_sayang Programming 2 05-31-2004 11:14 PM
Problem when running J2EE in red hat linux roy_tan711 Linux - Software 3 05-13-2003 11:21 AM
setting up, need recommendations for j2ee digitized_funk Linux - Software 1 03-22-2003 02:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration