[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-user
Subject: RE: axis2 Could not identify the Annotation
From: Martin Gainty <mgainty () hotmail ! com>
Date: 2013-10-12 23:16:26
Message-ID: BLU172-W372DF17D143BD4D043FB42AE180 () phx ! gbl
[Download RAW message or body]
if your intention is to PUBLISH a service you should annotate with @Produces
https://jsr311.java.net/nonav/javadoc/javax/ws/rs/Produces.html
(the container WILL USE THE VALUE of the Produces when sending a response)
If on the other hand the container sees no acceptable value for Produces
"If no such method is available the container must respond with a HTTP "406 Not \
Acceptable" as specified by RFC 2616"
HTH,
Martin
Date: Sat, 12 Oct 2013 16:08:26 +0800
From: hellozengsong@gmail.com
To: java-user@axis.apache.org
Subject: axis2 Could not identify the Annotation
axis2-1.6.2 Deploy tomcat7.0
console:
Could not identify the Annotation....
Could not identify the Annotation....
my code:
@Service("iMSServiceImpl")
public class SimpleServiceImpl implements SimpleService{
@Autowired
@Qualifier("iMSServiceFunction")
private SimpleDao simpleDao;
}
out Could not identify the Annotation Tips for how to solve this
hellozengsong@gmail
[Attachment #3 (text/html)]
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>if your intention is to PUBLISH a service \
you should annotate with @Produces<BR><A \
href="https://jsr311.java.net/nonav/javadoc/javax/ws/rs/Produces.html" \
target=_blank>https://jsr311.java.net/nonav/javadoc/javax/ws/rs/Produces.html</A><BR>(the \
container WILL USE THE VALUE of the <CODE>Produces</CODE> when sending a \
response)<BR>If on the other hand the container sees no acceptable value for \
Produces<BR>"If no such method is available the container must respond with a HTTP \
"406 Not Acceptable" as specified by RFC \
2616"<BR><BR>HTH,<BR>Martin<BR><BR><BR> <BR> <DIV>
<DIV dir=ltr>
<DIV>
<HR id=ecxstopSpelling>
Date: Sat, 12 Oct 2013 16:08:26 +0800<BR>From: hellozengsong@gmail.com<BR>To: \
java-user@axis.apache.org<BR>Subject: axis2 Could not identify the Annotation<BR><BR> \
<STYLE><!--
.ExternalClass BLOCKQUOTE {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
MARGIN-LEFT:2em;
}
.ExternalClass OL {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
}
.ExternalClass UL {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
}
.ExternalClass P {
MARGIN-TOP:0px;
MARGIN-BOTTOM:0px;
}
.ExternalClass {
LINE-HEIGHT:1.5;
COLOR:#000000;
FONT-SIZE:10.5pt;
}
--></STYLE>
<DIV>axis2-1.6.2 Deploy tomcat7.0 </DIV>
<DIV>console:</DIV>
<DIV>
<DIV>Could not identify the Annotation....</DIV>
<DIV>Could not identify the Annotation....</DIV>
<DIV> </DIV></DIV>
<DIV>my code: </DIV>
<DIV>@Service("iMSServiceImpl") </DIV>
<DIV>public class SimpleServiceImpl implements SimpleService{</DIV>
<DIV>
<DIV>@Autowired</DIV>
<DIV>@Qualifier("iMSServiceFunction")</DIV></DIV>
<DIV>private SimpleDao simpleDao;</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>out Could not identify the Annotation \
Tips for how to solve this </DIV> <HR style="WIDTH: 210px; \
HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>hellozengsong@gmail</SPAN></DIV></DIV></DIV></DIV> \
</div></body> </html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic