Felix91 / flight-reservation-system

2012 Term 1 UBC EECE 419 Pod 6 Project Workspace
2 stars 2 forks source link

Error 404 when trying to access /flightManagerProfile #39

Closed Felix91 closed 11 years ago

Felix91 commented 11 years ago

Was working yesterday night.

vanjoe commented 11 years ago

Hey this is happening at line 38 of war/flightManagerProfile.jsp git says you added this, can you take a look at it?

joelcwe commented 11 years ago

Yeah, the web.xml needs to be updated. I dont want to push my web.xml as doing so usually breaks the program.

<!-- AIRPORT STATS PAGE -->
<servlet>
    <servlet-name>airportStats</servlet-name>
    <servlet-class>ufly.frs.AdminStats</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>airportStats</servlet-name>
    <url-pattern>/_adminStats</url-pattern>
</servlet-mapping>
<!-- FLIGHT STATS PAGE -->
<servlet>
    <servlet-name>flightStats</servlet-name>
    <servlet-class>ufly.frs.FlightStats</servlet-class>
</servlet>
     <servlet-mapping>
    <servlet-name>flightStats</servlet-name>
    <url-pattern>/_flightStats</url-pattern>
</servlet-mapping>
Felix91 commented 11 years ago

Did that web.xml snippet work on your machine? I simply copy and pasted it into mine and I got this after logging in as Flight Manager:

HTTP ERROR 500

Problem accessing /flightManagerProfile. Reason:

File &quot;/_flightStats.jsp&quot; not found
joelcwe commented 11 years ago

ah, i guess i havent pushed that jsp file. Missed it as i forgot to track it. Its up now.

vanjoe commented 11 years ago

It should not be a problem pushing web.xml if you actually changed it. For some reason git seems to often think that it has changed even if it hasn't, don't push it in that case.

On Wed, Nov 21, 2012 at 1:46 PM, joelcwe notifications@github.com wrote:

that

Joel Vandergriendt weneedalaw.ca

Felix91 commented 11 years ago

OK, I pulled and that got rid of the error. But how do I go about viewing your stats @joelcwe ? I don't see them on the Statistics tab.

joelcwe commented 11 years ago

It works fine for me. Clicking on the dropdown entry"Flight statistics" should display them below