Online tutorial,documentation to get simple servlet

Hi,
I am new to servlet.
I have J2EE 1.4 SDK in my pc.
I want to develop simple servlet,deploy and run.
will you please give me some websites ,link of tutorial,documentation to write a simple servlet and deploy in j2EE 1.4?
Thank you so much

Hello David,
The problem seems to be with,
MBeanServer mbeanServer = MBeanServerFactory.createMBeanServer();
This does not get the MBeanServer that weblogic server uses. Try getting
the MBeanServer from MBeanHome and register your MBean in this server.
Check out
http://e-docs.bea.com/wls/docs81/jmx/basics.html
to lookup MBeanHome and getting the MBeanServer.
Thanks,
-satya
David Karr wrote:
Like other people reading this group, I'm trying to get started with JMX in WebLogic (8.1) despite the apparent lack of useful information.
I'll eventually be writing an mbean which is intended to run on each managed server (registered by a servlet) which will read and write a particular file on each managed server (contention problems are unavoidable).
In the beginning, however, I'm just trying to build a simple POC, with a servlet that creates and registers a simple mbean. That part was deceptively easy, but I'm not sure I did it right, as I'm not sure of the best way to look at the results of what I did.
I found the "wlshell" tool, which is a jmx client for WebLogic. After my servlet registers the mbean, I tried reloading the wlshell display, but I don't see anything new. I'm sure I'm misunderstanding something (probably in the "ObjectName" constructor).
The "init()" method of my servlet looks like this:
public void init()
MBeanServer mbeanServer = MBeanServerFactory.createMBeanServer();
Sample sample = new Sample();
try
ObjectName objectName = new ObjectName("Sample:name=sample");
mbeanServer.registerMBean(sample, objectName);
The Mbean and impl look like:
public interface SampleMBean
public void setFlag(boolean flag);
public boolean getFlag();
public class Sample implements SampleMBean
private boolean flag;
public void setFlag(boolean flag) { this.flag = flag; }
public boolean getFlag() { return (flag); }

