[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7681) Cannot create two or more top down web services in a web project

Lukas Jungmann (JIRA) jira-events at lists.jboss.org
Mon Dec 13 09:23:52 EST 2010


    [ https://issues.jboss.org/browse/JBIDE-7681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569617#comment-12569617 ] 

Lukas Jungmann commented on JBIDE-7681:
---------------------------------------

I agree with you Grid but the cause of this issue is, IMHO, a bug in the tooling since while I was debugging the code I think I've found out something wrong - but I may be wrong here and everything is "by design"... - anyway:

 I did put a breakpoint on line 190 in MergeWebXMLCommand - addjeeServlet method - in a call stack I saw that this method is called from mergeWebXML method. From the method name I'd assume that this method is responsible for merging passed arguments - servletDescriptors - into current (existing) web.xml. The problem I see here is that the value of serverDescriptors always contains xml data for all services found in the project regardless whether they've been already added to web.xml or not.
 In the other words - when I'm creating the first service, say "s.A", web.xml is empty and servletDescriptors contains ["s.A"], when I'm creating the second service, say "s.B", web.xml already contains "s.A" and servletDescriptors contains ["s.A", "s.B"] and now when mergeWebXML method tries to merge this - boom - it is adding "s.A" to web.xml but such entry is already there (even though I'm creating "s.B" and I'm not touching "s.A"). So the real question here, IMO, is why an instance of servletDescriptors passed to mergeWebXML method contains info about all services in the project instead of containing info only about newly created service? Is it by design?

> Cannot create two or more top down web services in a web project
> ----------------------------------------------------------------
>
>                 Key: JBIDE-7681
>                 URL: https://issues.jboss.org/browse/JBIDE-7681
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.2.0.CR1
>            Reporter: Lukas Jungmann
>            Assignee: Brian Fitzpatrick
>            Priority: Critical
>             Fix For: 3.2.0.CR1
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> -create a new ear project ("Ear")
> -create a new dynamic web project ("WsWar")
> -create a top down ws from some wsdl using wtp wizard in WsWar project
>    - ws project WsWar, ear project Ear, server runtime JBossAS6.0, ws runtime JBossWS
> -create another top down ws from different wsdl there
>    - ws project WsWar, ear project Ear, server runtime JBossAS6.0, ws runtime JBossWS
> => wizard ends with "The Web Service Name has been used in the web.xml of the web project." error message and doesn't allow user to finish it but all I'm trying to do is to create two completely different services in one project
> message is comming from line 190 in org.jboss.tools.ws.creation.core.commands.MergeWebXMLCommand

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list