While running servlets getting errors 404 or 505 resource not found

Hi all,
I'm novice to J2EE.
I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
when i access my web application by specifying the proper server and port no and context root it is showing
either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
Now let me elaborate what i've done till now.
My webapplication folder structure is : C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\classes\Sai\ServExamp.class
My servlet is ServExamp.java
I created a folder called "Suresh".  In that folder created another folder called "WEB-INF".  In WEB-INF created a folder called "Classes".
Since my servlet is in package "Sai", the .class file reside in \Suresh\WEB-INF\Classes\Sai\ServExamp.class
The source code is :
package Sai;
import javax.servlet.;*
import javax.servlet.http.;*
import java.io.;*
public class ServExamp extends HttpServlet
public void doPost(HttpServletRequest req,HttpServletResponse res)throws IOException
PrintWriter out=res.getWriter();
java.util.Date today=new java.util.Date();
out.println("<html>"+"<body>"+
*"<h1 align=center>HF\'s Chapter1 Servlet </h1>"*
+"<br>"+today+"</body>"+"</html>");
Now i'm almost done creating a web application.  Next, I constructed a simple web.xml descriptor that gives a web friendly name for my servlet, and points to the servlet. I constructed  web.xml descriptor file in the WEB-INF folder (C:\bea\user_projects\domains\mydomain\applications\Suresh\WEB-INF\).
The web.xml file source is :
*<!DOCTYPE web-app*
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
*"http://java.sun.com/dtd/web-app_2_3.dtd">*
*<web-app>*
*<display-name>Hello World Web Application</display-name>*
*<description>Test Servlet</description>*
*<servlet>*
*<servlet-name>ServExamp</servlet-name>*
*<servlet-class>Sai.ServExamp</servlet-class>*
*</servlet>*
*<servlet-mapping>*
*<servlet-name>ServExamp</servlet-name>*
*<url-pattern>/Suresh</url-pattern>*
*</servlet-mapping>*
*</web-app>*
Now I have told Weblogic that the URI /Suresh corresponds to my servlet "Sai.ServExamp".
My Web Application is ready to be deployed at this point. I logged onto Weblogic's admin console,
*1) clicked on deployments, then navigated to "Web Application Modules" .*
*2) Clicked "Deploy new Web Application Module"*
*3) Navigated to the location of your web application folder (Suresh). There was a radio button next to it indicating that I can select that folder as a valid web application.*
*4) I Clicked that radio button and clicked "Target Module".*
*5) It informed that my web application "Suresh" will be deployed to myServer.It asked a name for my web application deployment. By default it was "Suresh"*
I clicked Deploy.
*6) After deployment, my web application "Suresh" appeared in the "Web Application Modules" tree on the left.*
I Clicked on "Suresh"( my web application) then clicked the testing tab, then clicked the link shown there(http://localhost:7001/Suresh-2).
It was not showing  my servlet (showed a 403 error)
Error - 403
This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
I think so it came b'coz I don't have an index.html or index.jsp page.
*7)Instead,I added my servlet on to the URL it provided.*
http://localhost:7001/Suresh-2/Suresh
It is showing these error code: Http: 505 resource not allowed
The page cannot be displayed
The page you are looking for cannot be displayed because the address is incorrect.
Please try the following:
If you typed the page address in the Address bar, check that it is entered correctly.
Open the localhost:7001 home page and then look for links to the information you want.
Click  Search to look for information on the Internet.
when i just type : http://localhost:7001/   -> Error 404 not found error
it's showing
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
*10.4.5 404 Not Found*
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
I want to run my web application & any help would be appreciated.
Thanks in advance.
with regards,
S.SayeeNarayanan.
Note: I even deployed my war file, which i got by execution of (jar cv0f webapp.war . ) command from the root directory of my web application i.e. Suresh
Then executed my webapplication it is showing
error-505 resource not allowed.
--------------------------------------------------------------------------------------------