Similar Messages

  • Problem getting simple servlet to run in tomcat

    i am trying to get a servlet to run that is explained in wrox Professional JSP second edition. i am using tomcat as the book explains.
    1. i have created the ch03/WEB-INF/classes directory within the webapps folder in tomcat.
    2. in the classes folder i created the directory
    com/wrox/projsp/ch03/myfirstwebapp.
    3. in the folder myfirstwebapp i have the compiled file
    MyFirstServlet.class
    4. i made sure the code is exactly as in the book.
    5. it states that if i go to
    http://localhost:8080/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet i should get the correct output.
    6. the only way i can get this to work is if i create a web.xml
    file and point it to
    com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet and then in the
    browser i type in
    http://localhost:8080/ch03/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet thus leaving out /servlet in the URL
    7. this seems fine but i would like to get it to work how the book shows which is without having to use the web.xml. am i missing something? do i need to set up anything (eg. a context tag for this app)within the server.xml.
    any help would greatly be appreciated,
    gary bushek

    I don't know how the book you're using instructed you to setup the server but my web.xml simply has the following in it:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    </web-app>
    I'm using tomact 3.2 and am able to run my servlets using
    http://localhost/servlet/package_name.servletName
    you might want to checkout www.coreservlets.com for more help on setting up tomcat.

  • Weblogic error while deplying a simple servlet program

    Hi This is a very simple servlet program.
    I am trying to deploy it on the weblogic server but i get this error as follow
    Unable to access the selected application.
    *javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deployment SPI:260105]Failed to create*
    DDBeanRoot for application, 'E:\AqanTech\WebApp1\myApp.war'.
    I have checked everything, right from my code to my web.xml file. I have used a build.bat file to build my war file.
    PLEASE HELP ME TO SOLVE THIS HUGE PROBLEM OF MINE ?
    Thanks,
    Shoeb

    Hi,
    The J2EE Error code siply suggest that there is something wrong in your Deployment Descriptors...
    Can u please post the XML files available inside your "WEB-INF" directory?
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Unable to deploy a simple servlet using WAR file on Oracle9iAS v9.0.3

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2 (9.0.3)      
    I referred following link to Deploy Applications Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed following steps to deploy WAR file:
    1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
    2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
         <web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web, I have modified file
         <ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
         <web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
    What else could be the problem? Am I placing the war file in wrong place or modifying application.xml or default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your valuable comments on this.
    Thanks in advance.
    Regards,
    Sandesh

    Hi All,
    I am facing problem while deploying a simple servlet
    using WAR file on Oracle 9i App Server.
    I have installed Oracle9iAS J2EE and Web Cache v9.0.3
    on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2
    (9.0.3)      
    I referred following link to Deploy Applications
    Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed
    following steps to deploy WAR file:
    1] I have created a war file by name
    SimpleServlet.war. In SimpleServlet.war, there is a
    servlet by name Simple which prints time at which
    servlet was accessed.
    2] I have modified
    <ora9ias_home>\j2ee\home\config\application.xml and
    added following web module entry:
    <web-module id="SimpleServlet"
    path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web,
    I have modified file
    <ora9ias_home>\j2ee\home\config\default-web-site.xml
    and added following entry:
    <web-app application="SimpleServlet"
    name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP
    Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to
    user. I have verified that SimpleServlet.war is
    extracted to SimpleServlet folder under
    <ora9ias_home>\j2ee\home\applications folder. I found
    that Simple.class is stored under WEB-INF/classes
    folder and web.xml contains correct entry for url
    pattern for servlet Simple.
    What else could be the problem? Am I placing the war
    file in wrong place or modifying application.xml or
    default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your
    valuable comments on this.
    Thanks in advance.
    Regards,
    SandeshHave you restarted you http server and then tried to load it again? Are you using the right port; maybe you have to use port 7778? Check you server settings in the http server instance. Also check your url binding of you application at Farm > Application Server: infrastructurehost > OC4J_instance > Application: appname > Web Module: modulename
    Good luck!
    rgds Thomas

  • Unable to deploy a simple servlet using WAR file

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle 9i App Server. I referred following link to Deploy Applications Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed following steps to deploy WAR file:
    1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
    2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
         <web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web, I have modified file
         <ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
         <web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
    What else could be the problem? Am I placing the war file in wrong place or modfiying application.xml or default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your valuable comments on this.
    Thanks in advance.
    Regards,
    Sandesh

    Hi Juliana,
    Thanks a lot for your suggestion.
    I am sorry if I have posted this message to a wrong forum. This is first time I am posting a message to OTN. I will resend message to J2EE forum as per you suggestion.
    Meanwhile, please note information you asked for is as below:
    I installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2 (9.0.3)      
    Please do reply at the earliest.
    Once again thanks and look forward to hear from you.
    Regards,
    Sandesh

  • Problem compiling simple servlet

    I am trying to compile a very simple servlet.
    When I do, I get the following error message:
    Package javax.servlet does not exist
    I am using the Java 2 SDK, Standard Edition Version 1.3.1.
    I have downloaded the servlet api (zip file servletapi2_1_1win.zip)
    from Sun's site. I unzipped these files in my lib directory; there are two folders,
    one called api and the other called src. Api and Src directories have their own
    sub-folders, javax/servlet/http etc.
    I am using W2K ; I had to create a CLASSPATH system variable in the environment
    variables section of control panel since there was none defined.
    I added the following line:
    C:\jdk1.3.1_01\lib\api\javax\servlet;C:\jdk1.3.1_01\lib\api\javax\servlet\http;
    I also did this for the PATH statement..
    My servlet looks like this:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class howdy extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Hello World </TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<BIG>Hello World </BIG>");
    out.println("</BODY></HTML>");

    Thanks. I was able to figure it out by specifying the
    full classpath
    at the command line, like this:
    C:> javac -classpath
    C:\jdk1.3.1_01\lib\servletapi2_1_1-win.zip\MyServlet.ja
    a
    Apparantly the system doesn't acknowledge the
    environmental variable that
    I created in the control panel; also I have no
    autoexec.bat file...so it
    looks like I have to write out the full path whenever
    I need to compile
    something. Kind of bothersome, but at least it
    works.
    You shouldn't have to do this. What operating system are you using?
    If you are using win2000, winNT or winxp, you should set the classpath in your system environment varialbes. You can also make a config.bat file and put everything in there. Then just run this config.bat file to set up your environment once for every session.
    Here's a file that I have set up on one of our NT machines. I just double click the icon for this file on my shortcut, and it gives me the window where I can compile my java programs.
    Hope this helps.
    Kamran
    =========== File SetJava.bat ============
    set PATH=%PATH%;m:\jdk1.3\bin
    set CLASSPATH=m:\jdk1.3\jre\lib;m:\jdk1.3\jaxp-1.1\jaxp.jar;m:\jdk1.3\jaxp-1.1\crimson.jar;m:\jdk1.3\jaxp-1.1\xalan.jar;.
    cd cis235
    %SystemRoot%\system32\cmd.exe

  • Two questions:  how do Skype and iChat compare for group video?  quality, reliability, cost, etc are important.  2) Is my MobileMe ID what I need to use in the window in making an iChat buddy?  It only says AIM above the window, online tutorial differs.

    Two questions:  1) How do Skype and iChat compare for group video?  Quality, reliability, cost, etc are important.  2) Is my MobileMe ID what I need to input in the window in making an iChat buddy?  It only says AIM above the window, online tutorial differs, saying MobileMe, AIM, GoogleTalk (Jabber) all work. Thnx

    Hi,
    IChat uses better Video Compression than Skype does.
    On a top flight Mac you can send a 640 X 480 pixel frame up to 30 frames a sec.
    Skype can't match this.
    iChat in Video is Peer to Peer. (you can actually Log out of the Buddy list)
    Skype seems to borrow something from everyone's bandwidth to make connections.
    What do you mean by Business account Tracking ?
    iChat Adds (or can add) the First Name, Last Name of your Buddies and create an Address Book Entry
    Whether you mark those cards connected with a  company is up to you.
    (I have heard of issues with earlier version of iChat and the Address Book that "saw" the Company Name as the part of the Name and linking several Screen Names to the one name
    Audio on a Mac using Skype tend to be the same as the streaming needs are less.
    However you have to rely on any PCs audio abilities from PCs which may not be to the same standard.
    Mac to PCs in iChat and AIM can be difficult though.  (It should work but it rarely as simple as Plug and go)
    Skype may suit your needs better on ocassions.
    9:11 PM      Thursday; May 5, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
    , Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Problem running simple servlet on tomcat 4.0

    hi,
    i have setup tomcat4.0 on the server and i am trying to run a simple servlet but it is not working. here is what i have done:
    1. setting the CATALINA_HOME variable to the directory where tomcat is installed
    2. setting the classpath variable to servlet.jar
    3. i am putting the .class fille in tomcat-home-directory/webapps/ROOTS/WEB-INF/classes
    4. i am giving the url as http://localhost:8080/servlet/HelloServlet.class
    but error is given...could you please tell where could i have probably made a mistake
    regards
    preeti

    hi tnguyen1973
    now my servlets are running on the server provided they are kept under /examples/WEB-INF/classes. But now i have my own folder at the same level of examples called Lm which also has WEB-INF/classes. but if i put my servlets here it is giving exception.hope u got me. please, tell me where should i make necessary modifications to get the servlets run from my own folder instead of examples
    thank u

  • How to install servlet classes in order to compile a simple servlet...

    When trying to compile a simple servlet (java file), I get errors having to do with not finding any object of the javax.servlet class. I am using J2SE v.1.4, and from what I know, it does not have built-in support for Servlets-JSP.
    Do I need to install myself the servlet classes (downloaded from Sun's site) in order for my servlet to be able to compile and work under tomcat? And if so, where should I put them? Or is there something else I have to do?
    Thank you in advance for your assistance!

    If you have Tomcat already, the files you require are in:
    (Tomcat4)
    [TOMCAT_HOME]/common/lib/servlet.jar
    or
    (Tomcat5)
    [TOMCAT_HOME]/common/lib/servlet-api.jar
    [TOMCAT_HOME]/common/lib/jsp-api.jar
    This file needs to be added to your classpath when compiling a servlet.

  • PLEASE HELP:not able to load a simple servlet

    Hi,
    I'm new to weblogic server.I'm trying to setup weblogic 510.Everything was
    going fine until I got stuck to this small thing.I'm not able to load a
    simple servlet!.
    I would appreciate any pointers regarding this.Please Help me!!!
    Here is what I tried:
    I have installed weblogic510 plug-in for IIS.I could successfully run jsp
    files.However I am not able to load simple servlets;It gave an exception
    "java.lang.IllegalAccessError: try to access class
    weblogic/utils/classloaders/FileSource from class
    weblogic/servlet/internal/WarClassFinder"
    Details of my configuration:
    WebServer - IIS 4.0
    IIS port=80
    Weblogic port=7001
    I had set it in such a way that all the requests first go to IIS and then
    IIS redirects them to Weblogic.I've followed the steps according to the
    document "Installing the Weblogic ISAPI Plug-in".
    I've registered the servlet in weblogic.properties as following:
    weblogic.httpd.register.hello=examples.servlets.HelloWorld2
    I tested the servlet by URL http://localhost:7001/hello
    Following is the eact text for the exception I got in the WeblogicServer
    window:
    Mon Jul 24 12:13:13 PDT 2000:<E> <ServletContext-General> Error loading
    servlet:
    examples.servlets.HelloWorld2
    java.lang.IllegalAccessError: try to access class
    weblogic/utils/classloaders/Fi
    leSource from class weblogic/servlet/internal/WarClassFinder
    at
    weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.jav
    a, Compiled Code)
    at
    weblogic.servlet.internal.WarClassFinder.getClassSource(WarClassFinde
    r.java:110)
    at
    weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
    ClassLoader.java:381)
    at
    weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
    cClassLoader.java, Compiled Code)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
    loadClass(RecursiveReloadOnModifyClassLoader.java:234)
    at
    weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:146)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
    calClass(RecursiveReloadOnModifyClassLoader.java:109)
    at
    weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
    cClassLoader.java, Compiled Code)
    at
    weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:172)
    at
    weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:146)
    at
    weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:291)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
    java:164)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:99)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:742)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:686)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:247)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:361)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Mon Jul 24 12:13:13 PDT 2000:<E> <ServletContext-General> Servlet failed
    with Ex
    ception
    I dont think there were any problems in the classpath or
    servletpath;Basically WeblogicServer was able to locate the servlet but when
    it tried to load the servlet it gave this exception.
    I would appreciate any ideas/suggestions.
    Thanks,
    Sravan

    Nice to hear it works!
    However, one mistake you have in the configuration you provided:
    You put D:\weblogic\BDL\servletclasses in both CLASSPATH and
    weblogic.class.path, remove it from CLASSPATH.
    Cheers - Wei
    Sravan Thella <[email protected]> wrote in message
    news:[email protected]...
    Hi Michael and Wei,
    Thank you very much for the response.
    My servlet details:
    Name - HelloWorld2.class
    package - examples.servlets
    Location - d:\weblogic\BDL\servletclasses ---- here BDL is my new folder
    where I want to keep my servlets
    My CLASSPATH(environment) settings:
    D:\weblogic\BDL\servletclasses;d:\weblogic\classes\boot;d:\weblogic\eval\clo
    >
    udscape\lib\cloudscape.jar;d:\weblogic\lib\poolorb.jar;D:\java\jre\lib\rt.ja
    r;
    my weblogic classpath settings(set it thru wlconfig)
    D:\weblogic\BDL\servletclasses;d:\weblogic\classes\boot;d:\weblogic\eval\clo
    >
    udscape\lib\cloudscape.jar;d:\weblogic\lib\poolorb.jar;D:\java\jre\lib\rt.ja
    r;
    My weblogic.policy:
    grant codeBase "file:d:/weblogic/-" {
    permission java.io.FilePermission "d:${/}weblogic${/}-",
    "read,write,delete,execute";
    permission java.net.SocketPermission "localhost:1-9000",
    "connect,accept,listen,resolve";
    permission java.awt.AWTPermission "accessClipboard";
    permission java.awt.AWTPermission "accessEventQueue";
    permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
    permission java.io.SerializablePermission"enableSubclassImplementation";
    permission java.io.SerializablePermission "enableSubstitution";
    permission java.lang.RuntimePermission "accessClassInPackage.*";
    permission java.lang.RuntimePermission "accessDeclaredMembers.*";
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.lang.RuntimePermission "createSecurityManager";
    permission java.lang.RuntimePermission "defineClassInPackage.*";
    permission java.lang.RuntimePermission "exitVM";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.lang.RuntimePermission "getProtectionDomain";
    permission java.lang.RuntimePermission "loadLibrary.*";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "modifyThreadGroup";
    permission java.lang.RuntimePermission "readFileDescriptor";
    permission java.lang.RuntimePermission "setContextClassLoader";
    permission java.lang.RuntimePermission "setFactory";
    permission java.lang.RuntimePermission "setIO";
    permission java.lang.RuntimePermission "setProtectionDomain";
    permission java.lang.RuntimePermission "setSecurityManager";
    permission java.lang.RuntimePermission "writeFileDescriptor";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    permission java.net.NetPermission "requestPasswordAuthentication";
    permission java.net.NetPermission "setDefaultAuthenticator";
    permission java.security.SecurityPermission "getPolicy";
    permission java.security.SecurityPermission "setPolicy";
    permission java.util.PropertyPermission "*", "read,write";
    grant codeBase "file:d:/weblogic/BDL/servletclasses/-" {
    permission java.io.FilePermission
    "d:${/}weblogic${/}BDL{/}servletclasses{/}-", "read,write,delete,execute";
    permission java.net.SocketPermission "localhost:1-9000",
    "connect,accept,listen,resolve";
    permission java.awt.AWTPermission "accessClipboard";
    permission java.awt.AWTPermission "accessEventQueue";
    permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
    permission java.io.SerializablePermission"enableSubclassImplementation";
    permission java.io.SerializablePermission "enableSubstitution";
    permission java.lang.RuntimePermission "accessClassInPackage.*";
    permission java.lang.RuntimePermission "accessDeclaredMembers.*";
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.lang.RuntimePermission "createSecurityManager";
    permission java.lang.RuntimePermission "defineClassInPackage.*";
    permission java.lang.RuntimePermission "exitVM";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.lang.RuntimePermission "getProtectionDomain";
    permission java.lang.RuntimePermission "loadLibrary.*";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "modifyThreadGroup";
    permission java.lang.RuntimePermission "readFileDescriptor";
    permission java.lang.RuntimePermission "setContextClassLoader";
    permission java.lang.RuntimePermission "setFactory";
    permission java.lang.RuntimePermission "setIO";
    permission java.lang.RuntimePermission "setProtectionDomain";
    permission java.lang.RuntimePermission "setSecurityManager";
    permission java.lang.RuntimePermission "writeFileDescriptor";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    permission java.net.NetPermission "requestPasswordAuthentication";
    permission java.net.NetPermission "setDefaultAuthenticator";
    permission java.security.SecurityPermission "getPolicy";
    permission java.security.SecurityPermission "setPolicy";
    permission java.util.PropertyPermission "*", "read,write";
    I dont know what is wrong here. In the weblogic.policy file,I tried
    differrent combinations but it never worked.
    I find weblogic documentation for troubleshooting to be pathetic.Notuseful
    at all.Documentation looks
    good to read ;not for practical purposes.I'm not sure whether others have
    similar opinion.
    I'm stuck at this thing for the past few days,I still have lot of work todo
    to purusue our management team to buy weblogic
    but I'm still stuck at this thing.
    Thank you very much for your time.
    Thanks,
    Sravan
    "Sravan Thella" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I'm new to weblogic server.I'm trying to setup weblogic 510.Everything
    was
    going fine until I got stuck to this small thing.I'm not able to load a
    simple servlet!.
    I would appreciate any pointers regarding this.Please Help me!!!
    Here is what I tried:
    I have installed weblogic510 plug-in for IIS.I could successfully runjsp
    files.However I am not able to load simple servlets;It gave an exception
    "java.lang.IllegalAccessError: try to access class
    weblogic/utils/classloaders/FileSource from class
    weblogic/servlet/internal/WarClassFinder"
    Details of my configuration:
    WebServer - IIS 4.0
    IIS port=80
    Weblogic port=7001
    I had set it in such a way that all the requests first go to IIS andthen
    IIS redirects them to Weblogic.I've followed the steps according to the
    document "Installing the Weblogic ISAPI Plug-in".
    I've registered the servlet in weblogic.properties as following:
    weblogic.httpd.register.hello=examples.servlets.HelloWorld2
    I tested the servlet by URL http://localhost:7001/hello
    Following is the eact text for the exception I got in the WeblogicServer
    window:
    Mon Jul 24 12:13:13 PDT 2000:<E> <ServletContext-General> Error loading
    servlet:
    examples.servlets.HelloWorld2
    java.lang.IllegalAccessError: try to access class
    weblogic/utils/classloaders/Fi
    leSource from class weblogic/servlet/internal/WarClassFinder
    at
    weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.jav
    a, Compiled Code)
    at
    weblogic.servlet.internal.WarClassFinder.getClassSource(WarClassFinde
    r.java:110)
    at
    weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
    ClassLoader.java:381)
    at
    weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
    cClassLoader.java, Compiled Code)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
    loadClass(RecursiveReloadOnModifyClassLoader.java:234)
    at
    weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:146)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
    calClass(RecursiveReloadOnModifyClassLoader.java:109)
    at
    weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
    cClassLoader.java, Compiled Code)
    at
    weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:172)
    at
    weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:146)
    at
    weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:291)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
    java:164)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:99)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:742)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
    textImpl.java:686)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:247)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:361)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,Compiled
    Code)
    Mon Jul 24 12:13:13 PDT 2000:<E> <ServletContext-General> Servlet failed
    with Ex
    ception
    I dont think there were any problems in the classpath or
    servletpath;Basically WeblogicServer was able to locate the servlet butwhen
    it tried to load the servlet it gave this exception.
    I would appreciate any ideas/suggestions.
    Thanks,
    Sravan

  • Is there an online tutorial for IPhone 4?

    Is there an online tutorial for using the IPhone 4?  I just got one and could use some help to get started with it.

    http://www.apple.com/support/iphone/

  • To all people who read java2 in 21 days/ the java online tutorial

    Hello. Basically, which one is better? It's easier for me to learn something when i actually do it, more than when i just read about it or see what happens. So based on that, which one would be better (if the java online tutorial has more stuff, I can still buy the professional 21 days one). Thanks a lot.

    The tutorials at this site are nice. If you want a book, I suggest popping into a book store and browsing to find one you like. Some like Deitel and Deitel, some like Ivor Horton's books, some can get away with Java in a Nutshell.
    Find one you like, get a nice text editor like PFE, and have fun.
    Good luck.

  • Best Free Online Tutorial?

    What is the best free online tutorial that you guys/gals know of for beginners?
    Thanks in advance,
    RxN

    Aw for christs sake I know how to search for a
    friggin tutorial... I thought the people here might
    know which ones were better than others...That's why I provided you with a link that would show you some of the answers others have gotten when they asked for the best tutorial. Just copy that link into the address bar of your favorite browser and you can see what the people on the forum thought was the best tutorial. You dont' have to search. I have done it for you and analyzed the results to maximize your efforts here on the forum. If you want, I could restrict the results to only the threads which were posted in the last month so that you will get more up to date information. I could even go out and see if any tutorials have been put online in the past few days in case there is some really new and up to date information you might miss with the tutorials the people here have provided.
    I live to serve.

  • Javascript void 0 error when I try to run animation in an online tutorial

    I am using Firefox 4 and I am trying to take an online tutorial on Excel 2003. The website is:
    http://office.microsoft.com/en-us/training/
    When I try to click Play so the animation shows me the example, nothing happens and all I see at the bottom of the screen is the javascript void 0 message. Also, when I try to run the practice test, I get the error that Firefox does not allow Active X controls. I checked the Tools options to ensure that java is enabled, but still no success. What can I do? I look forward to your advice.

    Hi All,
    I narrowed it down by running a report excluding working journals and that worked fine.
    This was being caused by an invalid working Journal. I exported all journals from Prod, and tried loading them to test. One of the errors was
    "Line: 7736, Error: Invalid parent.child entity dimension specified"
    Looking at the row the journal did not have an entity specified for one of the lines.
    When a valid entity was specified the journal report then starts working.
    Lesson. Check all journals are valid. To find error, load journals export in a different environment.
    Thanks all for your help.
    Regards
    Vivek

  • Simple servlet help - please

    I am trying to write a simple servlet that based on the client ip redirect to a new page.
    I can get the client ip and return it. But what I am not sure how to do next is to take that ip address and search through the text file and return the second field (i.e abc.html)
    I have setup a text file that is tab delimmited that looks like the following:
    XXX.XXX.XXX.XXX abc.html
    XXX.XXX.XXX.123 apps/index.html
    Any suggestions greatly appreciated.

    A simple solution:
    Format your file correctly and use it as a properties file.(Take a look at the Properties Class: http://java.sun.com/j2se/1.4/docs/api/java/util/Properties.html )
    To check the values, load your file as a Properties:
      public static final String PATH_OF_THE_FILE = "textFile.properties";
      private Properties props;
        InputStream sFile= null;
        try
          sFile= ClassLoader.getSystemResourceAsStream(PATH_OF_THE_FILE );
          props = new Properties();
          props.load(sFile);
          sFile.close();
        }catch(Throwable t){...}..and ask for the property you need:
    String value= props.getProperty(theIP);Another solution would be to load your ip/url pairs into a static HashMap (check HashMap class: http://java.sun.com/j2se/1.4/docs/api/java/util/HashMap.html )
    HTH

Maybe you are looking for