Hi Travis,
What version of Jersey are you using?
I think it is complaining because it does not know how to inject:
@Context IcWebSession session
How have you defined injection of the IcWebSession?
Paul.
On Jul 22, 2010, at 12:51 AM, Beech, Travis wrote:
> All,
>
> I am getting a com.sun.jersey.api.container.ContainerException on
> startup of my web application.
>
> The exception message is as follows:
>
> Method, public org.w3c.dom.Document
> com
> .ejgallo
> .finance
> .accountspayable
> .payments.attachments.Attachments.deleteDocRepoDocument
> (com
> .ejgallo
> .finance
> .accountspayable
> .web.IcWebSession,java.lang.String,java.lang.String,java.lang.String),
> annotated with GET of resource, class
> com
> .ejgallo.finance.accountspayable.payments.attachments.Attachments,
> is not recognized as valid Java method annotated with @HttpMethod.
>
> The method that is referenced in the exception message is declared
> as follows:
>
> @GET
> @Path( "/documents/delete/{nodeid}/{filename}/{jobinstanceid}" )
> @Produces( MediaType.TEXT_XML )
> public Document deleteDocRepoDocument(
> @Context IcWebSession session,
> @PathParam( "nodeid" ) String nodeid,
> @PathParam( "filename" ) String filename,
> @PathParam( "jobinstanceid" ) String jobinstanceid )
> {
> ...
> }
>
> I'm not sure why it's complaining about this method, any thoughts?
>
> Thank you in advance,
>
> Travis Beech | Programmer Analyst | E&J Gallo Winery
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>