Unity 7 VM Web/SA page comes back the requested resource is in use

When I go to the http://<unity-server-ip>/web/sa web page I get a "the requested resource is in use"
This is on a unity server that is running on win2k3.   
This all started when the winsocks got corrupt.   I had to manually rebuild the TCP/IP connection on the network adapter.
The system from the end user point of view is up and functional.   I just have no interface to make changes.  
any ideas would be helpful

Hi Caseylou!
==
I'm no web services guru but it looks like you may be specifying the wrong port for your web service. Port 4848 if the admin port for SJSAS. I believe you need to modify 4848 to be 8080 which is the default HTTP port for SJSAS. If you modified this port adjust accordingly.
==
I will try this first thing in the morning when I am back in the office..
However, I am wondering why in the deploy tool in the tree I only saw this top level entry:
Servers > localhost:4848
Wouldn't it have another for localhost:8080?
Or maybe I have to start a new server..
Rob
:)

Similar Messages

  • DFS Replication stops, Debug Log: InitializeFileTransferAsyncState::ProcessIoCompletion Failed, The requested resource is in use

    I've had 2 DFSR servers replicating for about 12 months now with no issue, with in the last week one server has stopped replicating some files, ie will have a directory with 30 jpg files on server a, server b will only receive 15 of the files.
    in the DFSR log i just see this log repeated over and over again for all the different files it wont replicate
    20140705 18:03:16.674 4072 SRTR  2344 [WARN] InitializeFileTransferAsyncState::ProcessIoCompletion Failed connId:{20AEF2C3-92EC-41B2-A161-D26B164F2A73} rdc:1 uid:{75E65307-2678-4C2B-B808-0C321E8D4383}-v7123
    gsvn:{75E65307-2678-4C2B-B808-0C321E8D4383}-v7127 Error:[Error:170(0xaa) InitializeFileTransferAsyncState::ProcessIoCompletion servertransport.cpp:2235 4072 W The requested resource is in use.] completion:0 ptr:000000000D411160
    i've tried everything i can think from disabling the AV to completely deleting this folder from the namespace, copying all the files to a new hard disk and starting again with a new folder in the namespace,
    but i still receive the same error.
    All other folders replicating from this server are still working and replicating correctly

    Hi,
    Please create a Diagnostic Report for DFS Replication to see if there is any error message.
    http://technet.microsoft.com/en-us/library/cc754227.aspx
    Install latest DFSR hot fixes and adjust the DFSR tuning settings to improve the replication performance and improve the network connection condition to check the result.
    Regards,
    Mandy
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • The operating system returned error 170(The requested resource is in use)

    Hello Experts,
    We have a Sharepoint farm where we are receiving OS Error 170 for many days. It results in database shutdown/Start because required transaction file is not available.
    The operating system returned error 170(The requested resource is in use.) to SQL Server during a write at offset 0x0000029495e000 in file 'F:\MSSQL10_50.INST1\MSSQL\DATA\****.***. Additional messages in the SQL
    Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately
    Write error during log flush.
    Error: 9001, Severity: 21, State: 4.
    The log for database 'DBNAME' is not available
    We have checked the Anti Virus but all data files are excluded. We have also disabled the anti virus for some time but still issue persist.
    This is a Virtual Machine and no VM snapshot backup is running during the time window.
    Please help!
    Thanks in advance.
    Regards,
    Divesh Mathur

    Hello Experts,
    We have a Sharepoint farm where we are receiving OS Error 170 for many days. It results in database shutdown/Start because required transaction file is not available.
    The operating system returned error 170(The requested resource is in use.) to SQL Server during a write at offset 0x0000029495e000 in file 'F:\MSSQL10_50.INST1\MSSQL\DATA\****.***. Additional messages in the SQL
    Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately
    Write error during log flush.
    Error: 9001, Severity: 21, State: 4.
    The log for database 'DBNAME' is not available
    Hello,
    I sense a disk issue here( I am not sure).Log for database is not available seems when data needs to be written on log file it was not avaialble.Can you check with storage team that disk on which SQL server files reside is OK
    Secondly did you run DBCC CHECKDB for your database in picture can you paste result of it.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Web Dynpro image not found: The requested resource does not exist

    Hi everybody,
    I'm experiencing a strange Poltergeist, so I would like to cry out the issue and hope any kind sould could help me
    In my WebDynpro application, I show a JPG picture which is located in the own project, that means in "src/mimes/Components/metromadrid.net.formacion.Cursos". The image appears correctly in my Development environment, but when the activity is moved to the Consolidation System (I'm using JDI), the image doesn't appear. If I try to access it directly, via URL, the messagen shown is "404 Not found: The requested resource does not exist.." (the URL accessed is http://hostname:port/webdynpro/resources/metromadrid.es/formacionapp/Components/metromadrid.net.formacion.Cursos/foto_vacia.jpg)
    The point is that in the same Consolidation environment I have already some applications with images, which are found and loaded without any problem.
    I have checked if the image appears in the corresponding active repository and everything seems alright (I mean I can see the file there).
    Any idea? It would be really appreciated, since my time to solve the problem expires in few days...
    Thank you very much in advance!!
    Isidro Lopez

    Hi Isidro,
    your mime files were most probably not added to your NWDI activities when developing your Web Dynpro DC. This means when adding these mime files to the src/mimes/<comp package>.<Comp name> folder the Web Dynpro Tools have most probably not detected the new mime files. When testing your application on in your local development environment all images appear as they exist on your local file system. As missing mimes do not cause a CBS build failure you won't encounter a designtime error.
    Please check whether the corresponding mimes are listed as   'local only' (house symbol) in your DTR perspective. In case they are listed as 'local only' you must explicitly add them to an activity.
    I have also encountered this missing mime problem before but I have not started any investigation to really determine the reason for it.
    Best regards, Bertram

  • I have a problem syncing iCal on my Macbook air (10.7.5) and my iPhone 4s (5.1.1) over iCloud. The following server error message comes up "The request (CalDAVAccountRefreshQueueableOperation) for account "iCloud" failed." Been to Apple - no luck. Ideas?

    I have a problem syncing iCal on my Macbook air (10.7.5) and my iPhone 4s (5.1.1) over iCloud. The following server error message comes up "The request (CalDAVAccountRefreshQueueableOperation) for account “iCloud” failed." Been to Apple Store - no luck instore, or with Super genius over the phone when with genius in store, taking data in real time via ethernet!
    I had to do a full wipe of my system because of time machine back up issues 2 weeks ago, and the error has only occured at some point since then. I only did a drag and drop of my user account folders/files into an External HDD rather than a copy of my user account (advised by the staff in store at Apple to do this) and when reimported, the Mail folders are all present but each message is in a sub-sub-sub folder that is numerically named. I do not have a mirror image of the hard disk prior to the wipe, only a time machine back up from 2 weeks prior to it being done. I am uncertain if this reinstall has caused the issue. 
    I am not happy to upgrade the software in my iPhone until I have the calendars working. I have purchased Mountain Lion, but again am concerned about upgrading until the issues are sorted.
    I have tried the other solutions on here with no luck. HELP please.
    Many Thanks.

    Progress Update.
    I made a back of what existing phtos and Videos I had on my Iplhone.  I used Image capture to do this making an entire back up of photos and videoa that were still intact on the phone.
    Image capture is god for this purpose, as it does exactly what you ask it to do without applying any rules or squishing the files back into iphote (which might also be corupted) 
    Image capture wil do the basic function of retriving the contents of the phone and save them as native files on your hard drive.
    Once I did this I erased my iphone, and re intitialised it restoring an older back up from icloud.
    As the retore was happneing - I did retreive the missing files that cuased the intial beviour as above, and I could play the videos that were missing in the above scenerio.  The wierd ting was however that even though the source files were now back on the device, the thumbnail previews were missing. Where I ahd balck thumb nails for server portions of the resotred content.
    I then went to bed as the restore is a long process.  When I woke up the library had library had cleaned itself up.  Mysteriously the prcess had deleted the files missing the their thumbnails.
    This is very perculiar and bad behavior.
    I am now repeating the process, and will attempt to download the missing content as it is restored and prior to the phone trying to fix itself.
    Here are the lessons learned.
    DO NOT rely on Photo Stream to keep back ups and synchornise videos from you IOS device. IT DOES NOT SUPPORT THIS CAPBILITY
    DO NOT rely on iCloud Back Up alone - always fd an occassional iTunes back up or more reliably still always take a back up of photos and video files using Image Capture to be doubly sure that you a have backd up any content.
    DO THIS NOW - dont wait to loose your phone ofr have your phone repaired by replacement at the apple Store.  (I did both :-(

  • When I send a text message from my iPhone response only comes back to my iPhone .  If I send from iPad, response only comes back to iPad. Whichever I used last is where response comes.  Responses are not coming to both anymore!  Please help?

    When I send a text message from my iPhone response only comes back to my iPhone .  If I send from iPad, response only comes back to iPad. Whichever I used last is where response comes.  Responses are not coming to both anymore!

    On both devices when you go to settings>messages>send and recieve how are poeple contacting you on each device?. e.g. email or mobile number.

  • All website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not help

    ''dupe of https://support.mozilla.org/en-US/questions/928117''
    all website went "Not Found HTTP Error 404. The requested resource is not found." and the "Firefox cannot load websites but other programs can" page is not helping in any ways

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites
    You can try to reset (power off/on) the router.

  • Web.xml deployment - The requested resource is not available

    I am trying to deploy part of my project and cannot get it to work.
    If I put this in:
    <url-pattern>/traveltimes.do</url-pattern>and go to http://localhost/testLINK/traveltimes.do it works fine.
    However when I put
    <url-pattern>/milwaukee/traveltimes.do</url-pattern>and go to
    http://localhost/testLINK/milwaukee/traveltimes.do
    I get this error:
    The requested resource (/milwaukee/milwaukee/traveltimes.jsp) is not available.I can't figure out why it is putting in that extra /milwaukee. Any ideas?
    John

    Well here is something really weird. If I change it to:
            <servlet-name>Milwaukee Travel Times</servlet-name>
            <url-pattern>/test/traveltimes.do</url-pattern>and go to http://localhost/testLINK/test/traveltimes.do
    I get
    /test/milwaukee/traveltimes.jspis not available. I have no idea where it is pulling that milwaukee from, and why it does so only when I have the extra level in the path.
    Any ideas on where I can go from here?
    John

  • [TOMCAT] [SERVLET] : The requested resource () is not available.

    Hi!! I'm looking for an answer to my problem, and I'm going to explain what I mean.
    I've created a .jar named yuhuuTunnel.jar that has the following structure:
    yuhuuTunnel.jar:
    --> web (contains the servlets)
          --> *.class
          --> HelloWorldServlet.class
    --> META-INF
          --> MANIFEST.MF
    --> SimpleClient.classThe code of HelloWorldServlet.java is this:
        package web;
        import java.io.IOException;
        import java.io.PrintWriter;
        import javax.servlet.http.HttpServlet;
        import javax.servlet.http.HttpServletResponse;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.ServletException;
        import javax.servlet.ServletConfig;
        public class HelloWorldServlet extends HttpServlet {
            public void init(ServletConfig config) throws ServletException {
                super.init(config);
            public void doGet( HttpServletRequest request, HttpServletResponse response )
                    throws ServletException, IOException {
                doPost(request, response);
            public void doPost( HttpServletRequest request, HttpServletResponse response)
                    throws ServletException, IOException {
                response.setContentType("text/html");
                PrintWriter out = response.getWriter();
                out.println("<html>");
                out.println("<body>");
                out.println("<body bgcolor=\"white\">");
                out.println("<h1>Yuhuu Servlet!</h1>");
                out.println("</body>");
                out.println("</html>");
        }then, using a .war file (created with ANT), I've created into /../tomcat/webapps/ a directory call yuhuuTunnel that has this structure:
        /webapps/
              --> yuhuuTunnel
                    --> WEB-INF
                            --> web.xml
                            --> lib
                                 --> yuhuuTunnel.jar
                    --> META-INF
                            --> MANIFEST.MF
                                 --> yuhuuTunnel.jar
                    --> index.htmlThe content of web.xml is the following:
        <?xml version="1.0" encoding="ISO-8859-1"?>
        <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
        <web-app>
            <!-- Action Servlet Configuration -->
            <servlet>
                 <servlet-name>HelloWorld</servlet-name>
                 <servlet-class>web.HelloWorldServlet</servlet-class>
                 <load-on-startup>0</load-on-startup>
            </servlet>
            <servlet-mapping>
                 <servlet-name>HelloWorld</servlet-name>
                 <url-pattern>HelloWorld</url-pattern>
            </servlet-mapping>
        </web-app>Tomcat works correctly ( http://localhost:8080 return me the page of tomcat ) but when I try to use the HelloWoldServlet typing http://localhost:8080/yuhuuTunnel/HelloWorld into a browser, this one returns me the HTTP Status 404 - The requested resource () is not available.
    What is wrong? The address that I type into the browser or there's an error into web.xml?
    Something interesting: If I type
    http://localhost:8080/yuhuuTunnel/HelloWorld
    the message given back is: "The requested resource () is not available."
    but if I type
    http://localhost:8080/HelloWorld the message is different:
    "The requested resource (/HelloWorld) is not available."

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <!-- Action Servlet Configuration -->
    <servlet>
             <servlet-name>HelloWorld</servlet-name>
             <servlet-class>web.HelloWorldServlet</servlet-class>
             <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
             <servlet-name>HelloWorld</servlet-name>
             <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>Please change the servlet url pattern from
    <url-pattern>HelloWorld</url-pattern>to
    <url-pattern>/HelloWorld</url-pattern>in servlet mappings
    REGARDS,
    RaHuL

  • The requested resource does not exist - EAR - Jsp

    Hy!
    Following a tutorial I'm trying to create a small application in the Developer Studio.
    I created a Table, an EJB-Project with an Entity Bean and a Stateless Session Bean, a Web-Project with a JSP-File and an EAR which I deployed. Now the JSP form should be available at http://[server-name]:50000/employee/view.
    But I get:
    404   Not Found - SAP J2EE Engine/6.40
    The requested resource does not exist.
    Details:     Go to main page of this application!
    "main page" is a link which refers to http://localhost:50000/index.html which is the SAP Engine Start Page.
    This is my first experience with sap netweaver. So I don't know where I should start to search for the problem or how to solve it.
    In the web.xml of the WebProject there is the following code for the servlet mapping:
    <servlet>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <jsp-file>/NewEmployee.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <url-pattern>/view</url-pattern>
    </servlet-mapping>
    This is the code in the application.xml of the ear which should make it possible to access the webproject under .../employee.
    <module>
         <web>
              <web-uri>EmployeeWeb.war</web-uri>
              <context-root>employee</context-root>
         </web>
    </module>
    Best Regards,
    Carina

    Hy!
    I tried several changes and found out, I just had to remove the ' / ' bevor NewEmployee.jsp in the jsp-file - tag.
    <servlet>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <jsp-file>NewEmployee.jsp</jsp-file>
    </servlet>
    Now it works and I'm able to test the jsp. There's a form and after a submit a jndi-lookup is performed.
    Object ref=jndiContext.lookup("java:comp/ev/ejb/EmployeeService");
    It seems the EJB reference in the web.xml:
             <ejb-ref>
              <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>com.sap.bsp.EmployeeServicesHome</home>
              <remote>com.sap.bsp.EmployeeServices</remote>
              <ejb-link>EmployeeEjb.jar#EmployeeServicesBean</ejb-link>
         </ejb-ref>
    doesn't work, because I get:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/ev/ejb/EmployeeService.
    Looking forward to a hint
    Best regards,
    Carina

  • 404 Not Found, the requested resource does not exist

    Hi gurus,
    We're faciing an issue where when we submit data back to the SRM shopping cart from the MDM catalog UI, we intermittently get a "404 Not Found, the request resource does not exist" error page.
    Below is the HTTP trace upon item checkout:
    POST     200     text/html; charset=UTF-8     https://server/webdynpro/dispatcher/sap.com/tcmdmsrmcat~uisearch/MDM_SRM_UI_App?sap-wd-cltwndid=0cf753a3797111dfa7c662676002500a&sap-wd-appwndid=0cf753a4797111df966b62676002500a&sap-wd-norefresh=X
    GET     (Cache)     application/x-javascript     https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/js/autorelax.js?7.0103.20091012142306
    GET     404     text/html     https://server/webdynpro/resources/sap.com/tcmdmsrmcat~uisearch/Components/com.sap.mdm.srmcat.uisearch.master.Master/ProductForm30703.html
    GET     (Cache)     text/html     https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/html/blank.html?7.0103.20091012142306
    GET     (Cache)     application/x-javascript     https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/js/autorelax.js
    GET     (Cache)     text/html     https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/html/backprevention.html
    GET     (Cache)     text/html     https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/html/backdummy.html
    GET     (Cache)     application/x-javascript     https://server/webdynpro/resources/sap.com/tcwddispwda/global/SSR/js/autorelax.js
    The page https://server/webdynpro/resources/sap.com/tcmdmsrmcat~uisearch/Components/com.sap.mdm.srmcat.uisearch.master.Master/ProductForm30703.html is where the 404 error is being generated. And this error is also intermittent, so some time, the page will load with GET 200, but other times, it will show GET 404.
    Does anyone know what this ProductForm#####.html does? The ##### is a numerical value that seems to be incrementing on every catalog submission back to SRM shopping cart.
    MDM build 03.69
    Thanks.

    Sudhanshu appreciate your quick responses and the intermittent error is what's troubling me as well.
    Let me run through the SRM SC scenario for example:
    1. In shopping cart professional > Add Item > SRMMDM Catalog
    2. In the SRM-MDM catalog > Add an item to cart > Checkout
    3. After checkout, is where the intermittent error comes. Sometimes, the ProductForm.html is generated without a problem, and the product data is returned to the SRM SC in line 1.
    4. When we're back in the SRM SC professional > Add Item > SRMMDM Catalog  to punchout to the catalog again.
    5. Again, in the SRM-MDM catalog > Add an item to cart > Checkout
    6. Boom...the ProductForm.html page generates a 404 error.
    The scenario is similar from SUS to MDM, where for example, the first (or second or third) MDM punch out works, then all of a sudden, the 404 error is generated and it's always at the ProductForm.html where the 404 code is given.  I have yet to find a pattern to see what triggers this 404 error. Sometimes the first MDM punchout will generate this 404 error. Sometimes it will work up to 4 or 5 punchouts before the 404 error is generated.
    I'm have our BASIS team do a thorough analysis at the portal level to look for errors and still waiting for SAP's response.
    Another interesting thing is that this ONLY  happens in our dev box. In our QA box, we don't see such a behavior.
    Thanks for your time!

  • Error:  The requested resource does not exist. (Servlet)

    Hello,
    I created a simple JSP(submit form), that calls a servlet. When I run the JSP, I see the form. On submit, I get error screen:
    404   Not Found
    Error: The requested resource does not exist.
      Troubleshooting Guide https://sdn.sap.com/irj/sdn/wiki?path=/display/jsts/home
    Details: Go to main page of this application!
    The URL shows the path to the servlet (fully qualified name of the servlet class)
    http://<host>:50000/WebClient/<path>.ClientServlet
    Logs don't show anything...
    What am I missing here..,

    The servlet mapping was wrong in web.xml(missed the package.name)

  • "The requested resource (/hello) is not available"  Error of Servlet

    Hello all,
    I get HTTP STATUS 404 Error which states "The requested resource (/hello) is not available" even thought according to me I am doing everything perfectly.
    Here is more information. If you can find out where the proble might be please
    let me know because I am working on this for more than 9 hours.
    I AM USING-<br>
    TOMCAT 5.5.26 <br>
    JRE 6 <br>
    J2SDK 1.4.0 <br>
    </B>
    <BR><BR>
    SYSTEM VARIABLES :<br>
    <B>
    CLASSPATH
    </B>
    C:\apache-tomcat-5.5.26\common\lib\servlet-api.jar <BR>
    <B> JAVA_HOME</B> D:\j2sdk1.4.0
    <BR>
    <B>JRE_HOME</B> C:\Program Files\Java\jre6
    <BR>
    <B>TOMCAT_HOME </B>C:\apache-tomcat-5.5.26
    <BR>
    <P>
    I have placed my hello.class file inside
    <b>C:\apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\classes</b>
    also, i have modified web.xml file as<br>
    <b>
    <servlet>
    <servlet-name>hello</servlet-name>
    <servlet-class>hello</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>hello</url-pattern>
    </servlet-mapping>
    </b><br><br>
    But still I am not able to access my servlet when i type
    http://localhost:8080/hello
    I get the error I mentioned above.

    Hi..Thanks for all those who have replied earlier. I feel I should add some more information.
    I dont know what PACKAGE NAME you are talking about
    I am pasting contents of my XML file located in :
    **apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\web.xml**
    -->
    - <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <display-name>Welcome to Tomcat</display-name>
    <description>Welcome to Tomcat</description>
    - <!-- JSPC servlet mappings start
    -->
    - <servlet>
    <servlet-name>org.apache.jsp.index_jsp</servlet-name>
    <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>
    - <servlet-mapping>
    <servlet-name>org.apache.jsp.index_jsp</servlet-name>
    <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>
    - <!-- JSPC servlet mappings end
    -->
    </web-app>
    web.xml file located in
    apache-tomcat-5.5.26\webapps\servlets-examples\WEB-INF
    is given below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version
    2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <display-name>Servlet 2.4 Examples</display-name>
    <description>
    Servlet 2.4 Examples.
    </description>
    <!-- Define servlet-mapped and path-mapped example filters -->
    <filter>
    <filter-name>Servlet Mapped Filter</filter-name>
    <filter-class>filters.ExampleFilter</filter-class>
         <init-param>
         <param-name>attribute</param-name>
    <param-value>filters.ExampleFilter.SERVLET_MAPPED</param-value>
         </init-param>
    </filter>
    <filter>
    <filter-name>Path Mapped Filter</filter-name>
    <filter-class>filters.ExampleFilter</filter-class>
         <init-param>
         <param-name>attribute</param-name>
    <param-value>filters.ExampleFilter.PATH_MAPPED</param-value>
         </init-param>
    </filter>
    <filter>
    <filter-name>Request Dumper Filter</filter-name>
    <filter-class>filters.RequestDumperFilter</filter-class>
    </filter>
    <!-- Example filter to set character encoding on each request -->
    <filter>
    <filter-name>Set Character Encoding</filter-name>
    <filter-class>filters.SetCharacterEncodingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>EUC_JP</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>Compression Filter</filter-name>
    <filter-class>compressionFilters.CompressionFilter</filter-class>
    <init-param>
    <param-name>compressionThreshold</param-name>
    <param-value>10</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    </filter>
    <!-- Define filter mappings for the defined filters -->
    <filter-mapping>
    <filter-name>Servlet Mapped Filter</filter-name>
         <servlet-name>invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>Path Mapped Filter</filter-name>
         <url-pattern>/servlet/*</url-pattern>
    </filter-mapping>
    <!-- Example filter mapping to apply the "Set Character Encoding"
    filter
    to all requests processed by this web application -->
    <!--
    <filter-mapping>
    <filter-name>Set Character Encoding</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->
    <!--
    <filter-mapping>
    <filter-name>Compression Filter</filter-name>
    <url-pattern>/CompressionTest</url-pattern>
    </filter-mapping>
    -->
    <!--
    <filter-mapping>
    <filter-name>Request Dumper Filter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->
    <!-- Define example application events listeners -->
    <listener>
    <listener-class>listeners.ContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>listeners.SessionListener</listener-class>
    </listener>
    <!-- Define servlets that are included in the example application
    -->
    <servlet>
    <servlet-name>CompressionFilterTestServlet</servlet-name>
    <servlet-class>compressionFilters.CompressionFilterTestServlet</servlet
    -class>
    </servlet>
    <servlet>
    <servlet-name>hello</servlet-name>
    <servlet-class>hello</servlet-class>
    </servlet>
    </servlet>
    <servlet>
    <servlet-name>HelloWorldExample</servlet-name>
    <servlet-class>HelloWorldExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestInfoExample</servlet-name>
    <servlet-class>RequestInfoExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestHeaderExample</servlet-name>
    <servlet-class>RequestHeaderExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestParamExample</servlet-name>
    <servlet-class>RequestParamExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>CookieExample</servlet-name>
    <servlet-class>CookieExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>SessionExample</servlet-name>
    <servlet-class>SessionExample</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>CompressionFilterTestServlet</servlet-name>
    <url-pattern>/CompressionTest</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloWorldExample</servlet-name>
    <url-pattern>/servlet/HelloWorldExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestInfoExample</servlet-name>
    <url-pattern>/servlet/RequestInfoExample/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestHeaderExample</servlet-name>
    <url-pattern>/servlet/RequestHeaderExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestParamExample</servlet-name>
    <url-pattern>/servlet/RequestParamExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CookieExample</servlet-name>
    <url-pattern>/servlet/CookieExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>SessionExample</servlet-name>
    <url-pattern>/servlet/SessionExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>/servlet/hello</url-pattern>
    </servlet-mapping>
    <security-constraint>
    <display-name>Example Security Constraint</display-name>
    <web-resource-collection>
    <web-resource-name>Protected Area</web-resource-name>
         <!-- Define the context-relative URL(s) to be protected -->
    <url-pattern>/jsp/security/protected/*</url-pattern>
         <!-- If you list http methods, only those methods are
    protected -->
         <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
         <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <!-- Anyone with one of the listed roles may access this area
    -->
    <role-name>tomcat</role-name>
         <role-name>role1</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- Default login configuration uses form-based authentication -->
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>Example Form-Based Authentication Area</realm-name>
    <form-login-config>
    <form-login-page>/jsp/security/protected/login.jsp</form-login-page>
    <form-error-page>/jsp/security/protected/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <!-- Security roles referenced by this web application -->
    <security-role>
    <role-name>role1</role-name>
    </security-role>
    <security-role>
    <role-name>tomcat</role-name>
    </security-role>
    <!-- Environment entry examples -->
    <!--env-entry>
    <env-entry-description>
    The maximum number of tax exemptions allowed to be set.
    </env-entry-description>
    <env-entry-name>maxExemptions</env-entry-name>
    <env-entry-value>15</env-entry-value>
    <env-entry-type>java.lang.Integer</env-entry-type>
    </env-entry-->
    <env-entry>
    <env-entry-name>minExemptions</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/name1</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>value1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/bar/name2</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>true</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>name3</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/name4</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>10</env-entry-value>
    </env-entry>
    </web-app>
    My program hello.java is given below
    import java.io.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class hello extends HttpServlet {
    public void doGet (HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    PrintWriter out = res.getWriter();
    out.println("Hello, world!");
    out.close();
    }

  • Http Status 404, The Requested resource is not available

    Dear Friends,
    I am getting error with my tomcat that " The Requested resource is not available"
    Kindly help me , What is the wrong with my code.
    I am using Eclipse 6.0.1, Tomcat 5.5.20, jdk 1.5.0, j2sdk 1.4.0
    My application is just to print user datas and my files are
    *1. login.jsp*
    <html>
    <head>
    <title>login Page </title>
    </head>
    <body>
    <form action="login" method="post">
    <table>
         <tr>
         <td>UserName</td><td><input type="text" name="username"/></td>
         </tr><tr>
         <td>Password</td><td><input type="password" name="password"/></td>     
         </tr>
         <tr><td><input type="submit" value="login"/>
         </tr>
    </table>
    </form>
    </body>
    </html>
    *2.web.xml*
    <web-app>
    <servlet>
         <servlet-name>login</servlet-name>
         <servlet-class>login</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>login</servlet-name>
         <url-pattern>/login</url-pattern>
    </servlet-mapping>
    </web-app>
    *3. login.java*
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class login extends HttpServlet
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              try
              PrintWriter out = res.getWriter();
              String name = req.getParameter("username");
              String password = req.getParameter("password");
              out.println(name+" servlet page");
              }catch(Exception e)
              e.printStackTrace();
    File Directory:
    Myapp
    ! !-->src
    ! ! !--> login.java
    ! !-->WebRoot
    ! !--> META-INF
    ! !--> WEB-INF
    ! !--> Classes
    ! !--> login.class
    ! !--> lib
    ! !--> web.xml
    -->login.jsp
    CATALINA_HOME C:\Program Files\Apache Software Foundation\Tomcat 5.5
    CLASSPATH C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar
    path C:\Program Files\Java\jdk1.5.0_05\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;C:\j2sdk1.4.0\bin
    Please anyone give me the solution to solve my problem.
    Thank you

    Try moving your class file to a package
    <servlet-class>com.logon.login</servlet-class>
    ! !-->src
    ! ! !-->com
              ! !-->logon
                        ! !--> login.java

  • HTTP Status 404  error -- The requested resource  is not available.

    Hi ,
    i am trying to run a sample struts2 program using java1.5 , tomcat5.5 but getting the error ...
    * The requested resource (/Struts2Sample/) is not available.*
    i am listing my files below.. kindly help...
    web.xml -----------------
    <?xml version="1.0"?>
    <!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>Struts2Sample</display-name>
    <filter>
    <filter-name>struts</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet>
         <servlet-name>home</servlet-name>
         <jsp-file>HelloWorld.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
         <servlet-name>home</servlet-name>
         <url-pattern>/home</url-pattern>
    </servlet-mapping>
    </web-app>
    struts.xml ---------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts>
    <package name="example" extends="struts-default" namespace="/">
    <action name="HelloWorld" class="example.HelloWorld">
    <result>/HelloWorld.jsp</result>
    </action>
    </package>
    </struts>
    HelloWorld.jsp ----------------------
    <%@ taglib prefix="s" uri="/struts-tags" %>
    <html>
    <head>
    <title>Struts 2 Hello World Application!</title>
    </head>
    <body>
    <h2><s:property value="message" /></h2>
    <p>Current date and time is: <b><s:property value="currentTime" /></b>
    </body>
    </html>
    ExampleSupport.java ---------------------------
    package example;
    import com.opensymphony.xwork2.ActionSupport;
    * Base Action class for the Tutorial package.
    public class ExampleSupport extends ActionSupport {
    HelloWorld.java --------------------
    package example;
    public class HelloWorld extends ExampleSupport {
    public String execute() throws Exception {
    setMessage(getText(MESSAGE));
    return SUCCESS;
    * Provide default valuie for Message property.
    public static final String MESSAGE = "HelloWorld.message";
    * Field for Message property.
    private String message;
    * Return Message property.
    * @return Message property
    public String getMessage() {
    return message;
    * Set Message property.
    * @param message Text to display on HelloWorld page.
    public void setMessage(String message) {
    this.message = message;
    My directory structure ....
    D:\tomcat5.5\webapps\Struts2Sample ---- this has my jsp file.
    D:\tomcat5.5\webapps\Struts2Sample\src\example ---- this has both java source files..
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\classes\example ---- this has compiled class files
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\classes ---- this has my struts.xml file
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\lib ---- this has all my jars..
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF --- this has my web.xml file
    kindly let me know i am making mistakes if any...
    i am using url as : http://localhost:8080/Struts2Sample/
    Thanks,
    Nads

    Hi ,
    when iam trying to deploy struts 2 application iam getting 404 error. in tomcat 5.5.23
    if u got the solution pls help me
    regards
    srini

Maybe you are looking for

  • Why do I have to pay for iPages when I already have it on my computer?

    My iCloud home page shows five icons including iWork. When I click on the iWork icon I am shown a link that takes me to the iTunes store where I am asked to pay $9.99 for each of the iWork components. I already have these installed on my iMac. Why do

  • Where is a twain-compliant device so my cm1312nfi mfp will scan? (windows7 pro op system)

    where is a twain-compliant device so my cm1312nfi mfp will scan?  (windows7 pro op system)

  • Role assignment to users (Change documents)

    Hi I was looking through the change documents for users and here i came across  "START_REPORT" under the Transaction column along with SU01 and PFCG. I was not quite sure about what this "STATUS_REPORT" was all about. I was wondering if this is a pro

  • Survey suite

    Hi freinds, I am finding an error in creating a Survey Suite (Define Questionaire), I tried this both in GUI & WEB. In GUI it throws an error '' RFC_VMC_COMMUNICATION_ERROR'' Wheareas in Web the error is '' Error during VM container communication bet

  • Able to add component in approved Purchase Req from PM

    Hello, I have scenario where I create Purchase requisition from Plant Maintenance Work order and I have collective functionality turn on, means if I add component in the work order it will be added in the Purchase requisition created against that wor