Cannot run a servlet in the IDE.

Under which webapps we need to put the file folders of my project.
I cannot run the servlet It gets deployed and
if I try to invoke the servlet using the url name it gives
this error
[30/Nov/2004:17:08:41] WARNING ( 5996): for host 127.0.0.1 trying to GET /appshub, send-file reports: HTTP4142: can't find C:/Sun9/jstudio/AppServer7/domains/domain1/server1/applications/j2ee-modules/project_3/appshub (File not found)
Every time I do a deploy it creates a new instance ../project_1/appshub
second time ../project_1/appshub
please help with this problem..
Vijay

Hi Vijay
You need to create the servlets under WEB-INF->classes tree.
Here is the structure of a simple web module shown in FIle System tab of IDE
-/export/home/JSEApps/MyApp
-- WEB-INF -->classes-->mypackage-->MyServlet
-- MyJsp
Once you created and compiled the servlets like this, right click on WEB-INF folder in the IDE and change the context root property to /myapp . Again right click on WEB-INF and deploy.
Now you can access the servlet with http://server:port/myapp/servlet/ MyServlet
Check the documentation @ http://docs.sun.com/source/817-2334/index.html on how to build web componets.
check this for complete documentation. http://docs.sun.com/app/docs/coll/790.6
Check few samples @ http://developer.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html
Let me know if you need more.
Thanks
Srini

