How Do I create & run a new servlet in the Weblogic 8.1 Workshop?

Using the Workshop environment I added a new Empty Application, then a new Web Project,MyServletPrj,then I added a new Java Class and created a famous HelloWorldServlet class.
Next I built application, started a WebLogic Server and depolyed application to the server.
I checked through the Administrative console that HelloWorldServlet was deployed as a part of my project.
How can I run my servlet?
I tried to run it from the MS Explorer browser
http://localhost:7001/MyServletPrj/servlet/HelloWorldServlet
It doesn't work.
What is the problem?
Thanks,
Irina

hi katzirina ,
To create or import the Servlet in workshop and to run it, we need to follow the
steps in workshop as given below.
1)Create the empty application
2)Create the webproject under the application
3)Right click on the webproject and choose the new -> java Class to write the
servlet in IDE Or choose import option and import the servlet file
4)Start the weblogic server
5)Go to tools menu->choose weblogic server->choose weblogic builder
6) In weblogic builder go to file menu->open your webproject
then it shows servlet ,filter,security Constriant and tag libraries folders in a builder at left side
7)Click on the servlet folder and click on the add button at right pane of the builder then you will give servlet name , servlet class name and url pattern.
After giving the Urlpattern click on the add button which is right to the urlpatern text field.
8)Click on ok button
9)click on the save button
then you will see the servlet mapping elements in web.xml file in workshop IDE what we given in builder.
10)Exit from the weblogic builder
11)Right click on the application and clean the application
12)Build the application
then it compiles the Servlets files automatically.
You can see the those class files in .workshop folder which is located under applicaton folder.
Note :go to the applicaton where it is stored.you should see these files manually because workshop ide shows the navigation from the webproject only. you can't see these files from workshop.
13)Go to tools menu->weblogic server->weblogic console and test the application using the weblogic console.
or Directly opent he internet explorer send a request for particular servlet by giving urlpattern.
--- Anilkumar kari

