File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Beginning J2EE. Cannot reach deployed EAR. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Beginning J2EE. Cannot reach deployed EAR. " Watch "Beginning J2EE. Cannot reach deployed EAR. " New topic

Beginning J2EE. Cannot reach deployed EAR.


Joined: Jan 20, 2004
Posts: 6
Hey there all,

First off, I'm using default settings for all ports on the J2EE reference implementation.

I'm just starting out with J2EE 1.4 and have been following along with the book "Beginning J2EE 1.4: From Novice to Professional". I have successfully deployed and run my first JSP page as a Web Archive (WAR) which I can happily access using



My problems start when trying to deploy my first Enterprise Archive (EAR) application. I've gone through the instructions a couple of times and the thing seems to deploy correctly, but no joy accessing it.

Here is my file structure....


In the deploy tool, I've set up the web context to "Ch03" as instructed and verified everything so that there are no syntax errors or anything like that.
According to the deploy tool, my server is apparently running on localhost:4848 and under deployed applications the application is called JavaFAQ and has a status of "Running".
The book says that I should access it by going to the URL


but this doesn't work, even though I've set the web context in the deploy tool to welcome.jsp. So, I checked the Admin console where I have the following: -

Host Name: localhost
HTTP Port(s): 8080, 8181, 4848
IIOP Port(s): 3700, 3820, 3920
Configuration Directory: C:/j2eesdk1.4/AppServer/domains/domain1\config
Installed Version: Sun Java System Application Server Platform Edition 8.1 (build b42-fcs)
Debug: Not Enabled

So I figured the port was wrong in the book or something so tried


but still no luck.....I get a 404 from the J2EE server saying "The requested resource (/Ch03) is not available."

What can can I check? Any advice? As I said, the deploy tool says it deployed and running. I just can't seem to get to it!

Also tried http://localhost:4848/JavaFAQ/Ch03 with no joy. I've had another look in the Admin console, that the app is listed under Enterprise Applications rather than EJB modules, if that makes any difference.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Moved to the EJB/J2EE forum.

[Asking smart questions] [About Bear] [Books by Bear]

Joined: Jan 20, 2004
Posts: 6
Fixed, must remember to check the book error corrections page in future. Sorry!
I agree. Here's the link:
subject: Beginning J2EE. Cannot reach deployed EAR.
It's not a secret anymore!