Avatar of Farzad Akbarnejad
Farzad AkbarnejadFlag for Iran, Islamic Republic of asked on

I can't view index.html using J2EE Server.

Hello,
I am newbie in JSP. I want to use J2EE SDK. I can start server with j2ee -verbose command and I know to stop it using jee -stop.
I have a test.jsp file placed in public_html folder that I can view it using http://localhost:8000/test.jsp address but I can't view index.html that placed in public_html folder using http://localhost:8000/index.html  or http://localhost:8000.

in index.html file wrote:

Congratulations!  
Viewing this page means that your Web Server has been installed correctly and is serving files properly.

How can I see index.html file using http:// ?

Thanks
-FA
JSP

Avatar of undefined
Last Comment
jarasa

8/22/2022 - Mon
jarasa

I supose you're using TOMCAT right?
Have you changed the server.xml and/or web.xml files? if so, can you post them here?, if not, shoudn't you be accessing on port 8080 instead of port 8000?.

Javier
jarasa

On web.xml you should have somethin like this:

  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

If you don't? include it and try again, if you do, check your ports pls.

Javier
ASKER
Farzad Akbarnejad

jarasa,
I don't use Tomcat. I installed J2EE SDK Only. I start server using j2ee -verbose only and place JSP files in  C:\Program Files\J2SDKEE1.2.1\public_html
I can run jsp files in this directory using port = 8000 but I can't run (view) html files like index.html.
Also I haven't any XML file in C:\Program Files\J2SDKEE1.2.1\ and its subfolders.

Thanks
-FA
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jarasa

I see, then forget all I told you :c)
I'll check it out and tell you something
Javier
ASKER CERTIFIED SOLUTION
jarasa

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Mayank S

>> Not really sure of this but as far as I read the J2EE web container only supports Servlets and JSPs

Right, as far as I think. Its not a *web server*. Tomcat is a web-server and Servlet/ container.
jarasa

Thanks for the points.

:c)

Javier
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
Farzad Akbarnejad

I download Tomcat 1.4.27 and install it. It worked. Thanks

-FA
jarasa

You downloaded tomcat 1???

Still alive??? :c))

or it is tomcat 4.1.27??

Javier

P.S.: You're welcome anyway.
ASKER
Farzad Akbarnejad

Yes. It is 4.1.27. :-)

-FA
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
jarasa

Try it is a great web container

Enjoy it

Javier