• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Deploying first JSP in Weblogic

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am delploying my first JSP in weblogic, but with problems. Your advice on this would greatly help. This is what I have done so far.

1) Created a new server instance in weblogic
C:\Data\user_projects\domains\mydomain

2) Created my applications directory in this server named PMO
C:\Data\user_projects\domains\mydomain\applications\PMO

3) Created the WEB-INF directory in the PMO directory
C:\Data\user_projects\domains\mydomain\applications\PMO\WEB-INF

4) placed the web.xml file in the WEB-INF

<web-app>
<description>Web Tier DD for the DashBoard application</description>

<servlet>
<servlet-name>a</servlet-name>
<jsp-file>a.jsp</jsp-file>
</servlet>

<servlet-mapping>
<servlet-name>a</servlet-name>
<url-pattern>/PMO/a.jsp</url-pattern>
</servlet-mapping>
</web-app>

5) Wrote a jsp. (a.jsp) and the directory structure is
C:\Data\user_projects\domains\mydomain\applications\PMO\a.jsp

6) started the server and tried the url http://localhost:7001/PMO/a.jsp

7) 404 error. In the server log got the following line

####<Jul 13, 2007 3:16:28 PM IST> <Debug> <HTTP> <MAAINI428015G> <myserver> <ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <BEA-101147> <HttpServer(12842832,null default ctx,myserver) Found no context for "/PMO/a.jsp". This request does not match the context path for any installed Web applications, and there is no default Web application configured.>




ANY IDEA ON WHAT I AM MISSING WILL BE HIGHLY APPRECIATED. Thanks.

Rajesh
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should start by creating a WAR file (it's like a JAR).

it has 2 directories, META-INF and WEB-INF. And the JSP file can go next to these 2. Put your web.xml in the correct folder in this war, then package it the same way you would a jar, except with the name as .WAR.

Then you need to deploy this to the server. I would recommend using the console.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Web applications can be deployed in exploded format. And your structure seems all right to me.

Sometimes by putting the source in applications folder is not enough. you have to deploy using Weblogic Admin console.

you can do this by going to url http://localhost:7001/console
Then go to mydomain -> Deployments -> Web Application Modules on the left pane. And then deploy your PMO folder there in applications folder.

Hope this helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic