4 Replies Latest reply on Feb 17, 2017 9:49 AM by benboss

    Http 404 error after migration (The requested resouce is not available)

    benboss

      First of all I'd like to thank anyone that as assisted me on previous questions.

       

      I've managed to seeming get my application deployed and the datasources seem configured correctly both are now showing as enabled in the jobs admin console and when I run standalone.bat in runs jboss without any errors (well with debugging set to info anyway)

       

      However whenever I launch website for my app I'm getting a 404 error.

       

      Using jboss tools within eclipse I can happily switch between old jboss 5.1 and the new migrated jboss 7.1.1 servers. Under jboss 5.1 the site works fine under jboss 7.1.1 I get a 404.

       

      I've attached

       

      C:\Benseries\jboss\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml

      C:\Benseries\jboss\server\default\deploy\Benseries-client.war\WEB-INF\jboss-web.xml

      C:\Benseries\jboss\server\default\deploy\Benseries-client.war\WEB-INF\web.xml

       

      and my 7.1.1 standalone.xml

       

      Can anyone see any likely causes. Any help would be really appreciated. Let me know if you need me to provide more information or logs.

       

      Thanks, Ben

        • 1. Re: Http 404 error after migration (The requested resouce is not available)
          benboss

          Oh I should mention that in jboss 5.1 the .war directories are not compress (I believe "archived" is the respected terminology) in jboss 7.1.1. I deployed the .war's via the jboss admin console by compressing them. the deployment seems ok.

           

          In jboss tools in eclipse under servers > Jboss AS 7.1.1 > Server Details > Deployments I can see my Benseries-admin.war and Benseries-client.war but when I expand them there is nothing there, but I don't know if what's ok or not I've never used jboss tools before I don't know what to expect.

           

          Having said all that I suspect there may be something amiss with my standalone.xml that's why the login pages to my website is not coming up, I just stuck right now.

          • 2. Re: Http 404 error after migration (The requested resouce is not available)
            benboss

            Hi there,

             

            I'd really appreciate it if some guru could take a quick look at my standalone.xml and at the very least see if its missing something obvious.

             

            Thanks in advance,

             

            Ben

            • 3. Re: Http 404 error after migration (The requested resouce is not available)
              benboss

              The http connector is working because when I refresh the website and generate the http 404 error the Error count in the jboss admin console under Runtime > Web > Web Metrics > http > Error count is increasing.

               

              I think the problem is in referencing the deployments to a url.

               

              The url for the site is http://localhost:8080/Benseries and is http://localhost:8080/Benseries/ux

               

              neither of those site currently work.

              • 4. Re: Http 404 error after migration (The requested resouce is not available)
                benboss

                Hi All,

                 

                I'm pretty desperate now. I've tried playing around with the virtual-server-names as adding BenSeries but that didn't work. I tried following youtube and creating an basic webapplication in eclipse, the basic webpage was returned but there was no reference to the basic url in my standalone.xml for me to compare with. I don't know why that was. I'm new to jboss, can someone at least have a quick look a my xml files and check that I'm not missing something obvious. Thanks.

                 

                           <connector name="connector1" protocol="AJP/1.3" scheme="http" socket-binding="createdSocket" redirect-port="8443"/>

                            <virtual-server name="default-host" enable-welcome-root="true">

                                <alias name="localhost"/>

                                <alias name="BenSeries.com"/>

                                <alias name="BenSeries"/>

                            </virtual-server>