taskdef class com.sun.tools.ws.ant.WsImport cannot be found Following “The java web services tutorial”

后端 未结 11 1455
梦毁少年i
梦毁少年i 2021-02-02 15:50

I saw the same issue in many different locations and even after a good portion of googling, I could not resolve it. What I am trying to do (the bigger picture) is to go through

11条回答
  •  -上瘾入骨i
    2021-02-02 16:00

    I fully support non-IDE development, especially when trying to learn something ;). Try starting with this simple build file (use the actual location of your JAX-WS RI install):

    
    
        
    
        
            
        
    
        
    
        
            
                
            
        
    
    
    

    If you just run ant, you should see some output like the following:

    wsimport:
     [wsimport] Consider using / so that wsimport won't do unnecessary compilation
     [wsimport] JAX-WS RI 2.2.1-b01-
    

    Since it looks like you're using Java 6, pay attention to "Running on JDK6".

提交回复
热议问题