Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2462

helloworld-ws-sdo-webapp cannot be built using ant

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SCA-1.3
    • Java-SCA-1.3
    • Java SCA Samples
    • None
    • Patch Available

    Description

      Some classpath is missing in the script. The log is as below. (Sorry for the Chinese character. I don't know a easy way to set the locale on Windows platform). The error complains it cannot find some annotations.

      /-------------------------------------------
      Buildfile: build.xml

      init:

      generate-sdo:
      [java] >> Generating code
      [java] >> Generating packages
      [java] >> Generating package TypePackageImpl
      [java] >> Generating Java interface helloworld.type.TypeFactory
      [java] >> Generating /TargetProject/helloworld/type/TypeFactory.java
      [java] >> Examining old /TargetProject/helloworld/type/TypeFactory.java
      [java] >> Generating Java class helloworld.type.impl.TypeFactoryImpl
      [java] >> Generating /TargetProject/helloworld/type/impl/TypeFactoryImpl.java
      [java] >> Examining old /TargetProject/helloworld/type/impl/TypeFactoryImpl.java
      [java] >> Generating Person Base
      [java] >> Generating Java interface helloworld.type.Person_Base
      [java] >> Generating /TargetProject/helloworld/type/Person_Base.java
      [java] >> Examining old /TargetProject/helloworld/type/Person_Base.java
      [java] >> Generating Java class helloworld.type.impl.Person_BaseImpl
      [java] >> Generating /TargetProject/helloworld/type/impl/Person_BaseImpl.java
      [java] >> Examining old /TargetProject/helloworld/type/impl/Person_BaseImpl.java
      [java] >> Generating code
      [java] >> Generating packages
      [java] >> Generating package HelloworldPackageImpl
      [java] >> Generating Java interface helloworld.HelloworldFactory
      [java] >> Generating /TargetProject/helloworld/HelloworldFactory.java
      [java] >> Examining old /TargetProject/helloworld/HelloworldFactory.java
      [java] >> Generating Java class helloworld.impl.HelloworldFactoryImpl
      [java] >> Generating /TargetProject/helloworld/impl/HelloworldFactoryImpl.java
      [java] >> Examining old /TargetProject/helloworld/impl/HelloworldFactoryImpl.java
      [java] >> Generating get Greetings
      [java] >> Generating Java interface helloworld.getGreetings
      [java] >> Generating /TargetProject/helloworld/getGreetings.java
      [java] >> Examining old /TargetProject/helloworld/getGreetings.java
      [java] >> Generating Java class helloworld.impl.getGreetingsImpl
      [java] >> Generating /TargetProject/helloworld/impl/getGreetingsImpl.java
      [java] >> Examining old /TargetProject/helloworld/impl/getGreetingsImpl.java
      [java] >> Generating get Greetings Response
      [java] >> Generating Java interface helloworld.getGreetingsResponse
      [java] >> Generating /TargetProject/helloworld/getGreetingsResponse.java
      [java] >> Examining old /TargetProject/helloworld/getGreetingsResponse.java
      [java] >> Generating Java class helloworld.impl.getGreetingsResponseImpl
      [java] >> Generating /TargetProject/helloworld/impl/getGreetingsResponseImpl.java
      [java] >> Examining old /TargetProject/helloworld/impl/getGreetingsResponseImpl.java
      [java] >> Generating Party
      [java] >> Generating Java interface helloworld.Party
      [java] >> Generating /TargetProject/helloworld/Party.java
      [java] >> Examining old /TargetProject/helloworld/Party.java
      [java] >> Generating Java class helloworld.impl.PartyImpl
      [java] >> Generating /TargetProject/helloworld/impl/PartyImpl.java
      [java] >> Examining old /TargetProject/helloworld/impl/PartyImpl.java
      [java] >> Generating Person
      [java] >> Generating Java interface helloworld.Person
      [java] >> Generating /TargetProject/helloworld/Person.java
      [java] >> Examining old /TargetProject/helloworld/Person.java
      [java] >> Generating Java class helloworld.impl.PersonImpl
      [java] >> Generating /TargetProject/helloworld/impl/PersonImpl.java
      [java] >> Examining old /TargetProject/helloworld/impl/PersonImpl.java

      compile:
      [javac] Compiling 17 source files to D:\apache-tuscany-sca-1.3\tuscany-sca-1.3\samples\helloworld-ws-sdo-webapp\target\classes
      [javac] D:\apache-tuscany-sca-1.3\tuscany-sca-1.3\samples\helloworld-ws-sdo-webapp\src\main\java\helloworld\HelloWorld.java:28: 软件包 org.osoa.sca.annotations 不存在
      [javac] import org.osoa.sca.annotations.Remotable;
      [javac] ^
      [javac] D:\apache-tuscany-sca-1.3\tuscany-sca-1.3\samples\helloworld-ws-sdo-webapp\src\main\java\helloworld\HelloWorldImpl.java:23: 软件包 org.osoa.sca.annotations 不存在
      [javac] import org.osoa.sca.annotations.Service;
      [javac] ^
      [javac] D:\apache-tuscany-sca-1.3\tuscany-sca-1.3\samples\helloworld-ws-sdo-webapp\src\main\java\helloworld\HelloWorld.java:34: 找不到符号
      [javac] 符号: 类 Remotable
      [javac] @Remotable
      [javac] ^
      [javac] D:\apache-tuscany-sca-1.3\tuscany-sca-1.3\samples\helloworld-ws-sdo-webapp\src\main\java\helloworld\HelloWorldImpl.java:25: 找不到符号
      [javac] 符号: 类 Service
      [javac] @Service(HelloWorld.class)
      [javac] ^
      [javac] 注意:某些输入文件使用或覆盖了已过时的 API。
      [javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
      [javac] 注意:某些输入文件使用了未经检查或不安全的操作。
      [javac] 注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
      [javac] 4 错误

      Attachments

        1. build.xml
          4 kB
          Yang Sun

        Activity

          People

            Unassigned Unassigned
            syyzxsyf Yang Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: