[jboss-jira] [JBoss JIRA] Commented: (JBAS-8403) <service-ref> element specified in jboss-web.xml is ignored for annotation driven servlets
Remy Maucherat (JIRA)
jira-events at lists.jboss.org
Mon Sep 13 09:40:13 EDT 2010
[ https://jira.jboss.org/browse/JBAS-8403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12550542#action_12550542 ]
Remy Maucherat commented on JBAS-8403:
--------------------------------------
org.jboss.web.deployers.WarAnnotationMetaDataDeployer produces a WebMetaData (equivalent to web.xml) that is attached as different names depending on where they come from (look at the class to get a better idea). It does not produce a JBossWebMetaData. Note: There is no fragment involved here.
Are you sure the @WebServiceRef and other annotations are processed correctly ? Normally, there's no difference in metadata between the "real" servlet metadata from web.xml and the servlet metadata from the annotation. Things then all get merged together in MergedJBossWebMetaDataDeployer, which produces the final JBossWebMetaData that you should use. So another option is that you may not be using the right metadata object to create your web services ?
Right when deploying, I can see the non working version:
15:28:21,057 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://Echo.org}EchoService from WSDL: vfs:/home/remm/Work/jbossas-6/build/target/jboss-6.0.0-SNAPSHOT/server/all/deploy/jaxws-jbws3123.ear/jaxws-jbws3123-web.war/WEB-INF/wsdl/EchoService.wsdl
And the working one:
15:31:32,833 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://Echo.org}EchoService from WSDL: http://localhost:8080/jaxws-jbws3123-ejb/EchoBean?WSDL
> <service-ref> element specified in jboss-web.xml is ignored for annotation driven servlets
> -------------------------------------------------------------------------------------------
>
> Key: JBAS-8403
> URL: https://jira.jboss.org/browse/JBAS-8403
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Reporter: Richard Opalka
> Assignee: Remy Maucherat
> Priority: Blocker
> Fix For: 6.0.0.CR1
>
> Attachments: jaxws-jbws3123.ear, working-jaxws-jbws3123.ear
>
>
> I have Servlet 3 spec. compliant servlet that injects Web Service references.
> I provide jboss-web.xml to override some runtime data (wsdl-location namely).
> However this jboss-web.xml provided file seems ignored.
> I was debugging this problem and I found that
> org.jboss.web.deployers.WarAnnotationMetaDataDeployer
> creates JBossWebMetaData that are later used for Web Service References injection.
> What I'm missing is some "merge" code that will override WarAnnotationMetaDataDeployer
> provided JBossWebMetaData with JBossWebMetaData specified in jboss-web.xml
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list