Path setting

Hi everyone,
Can anybody helps to answer my question?
1. I put my class file (test.class) in the folder webapps\examples\WEB-INF\classes and it works fine for the url http://localhost:8080/examples/servlet/test. However, if I put the class file in the folder webapps\examples\WEB-INF\classes\folder, it doesn't work for the url http://localhost:8080/examples/servlet/folder/test. Do I need to set something in the conf folder or I typed the wrong url?
2. For the jsp files, it works at the folder webapps\examples\jsp\*. If I put the jsp files in the webapps\examples\WEB-INF\jsp\*, the jsp files won't work. What's wrong also.
Thanks.

Hy,
Hi everyone,
Can anybody helps to answer my question?
1. I put my class file (test.class) in the folder
webapps\examples\WEB-INF\classes and it works fine for
the url http://localhost:8080/examples/servlet/test.
However, if I put the class file in the folder
webapps\examples\WEB-INF\classes\folder, it doesn't
work for the url
http://localhost:8080/examples/servlet/folder/test. Do
I need to set something in the conf folder or I typed
the wrong url?For each package part in your Servlet Class, a Folder must exist.
eg. If your Servlet has package mywork.test,
the Path is : examples\WEB-INF\classes\mywork\test
Your second Url assumes your Servlet has a package folder.
Currently it seams, you haven't set one.
If you add a package statement in your test.class, it should work.
2. For the jsp files, it works at the folder
webapps\examples\jsp\*. If I put the jsp files in the
webapps\examples\WEB-INF\jsp\*, the jsp files won't
work. What's wrong also.
Thanks.All Content under WEB-INF is protected from calling outside of the
Server. Files under WEB-INF are allowed to be called, eg. with
a RequestDispatcher, but not directly with a Browser Request.
Hope, that helps you a bit.
Best regards
jherunter

