404 error

37 views
Skip to first unread message

Dominic Malvo

unread,
Nov 9, 2011, 11:43:59 AM11/9/11
to athena-t...@googlegroups.com
Hi,

I just setup Athena but I keep getting 404 errors.  I'm sure it is something easy that I've missed.  Here is the output of

HTTP ERROR: 404

   Problem accessing /tix/meta/fields. Reason:
    Not Found
     _________________________________________________________________________________________________________

   Powered by Jetty://


The logs are pasted in below, any ideas?

Thanks,
Dominic

# cat ATHENA.log
17:11:26.869 INFO  [main] JpaApaAdapter Indexing is disabled.  Re-enable indexing by setting athena.index.disabled=false in db.properties
# cat ATHENA-stdout.log
2011-11-08 17:11:06.627:INFO::jetty-7.x.y-SNAPSHOT
2011-11-08 17:11:06.810:INFO::Extract jar:file:/opt/athena/components/athena/war/athena.war!/ to /tmp/jetty-0.0.0.0-8080-athena.war-_athena-any-/webapp
2011-11-08 17:11:15.221:INFO::NO JSP Support for /athena, did not find org.apache.jasper.servlet.JspServlet
2011-11-08 17:11:17.248:INFO:/athena:Initializing Spring root WebApplicationContext
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
INFO: Using default applicationContext
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, athenaLockResource, of type org.fracturedatlas.athena.helper.lock.web.AthenaLockResource as a root resource class
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, reportResource, of type org.fracturedatlas.athena.reports.web.ReportResource as a root resource class
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, codeResource, of type org.fracturedatlas.athena.helper.codes.web.CodeResource as a root resource class
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, healthCheckResource, of type org.fracturedatlas.athena.helper.healthcheck.web.HealthCheckResource as a root resource class
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, recordResource, of type org.fracturedatlas.athena.web.resource.RecordResource as a root resource class
Nov 8, 2011 5:11:29 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, fieldResource, of type org.fracturedatlas.athena.web.resource.FieldResource as a root resource class
Nov 8, 2011 5:11:29 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:44 PM'
Nov 8, 2011 5:11:30 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.fracturedatlas.athena
Nov 8, 2011 5:11:30 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class org.fracturedatlas.athena.helper.codes.web.CodeResource
  class org.fracturedatlas.athena.helper.lock.web.AthenaLockResource
  class org.fracturedatlas.athena.reports.web.ReportResource
  class org.fracturedatlas.athena.web.resource.RecordResource
  class org.fracturedatlas.athena.helper.healthcheck.web.HealthCheckResource
  class org.fracturedatlas.athena.web.resource.FieldResource
Nov 8, 2011 5:11:30 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Provider classes found:
  class org.fracturedatlas.athena.web.serialization.JsonTicketCollectionSerializer
  class org.fracturedatlas.athena.web.exception.JsonMappingExceptionMapper
  class org.fracturedatlas.athena.web.exception.AthenaConflictExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonPropFieldArraySerializer
  class org.fracturedatlas.athena.reports.serialization.AthenaReportSerializer
  class org.fracturedatlas.athena.web.exception.AthenaException
  class org.fracturedatlas.athena.web.exception.InvalidFieldNameException
  class org.fracturedatlas.athena.web.exception.NumberFormatExceptionMapper
  class org.fracturedatlas.athena.web.exception.AthenaExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonPropFieldSerializer
  class org.fracturedatlas.athena.plugin.tags.serialization.AthenaTagSerializer
  class org.fracturedatlas.athena.helper.codes.serialization.AthenaCodeSerializer
  class org.fracturedatlas.athena.helper.lock.exception.TicketsLockedExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonTicketSerializer
  class org.fracturedatlas.athena.web.serialization.JsonPropValueSerializer
  class org.fracturedatlas.athena.web.serialization.JsonPropValueArraySerializer
  class org.fracturedatlas.athena.web.exception.ObjectNotFoundExceptionMapper
  class org.fracturedatlas.athena.helper.lock.exception.TicketsLockedException
  class org.fracturedatlas.athena.web.exception.InvalidFieldNameExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonPropsSerializer
  class org.fracturedatlas.athena.web.exception.ApaExceptionMapper
  class org.fracturedatlas.athena.helper.lock.serialization.AthenaLockSerializer
  class org.fracturedatlas.athena.web.exception.ObjectNotFoundException
