wsit
  1. wsit
  2. WSIT-1504

Update WS-AT samples to reflect Metro 2.1 WS-TX implementation changes

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: current
    • Component/s: docs
    • Labels:
      None

      Description

      The purpose of this task is to collect feedback in the form of comments about issues with running the existing WS-TX sample according to instructions from the current version of the Metro user guide: http://metro.java.net/guide/Building__Deploying_and_Running_the_basicWSTX_Example.html

      In the next phase, this feedback will be incorporated into the updated Metro user guide as well as the WS-TX sample source code.

        Activity

        Hide
        hirokato added a comment -

        "4. Use the NetBeans IDE to create a database connection"
        We may get the following error mesage:

        Unable to add connection. Cannot establish connection to
        jdbc:derby://localhost:1527/wstxSampleDB using org.apache.derby.jdbc.ClientDriver(The connection was refused because the database wstxSampleDB was not found).

        We can add
        create=true
        in the Additional Props field, and the URL should be
        jdbc:derby://localhost:1527/wstxSampleDB;create=true

        Then the database is created, and connected.

        Show
        hirokato added a comment - "4. Use the NetBeans IDE to create a database connection" We may get the following error mesage: Unable to add connection. Cannot establish connection to jdbc:derby://localhost:1527/wstxSampleDB using org.apache.derby.jdbc.ClientDriver(The connection was refused because the database wstxSampleDB was not found). We can add create=true in the Additional Props field, and the URL should be jdbc:derby://localhost:1527/wstxSampleDB;create=true Then the database is created, and connected.
        Hide
        hirokato added a comment -

        6. Open the SampleService project and associate the SampleService web service with the appropriate instance

        During building SampleService-ejb\nbproject, there is an exception.

        wsittutorial\examples\wstx\basicWSTX\SampleService\SampleService-ejb\nbproject\build-impl.xml:158: The Java EE server classpath is not correctly set up. Your active server type is J2EE.
        Either open the project in the IDE and assign the server or setup the server classpath manually.
        For example like this:
        ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
        or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
        BUILD FAILED (total time: 0 seconds)

        We may add
        j2ee.platform.classpath=
        in Service-war/nbproject/project.properties and Service-ejb/nbproject/project.properties

        Show
        hirokato added a comment - 6. Open the SampleService project and associate the SampleService web service with the appropriate instance During building SampleService-ejb\nbproject, there is an exception. wsittutorial\examples\wstx\basicWSTX\SampleService\SampleService-ejb\nbproject\build-impl.xml:158: The Java EE server classpath is not correctly set up. Your active server type is J2EE. Either open the project in the IDE and assign the server or setup the server classpath manually. For example like this: ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) BUILD FAILED (total time: 0 seconds) We may add j2ee.platform.classpath= in Service-war/nbproject/project.properties and Service-ejb/nbproject/project.properties
        Hide
        hirokato added a comment -

        9. Deploy the SampleService web service.

        During Deploy, I have symbol not found as:

        package javax.ejb does not exist
        import javax.ejb.*;
        D:\proj\research\glassfish_sample\wsittutorial\examples\wstx\basicWSTX\SampleService\SampleService-ejb\src\java\sb\LibraryFacadeWebServiceBean.java:19: cannot find symbol
        symbol: class Stateless
        @Stateless

        I add "Java EE 6 API Library" on SampleService-ejb->Compile-time Libraries.

        Show
        hirokato added a comment - 9. Deploy the SampleService web service. During Deploy, I have symbol not found as: package javax.ejb does not exist import javax.ejb.*; D:\proj\research\glassfish_sample\wsittutorial\examples\wstx\basicWSTX\SampleService\SampleService-ejb\src\java\sb\LibraryFacadeWebServiceBean.java:19: cannot find symbol symbol: class Stateless @Stateless I add "Java EE 6 API Library" on SampleService-ejb->Compile-time Libraries.
        Hide
        hirokato added a comment -

        9. Deploy the SampleService web service.

        During Deploy, I have symbol not found as:
        package com.sun.xml.ws.api.tx does not exist
        import com.sun.xml.ws.api.tx.ATTransaction;
        import com.sun.xml.ws.api.tx.TransactionManagerFactory;
        2 errors

        Edit
        wsittutorial\examples\wstx\basicWSTX\SampleService\SampleService-ejb\src\java\sb\SimpleAsCMTEjb.java
        file and remove the lines 23 and 25:

        import com.sun.xml.ws.api.tx.ATTransaction;
        import com.sun.xml.ws.api.tx.TransactionManagerFactory;

        Those imports don't seem to be used in the class at all and reference classes that no longer exist in Metro 2.1

        Show
        hirokato added a comment - 9. Deploy the SampleService web service. During Deploy, I have symbol not found as: package com.sun.xml.ws.api.tx does not exist import com.sun.xml.ws.api.tx.ATTransaction; import com.sun.xml.ws.api.tx.TransactionManagerFactory; 2 errors Edit wsittutorial\examples\wstx\basicWSTX\SampleService\SampleService-ejb\src\java\sb\SimpleAsCMTEjb.java file and remove the lines 23 and 25: import com.sun.xml.ws.api.tx.ATTransaction; import com.sun.xml.ws.api.tx.TransactionManagerFactory; Those imports don't seem to be used in the class at all and reference classes that no longer exist in Metro 2.1
        Hide
        hirokato added a comment -

        10. Register the SampleServiceClient client with the appropriate instance (domain2) of the Application Server

        There is an exception during build:
        Either open the project in the IDE and assign the server or setup the server classpath manually.
        For example like this:
        ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
        or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
        BUILD FAILED (total time: 0 seconds)

        We may add
        j2ee.platform.classpath=
        in SampleServiceClient/nbproject/project.properties

        Show
        hirokato added a comment - 10. Register the SampleServiceClient client with the appropriate instance (domain2) of the Application Server There is an exception during build: Either open the project in the IDE and assign the server or setup the server classpath manually. For example like this: ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) BUILD FAILED (total time: 0 seconds) We may add j2ee.platform.classpath= in SampleServiceClient/nbproject/project.properties

          People

          • Assignee:
            arjavdesai
            Reporter:
            Marek Potociar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: