Http Statust 404 error

Hi,
I placed HelloWorld.java file in $CATALINA_HOME/webapps/ServletExample/WEB-INF/classes.
I compiled and called as : http://localhost:8080/ServletExample/servlet/HelloWorld.
It give Http Statust 404 error.
Tomcat sample servlets are working fine.
I uncommented <servlet> and <servlet-mapping> maping code blocks too...
But still i am geting the same error..
Please help me to sort this out
Regrads
Venkky

in the web-inf there wil be web.xml file..append ur class here and give a url pattern
u can call the servlet by this url only
regards
shanu

Similar Messages

  • 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

  • HTTP Status 404 error for FIORI Application deployed on HCP

    Hello Experts,
    I have created a Fiori App using Web IDE and deployed it on my trial account of HCP .
    The Gateway service used is from On Premise system. I have used SAP Cloud Connector to connect Hana cloud Platform and on premise system.
    In Web IDE test application works fine. However, when I deploy it and access the application URL I am getting the error "HTTP Status 404" as shown in the screenshot.
    In Chrome  Developer Console shows below error
    "Failed to load resource: the server responded with a status of 404 (Not Found)".  I have checked many threads but could not find the solutions.
    Thanks and Regards,
    Ashik

    Does your firoi app have index.html file ? If yes, is it placed in the root folder of your app ?
    I guess you're missing out the index.html in your fiori app. You may be having Component.js as the entry point which will run only with Fiori launchpad. But to run fiori app as standalone, you need to create the index.html file.
    You can try accessing your component.js file by adding a '/Component.js' at the end of the url to know if you're app has been deployed properly as of now.
    -Sakthivel

  • BT Speedtester: HTTP Status 404 error message

    This is a problem extracted from the thread below as it is a separate issue
    http://community.bt.com/t5/BT-Infinity/Bt-s-speed-tester/td-p/405819
    When trying to use the new Speedtester I get the message below in the banner line.
    HTTP Status 404 - /PerformanceTester/applet/progressbar/progressbar.html
    If I ignore the message and carry on I get  a TEST Error message before any meaningful data is displayed.
    The following is general information about the problem.
    1.The PC involved is running Windows XP and Internet Explorer 8
    2. The problem did not occur with the previous version of the speed tester.
    3. Java does not start as it used to.
    4. The Speedtester works OK using Firefox on the same PC.
    5. When running the Speedtester on a different PC with IE 7  I get the following screen
    6.  Based on the above it looks as if this check is failing with IE 8 on the original PC but other than the 404 message there is no other indication of this including in the event logs in the PC.
    7. At least one other contributor is having this problem.
    8. It is not a JAVA problem otherwise Firefox would not work.
    9. IE 8 is OK for most other activities so it appears to be an IE8 / New Speedtester problem.
    Three final questions
    a) Is anyone else having this problem ?
    b) Has anyone got a suggestion for the cause? 
    c) Has anyone got a cure that involves XP and IE8 ?  (I already have a work around)
    Solved!
    Go to Solution.

    I have just discovered this thread
    http://community.bt.com/t5/BB-Speed-Connection-Issues/bt-speedtest/td-p/409019
    Based on the information there I have created a new favorite
    http://www.speedtester.bt.com/  that as far as I can see is identical to my previous favorite.
    The new one works !!!
    The old one still gives the previous 404 error !!!

  • HTTP Status 404 error- servlet with oracle db?

    I am working wit netbean 7.2 ide,oracle 10g. the servlet program does not connected to the oracle db. i always recieve a
    HTTP Status 404 -
    type Status report
    message
    descriptionThe requested resource () is not available.
    Oracle GlassFish Server 3.1.2.2
    error type. whats the problem? i think its due to connection problem. help me to resolve the problem. kindly give ur solution immediately...

    404 is resource not found so either the client making the request is using a wrong path or the resource did not successfully start at the expected path.
    You could check the server logs to see if there are errors that are causing this.

  • HTTP Status 404 Error - OpenDocument

    How to trouble shoot this error ? Please help me.
    Environment:
    BO XI 3.1 with SP2
    Windows Server 2008 R2 Standard - 64 Bit
    HTTP Status 404 - /OpenDocument/opendoc/openDocument.aspx
    type Status report
    message /OpenDocument/opendoc/openDocument.aspx
    description The requested resource (/OpenDocument/opendoc/openDocument.aspx) is not available.

    What exactly are you trying to do ?
    To Open WEBi report through OpenDocument URL
    Did open doc links ever worked or this is the first time test ?
    First Time
    Does Infoview works ?
    Yes
    Do you see OpenDocument in IIS manager ?
    Yes.
    I am testing OpenDocument.jsp
    Is your IIS running in 32 bit or 64bit mode ?
    32bit

  • Http Status 404 error

    Hi,
    I Created a web appln which includes a simple html pg and a servlet using tomcat as WS.I am able to access the Html pg only if i deploy it in the webapps->proj name folder.but when i deploy the servlet pg and the Deploydesc in the WEB-INF in put it in the webapps->proj name folder i am not able to access the html file nor anything...i tried restarting the server.but as soon as i remove the web-inf folder i am able to access the html....pls help me in this problem

    I think the problem is with the dir structure. the html files and the jsp files by default should be in the basefolder which is nothing but webapps.>>ProjectFolder. And the servlet should be inside "WEB-INF>>Classes" folder. web.xml file should be in the "WEB-INF" folder itself.

  • Error Message: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. The request failed with HTTP status 404: Not Found.

    I have a web page that contains a ReportViewer control.  I am trying to display a report, which is an .rdl file located on the SSRS server, in this ReportViewer control.  I have set the ReportPath and ReportServerUrl correctly.  I am
    getting an error message.
    Am I suppose to use an .rdlc file rather than a .rdl file?  Does the web server configuration need to use a certain account?
     I am getting the following error message:
    The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
    The request failed with HTTP status 404: Not Found.

    Hi bucaroov,
    The error "The request failed with HTTP status 404: Not Found." means the ReportServerURL configured in the ReportViewer control is invalid.
    Please follow these steps to solve the issue:
    Logon the Report Server machine.
    Open the Reporting Services Configuration Manager.
    Copy the Report Server URL from 'Web Services URL'.
    Logon the application server(in this case, it is the server that host the web page), check if we can use the URL we got from step 3 to access the Report Server. If so, please replace the ReportServerURL in the ReportViewer control with this URL. If it is
    not available, could you please post the error message.
    Additionaly, we don't need to provide the extension for a server report. The ReportPath should be like: /<reports folder>/<report name>
    For more information, please see:
    Walkthrough: Using the ReportViewer Control in Remote Mode:
    http://msdn.microsoft.com/en-us/library/ms251669(VS.80).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • BizTalk published WCF service throwing HTTP 404 error using ISA reverse proxy settings

    I have published my schemas as a WCF service from BizTalk 2010 "Publish WCF Service" wizard. I used Wcf-basicHTTP adapter in receive port. I am able to run the service successfully on localhost IIS and I tested my biztalk solution by sending request using SOAP UI and got response successfully.... Now: Actually, I need to give this service endpoint to my vendor who will send request from outside my company's network i.e. internet. In my infrastrucrue BizTalk is behind the firewall so, we setup a REVERSE proxy server at DMZ layer and it is configured properly. I have tested a simple WCF service by replacing the localhost with Proxy server configured address <DNSName> and it worked absolutely fine. But when I change localhost in my BizTalk schema based published WCF service it is not working and I am getting following error. Really strugling to get it resolved. I wasted a whole 3 days....very upset. Please help me out by giving the detailed step solution. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /BizTalkServiceInstance/MyService.svc I am surprized why other c# code based WCF services are working fine with reverse proxy settings. Server Error in '/' Application. The resource cannot be found.Is there any special things to consider Biztalk exposed wcf servcie over ssl in IIS cluster with ISA

    Hi Singam :)
    First I would start by browsing any other files (files other than the one from WCF) just to ensure that the reverse-proxy’s redirection rules are set correctly. If you get the same 404 error when you try to access other service/files “through reverse-proxy”,
    then it’s an issue in the redirection rule(s) in reverse-proxy.
    If others are fine i.e. no issue in reverse-proxy setup as such, then try the following for WCF service's web.config file. I have seen this issue in WCF service (not just BizTalk’s artifacts exposed as service in reverse-proxy). Add serviceHostingEnvironment
    config as show with in serviceModel section.
    <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    </system.serviceModel>
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • SharePoint 2010 & SQL Server Report Builder 3.0 - HTTP 404 Error

    Hi all,
    Apologies if this post is not in the correct forum. 
    I have recently upgraded my SQL installation on my SharePoint server from Express 2008 R2 to Standard 2008 R2 so I could set up Reporting Services Integration in CA.  Followed instructions I found on web and all appeared to be good.
    Installed Report Builder on my PC and set up a data source to a List I have on one of my site collections - "Test Connection" works fine.  If I then try to create a Dataset using Query Designer, I get the error below -
    "An error occurred when accessing the specified SharePoint list.  The connection string might not be valid.  Verify that the connection string is correct - The request failed with HTTP status 404: Not Found. (System.Web.Services)". 
    I can't even get to a point where I can see any fields from my list.
    I am happy to provide any further information to try and clarify my problem.  Any help would be most appreciated!

    Just an update.  I resolved my issue.  The problem appeared to that when creating the Data Source, I had been adding the URL of the actual list (eg. http://servername/sitename/listname) as the connection string where in fact I should have just
    added the server name and site - eg. http://servername/sitename.
    Hopefully this may help somebody else :-)

  • Error: on clicking Registry menu item in ESM Management Portal. The request failed with HTTP status 404: Not Found.

    Hi,
    I have installed ESB Management Portal successfully after following all the steps. everything is working fine except when I click the Registry menu in the portal. I get an unhandled exception. The event viewer shows the below error "The request failed
    with HTTP status 404: Not Found."
    ================================================
    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 1/27/2015 5:56:10 PM 
    Event time (UTC): 1/27/2015 5:56:10 PM 
    Event ID: f7aedd39118845b79c17d3442a0d15a7 
    Event sequence: 54 
    Event occurrence: 1 
    Event detail code: 0 
    Application information: 
        Application domain: /LM/W3SVC/1/ROOT/ESB.Portal-1-130668549484455107 
        Trust level: Full 
        Application Virtual Path: /ESB.Portal 
        Application Path: C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\ 
        Machine name: <Machine Name> 
    Process information: 
        Process ID: 4712 
        Process name: w3wp.exe 
        Account name: NT AUTHORITY\NETWORK SERVICE 
    Exception information: 
        Exception type: TargetInvocationException 
        Exception message: Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
       at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
       at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    The request failed with HTTP status 404: Not Found.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Practices.ESB.Portal.UDDIService.UDDIService.GetCategoryByName(String UDDIServerUrl, String tModelName) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Web References\UDDIService\Reference.cs:line
    575
       at Microsoft.Practices.ESB.Portal.Uddi.ServiceProxy.getBTEndpoints(String applicationName, Boolean getSendPorts, Boolean getRcvLocations) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Uddi\ServiceProxy.cs:line
    553
       at Microsoft.Practices.ESB.Portal.Uddi.ServiceProxy.GetEndpointsByApplication(String applicationName, Boolean getSendPorts, Boolean getRcvLocations) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Uddi\ServiceProxy.cs:line
    46
    Request information: 
        Request URL: http://localhost/ESB.Portal/uddi/uddi.aspx 
        Request path: /ESB.Portal/uddi/uddi.aspx 
        User host address: ::1 
        User: <domain>\<user>
        Is authenticated: True 
        Authentication Type: Negotiate 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Thread information: 
        Thread ID: 19 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
       at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
       at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Custom event details: 
    =================================
    Any idea why this is happening and what needs to be done ?
    PLEASE HELP
    Thanks & Regards
    Vikram

    Snippet from the link below:
    If you get a “404: Not Found” error, it ‘s because by default there is no script map for .svc file with default IIS 7.0 installation, so you need to register .svc extension in IIS:
    You need to update IIS script maps to register .svc extension In a command prompt (ran as administrator), execute the following command:
    “%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe” -r -y"
    Refer:
    https://dgoins.wordpress.com/2010/05/01/esb-toolkit-management-portal-installation-notes-from-the-field-2/
    Sarvanan's blog around this with detailed explanation:
    Configuring Exception Management Portal
    As mentioned above also
    Check Portal Configuration Settings
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • [Solved] Pacman fails to get packages http 403 or 404 error

    Hi,
    I'm not sure if I should raise this as a bug or not, or indeed if I am doing something fundamentally wrong...
    Pacman tells me there are updates to do, but:
    Using the mirror "mirrors.manchester.m247.com" I get a 404 error
    Using the mirror "http://mirror.bytemark.co.uk/archlinux/$repo/os/$arch" I get a 403 error
    example:
    # pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date 0.0 B 0.00B/s 00:00 [-----------------------------------------------------------------------] 0%
    community is up to date 0.0 B 0.00B/s 00:00 [-----------------------------------------------------------------------] 0%
    multilib is up to date 0.0 B 0.00B/s 00:00 [-----------------------------------------------------------------------] 0%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for conflicting packages...
    Packages (9) ca-certificates-mozilla-3.18-3 dhcpcd-6.8.1-1 gnupg-2.1.2-3 iptables-1.4.21-3 p11-kit-0.23.1-2 procps-ng-3.3.10-2 sudo-1.8.13-1 which-2.21-1 whois-5.2.7-1
    Total Download Size: 0.03 MiB
    Total Installed Size: 21.35 MiB
    Net Upgrade Size: 4.34 MiB
    :: Proceed with installation? [Y/n]
    :: Retrieving packages ...
    error: failed retrieving file 'whois-5.2.7-1-x86_64.pkg.tar.xz' from mirrors.manchester.m247.com : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    any ideas?
    [edited to add solved tag to title]
    Last edited by flangemonkey (2015-04-01 15:29:18)

    Hi flangemonkey,
    that mirror was not synced yet when you did the upgrade (the last sync ended today at 10:54 UTC, about 17 mitues after you posted on this borad). It should be ok now, just try to redo the update. Next time, you may want to check first the status of the mirrors https://www.archlinux.org/mirrors/status
    edit: typo
    Last edited by mauritiusdadd (2015-04-01 11:06:10)

  • JSP loading issue: HTTP 404 error

    I have a JSP page that stopped loading up.
    It gives me the Apache HTTP 404 error that it can not find the JSP page.
    There are no servlet classes associated with the JSP page.
    Simply, it is an HTML page calling a JSP page.
    This issue appeared after we(IT team) incorporated servlets on the machine.
    Directory structure changed, but it shouldn't have effected our JSP pages.
    Directory structure
    ../wwwroot/Finance/Labor.html goes to ../wwwroot/Finance/Labor.jsp

    And how does the HTML page invoke the JSP page?
    Are you doing it via a <form> or are you linking to it through an <a href>?
    You really didn't provide very much information. There are a lot of things that could go wrong. For example, Tomcat generally likes its JSPs to be in a specific place which is NOT the default Apache document root. You'd explicitly have to configure Tomcat to use the same Apache document root though.
    Similarly, application specific Servlets are usually in a sub-directory of the one containing JSP files for that application. In other words, you don't really put JSPs in c:/JSPs on one machine, HTML in /home/rycherX/www on another machine and Servlets in \\rycherX\workspace\Servlets on a third.
    The first place to start is to tell us what Servlet Engine you just installed. Tomcat? JBoss? WebSphere?

  • CMC tool raise http 404 error when viewing user security on server object.

    Description of Problem or Question:
    In investigating an issue promoting an LCM job, I attempted to use the CMC tool to look at the user security on a server object. When I executed the command the tool raised an error.
    HTTP Status 404 - /CmcAppActions/jsp/Shared_Rights/rights.face.
    type: Status Report
    message: /CmcAppActions/jsp/Shared_rights/rights.face
    description: The requested resource (/CmcAppActions/jsp/Shared_Rights/rights.face) is not available.
    Product\Version\Service Pack\Fixpack (if applicable):
    Business Objects XI 3.1 SP2
    Apache Tomcat 5.5.20
    Java 6.0.170
    Relevant Environment Information (OS & version, java or .net & version, DB & version):
    WIN Server 2003  Enterprise SP2
    Sporadic or Consistent (if applicable):
    Consistent error
    What has already been tried (where have you searched for a solution to your question/problem):
    I have done some research in service.sap.com and on the Web, but have found nothing concrete other than it appears to be an error in the install of the Tomcat server.
    Edited by: Jon Russell on Jul 9, 2010 12:20 AM

    Hi Alvaro,
    Forgot this thread was open as of yet. There was a solutio but nothing concrete I can offer to th user community. The reason i that this devolved into a Note to SAP and, as I recall, the solution was for a BO consultant to remotely access our development server for BO an bsically do "brain surgery" in the SQL Server db we had supporting BO. It was a difficult issue an eventually required direct intervention from SAP-BO.

  • Hibernate+Spring+Structs HTTP 404 Error

    Hey,i am a new here.and a new of Java programming.I have met some problems when i begin to study this.
    And here is my problem .
    Java codes:
    HTTP Status 404 - Servlet action is not available type Status report message Servlet action is not available description The requested resource (Servlet action is not available) is not available. Apache Tomcat/5.5.25
    structs-config.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <data-sources />
    <form-beans >
    <form-bean name="loginForm" type="com.yourcompany.struts.form.LoginForm" />
    </form-beans>
    <global-exceptions />
    <global-forwards />
    <action-mappings >
    <action
    attribute="loginForm"
    input="/login.jsp"
    name="loginForm"
    path="/login"
    scope="request"
    type="com.yourcompany.struts.action.LoginAction">
    <forward name="succeed" path="/welcome.jsp" />
    <forward name="fail" path="/login.jsp" />
    </action>
    </action-mappings>
    <controller>
    <set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor"/>
    </controller>
    <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
    <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" ></set-property>
    </plug-in>
    </struts-config>
    applicationContext.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
    <bean id="skyTest"
    class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName"
    value="com.microsoft.sqlserver.jdbc.SQLServerDriver">
    </property>
    <property name="url"
    value="jdbc:sqlserver://server-web:1433;databaseName=ers;">
    </property>
    <property name="username" value="ers"></property>
    <property name="password" value="123456"></property>
    </bean>
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource">
    <ref bean="skyTest" />
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">
    org.hibernate.dialect.SQLServerDialect
    </prop>
    </props>
    </property>
    <property name="mappingResources">
    <list>
    <value>vo/Login.hbm.xml</value></list>
    </property></bean>
    <bean id="LoginDAO" class="dao.LoginDAO">
    <property name="sessionFactory">
    <ref bean="sessionFactory" />
    </property>
    </bean>
    <bean id="service" class="service.Service" singleton="false">
    <property name="loginDao">
    <ref bean="LoginDAO"/>
    </property>
    </bean>
    <bean name="/login" class="com.yourcompany.struts.action.LoginAction" singleton="false" >
    <property name="service">
    <ref bean="service"/>
    </property>
    </bean>
    </beans>
    web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>3</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    LoginDAO:
    package dao;
    import java.util.Date;
    import java.util.List;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.hibernate.LockMode;
    import org.springframework.context.ApplicationContext;
    import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
    import vo.Login;
    * Data access object (DAO) for domain model class Login.
    * @see vo.Login
    * @author MyEclipse Persistence Tools
    public class LoginDAO extends HibernateDaoSupport {
         private static final Log log = LogFactory.getLog(LoginDAO.class);
         // property constants
         public static final String EMPLOYEE_OR_CUSTOMER_ID = "employeeOrCustomerId";
         public static final String USER_NAME = "userName";
         public static final String PASSWORD = "password";
         public static final String ROLE = "role";
         public static final String CREATE_USER = "createUser";
         public static final String CHANGE_USER = "changeUser";
         protected void initDao() {
              // do nothing
         public void save(Login transientInstance) {
              log.debug("saving Login instance");
              try {
                   getHibernateTemplate().save(transientInstance);
                   log.debug("save successful");
              } catch (RuntimeException re) {
                   log.error("save failed", re);
                   throw re;
         public void delete(Login persistentInstance) {
              log.debug("deleting Login instance");
              try {
                   getHibernateTemplate().delete(persistentInstance);
                   log.debug("delete successful");
              } catch (RuntimeException re) {
                   log.error("delete failed", re);
                   throw re;
         public Login findById(java.lang.Integer id) {
              log.debug("getting Login instance with id: " + id);
              try {
                   Login instance = (Login) getHibernateTemplate().get("vo.Login", id);
                   return instance;
              } catch (RuntimeException re) {
                   log.error("get failed", re);
                   throw re;
         public List findByExample(Login instance) {
              log.debug("finding Login instance by example");
              try {
                   List results = getHibernateTemplate().findByExample(instance);
                   log.debug("find by example successful, result size: "
                             + results.size());
                   return results;
              } catch (RuntimeException re) {
                   log.error("find by example failed", re);
                   throw re;
         public List findByProperty(String propertyName, Object value) {
              log.debug("finding Login instance with property: " + propertyName
                        + ", value: " + value);
              try {
                   String queryString = "from Login as model where model."
                             + propertyName + "= ?";
                   return getHibernateTemplate().find(queryString, value);
              } catch (RuntimeException re) {
                   log.error("find by property name failed", re);
                   throw re;
         public List findByEmployeeOrCustomerId(Object employeeOrCustomerId) {
              return findByProperty(EMPLOYEE_OR_CUSTOMER_ID, employeeOrCustomerId);
         public List findByUserName(Object userName) {
              return findByProperty(USER_NAME, userName);
         public List findByPassword(Object password) {
              return findByProperty(PASSWORD, password);
         public List findByRole(Object role) {
              return findByProperty(ROLE, role);
         public List findByCreateUser(Object createUser) {
              return findByProperty(CREATE_USER, createUser);
         public List findByChangeUser(Object changeUser) {
              return findByProperty(CHANGE_USER, changeUser);
         public List findAll() {
              log.debug("finding all Login instances");
              try {
                   String queryString = "from Login";
                   return getHibernateTemplate().find(queryString);
              } catch (RuntimeException re) {
                   log.error("find all failed", re);
                   throw re;
         public Login merge(Login detachedInstance) {
              log.debug("merging Login instance");
              try {
                   Login result = (Login) getHibernateTemplate().merge(
                             detachedInstance);
                   log.debug("merge successful");
                   return result;
              } catch (RuntimeException re) {
                   log.error("merge failed", re);
                   throw re;
         public void attachDirty(Login instance) {
              log.debug("attaching dirty Login instance");
              try {
                   getHibernateTemplate().saveOrUpdate(instance);
                   log.debug("attach successful");
              } catch (RuntimeException re) {
                   log.error("attach failed", re);
                   throw re;
         public void attachClean(Login instance) {
              log.debug("attaching clean Login instance");
              try {
                   getHibernateTemplate().lock(instance, LockMode.NONE);
                   log.debug("attach successful");
              } catch (RuntimeException re) {
                   log.error("attach failed", re);
                   throw re;
         public static LoginDAO getFromApplicationContext(ApplicationContext ctx) {
              return (LoginDAO) ctx.getBean("LoginDAO");
    LoginAction :
    * Generated by MyEclipse Struts
    * Template path: templates/java/JavaClass.vtl
    package com.yourcompany.struts.action;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import com.yourcompany.struts.form.LoginForm;
    import service.Service;
    import vo.Login;
    * MyEclipse Struts
    * Creation date: 01-07-2008
    * XDoclet definition:
    * @struts.action path="/login" name="loginForm" input="/login.jsp" scope="request" validate="true"
    * @struts.action-forward name="succeed" path="/welcome.jsp"
    * @struts.action-forward name="fail" path="/login.jsp"
    public class LoginAction extends Action {  
    * Generated Methods
    * Method execute
    * @param mapping
    * @param form
    * @param request
    * @param response
    * @return ActionForward
    private Service service;
    public void setService(Service service)
    this.service=service;
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {  
    LoginForm loginForm = (LoginForm) form;// TODO Auto-generated method stub
    Login login=new Login();
    login.setPassword(loginForm.getPassword());
    login.setUserName(loginForm.getUsername());
    if(service.isValid(login))
    return mapping.findForward("succeed");
    else
    return mapping.findForward("fail");
    Will you please give me some instructions.i have been hunt by this problem for many days..Thank you !
    Edited by: ChinaRose on Jan 6, 2008 10:44 PM
    Edited by: ChinaRose on Jan 6, 2008 10:47 PM

    structs-config.xmlHopefully, that's not what you actually named the file, because you refer to something different in your web.xml...
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>It will help you to be consistent. I recommend referring to the framework by its actual name; i.e., "Struts".
    ~

Maybe you are looking for