Basic servlet problem plz help me

HI all,
I have installed apache tomcat 5.5 server and set the class path to servlet-api.jar. in environment variable in Edit user variables ----->
.;C:\Program Files\Java\jdk1.5.0_01\jre\lib\rt.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar
and i have created a helloworld program :-" FirstSer.java"
import javax.servlet.;*
import java.io.*;*
public class FirstSer extends GenericServlet+
+*{*+
*     public void service(ServletRequest req, ServletResponse res) throws ServletException,IOException*
+*     {*+
PrintWriter pw=res.getWriter();+
*      res.setContentType("text/html");*
*      pw.println("<html><body bgcolor=red>");*
pw.println("<font size=6 color=white >");+
*      pw.println("hello good morning");*
*      pw.println("</font></body></html>");*
and i've throwed the DOTCLASS in classes folder
and the WEB.XML in WEB-INF folder
+<servlet>+
+*<servlet-name>FirstSer</servlet-name>*+
+*<servlet-class>FirstSer.class</servlet-class>*+
+*</servlet>*+
+*<servlet-mapping>*+
+*<servlet-name>FirstSer</servlet-name>*+
+*<url-pattern>bunny/FirstSer</url-pattern>*+
+*</servlet-mapping>*+
every thing i have done is that correct .. ?????
BUT still m unable to deploy the servlet prog . Browser is posting 404 error
http://localhost:8080/contextroot/FirstSer
// PLEASE HELP //
and please explain the procedure and architecture of tomcat context root (its a humble request).
THANKS IN ADVANCE .

bunny_aug15 wrote:
BUT still m unable to deploy the servlet prog . Browser is posting 404 error 404 simply means "Page not found". With other words, the URL used is wrong.
Let's take a look to your servlet mapping:
<url-pattern>bunny/FirstSer</url-pattern>So your servlet will only be invoked if your URL matches "bunny/FirstSer".
Let's take a look how you composed the URL:
http://localhost:8080/contextroot/FirstSerThat indeed doesn't match. Therefore the 404.
Solution? Obviously change the url-pattern or invoke it the right way.

Similar Messages

  • Audio Clip problem plz help..

    There is some problem with my code. It is actually for simply playing a wav file.
    It gives errors on two lines....
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class MediaPlayerDemo extends JFrame
         AudioClip clip; //Error Here
         public MediaPlayerDemo(String title)
              super(title);
         clip = getAudioClip(getCodeBase(),"access.wav"); //Error Here
         clip.loop();
         public static void main(String args[])
              MediaPlayerDemo m = new MediaPlayerDemo("Title");
              m.setSize(400,400);
              m.setVisible(true);
    }

    "Audio Clip problem plz help"
    You have to learn to help yourself.
    Have you done anything to try to fix the errors yourself?
    AudioClip clip; //Error Here
    the error generated here is self-explanatory.
    if you can't fix this, you should get a good book on java basics and start again.
    the other error is also easy to fix.

  • Classpath problem plz help me

    hi!
    i am unable to run my RMI server program .Name of My server class is SumServer.java,it implements SumInterface.java all the files(.class,.java and stub) are at location c:\javaprog\rmi\sum.
    I have not put them in any package.
    value of classpath is
    classpath=c:\jdk1.4\lib;.;c:\javaprog\rmi\sum
    i go in sum folder and run the program
    c:\javaprog\rmi\sum > SumServer
    it gives me following exception.plz help me out.
    Thx in advance.
    Exception occur.Unable to register serverjava.rmi.ServerException: RemoteExcepti
    on occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: SumServer_Stub

    Deepa lakshmi wrote:
    Hi,
    Am new to weblogic.
    Am using the tools are,
    Weblogic8.1 version
    MySql5.0,mysql-connector-java-3.1.12-bin.jar file
    While test configuration of connection pooling am getting the error is "JDBC Driver is not on the classpath".
    How can i solve this problem
    plz help me
    regards
    DeepaEdit the start-weblogic script. Near the bottom, you will see
    lines that create a CLASSPATH for the weblogic server. Add a
    script line that adds the mysql driver to the classpath there.
    Joe

  • Tomcat restarting problem -plz help

    hi,
    Can anybody tell me why do i have to restart the server everytime i change my servlet.
    Kindly help
    Thanks and regards
    neha

    Hi Neha,
    This documentation is from JavaWebServicesDeveloperPack(Evaluation version)
    You will get more details if you can download this pack/tutorial from Java site & install it.
    http://java.sun.com/webservices/webservicespack.html
    Hope this will help you.
    Ajay.
    Manager App HOW-TO
    Introduction
    In many production environments, it is very useful to have the capability to deploy a new web application, or undeploy an existing one, without having to shut down and restart the entire container. In addition, you can request an existing application to reload itself, even if you have not declared it to be reloadable in the Tomcat 4 server configuration file.
    To support these capabilities, Tomcat 4 includes a web application (installed by default on context path /manager) that supports the following functions:
    Deploy a new web application, on a specified context path, from the uploaded contents of a WAR file.
    Install a new web application, which can be anywhere on the server's disks.
    List the currently deployed web applications, as well as the sessions that are currently active for those web apps.
    Reload an existing web application, to reflect changes in the contents of /WEB-INF/classes or /WEB-INF/lib.
    Remove an installed web application.
    Start a stopped application (thus making it available again).
    Stop an existing application (so that it becomes unavailable), but do not undeploy it.
    Undeploy a deployed web application and delete its document base directory.
    Since Manager is itself a web application, it interacts with you using standard HTTP requests and responses. However, it's "user interface" is minimal, because it is intended to be accessed from scripts set up by the system administrator. For this reason, commands are given as part of the request URI, and responses are in the form of simple text that can be easily parsed and processed.
    Future versions of Tomcat 4 will include administrative functionality that is presented in (at least) the following forms:
    As web services, so that Tomcat administration can be easily integrated into remote and/or non-Java mnagement environments.
    As a web application with a nice user interface (built on top of the web services processing layer) for easy Tomcat administration via a web browser.
    In addition to executing Manager commands directly via HTTP, Tomcat 4 includes a convenient set of task definitions for the Ant (version 1.4 or later) build tool. See Executing Manager Commands With Ant for more information.
    Configuring Manager Application Access
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 4, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 4 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    It would be quite unsafe to ship Tomcat with default settings that allowed anyone on the Internet to execute the Manager application on your server. Therefore, the Manager application is shipped with the requirement that anyone who attempts to use it must authenticate themselves, using a username and password that have the role manager associated with them. Further, there is no username in the default users file ($CATALINA_HOME/conf/tomcat-users.xml) that is assigned this role. Therefore, access to the Manager application is completely disabled by default.
    To enable access to the Manager web application, you must either create a new username/password combination and associate the role name manager with it, or add the manager role to some existing username/password combination. Exactly where this is done depends on which Realm implementation you are using:
    MemoryRealm - If you have not customized your $CATALINA_HOME/conf/server.xml to select a different one, Tomcat 4 defaults to an XML-format file stored at $CATALINA_HOME/conf/tomcat-users.xml, which can be edited with any text editor. This file contains an XML <user> for each individual user, which might look something like this:
    <user name="craigmcc" password="secret" roles="standard,manager" />
    which defines the username and password used by this individual to log on, and the role names he or she is associated with. You can add the manager role to the comma-delimited roles attriute for one or more existing users, and/or create new users with that assigned role.
    JDBCRealm - Your user and role information is stored in a database accessed via JDBC. Add the manager role to one or more existing users, and/or create one or more new users with this role assigned, following the standard procedures for your environment.
    JNDIRealm - Your user and role information is stored in a directory server accessed via LDAP. Add the manager role to one or more existing users, and/or create one or more new users with this role assigned, following the standard procedures for your environment.
    The first time you attempt to issue one of the Manager commands described in the next section, you will be challenged to log on using BASIC authentication. The username and password you enter do not matter, as long as they identify a valid user in the users database who possesses the role manager.
    Supported Manager Commands
    All commands that the Manager application knows how to process are specified in a single request URI like this:
    http://{host}:{port}/manager/{command}?{parameters}
    where {host} and {port} represent the hostname and port number on which Tomcat is running, {command} represents the Manager command you wish to execute, and {parameters} represents the query parameters that are specific to that command. In the illustrations below, customize the host and port appropriately for your installation.
    Most commands accept one or more of the following query parameters:
    path - The context path (including the leading slash) of the web application you are dealing with. To select the ROOT web application, specify a zero-length string. NOTE - It is not possible to perform administrative commands on the Manager application itself.
    war - URL of a web application archive (WAR) file, or pathname of a directory, that contains the web application. You can use URLs in any of the following formats:
    file:/absolute/path/to/a/directory - The absolute path of a directory that contains the unpacked version of a web application. This directory will be attached to the context path you specify without any changes.
    file:/absolute/path/to/a/webapp.war - The absolute path of a web application archive (WAR) file. This is valid only for the /deploy command, and is the only acceptable format to that command.
    jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file.
    jar:http://hostname:port/path/to/a/warfile.war!/ - You can also deploy web applications from a remote JAR file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file.
    Each command will return a response in text/plain format (i.e. plain ASCII with no HTML markup), making it easy for both humans and programs to read). The first line of the response wil begin with either OK or FAIL, indicating whether the requested command was successful or not. In the case of failure, the rest of the first line will contain a description of the problem that was encountered. Some commands include additional lines of information as described below.
    Internationalization Note - The Manager application looks up its message strings in resource bundles, so it is possible that the strings have been translated for your platform. The examples below show the English version of the messages.
    Deploy A New Application
    http://localhost:8080/manager/deploy?path=/foo
    Upload the web application archive (WAR) file that is specified as the request data in this HTTP PUT request, install it into the appBase directory of our corresponding virtual host, and start it on the context path specified by the path request parameter. The application can later be undeployed (and the corresponding application directory removed) by use of the /undeploy.
    NOTE - Since this command requires an HTTP PUT request, it is usable only from tools (such as the custom Ant tasks described below). To install a new web application without copying, consider the /install command described below. This command is the logical opposite of the /undeploy command.
    If installation and startup is successful, you will receive a response like this:
    OK - Deployed application at context path /foo
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Application already exists at path /foo
    The context paths for all currently running web applications must be unique. Therefore, you must either remove or undeploy the existing web application using this context path, or choose a different context path for the new one.
    Encountered exception
    An exception was encountered trying to start the new web application. Check the Tomcat 4 logs for the details, but likely explanations include problems parsing your /WEB-INF/web.xml file, or missing classes encountered when initializing application event listeners and filters.
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context path was specified
    The path parameter is required.
    Install A New Application
    http://localhost:8080/manager/install?path=/foo&war=file:/path/to/foo
    http://localhost:8080/manager/install?path=/bar&war=jar:file:/path/to/bar.war!/
    Install and start a new web application, attached to the specified context path (which must not be in use by any other web application). The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. The supported syntax for a URL referring to a WAR file is described on the Javadocs page for the java.net.JarURLConnection class. Use only URLs that refer to the entire WAR file. This command is the logical opposite of the /remove command.
    If installation and startup is successful, you will receive a response like this:
    OK - Installed application at context path /foo
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Application already exists at path /foo
    The context paths for all currently running web applications must be unique. Therefore, you must either remove or undeploy the existing web application using this context path, or choose a different context path for the new one.
    Document base does not exist or is not a readable directory
    The URL specified by the war parameter must identify a directory on this server that contains the "unpacked" version of a web application, or the absolute URL of a web application archive (WAR) file that contains this application. Correct the value specified by the war parameter.
    Encountered exception
    An exception was encountered trying to start the new web application. Check the Tomcat 4 logs for the details, but likely explanations include problems parsing your /WEB-INF/web.xml file, or missing classes encountered when initializing application event listeners and filters.
    Invalid application URL was specified
    The URL for the directory or web application that you specified was not valid. Such URLs must start with file:, and URLs for a WAR file must end in ".war".
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context path was specified
    The path parameter is required.
    List Currently Deployed and Installed Applications
    http://localhost:8080/manager/list
    List the context paths, current status (running or stopped), and number of active sessions for all currently deployed and installed web applications. A typical response immediately after starting Tomcat might look like this:
    OK - Listed applications for virtual host localhost
    /webdav:running:0
    /examples:running:0
    /manager:running:0
    /:running:0
    Reload An Existing Application
    http://localhost:8080/manager/reload?path=/examples
    Signal an existing application to shut itself down and reload. This can be useful when you've recompiled classes on an application that is not configured with the reloadable="true" attribute in its <Context> entry in $CATALINA_HOME/conf/server.xml, or when you've made other changes (such as to conf/web.xml) that are not automatically recognized by Tomcat.
    If this command succeeds, you will see a response like this:
    OK - Reloaded application at context path /examples
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Encountered exception
    An exception was encountered trying to restart the web application. Check the Tomcat 4 logs for the details.
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context exists for path /foo
    There is no deployed or installed application on the context path that you specified.
    No context path was specified
    The path parameter is required.
    Reload note supported on WAR deployed at path /foo
    Currently, application reloading (to pick up changes to the classes or web.xml file) is not supported when a web application is installed directly from a WAR file. It only works when the web application is installed from an unpacked directory. If you are using a WAR file, you should remove and then install the application again to pick up your changes.
    Remove an Existing Application
    http://localhost:8080/manager/remove?path=/examples
    Signal an existing application to gracefully shut itself down, and then remove it from Tomcat (which also makes this context path available for reuse later). This command is the logical opposite of the /install command.
    If this command succeeds, you will see a response like this:
    OK - Removed application at context path /examples
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Encountered exception
    An exception was encountered trying to remove the web application. Check the Tomcat 4 logs for the details.
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context exists for path /foo
    There is no deployed or installed application on the context path that you specified.
    No context path was specified
    The path parameter is required.
    Session Statistics
    http://localhost:8080/manager/sessions?path=/examples
    Display the default session timeout for a web application, and the number of currently active sessions that fall within ten-minute ranges of their actual timeout times. For example, after restarting Tomcat and then executing one of the JSP samples in the /examples web app, you might get something like this:
    OK - Session information for application at context path /examples
    Default maximum session inactive interval 30 minutes
    30 - <40 minutes:1 sessions
    Start an Existing Application
    http://localhost:8080/manager/start?path=/examples
    Signal a stopped application to restart, and make itself available again. Stopping and starting is useful, for example, if the database required by your application becomes temporarily unavailable. It is usually better to stop the web application that relies on this database, rather than letting users continuously encounter database exceptions.
    If this command succeeds, you will see a response like this:
    OK - Started application at context path /examples
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Encountered exception
    An exception was encountered trying to start the web application. Check the Tomcat 4 logs for the details.
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context exists for path /foo
    There is no deployed or installed application on the context path that you specified.
    No context path was specified
    The path parameter is required.
    Stop an Existing Application
    http://localhost:8080/manager/stop?path=/examples
    Signal an existing application to make itself unavailable, but leave it deployed or installed. Any request that comes in while an application is stopped will see an HTTP error 404, and this application will show as "stopped" on a list applications command.
    If this command succeeds, you will see a response like this:
    OK - Stopped application at context path /examples
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Encountered exception
    An exception was encountered trying to stop the web application. Check the Tomcat 4 logs for the details.
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context exists for path /foo
    There is no deployed or installed application on the context path that you specified.
    No context path was specified
    The path parameter is required.
    Undeploy an Existing Application
    http://localhost:8080/manager/undeploy?path=/examples
    WARNING - This command will delete the contents of the web application directory if it exists within the appBase directory (typically "webapps") for this virtual host . If you simply want to take an application out of service, you should use the /remove command instead.
    Signal an existing application to gracefully shut itself down, and remove it from Tomcat (which also makes this context path available for reuse later). In addition, the document root directory is removed, if it exists in the appBase directory (typically "webapps") for this virtual host. This command is the logical opposite of the /deploy command.
    If this command succeeds, you will see a response like this:
    OK - Undeployed application at context path /examples
    Otherwise, the response will start with FAIL and include an error message. Possible causes for problems include:
    Encountered exception
    An exception was encountered trying to undeploy the web application. Check the Tomcat 4 logs for the details.
    Invalid context path was specified
    The context path must start with a slash character, unless you are referencing the ROOT web application -- in which case the context path must be a zero-length string.
    No context exists for path /foo
    There is no deployed or installed application on the context path that you specified.
    No context path was specified
    The path parameter is required.
    Executing Manager Commands With Ant
    In addition to the ability to execute Manager commands via HTTP requests, as documented above, Tomcat 4 includes a convenient set of Task definitions for the Ant (version 1.4 or later) build tool. In order to use these commands, you must perform the following setup operations:
    Download the binary distribution of Ant from http://jakarta.apache.org/ant. You must use version 1.4 or later.
    Install the Ant distribution in a convenient directory (called ANT_HOME in the remainder of these instructions).
    Copy the file server/lib/catalina-ant.jar from your Tomcat 4 installation into Ant's library directory ($ANT_HOME/lib).
    Add the $ANT_HOME/bin directory to your PATH environment variable.
    Configure at least one username/password combination in your Tomcat user database that includes the manager role.
    To use custom tasks within Ant, you must declare them first with a <taskdef> element. Therefore, your build.xml file might look something like this:
    <project name="My Application" default="compile" basedir=".">
    <-- Configure the directory into which the web application is built -->
    <property name="build" value="${basedir}/build"/>
    <-- Configure the context path for this application -->
    <property name="path" value="/myapp"/>
    <-- Configure properties to access the Manager application -->
    <property name="url" value="http://localhost:8080/manager"/>
    <property name="username" value="myusername"/>
    <property name="password" value="mypassword"/>
    <-- Configure the custom Ant tasks for the Manager application -->
    <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
    <taskdef name="install" classname="org.apache.catalina.ant.InstallTask"/>
    <taskdef name="list" classname="org.apache.catalina.ant.ListTask"/>
    <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
    <taskdef name="remove" classname="org.apache.catalina.ant.RemoveTask"/>
    <taskdef name="start" classname="org.apache.catalina.ant.StartTask"/>
    <taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
    <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
    <-- Executable Targets -->
    <target name="compile" description="Compile web application">
    ... construct web application in ${build} subdirectory ...
    </target>
    <target name="install" description="Install web application"
    depends="compile">
    <install url="${url}" username="${username}" password="${password}"
    path="${path}" war="file://${build}"/>
    </target>
    <target name="reload" description="Reload web application"
    depends="compile">
    <reload url="${url}" username="${username}" password="${password}"
    path="${path}"/>
    </target>
    <target name="remove" description="Remove web application">
    <remove url="${url}" username="${username}" password="${password}"
    path="${path}"/>
    </target>
    </project>
    Now, you can execute commands like ant install to install th applcation to a running instance of Tomcat, or ant reload to tell Tomcat to reload it. Note also that most of the interesting values in this build.xml file are defined as replaceable properties, so you can override their values from the command line. For example, you might consider it a security risk to include the real manager password in your build.xml file's source code. To avoid this, omit the password property, and specify it from the command line:
    ant -Dpassword=secret deploy

  • Problem PLZ Help me

    Hi Guys,
    I have a problem to make a developer application Client/Server.
    When i install forms Runtime on the Client`s computer and i open the application, i get the error that he can`t find the menu and the libraries.
    The menu path is for example on my computer F:\s3\Salesmenu
    But on the client it can be a different path an then he can`t find the menu.
    Now the properties for the main form are:
    Menu module f:\s3\Salesmenu
    Initial menu Salemenu
    Does anyone know how to fix this problem for example:
    1) by let the program search for the menu.
    2) .....
    Plz Help
    Vincent

    set your FORMS60_PATH on the client to Formspath;libpath;menupath so it looks in every dir named in the path.

  • Big Problem, PLZ HELP

    So, when i click on the itunes shortcut, which has the same icon as the Apple Software Updater, I get a box that says that iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. I hit send once and sent the error report, and then restarted my computer to see if that would help. It didnt, so, now i cant access itunes this is a major problem cause i have all my songs on this computer. I also tried to plug in my ipod and see if that would make it load.
    I installed iTunes 7.0 on my laptop, the exact same way, and i works on my laptop, but not on my computer.
    PLZ HELP ME

    ok this is what i did when that happened to me. i uninstalled quicktime then went here: http://www.apple.com/quicktime/win.html and reinstalled the latest version :0)

  • Nokia n79 problem Plz Help!

    Hello!My nokia just stuck,or hang in(i dont now english good) but i cant do enything.Evry button just dont work only at start when i write my pi(and somethimes then too).Works only power button.Its weard.Plz help.Somethimes a whole day are no problems somhetimes a whol day.

    hey ivee n everyone else .. i'm facing the same problem.. n i need to fix this problem myself..
    my n79 gets hang constantly nowadays.. i've used this phone for 1 year plus now so warranty's no more..... none of the buttons on the keypad works when it gets hang.. onli the power button is functioning.. now it's gettin worse .. it even hangs before i insert my pincode... i cant sms, call , or anything.. it hangs after i pressed a few buttons..
    so ivee u've fixed ur n79 youself right..? umm.. can u explain to me wat a smallboard is? is that the board at the lower part of the keypad where u can see buttons underneath the white layer? and is that board expensive?
    pls reply asap anyone.. urgent

  • N79 hanging problem plz help....

    while unlocking the keypad of my n79 sometimes the phone gets hanged then i have to take the battery out and then again switch on the phone........plz help me how to get rid of this problem???

    I have also same problem with my Nokia N79, I just cancelled sensor for automatic themes from cover. Just open back cover & stick some paper or plastic cello tape on four hole marks of covers wich r sensor for automatic themes to change colour of back cover same as theme colour. From 2 days I feel my mobile working fine without hanging ! so try it, all the best.

  • Bluetooth connection problem plz help...

    hi everyone, just bought a new pearl 9105. everything works fine and even bluetooth... through which i can transfer data from blackberry to other mobiles(samsung,sony ericsson)... but the problem is i could not recieve data from other mobiles.i should get contacts list from the other mobiles... but due to this problem i couldnt. plz help me out..

    The best way to receive a file from another device via bluetooth is to go to Media, then press Menu, choose Receive Using Bluetooth, waiting for connection will be display, then send from the other device. It should work without hassle.

  • Applet problem plz HELP

    Hi all,
    I have a problem when I am trying to run a jar file from an applet. The jar is for remote desktop application. Jrdp.jar.
    And the Exception is���.
    Exception in thread "Thread-6" java.security.AccessControlException: access denied (java.util.PropertyPermission gnu.posixly_correct read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at gnu.getopt.Getopt.<init>(Getopt.java:617)
    at gnu.getopt.Getopt.<init>(Getopt.java:581)
    at net.propero.rdp.Rdesktop.main(Rdesktop.java:290)
    at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:190)
    can any one suggest me what I have to do???? Plz give your valuable suggestion in that matter. Should I have to do any thing in java.policy file. In that case what would be the syntax and what have allow. If possible plz help me out.
    Thanking you,
    With regards
    Shibaji Sabyal

    Try googling on how to sign your applet. The error you're getting can usually be solved by signing it.

  • Package Problem : Plz help

    I've make two classes named First.java and Second.java in e:\javafiles\test\vg folder
    package vg;
    public class First
              public int m = 100;
              public int n = 200;
    package vg;
    public class Second
              public static void me0()
                   System.out.println("Stupid cant u see the value of m is zero");
              public static void mgrn()
                   System.out.println("Yaar m is greater than n");
              public static void neven()
                   System.out.println("The value of n is Even");
    and a Third class
    import vg.*;
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Now the problem is that if I put the Last.java at e:\javafiles\test and compile it , it works fine but if I put the Last.java anywhere else e.g at e:\javafiles and try to compile it it does not works and gives error
    E:\JavaFiles>javac Last.java
    Last.java:1: package vg does not exist
    import vg.*;
    even if I change classapth variable as E:\javafiles\test or even E:\javafiles\test\vg
    plz help me in this regard

    You need to change where it is trying to find the 'vg' package. So, if your Last.java is in e:\javafiles, then you need to
    import test.vg.*
    e.g.
    import test.vg.*;           // Change this line
    public class Last
              public static void main(String robert[])
                   Second d = new Second();
                   First f = new First();
                   if(f.m==0)
                        d.me0();
                   if(f.m>f.n)
                        d.mgrn();
                   if((f.n%2)==0)
                        d.neven();
                   else
                        System.out.println("The value of n is Odd");
    Alan

  • N95 maps problem plz help me

    please any body can solve my problem?
    i have n95
    when i open gps application
    then on the screen globe is not showning and no maps are showing on screen
    only city names are showed
    and after the closing of map application in apst there are type on screen
    saving maps and data
    but now nothing typed
    plz help me

    i am using latest firm ware
    and using old maps application bcoz new beta 2.0 not showing my accurate position in pakistan
    if i am in my city
    the maps application shows u r 10 km from your city
    but old version give me accurate position...

  • Having JSP problem plz help me

    i make small proj with small DB
    i have java bean to setter and getter of the fields in the table
    so i have this Exception
    Generated servlet error:
    TabelBean cannot be resolved or is not a type
    i search for error but i didn't find it >>>>plz help me

    Did you import the class into the JSP?
    <%@ page import="myPackage.MyClass" %>

  • Ps4 problem plz help ASAP

    ps4 can ON got sound can control but no image and also the color on the top is white...

    Sry for my bad english.... I have try other HDMI but still the same problem. The problem is when I turn on the ps4 the LED on top of the ps4 turn from blue to white. Then when it's started there no image the screen is black, but have sound and I can control it with my controller. I also try to plug in my HDMI from my laptop to the TV and there no problem what so ever.. Plz help :<

  • Report problem plz help

    hi to all
    Using form6i and run in client server. i cant solve this problem please help to all master :
    I have a text item in forms and button. When i type the Customer_Name in text item then all names appears in reports, i want that when i type the name, only that name will appear .
    Please check what is wrong with my code and steps.
    In report wizard, query statement i put "Select * from S_customer"
    then i call the report in forms..
    Report Property pallette:
    Other Parameters=Customer_Name
    Query names=Select * from s_Customer where Customer_Name=:rep(the text item)
    then in forms the button trigger is when button pressed.below is the code:
    declare
    v_Rep varchar2(100);
    repid report_object;
    Begin
    repid := find_report_object('report');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,’s_customer=’||:Dept.rep);
    v_rep := run_report_object(repid);
    end;
    advance tnx to all

    Hi,
    You need to bulid a parameter list.
    This is a code sample to run a report from Forms:
    (Place it on a button when-button-pressed trigger, to run the report).
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    -- this is the parameter list
         pl_id ParamList;
    pl_name VARCHAR2(10) := 'tempdata';
    BEGIN
    -- try to find the parameter list
    pl_id := Get_Parameter_List(pl_name);
              IF Id_Null(pl_id) THEN
                   -- if parameter lsit does not exist
                   -- create it
              pl_id := Create_Parameter_List(pl_name);
              IF Id_Null(pl_id) THEN
              Message('Error creating parameter list '||pl_name);
              RAISE Form_Trigger_Failure;
              END IF;
              ELSE
              Message('Parameter list '||pl_name||' already exists!');
              -- destroy it to clear old parameters
              -- and create it again;
              destroy_parameter_list(pl_id);
              pl_id := Create_Parameter_List(pl_name);
              END IF;
    Add_Parameter(pl_id,'p_customer_name',TEXT_PARAMETER,:customer.cust_name);
    -- add as many parameters as needed
    -- finally run the report passing your parameter list
         repid := FIND_REPORT_OBJECT('report4');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
                   Exception
                        when others then
                        Message('Error running report. '||sqlerrm, acknowledge);
    END;
    Also, you need to create the parameter in your report:
    1.- Open your report on reports builder.
    2.- Find the "Data Model" node, and the "User parameters" node.
    3.- Create a parameter: p_customer_name
    4.- Modify your sql from:
    Select * from S_customer
    TO:
    Select * from S_customer
    where Customer_Name=:p_customer_name;
    If you want this parameter to be optional, check the reports online help on "Lexical References".
    Have fun,
    Hugo

Maybe you are looking for

  • Blackmagic Intensity Pro Delay in AE

    This was not an issue for us prior to CC 2014, but now there is a delay in sync between the HDMI monitor and playback. When selecting monitor 2, there is no delay. Its only when going through the Blackmagic HDMI. In Premiere, there are delay settings

  • Acrobat Distiller 9 Error - Cannot Print PDF

    When I try to print PDFs from any browser or piece of software, try to open Distiller directly, or even scan to PDFs, I receive the following error: Unable to create the temporary folder. Error: 5 - Access is denied. I have had no problems until Mond

  • Flow of values to co-pa

    can anyone suggest me that what exactly will be the flow of values from sd, mm & crm to co-pa

  • Lightweight temperature monitoring app or command ?

    Hello everyone, I game with my Macbook Pro and therefore I like to keep an eye on my temperature. I use to have the iStat Nano widget but it was discontinued and not available on the Apple site anymore. However I can find it on others but I wonder wh

  • ActionListener and Timer

    Hello, please help me. I have a problem with a timer and the actionlistener. here is my code: public String button2_action() { ActionListener listener = new ActionListener(){     int count = 1; public void actionPerformed(ActionEvent e){ count++; Str