Problem in calling jsp/servlets ...Last Day

when ever I call jsp page from browser, It always search the jsp page in the parent directory of the documentroot directory.
Also I am not able to set the configuration for calling the servlet from my customize laocation. is any other entry needed except specifying the repositry path in zone.properties file.
Please help...........I have not very time left for evaluation of 9ias 1.0.2.0.0
If any one encountered this type of problem. pls respond immediately
I have installed 9ias v10200 enterprise edition with oracle 8.1.6(enterprise edition) as origin database on winnt server 4.0 with service pack 5. At the time of installation I have selected oracle web cache , forms & reports to be configured at the time of installation.
I am using port say 10000 other than default port 80, but on same IP.
I have entered the folling entries at the end of httpd.conf file.
<VirtualHost 192.168.1.120:10000>
ServerName rnd1
DocumentRoot e:/test
DirectoryIndex hi.html
</VirtualHost>
Listen 80
Listen 10000
now when I request "http://rnd1:10000/ClamHome.jsp" from browser, It gives the messege that source file "ClamHome.jsp" not found on path "e:\" which is the parent of my documentroot path. Why it try to search at parent directory of document root????????
another thing is that, when I run the demos of jsp given with 9ias v10200, they works(jsps) fine.
but after running the demo which is on port 80 with documentroot e:\9\Apache\Apache\htdocs,
I again call my ClamHome.jsp at rnd1:10000 then it gives error that file not found at "e:\9\Apache\Apache\htdocs". Strange behaviour, this time it searches on path which I called earlier.
pls help
null