Nov 8, 2011 5:11:30 PM com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder <init>
INFO: Instantiated the Application class org.fracturedatlas.athena.web.config.AthenaWebConfig
Nov 8, 2011 5:11:33 PM com.sun.jersey.spi.inject.Errors processErrorMessages
WARNING: The following warnings have been detected with resource and/or provider classes:
  WARNING: A sub-resource method, public java.lang.Object org.fracturedatlas.athena.helper.lock.web.AthenaLockResource.create(javax.servlet.http.HttpServletRequest,org.fracturedatlas.athena.helper.lock.model.AthenaLock) throws java.lang.Exception, with URI template, "", is treated as a resource method
  WARNING: A sub-resource method, public org.fracturedatlas.athena.helper.codes.model.Code org.fracturedatlas.athena.helper.codes.web.CodeResource.create(org.fracturedatlas.athena.helper.codes.model.Code) throws java.lang.Exception, with URI template, "", is treated as a resource method
  WARNING: A sub-resource method, public java.util.Collection org.fracturedatlas.athena.helper.codes.web.CodeResource.search(javax.ws.rs.core.UriInfo), with URI template, "", is treated as a resource method
  WARNING: A sub-resource method, public java.lang.Object org.fracturedatlas.athena.helper.healthcheck.web.HealthCheckResource.healthCheck() throws java.lang.Exception, with URI template, "", is treated as a resource method
2011-11-08 17:11:33.735:INFO::WebApp@567353809 at http://0.0.0.0:8080/athena
2011-11-08 17:11:33.746:INFO::Extract jar:file:/opt/athena/components/payments/war/payments.war!/ to /tmp/jetty-0.0.0.0-8080-payments.war-_payments-any-/webapp
2011-11-08 17:11:40.879:INFO::NO JSP Support for /payments, did not find org.apache.jasper.servlet.JspServlet
2011-11-08 17:11:41.365:INFO:/payments:Initializing Spring root WebApplicationContext
Nov 8, 2011 5:11:44 PM com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
INFO: Using default applicationContext
Nov 8, 2011 5:11:44 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, transactionsResource, of type org.fracturedatlas.athena.payments.web.resource.TransactionsResource as a root resource class
Nov 8, 2011 5:11:44 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, customersResource, of type org.fracturedatlas.athena.payments.web.resource.CustomersResource as a root resource class
Nov 8, 2011 5:11:44 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, cardsResource, of type org.fracturedatlas.athena.payments.web.resource.CardsResource as a root resource class
Nov 8, 2011 5:11:44 PM com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, healthCheckResource, of type org.fracturedatlas.athena.helper.healthcheck.web.HealthCheckResource as a root resource class
Nov 8, 2011 5:11:44 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:44 PM'
Nov 8, 2011 5:11:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.fracturedatlas.athena
Nov 8, 2011 5:11:45 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class org.fracturedatlas.athena.web.resource.FieldResource
  class org.fracturedatlas.athena.helper.healthcheck.web.HealthCheckResource
  class org.fracturedatlas.athena.payments.web.resource.CardsResource
  class org.fracturedatlas.athena.web.resource.RecordResource
  class org.fracturedatlas.athena.payments.web.resource.CustomersResource
  class org.fracturedatlas.athena.payments.web.resource.TransactionsResource
Nov 8, 2011 5:11:45 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Provider classes found:
  class org.fracturedatlas.athena.web.exception.AthenaException
  class org.fracturedatlas.athena.web.exception.JsonMappingExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonTicketCollectionSerializer
  class org.fracturedatlas.athena.web.serialization.JsonPropsSerializer
  class org.fracturedatlas.athena.web.exception.ObjectNotFoundException
  class org.fracturedatlas.athena.web.exception.ApaExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonPropFieldArraySerializer
  class org.fracturedatlas.athena.web.exception.NumberFormatExceptionMapper
  class org.fracturedatlas.athena.web.serialization.JsonPropValueArraySerializer
  class org.fracturedatlas.athena.web.exception.AthenaExceptionMapper
  class org.fracturedatlas.athena.web.exception.InvalidFieldNameExceptionMapper
  class org.fracturedatlas.athena.web.exception.ObjectNotFoundExceptionMapper
  class org.fracturedatlas.athena.web.exception.AthenaConflictExceptionMapper
  class org.fracturedatlas.athena.web.exception.InvalidFieldNameException
  class org.fracturedatlas.athena.web.serialization.JsonPropFieldSerializer
  class org.fracturedatlas.athena.web.serialization.JsonTicketSerializer
  class org.fracturedatlas.athena.web.serialization.JsonPropValueSerializer
