Changing root directory of JSDK server

Hi There!
I am running my servlet using JSDK 2.1. To run my servlet, I copy my class file to
C:\jsdk2.1\examples\WEB-INF\servlets and could call my servlet using the URL
http://localhost:8080/examples/servlet/classname.
Now I want to create a subfolder/package(ex. mypackage) in c:\jsdk2.1\examples\WEB-INF\servlets and invoke the URL: http://localhost:8080/examples/servlet/mypackage/classname
then it's not working. The error is Error 500 (wrong name). Is there a way I could make
it work or is there a way to change the root directory?
Please help....it's urgent!!!
Thanks in advance!!!

actually u should the parameter in the web.xml file, maybe like this:
<servlet>
<servlet-name>alias</servlet-name>
<servlet-class>mypackage.classname</servlet-class>
</servlet>
then you could call your servlet usint the url:
http://localhost:8080/exampes/servlet/alias

Similar Messages

  • Setting up class root directory for application server

    Hi all,
    When i try to deploy my Ejnterprise java bean in sun one application server i get ar error dialog box " plz consult online assistance for setting class root directory" while loading the class files.I tried online but in vain.Can any one tell me how to set up the class root directory in sun one app server platform edition 8.
    But i had many other beans b4.suddenly m encoutering this problem from past 2 3 days.Kindly help me.
    Waiting for ur replies!
    Thanks,
    Akshatha

    Hi Eric and Jennifer
    A couple of answers to your questions:
    1. LC Forms is just an API - you have to build your own web application (or some other type of application) if you want your users to be able to interact with PDF forms.
    2. You can use Eclipse to build web applications. It's just one of many tools for doing so, but it's a fantastic development environment, and it's free.
    3. Lomboz no longer exists. It has been integrated directly into Eclipse as one of the sub-projects, "WebTools". The easiest way to install web tools is via the Callisto "packaging". This makes sure that you get all the right versions of everything you need. See:
    http://www.eclipse.org/callisto/
    4. The tutorial mentioned still provides some useful information, although names have been changed.
    5. There are lots of books about developing Web Apps in Java, using servlets or JSP.
    6. FormsIVS is just a small sample application that allows you to test rendering or prepopulating a form. It's not intended as an end-user product.
    7. If you're interesting in some assistance, we do provide training, mentoring, and turnky application development. Send an email to info "at" avoka.com if you want more info.
    Good luck...
    Howard
    http://www.avoka.com

  • Why does time machine back up change root directory of software?

    about a year ago i did a time machine back up of my old macbook pro, then when i came to use a piece of software (native instruments-traktor) it said the root directory had been changed and it couldnt find the file. i had to remove the whole program from my mac and redownload it. then since then had no problems.
    now ive just purchased a new macbook today and wanted all my old files and software on it so i did a migration expert with time machine. it seems to have bought most things over.....a few files are missing from logic but again when i went open traktor, again it said root directory changed,,,im not to good with these root directorys so havent got a clue what to do so again ive had to remove the program and redownload it which is a bit of a pain.
    any ideas why time machine changes it??

    I'm also puzzled because it continually wants to back up some 15MB or more when I've changed nothing
    Suggest that you download and install BackupLoupe to find out exactly what is being backed up on each pass.
    soma-zone: BackupLoupe
    If you want to change the backup frequency of Time Machine, an application like Time Machine Editor will allow you schedule backups whenever you like. But, you may not need to do this if you can figure out what might be causing the first issue.
    TimeMachineEditor
    If you ever decide to delete Time Machine Editor, be sure to change the backup frequency back to hourly before you delete the application.

  • Changing root directory {subject and body edited by moderator}

    How do I change it to a new location to support two different web sites (root directory CS6)?

    I'm thinking you might mean two http addresses (www.yoursite1.com and www.yoursite2.com) while using the same local content. If that's the case, you can't upload to two locations simultaneously with DW. You would need two separate site definitions in DW to upload to two Remote Servers, but if the sites are going to be EXACT DUPLICATES of each other, both site definitions can use the same local root folder and all of the files within it.
    If you're talking about two different sites going to two different servers, you would need to do as Nancy suggests and have two separate local root folders on your hard drive with their own files that you would then set two separate site definitions to go to...
    GS-01: Defining a new site | Learn Dreamweaver CS5 & CS5.5 | Adobe TV

  • Problem Changing the Root Directory of the Default Virtual Host in J2EE 7.0

    Hi,
    I'm trying to change the root directory for the default virtual host in J2EE 7.0.
    i did the following steps in visual admin: services -> HTTP Provider -> Runtime -> Virtual Hosts -> default:
    Root Directory: "D:/usr/sap/<server>/<instance>/j2ee/cluster/server0/apps/sap.com/crm~b2b/servlet_jsp/b2b/root/b2b" (this the correct path to the application)
    Start Page:"z_index.jsp"
    I restarted HTTP Provider Service and the J2EE.
    When I start http://<server>:<port> i get the following error:
    The requested resource /z_index.jsp is not available
    Details:   File [z_index.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
    sap.com/com.sap.engine.docs.examples is the initial default root directory, but i changed it to the correcht path...
    Can anybody help me?
    Yours
    Michael
    Message was edited by:
            Michael Cendon

    Hi,
    hqt200475 wrote:
    Hi,
    I have the Environemt:
    + Linux SUSE 11 + Oracle Enterprise 11.2.0.2
    oracle@stb:~> uname -a
    Linux stb 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxMy Problem is changing the home directory of an existing Standalone-ASM:
    /u00/app/oracle/product/11.2.0/grid_1/I want to move it to
    /u00/app/grid/product/11.2.0/grid_1/My Question: what is the optimal path?
    Optimal Flexible Architecture standard
    All Oracle components on the installation media are compliant with Optimal Flexible Architecture. This means, Oracle Universal Installer places Oracle Database components in directory locations, assigning the default permissions that follow Optimal Flexible Architecture guidelines.
    Oracle recommends that you use Optimal Flexible Architecture, specially if the database will grow in size, or if you plan to have multiple databases.
    /u00/app/oracle/product/11.2.0/grid_1 - Oracle home directory for Oracle Grid Infrastructure 11g for a standalone server, if user owner of installation is "oracle"
    /u00/app/grid/product/11.2.0/grid_1 - Oracle home directory for Oracle Grid Infrastructure 11g for a standalone server, if user owner of installation is "grid"
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/appendix_ofa.htm
    Hope this helps,
    Levi Pereira

  • How to set the server root directory in 10.1.3 ?

    Hi all,
    I've recently migrated from 1012 to 1013. Unfortunately, i'm having problems compiling the .jsp portion of my project. Every .jsp comes up with the error:
    "Error: JSP Files must reside in the server root directory or a subdirectory beneath it"
    Can anyone enlighten me as to where i can change this setting?
    Thankyou for your time.

    That link is to an older version of Jdev. There is no 'Common' section in project properties and no html input path either. There is a 'Project Content' section and within that section there is a 'Web Application' option. However i get "ArrayIndexOutOfBoundsException" whenever i click on the 'Web Application' option. I suspect this is the area where i can configure the .jsp portion of my project. I can't get to it though due to the exception.

  • Has the FTP Root Directory specification changed in CS6?

    I recently upgraded from CS5.5 to CS6 and it appears that the method of specifying the root directory for the remote server has changed. For example I had a root file specification of /htdocs/milehighmgc/ that worked perfectly in CS5.5 both in the Site Manager and when I connected to the server from the Files Panel. After upgrading to CS6 it sttill would connect from the Site Manager but when I tried to connect from the Files Panel I got an error message that said "An FTP error occurred - cannot make connection to the host." I was able to get it to go by adding another / to the root folder definition so that it read //htdocs/milehighmgc/.
    Has anyone out there seen this? Is there a proper syntax that I am not aware of after using this stuff for 3 years?

    No, it hasn't changed, and I've never seen a double-slash at the beginning of the path, either. How odd.

  • Change HAL Automount Root Directory

    I was wondering if it is possible to change the root directory that HAL mounts into.  I would like to change it from /media to /mnt.  The reason is that on my previous server (that I didn't have HAL installed on), I kept all media files (music, videos, etc.) in the media directory, and I liked it that way. 
    I like the fact that HAL is dynamic, that I don't have to manually create the entries in my fstab or anything.  I'm hoping that there is a solution that will do everything automagically.  I did a few hours of searching last night with no luck.  I was hoping somebody could throw me a lead.
    Thanks!
    Last edited by Hardrive (2009-08-06 18:24:43)

    Found this thread that might be relevant. Hope it helps.
    http://bbs.archlinux.org/viewtopic.php?id=40951
    Edit: I just thought to mention: It might be easier for you to install AutoFS or lvman or gnome-volume-manager and mess with those settings instead of messing with the HAL configuration stuff.
    Last edited by majiq (2009-08-08 14:12:08)

  • Computer asking for password to make changes to root directory, system and Library.

    My computer is asking for my password to make any changes to the root directory, system and Library folders, and and sub folders within those. I dont recall it doing this in the past. I am logged in as the Administrator.

    That's normal.

  • SQL Server 2008 R2 Installation Media Root Directory location for XP SP3?

    Where is the SQL Server 2008 R2 Installation Media director?  This question asks during a 'new installation or add features to an existing installation'.  The installation media root directory is not indicated under 'options'.  I trying side-by-side
    installation next to SQL Server 2008 Express Edition. 
    It appears that C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2 (where 1033_ENU_LP, Resources, and x86 dirs are installed) is the installation media root directory, but is is not a valid folder. 
    Also tried copying the 1033_ENU_LP, Resources, and x86 dirs from the C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2 into a directory that I created in c:\2008R2installationDir, and then running setup.exe, but still do not have
    an installation media root dir specified under options.

    There is no DVD; SQLServer2008R2SP2-KB2630458-x86-ENU.exe was downloaded.  This problem occurs when setup.exe is run, after running *ENU.exe to download the files.  Specifying the directory where the
    SQLServer2008R2SP2-KB2630458-x86-ENU.exe doesn't help. 
    >>It doesn't seem like any instances have been installed, yet.  Nothing shows up under Administrative Toos | Services.  Under Start | Microsoft SQL Server 2008 R2 , there are two choices:  Configuration Tools and Documentation&Tutorials.
    Hello,
    What seems to me that you have downloaded SP2 for SQL server 2008 R2(SQLServer2008R2SP2-KB2630458-x86-ENU.exe ).And as you say you dont find any thing under SQL 2008 r2.So i guess that is why SP2 installation is not moving
    ahead.Can you download SQL server 208 R2 setup again and install database engine and ither fetures with client tools.And then you can move ahead with SP2 installation
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Msg server implementation with change in directory tree strcucture

    Hello all,
    Our organization is using directory server 5.1 and messaging server5.2.Our company is going for a change of directory tree structure.Can anybody please tell me whether for this change of directory tree structure we will have to again go for a reinstall of our messaging servers.Is there a way by which present messaging servers can be made to operate with new directory server with revamped directory tree structure.We are not going to upgrade to a new version of either directory or messaging server.

    The "schema 1" that 6.0 supports is the two tree system.
    Schema 2 is single tree. You may be able to go that direction, BUT this road is not well documented. There's really no "schema guide" the way there is for 5.2 and "schema 1".
    You can certainly download and install 6.1, and provisioin some test users, and see what it does.
    The mailstore has had only minor changes gooing from 5.1 to 5.2 to 6.0 to 6.1, and the server should automatically and invisibly upgrade as you go.
    the queue is incompatible, so you will need to clear the queue before you upgrade.

  • Good device to put Instance root directory on a SQL Server 2012 Always On Failover Cluster ?

    Hello, I'm currently testing SQL Server 2012 AlwaysOn Failover Cluster.
    I wonder if I installed it correctly : I installed the software on both server with the instance root directory set to a directory on a cluster shared module.
    The reason why I'm not sure is because, when I wanted to upgrade from SP1 to SP2, I wanted to do it first on the passive node, but it failed for most of the components it had to upgrade. So I first upgraded the active node then failover and upgraded the
    newly active node.
    I installed SQL Server this way because our system admins don't like us to install in on C:\ for their own reasons (maybe backup, or something ...)
    I'm pretty sure there is something wrong. What's your point ?
    Thanks in advance.

    >I wonder if I installed it correctly : I installed the software on both server with the instance root directory set to a directory on a cluster shared module.
    Nope. 
    SQL Server 2012 and earlier don't support data files on CSV volumes (SQL 2014 does).
    And for any version of SQL Server the SQL Server instance directory should not be on a clustered disk.  The Installation is local to each node, so should be on a non-clustered disk.  It may be supported to put the instances in different locations
    on the same clustered disk, but I wouldn't recommend it. 
    Installing the SQL Binaries on C:\ is fine.  If you have another local volume you can also install them there.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • My root directory won't let me connect to the server.

    I have tried numerous times, but it's telling me my access is denied, after I pull the root directory link straight from GoDaddy. All my files upload to the server under a / folder.
    What can I do to get this figured out?

  • How do I get iWeb to publish just the files to my root directory

    Hey all, when I publish my site to my hosting server via iWeb it's just copying the entire folder into my root directory instead of copying the files to the root directory. This is causing my site url to look like this: www.mysite.com/myfolder/ how do I get iWeb to publich the files in the "myfolder" to my server instead of the entire folder?

    I needed to do this while keeping ftp publishing inside iWeb, and so I developed a sneaky solution. I just figured this out, so there may be some extra steps in here. Here goes:
    Find the iWeb application on the computer you are publishing from.
    Control-Click on the application and choose "Show Package Contents".
    In the window that appears, open the folder "Contents".
    Control-Click on the folder "Resources" and choose "Get Info".
    In the window that appears, open the "Sharing and Permissions" drop-down.
    Click the lock in the lower-right corner and enter your password.
    Where it says "Read Only" across from "Everyone", click the arrows and choose "Read and Write".
    Close the "Info" window and open the "Resources" folder.
    Find the "defaultPublishConfiguration.plist" file and change the permissions (repeat steps 4-7 but with "defaultPublishConfiguration.plist" instead of the "Resources" folder).
    Open the "defaultPublishConfiguration.plist" file in TextEdit.
    Find the line "<string>/Web/Sites</string>".
    Change it to "<string>/Web</string>".
    Save and close the text file.
    Restart iWeb.
    Go to your publishing settings and enter the information for your server. Point the "Directory/Path" to the folder above your server's root web folder.
    Set "Site Name" to the name of your server's web folder.
    Make sure that none of the files in your server's web folder have the same name as those iWeb would upload.
    Select File>Publish Entire Site.
    It should now publish your site to "http://www.yourdomain.org/Home.html".
    Hope it works!
    mindoftea

  • ODBC for Rdb files dissolve at root directory now

    Late Dec99, I noticed a change in behavior of Oracle Rdb driver installation files.
    For a couple years, on a Windows 95 PC, when I run the rdbwin95.exe installation program via Start > Run > and specify the -d qualifier, the installation program would first create a Win95 folder inside the current folder location and then create additional folders inside that new folder. Now, it creates the Win95 folder at the root directory, e.g., c:\ level, instead of inside the temporary installation folder.
    Likewise, when I run an older version, rdb32.exe for example, it also dissolves into multiple files, all at the root level, instead of the temporary folder where I had placed it. Rdb16.exe behaves the same way.
    Processing these 2 files can get ugly because it can exceed the maximum number of objects permitted on the c: drive, making new folder creation impossible until the install files are deleted.
    I wonder if there might be some incompatability between the zip program used to create the install files and my current PC software. Each of the PCs I've tried at my location behave the same way, but some PCs at other locations do not, while some do. I just haven't been able to figure out the common denominator.
    The only reason I call this a problem is that I have some s/w installation instructions that walk users thru example screens and it looks like I may need to cover both possible behaviors in my examples.
    Has anyone else seen this problem? Or, have any explanation for it?
    Thanks
    null

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

Maybe you are looking for