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

Lukas Jungmann (JIRA) jira-events at lists.jboss.org
Wed Dec 15 06:23:52 EST 2010


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

Lukas Jungmann edited comment on JBIDE-7681 at 12/15/10 6:23 AM:
-----------------------------------------------------------------

I think I've found a core of the problem here - see attached (quick and dirty) patch which should fix the problem

re first - I have no problem with that but do we know all possible usecases? User may have a reason to create more services in one project
re second - again, no problem with that I but think we did not understand each other here. My question was why an instance of ServiceModel (used in the MergeWebXMLCommand) does not contain only info/data about service I'm currently creating but also data about something completely unrelated, ie try following testcase:

-create a new Dynamic web project
-create following interface there:

package x;

import javax.jws.WebService;

@WebService()
public interface Zws {

}

-create some Top-Down ws there using default settings package (use default package)
-open web.xml

=> contains Zws service definition - ??? I did not touch this - another way to get this bug - attached patch should fix this

-inspect package x in package explorer
=> contains ZwsImpl class - ??? wow - another bug (if this class would exist, it will be overwritten - next bug) - this may not be fixed by the proposed patch in all possible cases


      was (Author: jlukas at redhat.com):
    I think I've found a core of the problem here - see attached (quick and dirty) patch which should fix the problem

re first - I have no problem with that but do we know all possible usecases? User may have a reason to create more services in one project
re second - again, no problem with that I but think we did not understand each other here. My question was why an instance of ServiceModel (used in the MergeWebXMLCommand) does not contain only info/data about service I'm currently creating but also data about something completely unrelated, ie try following testcase:

-create a new Dynamic web project
-create following interface there:

package x;

import javax.jws.WebService;

@WebService()
public interface Zws {

}

-create some Top-Down ws there using default settings package (use default package)
-open web.xml

=> contains Zws service definition - ??? I did not touch this - another way to get this bug - attached patch should fix this

-inspect package x in package explorer
=> contains ZwsImpl class - ??? wow - another bug (if this class would exist, it will be overwritten - next bug) - this is not fixed by the proposed patch

  
> 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
>
>         Attachments: JBIDE-7681.diff, WsdlWsAssemble.wsdl, WsdlWsDeploy.wsdl
>
>   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