Similar Messages

  • Itunes cannot run because some of the required files are missing?

    This morning when I turned on my computer my itunes was suddenly not working. When I double click the desktop icon to open it up, I get an error message that reads:
    iTunes cannot run because some of the required files are missing. Please reinstall iTunes.
    I searched the FAQ archive and still cannot find an answer to my problem.
    THe last part of the error message says to reinstall itunes, but I cannot even get the corrupt version off. Is there anyway to save the music I have on here? Another user and I have separate iTUnes music, so a great deal of music will be lost, including things recently purchased.

    Thank you so very much. I don't know why I didn't think of that but it is up and running fine now

  • Satellite M70-360: CEekey.eke cannot run because its missing the dll

    I accidentally removed the ekecioctl.dll and now everytime I start my laptop (Satellite M70-360) I get an error message saying that de CEekey.eke cannot run because its missing the dll. Does anyone know where can I download the dll?
    Thanks

    Hi
    The CEekey.exe seems to be a part of the Toshiba E-key utility.
    Therefore you should try to reinstall this Utility to get the keys working again.
    Another hint; did you try to restore the OS to the early time point?
    The XP supports an system restore tool. You can easily set the OS to a early point and the E-key should work again hopefully ;)

  • The Java load in database SID / hostname has not been configured yet. You cannot run an installation from the System Copy folder with this load

    Dear Gurus,
    We are facing the below issue when performing a homogeneous system copy of NW 7.0 system using backup/restore method for DB6 system.
    The Java load in database <SID>/<hostname> has not been configured yet. You cannot run an installation from the System Copy folder with this load.
    We went through the SAP Note http://service.sap.com/sap/support/notes/2049842, and followed the same but no luck.
    We updated the Kernel to the latest, but still no luck.
    Request for your quick help as we have to complete it by EOD today.
    Thanks a lot in advance.
    Best Regards,
    Anuj

    Hello Ashutosh ,
    Thanks for your reply.
    We have gone followed the below sequence:
    SCS Installation
    Database Instance Installation using backup/restore method
    CI installation. -> getting error, when we provide the Java Components DVD.
    Best Regards,
    Anuj

  • Cannot run a servlet using Tomcat. Urgent

    I have a webapplication which uses some jsp's and servlets. The jsp pages work fine when I use
    http://hostname:8080/MyWebapp/Filename.jsp
    However, when I developed a java servlet and put the class file in WEB-INF/classes directory of my web application and tried to access it.
    I got a resource not found error.
    The strange thing is that when I put the file in the web-inf/classes folder of examples webapplication (which comes with Tomcat) I am able to run the servlet using
    http://hostname:8080/examples/servlet/Class file
    I am not sure what is wrong.
    Can someone help me.
    Thanks in advance
    Vamsi.

    It's predictable. The Servlet and JSP specifications mandate that you cannot directly access resources under WEB-INF directory. You have to set up servlet mapping configuration in your web.xml to specify how to access the resources, both Servlet and JSP, there.
    When you copied your files in a demo webapp of Tomcat, the web.xml of the demo app already set up the mapping like following for you. So you could use http://hostname:8080/examples/servlet/Class to visit the servlet.
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    The default setting since Tomcat 4.1 turned off servlet invoker in web.xml under conf directory. You can uncomment the above lines in this file to turn it on. Then you are able to visit your servlet without <servlet-mapping> configured using the following syntax,
    http://hostname:8080/<your_app_name>/servlet/<your_servlet_name>

  • Cannot run Simulink dll at the same time as running real-time target VI

    Hello
    What I am trying to do is run a model dll created in Simulink to control some servo's through a CompactRio 9014. 
    At the moment I have managed to create three VIs
    1) In the FPGA target that performs the PWM on a desired channel
    2) That takes the value of a network variable which contains the position required and feeds that to the 1st VI
    3) A VI that runs on the host computer that modifies the value of the network variable to change the position
    I can get these three VIs working and the servo controlled, but when I try to update the value of the network variable using the simulation, by deploying the simulation to the RT target and running it, it says
    'Access denied: This target is already in use by another project or host computer.'
    I assume as this is because the project is already connected to the cRio, so I disconnect and am able to deploy the model files. 
    However when I try to run one of the VIs in the RT Targer along with the simulation I get the error:
    'This VI is downloaded on the target but is not present in the project you are attempting to deploy.  All VIs on the target will be closed unless you choose to add the missing VI to the project.'
    With a large number of missing VIs...
    Would I be doing this wrong, i.e. is there a much simplier way to control the FPGA inputs using the simulation, or is there something I could have missed?
    Thanks
    Geoff
    Solved!
    Go to Solution.

    Hi Geoff,
    It seems that you are on the right track except for some concepts that I
    want to review:
    A CompactRIO or cRIO has 3 different components:
    1)     
    Real-Time controller (in your case a 9014)
    2)     
    FPGA backplane (this could be a 9102, or a 9103, 910x,
    etc)
    3)     
    I/O modules (like a 9401, 9263, etc)
    When you write an application for cRIO you usually have three different VIs:
    1)     
    Host VI – This VI is used as a user interface and runs in
    Windows (under “My Computer” in the LabVIEW project) This VI is optional because
    you might want to run the cRIO headless.
    2)     
    RT VI – This is the VI that runs in the cRIO controller
    (in your case the 9014).  This VI lives
    under the cRIO target in your LabVIEW project. 
    3)     
    FPGA VI – This is the VI that runs in the cRIO
    backplane like a 9102.  This lives under
    the cRIO >> FPGA target in the LabVIEW project.
    The ONE application that I was talking about in my last post is for the RT
    VI.  There can only be one RT VI that
    gets deployed.  If you want to run
    multiple VIs in the cRIO RT, then you need to run those VIs as subVIs of one
    top level VI.
    LabVIEW Simulation Interface Toolkit (SIT) has a tool called the SIT
    Connection Manager that creates two of these three VIs for you (the RT and the
    Host VIs).
    Please refer to the following link about the SIT Help.  Go to the How To section.  It is organized in a kind of step by step
    tutorial.
    http://zone.ni.com/reference/en-XX/help/371504D-01/
    In your case it is going to be a bit more difficult because of two things:
    One, you are using a VxWorks target. 
    Two, you want to use your own FPGA VI.
    Let’s address each one of them:
    1)     
    VxWorks target- To use the SIT Connection Manager you
    need to use a DLL not an OUT file, even though you need the OUT file for the cRIO VxWorks target.  The reason is
    that this tool needs to read the compiled model to know what the
    parameters, signals, inports and outports of your model are.  Because the tool runs in Windows you cannot
    open an OUT file (meant for a different OS) so you need to give it a DLL. 
    For this reason you will need to compile your model file into an OUT
    file and a DLL.  Once you give a DLL to
    the Connection Manager and you select your cRIO as the execution target, keep
    doing the rest of the steps as the help says. 
    LabVIEW will identify that you are using a VxWorks target and will
    download the OUT file to the cRIO.
    2)     
    Custom FPGA VI – LabVIEW SIT has some FPGA bitfiles
    (compiled FPGA VIs) that it can use. 
    When you open the SIT connection manager and go to the Hardware IO
    mapping section it asks you to select the bitfile.  If you want, you can select one of the
    shipping bitfiles but iIf you
    want to use your own, then you will need to do some changes to your FPGA VI , recompile it and
    save the bitfile in a specific location with a specific name.
    Please refer to the following link for
    instructions on how to create your custom FPGA VI:
    http://zone.ni.com/reference/en-XX/help/371504D-01/lvsithowto/sit_h_custfpga/
    What I would suggest is that you start with a very simple example and using
    one of the shipping bitfiles.  Look into
    the following path for a very simple Sine wave generation example:
    C:\Program Files\National Instruments\LabVIEW 8.6\examples\Simulation
    Interface\Sine Wave
    Because you are running a VxWorks target you will need to recompile this
    example model sinewave.mdl to an OUT file.
    To get a better understanding of what SIT does you might
    want to check some quick videos. Go to
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/11763  and under the
    resources tab there are two videos called Demo - <something>...
    Hope this helps and let me know if you have more questions.
    Ricardo
    National InstrumentsSystems Engineering

  • This laptop cannot run Flash video on the BBC website

    On this Vista laptop, I try to watch video of the Japan earthquake on the BBC website. But each video just shows a momentary red swirl, and then stays black.
    I have the identical problem on FF4.0RC, and there I can also run it in 'Safe Mode', with all addons disabled. With or without addons, it behaves the same as 3.6.15; no video.
    However, on the W7 laptop beside the Vista one, everything is fine, and the video runs in all three combinations there.
    The Vista laptop will show Flash video from YouTube perfectly OK, so it seems to be something to do with how the BBC site presents video.
    However, as the W7 laptop has no problems with the BBC site, it seems to be some configuration issue on the Vista laptop, rather than a general Firefox or BBC problem, or indeed, anything to do with my broadband set-up. (I'm guessing it's more subtle that just Vista vs. W7 here, as there are many other differences between the two laptops).
    I have watched video on the BBC site in the past, but that was a few Firefoxes ago. I also note the BBC videos will not run in IE8 on this laptop at the moment, though they are fine on the W7 laptop in IE9 (though I don't think the 9 has anything to do with it)
    Has anyone any suggestions as to what might be stopping the Vista laptop from showing the BBC videos?

    BBC iPlayer relies on Adobe Air. AIR 1.5.3 is the last version of AIR that supports Mac PowerPC and Windows 2000. AIR applications that require AIR 2 or later cannot be installed or used on a Macintosh PowerPC or a computer running the Windows 2000 operating system.
    http://kb2.adobe.com/cps/853/cpsid_85304.html
    I am in the same boat. I cannot watch flash videos on the BBC website or on BBC iPlayer, although all other flash videos (YouTube for example) are fine.
    For reasons that passeth all understanding, they work with the PPC version of Firefox, called TenFourFoxG5.app, once you have anabled plug-ins, as it does not natively support Flash.
    You can download TenFourFoxG5 from here:
    http://www.floodgap.com/software/tenfourfox/
    Now for the intersting bit: TenFourFox, like Firefox, does not support most plug-ins. Unless you are prone to headaches (in which case don't) you can read about that here:
    http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    But there is a workaround!
    Open TenFourFox and type in the address bar: about:config (no spaces) and click return. This gives you a warning that it might harm the application. Ignore that and click on 'I'll be careful, I promise' and you get the config file that you can edit - with great care.
    Look/search (scroll down) for: tenfourfox.plugins.enabled
    Set it to true. (Double click it to toggle it)
    Now close TenFourFox, open it again, and Flash will now work, as it now uses the plug-ins that Safari has stored.
    I am using Flash 10.1.102.64 in TenFourFox and it works just fine.

  • Tomcat 4.0 can run example but cannot run my servlet!

    I can run examples (both servlet and JSP) under Tomcat.
    Now I have servlets class file in
    C:\jakarta-tomcat-4.0.1\webapps\vpsystem\WEB-INF\classes\agent\bookmark\BookMark.class
    but I cannot see "http://localhost:8080/vpsystem/agent/bookmark/BookMark" in IE.It tell me no resource found.
    It's the matter of web.xml?It's the matter of server.xml?Or any another?
    Please someone help me out.
    Thanks!

    Maybe both. You should show how you have configured the web application in server.xml and the servlet in web.xml in order to be able to help you

  • Cannot run my servlets

    Hi.. does anybody know which are the jar files I should have in my lib folder in order to run servlets in an application under Sun App SERVER 7....????? I get an 503 error type message "<servlet_file> is not available"... help here please...!
    Thanks a lot.

    503 Error code description (Internet source):
    This is equivalent to Internal Error 500, but in the case of a server which is in turn accessing some other service, this indicates that the respose from the other service did not return within a time that the gateway was prepared to wait. As from the point of view of the clientand the HTTP transaction the other service is hidden within the server, this maybe treated identically to Internal error 500, but has more diagnostic value.
    I think the problem with your case is that the Servlet Engine is shutdown or did not start properly. You should have the Servlet.jar in your lib directory for proper functioning of Servlet engine.
    Thanks and regards,
    Pazhanikanthan. P

  • TS2294 iTunes cannot run because some of the required files are missing.  Please reinstall iTunes.  I have reinstalled several times but the problem persists.

    Does anyone have a suggested solution?

    No you will not lose your content reinstalling iTunes.
    Do this:
    1: Download and run the Registry Cleaner of the free Ccleaner.
    http://www.piriform.com/ccleaner/download/standard
    2: Next follow this Apple document to un-install iTunes
    http://support.apple.com/kb/HT1923
    3: Just for good measure, run Ccleaner again
    4: Reinstall iTunes.
    5: Come back here and click my "Correct answer" button.

  • Running shell scripts under the IDE

    I have found where to set the path when running an executable:
         Tools
         Options
         C/C++ Settings
    has a Current Path (which doesn't have /usr/local/bin which I would like
    it to have).
    However, that path doesn't seem to govern running scripts which I do by
         choose file in "Important Files" in Projects window
         right-click to get menu
         choose Run from this menu
    nor can I find any way to do that. Unfortunately, I get too many hits
    in Help search to track anything down in the online docs.

    Thanks to both people who answered.
    You both gave me useful workarounds to my problem.
    Renaming the scripts to be 'foo.command' was very hepful and useful to know. I tried this and it does indeed work. I may use this in the future.
    I also had a play around with applescript and the automator to achieve similar results.
    I agree that double clicking to run the file and also edit it is mutually exlcusive - I'm sort of trying to work out how I could make it do 'either/or' as I choose. In the Windows world i'd have the option of setting 'open' to run the script (assuming I'd got cygwin installed and had assiciated it) OR 'Edit with vim' if I wanted to edit the file (assuming vim was installed!).
    Unresolved issue is that I'm still unable to get VIM to be associated with a .sh file.
    The way I would envisage it working in Mac world would be to be able to right click on foo.sh -> Open with... and have a list to select from immediately there like..
    Text Edit
    Vim
    Terminal (default)
    and be able to somehow add and remove apps from the list and change which is the default.
    My issue is that I don't seem to know how to get other apps than TextEdit to appear in the list - I suspect I need a better understanding of how these file/application associations work and are configured.
    Regards
    Mark

  • Itunes cannot rune because some of the required files are missing..

    What do I do to not lose all my songs..

    Thank you so very much. I don't know why I didn't think of that but it is up and running fine now

  • How to run a servlet  at the same time when server started

    we are using tomcat server pls tell me clearly it's urgent

    Clearly you're also annoying. Fourth thread, same topic.
    http://forum.java.sun.com/thread.jspa?threadID=724541&messageID=4176289#4176289

  • JavaCC - how to run within the IDE?

    Hi,
    I'm trying to run JavaCC from within the IDE but it always gives me this error:
    java.lang.NoClassDefFoundError: COM/sun/labs/javacc/Main
    When I run it from the command line it's fine - I just have to set the classpath to point at my javacc.jar. So I've mounted javacc.jar in the IDE, but no joy :-(
    I'm not very familiar with Ant so it could be something to do with that. This is my build.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="Test" name="Test">
    <target name="Test">
    <javacc buildparser="true" buildtokenmanager="true" forcelacheck="true" ignorecase="true" javacchome="c:\javacc-3.0" lookahead="2" sanitycheck="true" target="Test.jj"/>
    </target>
    </project>
    Can anyone help?
    Thanks,
    Ciaran

    What version and build number of the IDE are you running?

  • Can compile but cannot run.

    Dear Java Guru,
    Wish to find out why I can compile but cannot run. I encounter the following error: 'Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/JAI
    at saveasone.<init>(saveasone.java:29)
    at saveasone.main(saveasone.java:21)'
    This does not happen on one PC but happened on another PC.
    The one can compile is XP, the other which cannot compile is Win2k Professional. Is there any other possible cause ?
    Please advise.

    The problem probably lies in the Classpath. I think you are using different environments for compiling and running. If you are using an IDE for developing your code, you might have set the classpath correctly there but not in the executing environment. As about the OS's you mentioned, I think the problem is still with your Environment Settings than OS settings.

Maybe you are looking for