File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark ""http://localhost:7001" on browser gives Error:404 ????" Watch ""http://localhost:7001" on browser gives Error:404 ????" New topic

"http://localhost:7001" on browser gives Error:404 ????

bh00pesh venu

Joined: Jan 07, 2004
Posts: 12
I have installed weblogic8.1
and created a domain called mydomain
under user_projects, now i have started
weblogic server as
start-> programs -> Bea weblogic Platform 8.1 ->
user_projects ->mydomain->startWLServer
and its started fine, but when i open and
type "http://localhost:7001" I couldnt see
any index page except Error-404(Not Found).
Please clear my doubt what to and how to do ??
Also if i write a sample JSP page where should
i place it under user_projects->mydomain->???
chandana sapparapu
Ranch Hand

Joined: Sep 28, 2002
Posts: 63
under applications directory in your mydomain directory, create a dir named your contextroot.
To deploy it,
1. all programs> bea> user projects > mydomain > startserver(
2. go to localhost:7001/console. This opens the console for the example server.
3. Go to mydomain > deployments > webapplication modules on the left navigation bar on deploy a new web app module
5.You have to go all the way to domains>mydomains>applications>yourcontextroot
6.You should see a radio button at this point. If not, you should create a war file under yourcontextroot folder OR you should have a WEB-INF directory which has web.xml in it.
I AM NOT SURE ABOUT .WAR(whether it's optional or mandatory).
7.your jsp should be anywhere in your contextroot.
8.Select the web app and click Target module, your web app is ready localhost:7001\yourcontextroot\....path to your jsp
bh00pesh venu

Joined: Jan 07, 2004
Posts: 12
hi chandana,
I followed u upto 5th step latter Iam
confussed and its not showing my contextroot
which i created under
Please push me little bit more..
advance thanks.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the BEA/WebLogic Forum...
chandana sapparapu
Ranch Hand

Joined: Sep 28, 2002
Posts: 63
5th step. After you click "create a new web application" in the main panel(not the navigation panel(you wont find it there anyway))
you have to click on the links of the directory structure, i.e you have to go all the way to applications.
(domains\my domains\applications)
when you click on applications, you'll find a list of all the web applications that are there.
Since you are creating your very first project you may not find any web application there(with a radio button next to it).
So, yourcontextroot directory should have a *.war file so that you can find the application you are about to deploy in the list I mentioned above. When you see it, select the radio button and click deploy, that's it.
Let me know where you have a problem if what I suggested you didnt work.
bh00pesh venu

Joined: Jan 07, 2004
Posts: 12
chandana as you said to create my own contextroot under
I created the contextroot with name "MyRoot"
( should it not be capital letters ?? )
and placed my HelloWorld.jsp file.
so how to create .war file here ??
without creating .war file I could not see any
webapplication under (console)
C: \ bea \ user_projects \ mydomain \ applications
sorry if iam asking too silly question
as this is my first application.
Thanks again.
Pallavi Sikdar

Joined: Jan 16, 2004
Posts: 12
I guess your problem would have been solved by now.
Incidently i was trying the same thing.
What i did was manually created a
.war file( say login.war) using the jar utility which comes with j2sdk and deployed the war file using the WEBLOGIC administrative console(as explained by chandana).
login.war contained my jsps in a folder named jsps ,and the deployment descripters-web.xml and weblogic.xml inside WEB-INF folder.
though i did not mention any context root as such, I was able to successfully deploy the war file and access my jsps through the url- http://localhost:7001/login/jsps/myjsp.jsp
And it worked perfectly!!(my jsp was accessing an ejb)
Now i want a servlet instead of a jsp to access my ejb.Come what may I cannot access my servlet in weblogic- it gives me Error:404
I have set the servlet mapping, uri etc in the deployment descriptor but to no avail!! Can any one help??
Think tanks
Padma Kanaka

Joined: Jan 22, 2004
Posts: 5
Hi Chandana,
I installed the bea 8.1 and jsp programs are running fine.
But for servlets initially I was getting the Error 404- not found.
After reading your suggestion I deployed the webapplication module.
Now when I tried to run my servlet program(http://localhost:7001/HelloServlet/helloservlet) it is giving
Error 500--Internal Server Error
javax.servlet.ServletException: [HTTP:101249][ServletContext(id=28807753,name=HelloServlet,context-path=/HelloServlet)]: Servlet class helloservlet for servlet helloservlet could not be loaded because the requested class was not found in the classpath C:\bea\user_projects\domains\mydomain\applications\HelloServlet\WEB-INF\classes.
java.lang.ClassNotFoundException: helloservlet.
Here, I created a web.xml and placed under C:\bea\user_projects\domains\mydomain\applications\HelloServlet\WEB-INF
I have not created any war files because as I remember you have mentioned either war file or web.xml is fine.
Any help regarding this is highly appreciated.
I agree. Here's the link:
subject: "http://localhost:7001" on browser gives Error:404 ????
It's not a secret anymore!