• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

default path of Weblogic 7.0

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I new in weblogic & J2ee what is the default web-inf folder path & also what is defualt example folder path where we save our .class file(Servlets)

Thanking in advance..
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This type of question seems really common, but I generally don't know where to start. Do you have weblogic 7.0 installed? Have you created a domain using the domain configuration wizard?

If there is no compelling reason why you are using 7.0 you may want to go with a more recent version. 8.1 is in common use. 9.0 is in beta and requires more up-to-date OS and JDK. For more info, check out BEA's extensive Product Documentation.

I happen to still have 7.0 installed on my machine from a previous project that was deployed on that version of WLS. The bea home directory for that installation is

C:\bea704.

A few minutes ago when I used the domain config wizard to create a domain (selecting the type as "WLS Examples" ... I usually pick plain old "WLS Domain", but you mentioned examples) it suggested that I create the domain in

C:\bea704\user_projects

and since I named it "wlsExamplesDomain" it ended up in this directory:

C:\bea704\user_projects\wlsExamplesDomain

If I go look in that directory it contains the config.xml and an applications directory

C:\bea704\user_projects\wlsExamplesDomain\applications

Inside the applications directory are some ears and jars AND a directory called DefaultWebApp

C:\bea704\user_projects\wlsExamplesDomain\applications\DefaultWebApp

Inside DefaultWebApp:

WEB-INF
images
index.jsp

Is that what you are asking about? If not,
give us some more details or check out the BEA Product Documentation.
 
mohan gavande
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
Thanks for given reply.
I have now get the default path by using your way but
now i have a servlet in that class file & want to disply that servlet by
using http but it show me message like server not found I have written
the code in web.xml as

<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<servlet>
<servlet-name>MyServlet2</servlet-name>
<servlet-class>MyServlet2</servlet-class>
</servlet>
</web-app>

Is this is ok or anything extra should we deploy?
Please reply me
Thanks agian in advance
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by mohan gavande:
Hi ,
Thanks for given reply.
I have now get the default path by using your way but
now i have a servlet in that class file & want to disply that servlet by
using http but it show me message like server not found I have written
the code in web.xml as

<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<servlet>
<servlet-name>MyServlet2</servlet-name>
<servlet-class>MyServlet2</servlet-class>
</servlet>
</web-app>

Is this is ok or anything extra should we deploy?
Please reply me
Thanks agian in advance



Hi,

try to put your servlet in a package, I�m not sure with the version you�re using but I�ve seen problems with classes and servlets deployed on weblogic without a package declaration




of course you will need to add a package declaration on your servlet code.

 
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also dont forget to add
<servlet-mapping> and <url-pattern> in your web.xml
reply
    Bookmark Topic Watch Topic
  • New Topic