nammathamizhan wrote:
Hi all,
I'm novice to J2EE.
You're also a novice to this forum.
First, turn off the bold font.
Second, post your question once and only once to a single forum. You only waited an hour before reposting your question. That's not the way this works. Asking your question multiple times will not increase the likelihood that you''ll get an answer. As a matter of fact, you're guaranteed nothing at all. Give it your best effort and hope for success. This isn't a paid consultancy - we're volunteers.
I've encountered a problem while accessing the deployed module in weblogic 8.1 server.
I'm sure that the webapplication module is deployed as i saw my module in administration console & also the status said that it is deployed.
when i access my web application by specifying the proper server and port no and context root it is showing
either 505 - resource not found error(http://localhost:7001/Suresh-2/Suresh) or 404 - not found error.( http://localhost:7001/Suresh-2/Suresh)
If you're correct, and it's deployed, that would suggest that the URL you gave is incorrect.
>
Now let me elaborate what i've done till now.Good info - almost too much.
%

Similar Messages

  • LSO Content Player  Error - HTTP Error 404 - File or directory not found

    Hi All
    Please could you assist.
    I have published a course to my ISS CMS and configured the links in both ECC and J2EE lsm/mediator.
    Result
    Username='username', SystemName='HRD', Client='030', Host='22.22.22.22', Language='EN', SystemNumber='00', EnablePoolSharing='true', MaxConnection=50, AbapDebug=false:
    CPCFG.RSURL = http://iiscmshost.domain/LSO600/Content/
    CPCFG.REPUS = username
    ServerURL=http://iiscmshost.domain/LSO600/Content/  ok!
    I was able to successfully publish the course from the Authoring Environment to the CMS server.
    When selecting the starting the course from the portal with content player i get the following error.
    HTTP Error 404 - File or directory not found
    But the URL is referring to - http://iiscmshost.domain/lms/mediator/courseview?sid=8685627505550088697845288091101&language=EN&sys=HRD&client=030&sap-accessibility=X
    How does directory http://iiscmshost.domain/lms/mediator get created when the content is in http://iiscmshost.domain/LSO600/Content ??
    Secondly can I change this reference to my LSO600/Content directory.
    Please advise with any information. Point will be awarded.
    Regards
    Maahir

    Dear Maahir,
    We are facing the same problem. We are pointing over CMS to IIS, instead of KM content of portal. We are successfully able to release and publish the course, then attach to a course participant also.
    But. When participants logs into the portal and click on Start Now. It giving 404 file not found Error. Its the same error. All our Course and content pointed to CMS IIS Server Url.
    When we did the content player config test, result is NOT OK. We have required R3 authorization and CMS user authorization also with admin rights. Content Player console is working in AE when we start up the course. Its showing the error.
    So, it seems like content player is not working properly. Bcoz we are launching course from  http://WEBDAV repository server maintained in back end system. Which is the IIS(CMS Server)for us. Do we need to maintain anything separately to launch a course from IIS Server on R3 and SAP Portal. Below sample URL from page.
    http://Sever:port/lms/mediator/courseview = xxxxxxxxxxxxxxx
    Could you please us know, how did you resolve the issue and tell me the cause of this issue.
    Thanks and Regards
    Obli

  • Getting error in XI"RFC Program Not Found"

    Hi All,
    I am getting error in SXMB_MONI "RFC Program not found via SAP XI".
    So please suggest me what is the problem behind this..For these SAP XI and R/3 i made 3 to 4 RFC program but only 1 RFC program name not getting Via SAP XI.
    Thanks
    Amit

    Hi,
    I am calling RFC FM via SAP XI.
    Main Records are coming from siebel and recevied by SAP XI and XI will do some changes in records and calling REC FM from SAP R/3.
    Problem is siebel to xi records coming fine but xi to sap R/3 error message coming "Program not Found".
    Thanks
    Amit

  • When i try to open iTunes I get error message "MSVCR80.dll was not found"

    When I try to open iTunes I get error message "MSVCR80.dll was not found"

    Hey Manyangels!
    Here is an article that will help you troubleshoot this issue with your iTunes:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Hello, i need help i'm doing experiment on ilab i have managed to put my experiment on the platform but when i try to launch it fails with an error 404 that the page not found. any one with idea of what i should do to solve this problem. thank you

    hello, i need help i'm doing experiment on ilab i have managed to put my experiment on the platform but when i try to launch it fails with an error 404 that the page not found. any one with idea of what i should do to solve this problem. thank you

    hey Sally,
    Can you elaborate on the ilab and what you are trying to do? I have found this page to explain error 404, but I am not sure if it directly applies to  you
    http://digital.ni.com/public.nsf/allkb/D0998D3734926FA08625782300016E40?OpenDocument
    Regards,
    A. Zaatari
    National Instruments
    Applications Engineer

  • Cant install Itunes on my work computer, get error message Apple Application support not found, so i uninstall and reinstall again and its the same message

    cant install Itunes on my work computer, get error message: "Apple Application support not found, so i uninstall and reinstall again and its the same message

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if AAS won't install normally.
    tt2

  • FI:While posting MIRO getting Error of Balancing field Segment not filled

    Hello SAP Gurus,
    While  posting MIRO getting Error of Balancing field Segment in line item 001 not filled
    Message No.GLT2201.
    Please suggest me solution for it i read lots of related threats but could not solve this error.

    SPRO-Financial Accounting (New)-General Ledger Accounting (New)-Business Transactions-Document Splitting-Edit Constants for Nonassigned Processes-Select your constant-Double click and Select Assignment of profit center- Enter your dummy profit center here   otherwise
    SPRO-Financial Accounting (New)-General Ledger Accounting (New)-Business Transactions-Document Splitting-Edit Constants for Nonassigned Processes-Select your constant-Double click and Select Assignment of values-Enter here segment.

  • FDM Import error : 404 - File or directory not found.

    I am trying to import 550,000 rows/records into FDM. I am getting the below error message while doing the import. Any help in resolving this would be appreciateble.
    404 - File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Thanks

    This happens when i import from desktop and not from inbox. I have not tried importing from inbox. I will update the link as soon as i try importing from inbox.
    Thanks
    ARB

  • Sumtotal error 404 - file or directory not found

    Hi,
    We have a SCORM 1.2 compliant content created using Captivate 5. It's a multiple SCO (6 modules) combined into a single SCORM package. When the package was loaded in Sumtotal LMS, one of the modules alone does not launch and throws the below error.
    404 - File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    However all the modules get loaded when tested in Saba LMS. Any ideas on what could the issue in Sumtotal? Would greatly appreciate a resolution at the earliest.
    Thanks,
    Sudarsan

    r_sudarsan,
    I 've seen that error 404 numerous times in the past. It always seems to be related to the configuration of the web server not able to match the Domain name with the IP address, wrong path name, check the spelling, browser startup default settings to locate the website. etc. It always seems to be a configuration problem.
    Good Luck.

  • Error 404 wwv_flow.accept was not found

    I'm on Apex 3.0 and Oracle 10.2.0.1.0
    Suddenly my applications started to behave strangley:
    In tabular forms when I am deleting row(s) I'm getting Error 404 and it says
    The requested URL /pls/apex/wwv_flow.accept was not found on this server.
    I have not shanged application lately except that I am doing some translations via XLIFF.
    Apache log file shows:
    mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 ORA-03113:...
    mod_plsql: Unable to reset state for mode 0: Err 3114 url=>/pls/apex/wwv_flow.accept
    Any idea? Please!
    Janis

    It's a very weird bug indeed! It behaves somewhat randomly.
    Logging out and in again helps for some tabular forms to perform a single delete operation but not for others.
    Flushing shared pool has no effect.
    Recreating the page has the same problem.
    Removed translation mapping (which i suspected) - no effect.
    Finally, I guess I found the problem.
    My tabular forms are built on views with INSTEAD OF triggers.
    The view definition itself was written using JOIN operators for joing data tables.
    When I converted SQL syntax back to Oracle style it seems to have solved the problem.
    I'll have to do more testing on this - but it definitely must be registered under a new bug number (i guess)
    Janis

  • I have windows 7. I keep getting error message"apple application support not found". I have uninstalled and reinstalled i tunes multiple times but unable to get rid of error message. Can anyone offer a solution

    I have windowa 7 operating system. When I install I Tunes, I get an error message "Apple Application Support not found".
    I have uninstalled and reinstalled I Tunes multiple times with same error.
    Can anyone offer a solution?

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Getting error:Absence type 100 was not found in Customizing for

    Hi,
    I am using the Standard workfllow for leave application, and when i am  creating the request i am getting the bleow error:
    'Absence type 100 was not found in Customizing for 21.10.2010'
    What could be the reason, i have configured the statndard setting for leave type 100 in SPRO.
    Thanks,
    Krish.

    Hi Kishore,
    Please check the validity period for Absence type 100 configuration.
    Also pass this Error message to your HR Functional consultant. It is the configuration issue and your FM have to take care of this issue.
    Thanks.

  • I am trying to install livecycle trial version, but i get Error 13:11 Source file not found

    Why do they even offer a free trial version of livecycle es4,  when its obviously not free??????
    i have tried from two different computers, windows 7 and windows 8, and before it can finish installing,
    a messsage pops up saying Error 13:11 Source file not found verify file exsist.  what does that even mean?

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Error message stating "Network resources not found"

    I distributed a form and now I am receiving a message stating "Network Resources Not Found". What can I do? Nothing has been changed since the form was distributed and the "help person" was no help when talking to them.

    The forms are saved on my personal computer and they have not been moved since they were created. The form was given an open access so that anyone could access and complete/submit the form. It had been working perfectly until Tuesday when the error message started to appear.

  • When I open firefox or try to open any website I get the Error 404 message stating page not found, how do I correct this?

    When opening firefox the error 404 immediatly comes up and NO websites (bookmarked or not) will come up, the error 404 message repeatedly comes up. I have deleted and re-installed different firefox versions and nothing has worked yet. What else can I try?

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

Maybe you are looking for

  • How to install and use certificates on client?

    Hello everyone, and first of all sorry for my poor, italian-accented english. I have some questions about SSL and certificates. I'm developing a java desktop application, which should connect to a https server, authenticate with a previously download

  • How can I get iTunes to show movies again instead of a grey screen?

    I was able to view my whole library of movies/music videos before the upgrade and now, iTunes will open my movies but it doesn't show them. It plays the sound but the screen is grey. It's a bit demoralising to break something that worked but to break

  • PALM VX and Windows Vista 64Bit

    Hey I have been searching all over the site for a solution to my problem and I don't think there is one.  I have a Palm VX and I am trying to sync it up with my new Vista Machine.  The catch is that my OS is 64-bit I have seen that it says Windows Vi

  • Read-only access to the console

    Anyone know how to set up a user to allow read-only access to the WLS console? simon.

  • 'Phantom'  iTunes tracks on Buffalo Linkstation Live shared drive

    I have finally copied all my music over to a Buffalo Linkstation - I could not consolidate so dragged into iTunes from my PC drive and changed directory location. My PC can see the entire library direct and my iMac and PC can see the library on the B