Nov 8, 2011 5:11:45 PM com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder <init>
INFO: Instantiated the Application class org.fracturedatlas.athena.web.config.AthenaWebConfig
Nov 8, 2011 5:11:47 PM com.sun.jersey.spi.inject.Errors processErrorMessages
WARNING: The following warnings have been detected with resource and/or provider classes:
  WARNING: A sub-resource method, public java.lang.Object org.fracturedatlas.athena.payments.web.resource.CustomersResource.save(java.lang.String), with URI template, "", is treated as a resource method
  WARNING: A sub-resource method, public java.lang.Object org.fracturedatlas.athena.payments.web.resource.CardsResource.save(java.lang.String), with URI template, "", is treated as a resource method
  WARNING: A sub-resource method, public java.lang.Object org.fracturedatlas.athena.helper.healthcheck.web.HealthCheckResource.healthCheck() throws java.lang.Exception, with URI template, "", is treated as a resource method
2011-11-08 17:11:47.616:INFO::WebApp@567353809 at http://0.0.0.0:8080/payments
2011-11-08 17:11:47.661:INFO::Started SelectChann...@0.0.0.0:8080
@
@
@    Athena started on port 8080.  Have fun.
@
@


Gary Moore

unread,
Nov 9, 2011, 11:51:42 AM11/9/11
to athena-t...@googlegroups.com
Hi Dominic,

Try posting to http://host/fields.

I thought I had updated all the relevant documentation but I see I missed this on https://github.com/fracturedatlas/ATHENA/wiki/Fields. Is that were you found it?

Gary

Hi,

HTTP ERROR: 404

Powered by Jetty://

Thanks,
Dominic


--
Visit: http://athena.fracturedatlas.org
Fork: http://github.com/fracturedatlas
Chat: ##athena on Freenode

You received this email because you are subscribed to the "ATHENA Tix Developers" group on Google Groups.

To post, email: athena-t...@googlegroups.com
To unsubscribe, email: athena-tix-dev...@googlegroups.com
For more, visit: http://groups.google.com/group/athena-tix-devel?hl=en

Dominic Malvo

unread,
Nov 9, 2011, 12:05:40 PM11/9/11
to athena-t...@googlegroups.com
Hi Gary,

Thanks for the quick response.  I see that I left out what the 404 output was from... the previous response is from lynx http://localhost:8080/tix/meta/fields.

 I was following the Athena walkthrough at https://github.com/fracturedatlas/ATHENA/wiki/Walkthrough trying to make sure the service is running properly before handing it off to the developers -

Test your instance

Point your browser to http://localhost:8080/tix/meta/fields and you should see

[]

Thanks,
Dominic

Gary Moore

unread,
Nov 9, 2011, 12:17:27 PM11/9/11
to athena-t...@googlegroups.com
Dominic,

Ah, Walkthrough is old and outdated. I took down links to it but forgot to delete the page entirely so it wouldn't show up in Github's Wiki index. I'll fix it up tonight though so it at least accurately reflects the current version.

You'll find more accurate information here: https://github.com/fracturedatlas/ATHENA/wiki/Using-ATHENA

All endpoints with "stage" or "tix" or "meta" have been removed so that the general URL is

http://{hostname_of_athena}:{port}/{recordType}/

For example

http://localhost:8080/fields
http://localhost:8080/tickets

Thanks,
Gary

----- Original Message -----
From: "Dominic Malvo" <dpm...@gmail.com>
To: athena-t...@googlegroups.com
Sent: Wednesday, November 9, 2011 12:05:40 PM
Subject: Re: [athena-tix-devel] 404 error

Hi Gary,

Thanks for the quick response. I see that I left out what the 404 output was from... the previous response is from lynx http://localhost:8080/tix/meta/fields .

I was following the Athena walkthrough at https://github.com/fracturedatlas/ATHENA/wiki/Walkthrough trying to make sure the service is running properly before handing it off to the developers -
Test your instance


Point your browser to http://localhost:8080/tix/meta/fields and you should see []

Thanks,
Dominic


On Wed, Nov 9, 2011 at 11:51 AM, Gary Moore < gary....@fracturedatlas.org > wrote:


Hi Dominic,

Try posting to http://host/fields .

I thought I had updated all the relevant documentation but I see I missed this on https://github.com/fracturedatlas/ATHENA/wiki/Fields . Is that were you found it?

Dominic Malvo

unread,
Nov 9, 2011, 1:16:07 PM11/9/11
to athena-t...@googlegroups.com, r...@831digital.com
Hi Gary,

I still get 404s with these URLs.  Is that expected out of the box until the db is customized?

Thanks,
Dominic
Reply all
Reply to author
Forward
0 new messages