I would try to change "./Welcome.jsp" to "/Welcome.jsp". I'm not sure what that period will do.
Are you able to access that JSP directly from your browser (even if it's not designed to be accessed that way)? If not, then you have some other problem.
When you say you get a 404 when you access the servlet, is that when you access the servlet, or when it tries to forward to the JSP? If you get the 404 when you access the servlet, perhaps your servlet-mapping to the servlet is invalid.

Similar Messages

  • How to call jsp /servlets running in different web application in tomcat

    hello all,
    i have 2 web applications(Charts and Reports) in the same tomcat,i want to call jsp/servlets running in the Reports webapp from Charts webapp.how do i achieve this.
    thanx
    ravi

    You can also use getContext(String context) in the ServletContext class to get a request dispatcher.
    Using the above example it would be :
    // in a servlet in the charts webapp
    ServletContext context = getServletContext();
    ServletContext reportsContext = context.getContext("/reports");
    RequestDispatcher dispatcher = reportsContext.getRequestDispatcher("/path")
    dispatcher.forward(request, response);Just note, that depending on your server's configuration getContext(...) might return null.

  • Problem in calling JSP page from a servlet

    can anyone please tell me how to call a JSP from servlet?
    My code is:
    ServletContext sc = this.getServletContext();
                                                 RequestDispatcher rd = sc.getRequestDispatcher("./Welcome.jsp");
                                                 if (rd !=null)
                                                      try
                                                           rd.forward(req, res);
                                                      catch (Exception e)
                                                           sc.log("---------------Problem invoking JSP.------------------", e);
    I n the browser when i call this servlet it gives error-404.
    NOT Found.
    please help.

    I would try to change "./Welcome.jsp" to "/Welcome.jsp". I'm not sure what that period will do.
    Are you able to access that JSP directly from your browser (even if it's not designed to be accessed that way)? If not, then you have some other problem.
    When you say you get a 404 when you access the servlet, is that when you access the servlet, or when it tries to forward to the JSP? If you get the 404 when you access the servlet, perhaps your servlet-mapping to the servlet is invalid.

  • Problem in calling a servlet from JSP

    Hi,
    I am trying to call Loginservlet from my UserLogin.jsp and the code I used in jsp is:
    <form method="post" action="/LoginServlet name=form1>
    All the components are here
    </form>
    And I have also checked web.xml. It looks like
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>servlets.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServletServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    But still when I submit the Jsp page, I am getting error which says the resource "servlets.LoginServlet" is not available.
    I am using TOMCAT5.0 server and eclipse IDE.

    change
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>servlets.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServletServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>to
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>servlets.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>and check wid
    <form method="post" action="LoginServlet" name=form1>& make sure you have placed LoginServlet.class in <WEB_APP>/WEB-INF/classes/servlet/ folder
    Hope this might help :)
    REGARDS,
    RaHuL

  • IPhone 3G S has dropped over 83 calls in the last day. 3G is the culprit.

    It started yesterday (Oct 3rd, 2009) as a nuisance, but it grew to make my phone not useable.
    The symptoms where:
    iPhone has full bars and the 3G indicator is active.
    1: Dial a call phone waits longer than usual to dial, but gets the call through.
    2: user on the other line picks up long enough to say hello, and the phone does its hated beep,beep,beep after 3 seconds!
    3: cannot receive calls.
    4: try the internet or mail, and you get the connection error. (Obviously we have a network error here!)
    I called 1800 my iphone , and the tech basically told me to do what I had done repeatedly for 5-6 hours.
    1: shut the phone down and re-start. (No kidding, I didn't think of that!) +Did not work+...
    2: hold the power and home button until the phone restarts. +Did not work+
    3: go to settings> general> reset>reset network settings. +Did not work+
    4: go to settings> general> reset>reset all settings. +Did not work+
    5: remove the sim card and re-insert into phone. +Did not work+
    The tech tells me to bring the phone to the Apple Store. Of course there's not an a appointment available for 2 days. (thank god for Skype, even though you need Wi-Fi for it to work, it works!)
    The tech blames my software on my phone, and says that I should restore the phone to factory settings.
    Next, I decide to go a little deeper... Since my phone will not work for the next two days, I decided to do the : settings> general> reset> ERASE ALL CONTENT AND SETTINGS. (You still have your last back-up, but once you start you're in for at least and hours worth of restoration. )
    After the phone restarts from its complete erase, and comes back up as a "new" phone I simply connect it to my laptop just to reactivate it... I re-activate the phone as a "new" phone. (This means theres not one piece of third party software on the phone. This also means the phone doesnt have any settings other than factory setting.
    Confident I call my wife again... "Hi honey lets try this again...beep, beep, beep!!!"
    I just wasted another hour of my life!!!!
    Finished with apple tech support, I call AT&T tech support. I got straight to a customer service rep. She seems competent enough... She asks me whats happening, I tell her. She suggests the following:
    1: Dial #002# and press the call button. The wheel spins for a second, and then you get a screen with a bunch of error messages... She says to ignore all the messages and shut the phone down.
    2: I shut the phone down and wait 2 minutes.
    3: I re-start the phone.
    4: she has me repeat step one again.
    5: I call my wife. I talk to my wife for 35 seconds. Confident that this has worked I hang up with her, and decide to call again. the next cal I get beep, beep ,beep!!
    Ok so I'm in full tech mode now. So I decide to go "old school" and turn 3G off... (Which I should have done way earlier in the game, but I decided to give AT&T the benefit of the doubt. My mistake!!!)
    I go to settings> general> network, and turn the 3G slider to the "OFF" position. (Yep we're back to "E", not empty, but the EDGE network, which is close to empty!!!!) suddenly my phone begins to go on the internet. I start getting the beloved ding (incoming email messages, and voice mails) Hooray for me! Two multi-billion dollar companies couldn't get my phone to work, but I am at least able to get it to work in part, all with my own troubleshooting. +THIS WORKED!!!+ but now I'm on a much slower network. So I guess I can call it the iPhone "E S".
    Although apple has amazing products, they have a mayor flaw. They're freaking stubborn! Here's probably the greatest handheld device out there, but they have bogged it down by putting it on probably the most unreliable network in the US. I've gotten better service in Cancun while roaming... Seriously!
    Just like refusing to have a two button mouse for years, until demand and constant barraging from customers made them add the feature. ( and even then its not a true second "button" on laptops ) I think they are going to do the same thing with the AT&T only thing.
    Apple, you're a bunch of smart, but stubborn people!

    After calling AT&T tech support one more time, and explaining to them that the glitch was on their network, they admitted that the problem was at their tower...
    I continued to use the phone on EDGE mode for two more days until the problem was fixed.
    I even got a call back from a tech support guy asking me if my phone was working properly....
    I wish they would have admitted to the problem before I sat at the apple store for 2 hours.

  • Problem while building jsp/servlet  in j2me

    Hi friends,
    I'm building Servlet in j2me.When i run this Servlet on web browser the Servlet running fine.But while in application when i used
    conn = (HttpConnection)Connector.open( url );
    where url = "http://localhost:8080/servlets-examples/hits"
    It hangs ,the debugger stuck at this method .It didn't throw any Exception also.
    Whats the problem?how could i resolve this issue?
    Note:
    I've used the follwing tutorial
    http://developers.sun.com/techtopics/mobility/midp/articles/tutorial2/
    to build servlet in MIDlet.
    Regards,
    Sachin Warang.

    hi friends,
    I debug the code while doing so i realised that it throwing SecurityException .So edit the preferences>
    where in security i've change it to untrusted and restore the settings.
    After clicking on OK .
    The application works fine.
    Regards,
    Sachin Warang.

  • Calling a servlet

    Hello everyone,
    I have a problem when calling a servlet.
    I have a context called project and a the following login servlet
    <servlet>
    <servlet-name>login</servlet-name> <servlet-class>assessment.servlet.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/login</url-pattern>
    </servlet-mapping>The login servlet prints itself in the get method and has to call it's post method in the same servlet.
    What should I write in the form action = ??? WITHOUT though referencing the context name???
    Writing action="/login" or "../login" doesn't work.
    Ignoring the action makes some jumps to previous servlets
    Thank you

    I'm fairly sure you have to reference the context because without it /login equates to the directory login in the root of your web site.

  • Not able to run Applet after calling JSP with a Servlet

    Dear Java-Community :)
    At first I want to say, that my English isn't the best.. so I hope you'll understand my problem ;)
    I'm running a J2EE-Application, packed in a EAR-File, on my JBoss with following directory-structur:
    /jaw6c/bin
    /jaw6c/build
    /jaw6c/common
    /jaw6c/ejb
    /jaw6c/sql
    /jaw6c/src
    /jaw6c/webapp
    /jaw6c/webapp/build
    /jaw6c/webapp/build/classes
    /jaw6c/webapp/build/classes/com
    /jaw6c/webapp/build/classes/com/jbossatwork
    /jaw6c/webapp/build/classes/com/jbossatwork/ControllerServlet.class<<<<<<<<
    /jaw6c/webapp/build/distribution
    /jaw6c/webapp/build/distribution/webapp.war
    /jaw6c/webapp/build/gensrc
    /jaw6c/webapp/compile-lib
    /jaw6c/webapp/lib
    /jaw6c/webapp/src
    /jaw6c/webapp/src/com
    /jaw6c/webapp/src/com/jbossatwork
    /jaw6c/webapp/src/com/jbossatwork/ControllerServlet.java
    /jaw6c/webapp/web
    /jaw6c/webapp/web/WEB-INF
    /jaw6c/webapp/web/WEB-INF/classes
    /jaw6c/webapp/web/buyCarForm.jsp
    /jaw6c/webapp/web/carForm.jsp
    /jaw6c/webapp/web/carList.jsp
    /jaw6c/webapp/web/copy_darstellungErgebnisse.jsp
    /jaw6c/webapp/web/darstellungErgebnisse.jsp<<<<<<<<<<<<<<
    /jaw6c/webapp/web/default.css
    /jaw6c/webapp/web/diag.jar
    /jaw6c/webapp/web/diagram.class<<<<<<<<<<<<<<<<<<<<<<<<
    /jaw6c/webapp/web/error.jsp
    /jaw6c/webapp/web/index.jsp
    /jaw6c/webapp/web/selectBewertungslaeufeList.jsp
    /jaw6c/webapp/build.xml
    /jaw6c/build.xmlThe applet should be loaded in my "darstellungErgebnisse.jsp"-File.
    Now the strange situation:
    When I access "darstellungErgebnisse.jsp" DIRECTLY by entering a URL like "localhost:8080/jaw/darstellungErgebnisse.jsp" , the applet is loading perfectly !
    But when my server is forwarding me to the JSP-Site with
    RequestDispatcher dispatcher =  getServletContext().getRequestDispatcher(destinationPage);
    dispatcher.forward(request, response);
    . . . . . . . ..I'll get a ""java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file diagram
    " -Error what means (referenced on the articles I've read here), that the diagram.class Is not found !
    I have tried to put the class file in a JAR, in different locations... using the codebase and archive tag but NOTHING solved my problem.
    So my question:
    Why I'm able to access the JSP-File directly and seeing the applet but after forwarding to the JSP-File via the Servlet, I'm not able to see anything.
    Would appreciate your help
    Thank you and best regards
    Edit:
    1) I'm able to download the diag.jar and diagram.class file from different locations
    2)I recognized, that after using the servlet, my url is changing from
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    I tried added the class file to the position, where the controller-class file is, but without sucess.
    3)Opening the class-file with a hex-editor shows me, that
    the first bytes are
    "CAFEBABE0000002E02B9070002010007"
    (http://forum.java.sun.com/thread.jspa?threadID=648990&messageID=3820701)
    Message was edited by:
    Khaled01

    Hello everybody,
    I finaly have found the solution (after 16 hours).
    Like I mentioned before, I recognized (maybe a little to late), that my path is changing when I'm using the servlet :
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    (made by url-pattern in my web.xml).
    So when my JSP tries to acces the class file, It's looking at:
    localhost:8080/jaw/controller/applet/diagram.class
    but the file is in:
    localhost:8080/jaw/applet/diagram.class
    So the solution is, to but a codebase-tag in my applet-declaration with following delcaration "basedir="../applet"
    I hope I'll help somebody with the same problems. It took me a day to find out, that the solution was two points and a slash..... lol
    Regards to everybody

  • Please help..servlet calling JSP

    I have a servlet that for the time being (cut out all validation code...everything) is just trying to call a JSP. I keep getting The requested URL /servlet/hellos was not found on this server.---I'm running this at my local host, so it is not a path problem. the code is below.--
    Note..when I use getServletContext().getRequestDispatcher("/servlet/log"); this works (calling another servlet) but when the below is executed I get the error.
    package hellos;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class hellos extends HttpServlet {
    public void doGet (HttpServletRequest req, HttpServletResponse res)
         throws ServletException, IOException
              RequestDispatcher dispatcher =
              getServletContext().getRequestDispatcher("/ITS/itsLoginhtml.jsp");
              dispatcher.forward(req, res);

    Ok here is what is going on. I don't want to use redirect I want to use the dispatcher. The code is below and it works with redirect, but not dispatcher???? It says the URL cannot be found on server?????Can anyone help me get the dispatcher to work??
    package hellos;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class hellos extends HttpServlet {
    public void doGet (HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException
              res.sendRedirect("/ITS/itsLoginhtml.jsp");
              //RequestDispatcher dispatcher =
                        //getServletConfig().getServletContext().getRequestDispatcher("/ITS/itsLoginhtml.jsp");
              //dispatcher.forward(req, res);

  • I bought my iPhone 4s in the Uk and then brought to Cyprus where I live. I used Siri to call my husband 2 days ago without problem but now when I try to use Siri it won't call any local Cypriot number but will call my Uk contacts. Help please

    I bought my iPhone 4s in the Uk and then brought to Cyprus where I live. I used Siri to call my husband 2 days ago without problem but now when I try to use Siri it won't call any local Cypriot number but will call my Uk contacts. I can call the same numbers manually so it's not my network. Any help would be appreciated.

    This sounds like an international issue? Although I can not see why? I brought my phone in Australia and operating it in Indonesia, I have the same issues.... Otherwise Siri works fine, even texting (SMS) to local numbers siri works well, but dialing local number it just wont work...! I will try using my Australian SIM card and see if that is the reason.. I tried changing the number in the contacts and took out the international prefix, I turned the international assist on and off still nothing.. How frustrating. I called apple, the technican had know idea and we to his supervisor, had to wait fro 40 miuntes and then I hung up..
    PLEASE HELP..!

  • How can I call EJB from JSP/Servlets in iWS?

    Hi!!
    My JSP/Servlets are on iWS, and I deploy EJB on iAS.
    In this case, I don't know how JSP/Servlet call EJb on iAS.
    I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
    I will thank you if you give me a simple example source using JSP/Servlet
    and EJB.
    Thanks in advance!!!
    - Park-

    Park,
    Why Are you running your JSP/Servlets in iWS instead of iAS? For whatever
    reason,
    look at the Converter sample from iAS. You will be doing RMI/IIOP in this
    case and the sample explains in detail what to do.
    hth,
    -robert
    "SungHyun, Park" <[email protected]> wrote in message
    news:9jpfmt$[email protected]..
    Hi!!
    My JSP/Servlets are on iWS, and I deploy EJB on iAS.
    In this case, I don't know how JSP/Servlet call EJb on iAS.
    I'd like to know how I can set JNDI name in JSP/Servlet on iWS.
    I will thank you if you give me a simple example source using JSP/Servlet
    and EJB.
    Thanks in advance!!!
    - Park-

  • Manually call action servlet from JSP

    Hi All,
    I have a struts form that uploads a file (which works perfect with no problem). IN this form i have a <html:submit> button.
    My problem is, if I have a field say Employer field; and i would like to search the employer address as soon as the focus leaves the employer text field and display it in the same form. I wrote a javascript onchange="javascript:getEmpaddress(this)"my javascript is:
    function getEmpaddress(objForm) {
         document.objForm.action = "/searchForm";
         document.objForm.submit();
    return true;
    }this form is not submitting... anyone having a clue on this?
    PS: for the the upload part, i have written seperate action & form
    for the employer search i worte seperate action & form
    and registered them both in my struts config file
    Regards
    smallpost

    You can call the servlet via RequestDispatcher (include or forward method):
    RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/servlet/ServletName");
    dispatcher.include(request,response);In the request you can store the data with setAttribute methode.
    And in the servlet you can get this data via request.getAttribute methode.
    Regards,
    Geri

  • How to call JSp from Servlet??

    Hello,
    I want to call JSP page from servlet.I am using Visual Age For java 3.4. What is wrong in my code??
    if (userExists) {
    f.setErrors("userName","Duplicate User: Try a different username");
    getServletConfig().getServletContext().
    getRequestDispatcher("/jsp/forms/retry.jsp").
    forward(request, response);
    I am not able to get the o/p. Pls help.

    I can't see anything obvious, but did you take any steps towards doing output before this code (like openning an output stream)?
    Not clear what f.setErrors does - presumably stuffs the error message in an attribute of the request.

  • Calling a servlet (in Tomcat) from a JSP Page (in Apache)

    I have a web form in my JSP Page, which upon submits, will send the params to a servlet. The servlet will then process the request and send the results back to the calling JSP Page.
    with that above senario, is there any way for me to reference a servlet (resides in Tomcat) from a JSP Page (resides in Apache HTTP Server)?
    Thanks!

    Apache HTTP server isn't a servlet/JSP engine.
    Your JSP runs on Tomcat, right where the servlet does. Apache just forwards the request.
    %

  • Gyus i have problem when i uptade tha last version of itune and try to backup i have an error can you help to bring bacl all my calls and foto

    gyus i have problem when i uptade tha last version of itune and try to backup i have an error can you help to bring bacl all my calls and foto

    Any more details like numbers given with the error message? Or is the sync process stopped at a certain step?

Maybe you are looking for

  • I/O plug-in not working for me

    My setup: MacPro octacore 2.8, Apogee Symphony, OS 10.5.3, Logic Studio 8.0.2. My problem: When I try to use the I/O plug-in to send audio to a hardware insert, I lose the audio. Example: I insert the plug-in on a (mono) channel, set it up to both se

  • AuthSchemaNotImplException

    I am trying to run my SOAP transaction through our proxy and I get the above error. The scheme not implemented is "Negotiate". I have tried setting the realm, username etc but that does not work either. The proxy server in question is Microsoft Proxy

  • Mac Pro 2010

    Downgrade Mac OSx 10.6.4 (snow leopard) to Mac OSx 10.5.(8) (leopard. Does somebody know of it is posible. I have tried it but i have the 10.5.1 version that is to old.

  • Known compatibility issues with 2008 and 2008 R2

    For some reason i am not able to make remote connections from VS 2013 to my current installation of SQL server 2008 so i thought to uninstall it and install another edition i got from MSDN but i the uninstall process keeps failing saying theres a kno

  • HD Icon, top right of desktop.

    HELP! Being new to Mac's, I have recently bought a book, 'Mac Basics in Simple Steps', by Tom Myer. On page 18, 'The Desktop', it explains about the Macintosh HD icon in the top right hand corner of the desktop. There is an ALERT entry that states, "