Similar Messages

  • Everyone can create/remove a new user in the Weblogic Realm

    Hi,
    I just find any one can use Weblogic object create new/delete user in
    the Weblogic realm.
    // create
    RealmManager rm =
    Admin.getActiveDomain().getSecurity().getRealm().manager();
    User user = rm.getUser(userName);
    if (user == null)
         user = rm.createUser(userName, password);
    // delete
    RealmManager rm =
    Admin.getActiveDomain().getSecurity().getRealm().manager();
    User user = rm.getUser(userName);
    if (user != null)
         rm.removeUser(user);
    Looks like Weblogic has a security hole here? Shouldn't these object
    only invokable to users belong to Administrators group?
    Any comments? or there is known fix?
    Simon Song

     

  • How to compile and run a Java servlet using the BEA weblogic server

              Hi,
              Could you help me out as to how to compile a servlet using Web Logic server.I have written a Servlet program and have also set up the environment in the "c:\bea\wlserver6.0\config\examples" folder by giving the command setExamplesEnv.cmd.
              I have stored my GreetingServlet.java file in "c:\bea\wlserver6.0\samples\examples\servlets" folder.
              How do I compile my servlet now?
              Vid
              

    Hello,
    1. The .form file was used by Netbean's GUI builder to create the .java and is not needed for compilation.
    2..../src # javac -classpath "..." mytool/*.java
    I guess the package mytool was not coped with.
    Alternatively it is worth to use the ant build tool also used by Netbeans.
    Then you can make a jar from the class files, indicate in the manifest.mf file:
    1. the main class
    2. the library jars

  • I just purchased a one year old iMac.  How do I create a brand new admin account?

    I just purchased a one year old iMac.  How do I create a brand new admin account?

    The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
    1a. If you don't own another Mac
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received those media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    Some models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you may not be able to reinstall 10.6 even from the original discs, and Internet Recovery may not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
    1b. If you do own another Mac
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    2. Partition and install OS X
    If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
    Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the  Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
    3. Other issues
    If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like.

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • How can i create a brand new account without a credit card ?

    how can i create a brand new account without a credit card ?

    There are instructions on this page for creating an account without giving a credit card : http://support.apple.com/kb/HT2534

  • HT2731 How do i create an apple id without providing the billing address..as i done have a credit card!

    I dont use a credit card so how can i create an apple id withoud providing the billing address?

    There are instructions on this page for creating a new account (it won't work with an existing account) without giving a credit card number : http://support.apple.com/kb/HT2534 e.g. select a free app in the store and click on 'create Apple id' when 'buying' it

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • How can I create a scrolling effect where when the user scrolls down the image will blur out?

    How can I create a scrolling effect where when the user scrolls down the image will blur out?

    Hi there,
    You can create a scroll motion where the image will fade out on scrolling, you need to use the Opacity tab under Scroll Effects Panel.
    If you particularly need the image to be blur out, then you need to edit that image in any image editing program and make one copy of that image as blurred, then place both images (actual and blurred) on that page and use scroll motion or fade option to replace images.

  • Upgrading BEA-Workhop artifacts to newer versions of the Weblogic server

    Hi,
    We have a WLI 8.1 stack where we have deployed the artifacts(ears) developed using the BEA Workshop. BEA Weblogic 8.1 SP4 is being used as the Application server currently. We are currently looking out for the possibility to migrate to a newer version of the weblogic server for the obvious reasons.
    The problem is that we have a lot of reusable code that we want to redeploy on the new version of the weblogic server without going into the costs of redevloping the newer integrations. I want to understand if at all it is possible to move the current workshop artifacts on the newer version of the Weblogic server. I have a vague idea that this could be done some how by using JDeveloper but I am not realy sure on how to go forward with this.
    Could any one inform me on how this could be achieved or Is there a plan on how this could be done.
    Any help on this front will be higly appriciated.
    regards,
    Prakhar

    This document contains information about the compatibility with previous releases: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/upgrade/compat.html\
    Some previous posts that might be useful as well:
    - Weblogic 8.1 to 10.3 upgrade
    - WebLogic Upgrade from 8.1 to 10.3

  • How do i create a blank new library

    Hello,  I follow the steps exactly for creating a blank, new library.
    For about  10 seconds, the library is blank, then it copies every music file from my original lilbrary. 
    What is going on, and how do I create that second library so that it is blank.
    Thanks.

    Edit > Preferences > Store, untick Show iTunes in the Cloud purchases.
    tt2

  • How do i Create charts using JSP/Servlet & Database

    I have to create charts which shows the graph of stock exchange.
    i have a database that keeps the data for creating charts.
    But i did not know how to create charts using jsp-servlet.
    Any Example might help me to go forward.
    Any help will be really appreciated.
    Please Advice me.

    JFreeChart - You can generate the charts then convert them to image formats (PNG and JPEG) all using the JFreeChart API
    http://www.jfree.org/jfreechart/

  • HOw do I create a ringtone for iphone5 using the new itunes

    How can I create a ringtone for my iphone 5 using the newest version of itunes. Thanks

    This article takes you through the process
    http://www.simonblog.com/2012/12/01/itunes-11-how-to-create-free-ringtone-and-te xt-tone/

  • How do I create a CLEAN new user?

    I get a cl_kernels plugin error after login; cannot open new finder windows, Terminal.app does not start, Safari quits unexpectedly, the clock in the menu ba never shows, things are generally unusable. I deleted that account and created new ones. Using a different username all is fine. Creating a new username and transferring all the old data, incl. the Library folder, all is fine. BUT, creating a new user account with the old username (that was working fine since 10.0, six lower case letters only), I get the same old error.
    The problem started to appear shortly after installing the box.net and GoogleDrive clients -- not sure whether that'd be related. Any ideas?

    System Preferences>Users and Groups. Make a new user. (follow the arrow)

Maybe you are looking for

  • Loading and Playing 2 videos at the same time

    Hello everyone I'm having a problem on loading and playing two videos at the same time on XletView. The background video, I'm loading by editing channels.xml that is located at config folder into xletview folder. I've just to add the file path and wh

  • Datagrid and scientific value problem...

    why does the values coming from a database into a datagrid shows in a scientific notation and how could it be resolved? Immediate Response Required... Thanks in Advance.

  • Encore Cuts off about 15 minutes of my video after I author it, Please Help!

    Hello everyone, I am not really a stranger to Adobe products but I am having a problem with Encore which is driving me crazy.  I am authoring a dvd of some home movies and a slide show to send to some relatives as a Christmas gift.  I have to send it

  • HR 515

    Hi Folks,            Can anybody send the material SAP HR 515(Training and Event Management). Highly appreciated. regards, Srinivas Muthyala

  • Upgrade from free EE to EE monthly pay (Samsung S6 edge) and it does not work

    Hi, Today 28th of July, I upgraded from a free EE iphone 4S which i bought back in December 14 to a Samsung S6 edge. Same operator. Same number. BUT I can't use it as it shows only "Emergency calls only". I also can't use my former phone as the mobil