ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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.
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'
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.