Similar Messages

  • Won't compile-even with correct path set up

    NEVER MIND - It helps when you don't have a typo in the application. :-(
    Please disregard this post.
    I've read the archives. I actually got everything to work fine on my desktop. I'm now trying to get the "Hello World!" application to compile on my lapttop. I am getting the standard "javac is not recognized . . ." error.
    I've checked my path set up. My javac.exe is in the bin file of the jdk1.6.0_02 folder in my C drive. I have my application in the C drive in a folder "Java"
    c:\Java>javac HelloWorldApp.java
    What am I missing? Yes, I've just started to learn this language and would appreciate all the patience and help I can get.
    Thanks,
    Gizelle
    Message was edited by:
    simplyGizelle

    Hi your classpath is not set when so you can go to the folder(bin) where
    javac.eze is and give the absolute path of the java file you want to comiple.

  • Image path sets ( servername) instead of \\servername

    Due to a hardware meltdown I have had to rip the NW server out of the tree
    and install a new one.
    I have re-installed the server NW65sp8 and reinstalled ZENworks for Desktops
    7
    Now, When I set an imaging job on a workstation I browse to the server etc
    and set the file path.
    When I click apply or ok leave the object and go back in the path has
    changed;
    eg
    (ZFDSRVSR) USER\zenimg\ws_master.zmg
    instead of
    \\ZFDSRVSR\USER\zenimg\ws_master.zmg
    Any ideas on how I fix this?
    Manual imaging works ok. I have deleted the ws object and re imported into
    eDir
    Tom

    I have resolved this.
    >>> On 21/07/2010 at 12:54 p.m., in message
    <[email protected]>,
    Tom Cummings<[email protected]> wrote:
    > This is turning out to be serious ant not server related. I installed a
    > new
    > ZFD7 server into a new container. Setting an image path on using that
    > server reproduces the same problem.
    >
    > Help! :‑(
    >
    >
    >
    >>>> On 20/07/2010 at 9:07 AM, in message
    > <[email protected]>,
    > Tom Cummings<[email protected]> wrote:
    >> Due to a hardware meltdown I have had to rip the NW server out of the
    >> tree
    >> and install a new one.
    >>
    >> I have re‑installed the server NW65sp8 and reinstalled ZENworks for
    >> Desktops
    >> 7
    >>
    >> Now, When I set an imaging job on a workstation I browse to the server
    >> etc
    >> and set the file path.
    >>
    >> When I click apply or ok leave the object and go back in the path has
    >> changed;
    >>
    >> eg
    >>
    >> (ZFDSRVSR) USER\zenimg\ws_master.zmg
    >>
    >> instead of
    >>
    >> \\ZFDSRVSR\USER\zenimg\ws_master.zmg
    >>
    >> Any ideas on how I fix this?
    >>
    >> Manual imaging works ok. I have deleted the ws object and re imported
    >> into
    >> eDir
    >>
    >> Tom

  • How is system PATH set in Solaris 10?

    When I issue "echo $PATH" after starting bash shell, default system paths are displayed. I noticed there is no *.bashrc* file anywhere on the system. Then from which script(s) and in what order are these paths get set?

    bobthesungeek76036 wrote:
    Probably a combination of /etc/default/login and /etc/profile.Today I confirmed. /etc/profile does not set the PATH. /etc/default/login sets only /usr/bin for all users and /usr/sbin for root. But my initial PATH variable contains other paths, too. It essentially means there is some other startup script(s) which influences PATH variable. Moreover, if I create /.bashrc and set the PATH, it overrides the system default path.

  • % opatch apply   $PATH set question

    # % cd 5496862
    # Ensure that the directory containing the opatch script appears in
    # your $PATH;
    % opatch apply
    How i can setup this $PATH? what's the command, ORACLE_HOME & PATH are already set as
    export ORACLE_HOME=/oracle/product/9.2.0.8
    export PATH=$ORACLE_HOME/bin:$PATH

    Put the script somewhere in the existing path. For example at $HOME.

  • PATH setting bug?

    JDeveloper 9.0.3.1035 does not use the path environment setting on windows 2000.
    I 'm using a few java classes that depend on dlls that are on the system's search path, when running my class from the command prompt with java the class will run. Running the class from JDeveloper fails with a java.lang.UnsatisfiedLinkError.
    Any ideas?
    Regards,
    Jelco.

    Sorry, my mistake: it works but I forgot to put some classess on the project's classpath.
    Regards,
    Jelco.

  • LoadLibrary doesn't use java.library.path set at runtime

    I'm trying to set the property java.library.path at runtime so I don't have to drop my .dll in the regular system path for a System.loadLibrary to work. This is the sequence I use in a static initilizer:
    System.setProperty("java.library.path", "C:\\");
    System.loadLibrary("DialButton");
    When I put the file DialButton.dll in C:\ I get an java.lang.UnsatisfiedLinkError, but when I put it in D:\WINNT it works fine. I would expect it to do the opposite because presumably I blew away the real java.library.path when I ran setProperty and it shouldn't know to check D:\WINNT.
    I'm trying to keep my application install clean and use a directory structure that maintains all of the required files without cluttering system directories. I also want to dynamically load JNI libraries for a distributed application after copying them to the local machine.
    Thanks in advance,
    Ryan

    In the bug parade I've heard excuses from Sun programmers that this is a read-only property and isn't supposed to be changed. It probably took them longer to write the reply to the bug than it would have to fix the code.
    I looked at the source code for the ClassLoader and for the source release of the JDK 1.3.1 and here's the code I found in the ClassLoader.loadLibrary() method:
            if (sys_paths == null) {
                    usr_paths = initializePath("java.library.path");
                    sys_paths = initializePath("sun.boot.library.path");
            }It seems it parses and caches the system and user library paths on startup and then never bothers to check them to see if they've changed ever again. I think it would be pretty simple to rewrite that code block by moving one line of code down two lines as this:
            if (sys_paths == null) {
                    sys_paths = initializePath("sun.boot.library.path");
            usr_paths = initializePath("java.library.path");I mean, it's not as if loadLibrary is really performance intensive or even critical enough to bother caching at all!
    This one code change could fix a lot of headaches.
    The particular headache I'm working on is that there doesn't seem to be any support in the Servlet 2.2 or 2.3 specification for JNI files. I'd really love to be able to use a directory like WEB-INF\jni to store libraries that need to be distributed with my web application. I tried to dynamically change java.library.path to include WEB-INF\jni, but alas I ran into the same problem you did, it doesn't work.
    Is is possible for this to be fixed, ever? I think it would take longer to say no and make up a reason why not then it would to actually make the fix... seems a good enough arguement to do it to me.
    And alternately, can we come up with a standard place to put JNI stuff for web applications in the next Servlet standards?
    Thanks in advance!
    -J.C.
    [email protected]

  • Regarding class path setting

    Hi,
    I am new to java How can i Set a class path in my sytem to run java programs and tomcat and ant .
    I declated like below in Environment varialble.
    JAVA_HOME
    c:\javasdk\jdk\jre\ext;C;\javasdk\bin;
    ANT_HOME
    c:\ant\bin;
    CATALINA_HOME
    C:\tomcat\bin;c:\tomcat\common\bin;
    when I am running the startup.bat in commandprompt the it showedd me aan error like this.
    CATALINA_HOME environment variable is not deffined correctly, this environment variable is needed to run thhis proram.
    when I am running the ANT then it showed me an error like this.
    build.xml file does not found. But i Wrote the build.xml file in ant\bin.
    Please let me know the where is sthe mistake. It is very urgent to me.

    I love all these questions that go "I'm really new to Java, so new I don't even know how to set or use a classpath. How do I get my application server to work?"
    Like a first-week med student trying a heart transplant

  • PATH Setting using Runtime.exec() on a UNIX env?

    Hi,
    How do we set the PATH using Runtime.exec() on a UNIX Env?
    I've tried the 'export' command and 'setenv' command but it throws an exception saying 'export' and 'setenv' not found.
    objProcess = Runtime.getRuntime().exec("setenv PATH /opt/ibm/java2-x86_64-50/bin");+
    Please suggest.
    Thanks,
    Tanu

    Your experimenting with the stuff could shed light on the question, whether the outcome is influenced by the relying of the started process on elements of the starting environment other than PATH.
    String[] envp=new String[1];
    envp[0]="PATH=/jdk1.5/bin";
    Runtime rt=Runtime.getRuntime();
    Process proc=rt.exec("java Test",envp);

  • Paths Setting for J2EE

    Hi
    Can anyone help mei solving my problum related to PATH Variable.
    on running J2ee -verbose
    i m geetting....
    ERROR: Set J2EE_HOME to the path of valid j2dskee.
    i have set
    JAVA_HOME=C:\JDK1.3.1
    J2EE_HOME=C:\JSDKEE1.3.1
    But that error....
    Can anyone List me the valid path for j2ee for runnning j2ee server. i have to deploy the EJB
    Thanks Amit

    hi
    reinstalling the both products , now i at the stage where on typing at the MSDOS Prompt
    I m Getting........
    C:\j2ee131\bin>j2ee -verbose
    Bad command or file name
    Syntax error
    Syntax error
    Syntax error
    Java 2 Enterprise Edition Server
    Options:
    -verbose Redirect all logging output to the current shell.
    -help Print this help message.
    -version Print the version.
    -stop Stop the J2EE server.
    Now What Should i Do
    Thanks Amit

  • Wscompail path setting

    hello
    i have a problem with running wscompail how to set path for that

    The best way of running wscompile is to use the Ant task that comes with the JWSDP. The following link shows how to get it up and running:
    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html#2.1

  • Env $PATH setting in Solaris

    how to set env , $PATH etc to make every thing work like OUI, dbca etc
    oracle:tulputildb02$ ./dbca
    ./dbca: uname: not found
    ./dbca: /oracle/product/10.2.0/jdk/jre/bin/java: not found
    oracle:tulputildb02$ uname -a
    ksh: uname: not found
    oracle:tulputildb02$ uname -a
    ksh: uname: not found
    oracle:tulputildb02$ uname
    ksh: uname: not found
    oracle:tulputildb02$ env
    ksh: env: not found
    oracle:tulputildb02$ echo $PATH
    /u01/app/oracle/product/10.2.0.5/bin:
    oracle:tulputildb02$ uname -a
    SunOS tulputildb02 5.10 Generic_142909-17 sun4u sparc SUNW,SPARC-Enterprise

    >
    oracle:tulputildb02$ echo $PATH
    /u01/app/oracle/product/10.2.0.5/bin:
    >
    Your PATH variable has only the $ORACLE_HOME/bin directory. It should typically have the following (on Solaris) at the beginning
    /usr/bin:/usr/local/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/ucb:/usr/ccs/bin
    followed by other directories such as ORACLE_HOME/bin
    HTH
    Srini

  • Critical Path setting

    MS project uses 0 days to determine critical path.  Is this the standard "best practice" setting? 

    Well, it is the default setting.
    All tasks are important but tasks with different properties are important in their own ways. Tasks with 0 total float (MSP calls it "slack") are a good place to start. Of course, tasks with not much float are important too, because if things change by just
    a bit then they will become critical. You can change the definition of critical to suit your needs so, for example you might want to light up the tasks which have < 5 days of float. The particular numbers that you choose will depend on your project and
    the particular circumstances of your query and what you are trying to analyse. You can also group by total float (slack), which is just as good or better than changing the definition of critical.
    Why do you ask?

  • Class Path, Set Path

    Imm new to Java Techology...plz tell me in detail bout how to "Set Class path", ....In Detail...Bye

    To set class path
    we type
    set classpath= c:\j2sdk folder\lib;.;
    set path = c:\j2sdk folder\bin;.;
    setting these both will work out. in this .; ending means the class path will be available throught otu the command prompt where ever which ever folder it is..
    well for setting permanent in the system for win2000 OS
    right click on myComputer icon there from that option you select properties
    then you get a pop up window where you have few tabs in which last one is advanced -- click on it
    then you get there button placed vertically .... in which there is button callled Environment variables
    click on it... you will get an window...
    in that see the user variables box
    In this if there is a variable to see as classpath then append the path of j2sdk folder\lib;.;
    if not present then create a variable and set the name to classpath and value to the pathof folder\bin;
    similalry path in that also if exist then edit it and give path to bin folder of j2sdk folder..
    this will work out for you..
    All The BEst

  • Regarding path setting

    am new to java technology,
    i haf downloaded jdk1.5 in my system, my OS is win XP.
    the respective files are downloaded in D drive.
    now i want to set path for java and make it work, like to make it compile and run the programs.
    i would appreciate for the help.

    1. window+PAUSE break
    2. select advance tab
    3. click environment variables
    4. on the system variable select path then click the dit button
    5. add the path of the bin and lib directory of the jdk installation folder

Maybe you are looking for

  • Report developed in 6i and open and run in 10g, Web Layout is not working

    Hi, Initially reports were developed in Reports 6i now we need to convert into 10g. I just opened the .rdf in Reports10g. Report is successfully running in paper layout and showing the data. But when i try to run the report in Web Layout im getting a

  • Gaps appear in IE 6 browser window for hidden fields in Create User form

    Hi, I need an urgent input on this one. I hid an OIM default attribute for users in the 'Create User' form by modifying clear_all_fields.js The field is hidden from the 'Create User' page fine! But if I open the page from Internet Explorer 6 it shows

  • Safari blocked by Apple alert pop up. Virus?

    on safari security alert popped up applealert.com major cause for concern told me to call a number. A guy answered and said he needed to get into my system to see the issue. I didn't trust it as at 10pm apple support is closed. What do I do? Do I hav

  • Does the Pop-Up Menu causes the Video a small jump to the closest Pop-Up chapter?

    I have setted five Pop-up Chapter Menu for my project but after burning the blu ray, I have notice the vidoe coming close to one of the Pop-up Chapter will a small jump to the pop-up point. It happens to all of the Pop-Up chapter. Is there a way to m

  • TREX unable to index only some files

    Hi All! I've got problem with my TREX (6.1 SP14 running on portal maschine SAP EP 6.0 SP14). I've created some repositories, physically residing on that server's filesystem. It's an WebDAV repository and two CM (FSDB and DBFS). Created an Index. It i