5 Replies Latest reply: Oct 31, 2006 5:02 PM by 543184 RSS

    fbs 10g sample can't do ant make

    213743
      Hello!
      i'm trying to build FBS 10g sample but i've an error
      compiling. What about??
      It can't found package oracle.j2ee.xml.rpc.encoding.literal.*;
      where would it be??

      web-classes:
      [javac] Compiling 46 source files to C:\ibfbs\build\web\WEB-INF\classes
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:19: package oracle.j2ee.xml.rpc.encoding
      .literal does not exist
      [javac] import oracle.j2ee.xml.rpc.encoding.literal.*;
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:21: cannot resolve symbol
      [javac] symbol : class SerializerRegistryBase
      [javac] location: class oracle.otnsamples.ibfbs.admin.helper.wsclient.FBSSto
      ckQuoteService_SerializerRegistry
      [javac] public class FBSStockQuoteService_SerializerRegistry extends Seriali
      zerRegistryBase implements SerializerConstants {
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\Stock
      QuoteService_Stub.java:27: package oracle.j2ee.xml.rpc.client.http does not exis
      t
      [javac] import oracle.j2ee.xml.rpc.client.http.*;
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\Stock
      QuoteService_Stub.java:32: cannot access com.sun.xml.rpc.spi.runtime.StubBase
      [javac] file com\sun\xml\rpc\spi\runtime\StubBase.class not found
      [javac] public class StockQuoteService_Stub
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_Impl.java:68: incompatible types
      [javac] found : oracle.otnsamples.ibfbs.admin.helper.wsclient.StockQuoteSe
      rvice_Stub
      [javac] required: oracle.otnsamples.ibfbs.admin.helper.wsclient.StockQuoteSe
      rvice
      [javac] return stub;
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:29: cannot access com.sun.xml.rpc.spi.to
      ols.SOAPConstants
      [javac] file com\sun\xml\rpc\spi\tools\SOAPConstants.class not found
      [javac] TypeMapping mapping = registry.getTypeMapping(SOAPConstants.
      NS_SOAP_ENCODING);
      [javac] ^

      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:34: cannot access com.sun.xml.rpc.spi.ru
      ntime.SOAPConstants
      [javac] file com\sun\xml\rpc\spi\runtime\SOAPConstants.class not found
      [javac] DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_EN
      CODING);
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:42: cannot resolve symbol
      [javac] symbol : variable NS_SOAP_ENCODING
      [javac] location: class com.sun.xml.rpc.encoding.soap.SOAPConstants
      [javac] ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODIN
      G ,
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:50: cannot resolve symbol
      [javac] symbol : variable NS_SOAP_ENCODING
      [javac] location: class com.sun.xml.rpc.encoding.soap.SOAPConstants
      [javac] DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_EN
      CODING);
      [javac] ^
      [javac] C:\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\FBSSt
      ockQuoteService_SerializerRegistry.java:58: cannot resolve symbol
      [javac] symbol : variable NS_SOAP_ENCODING
      [javac] location: class com.sun.xml.rpc.encoding.soap.SOAPConstants
      [javac] ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODIN
      G ,
      [javac] ^
      [javac] An exception has occurred in the compiler (1.4.1). Please file a bug
      at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) a
      fter checking the Bug Parade for duplicates. Include your program and the follow
      ing diagnostic in your report. Thank you.
      [javac] java.lang.NullPointerException
      [javac] at com.sun.tools.javac.v8.comp.Check$Validator.visitSelect(Check
      .java:443)
      [javac] at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java:1091
      )
      [javac] at com.sun.tools.javac.v8.comp.Check.validate(Check.java:415)
      [javac] at com.sun.tools.javac.v8.comp.Check.validate(Check.java:426)
      [javac] at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:13
      83)
      [javac] at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1366)
      [javac] at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1342)
      [javac] at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java
      :358)
      [javac] at com.sun.tools.javac.v8.Main.compile(Main.java:520)
      [javac] at com.sun.tools.javac.Main.compile(Main.java:36)
      [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [javac] at java.lang.reflect.Method.invoke(Method.java:324)
      [javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac
      13.java:98)
      [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:976)
      [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
      [javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
      va:306)
      [javac] at org.apache.tools.ant.Task.perform(Task.java:401)
      [javac] at org.apache.tools.ant.Target.execute(Target.java:338)
      [javac] at org.apache.tools.ant.Target.performTasks(Target.java:365)
      [javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1237)

      [javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1094
      )
      [javac] at org.apache.tools.ant.Main.runBuild(Main.java:669)
      [javac] at org.apache.tools.ant.Main.startAnt(Main.java:220)
      [javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
      [javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

      BUILD FAILED
      C:\ibfbs\build.xml:213: Compile failed; see the compiler error output for detail
      s.
        • 1. Re: fbs 10g sample can't do ant make
          3737
          Hi,

          FBS was certified on a prev build of OC4J. We will be certifiying on the latest OC4J asap. We will update and upload the FBS source on OTN within the next 24-48 hrs and update this thread.

          Thanks for your patience.

          • 2. Re: fbs 10g sample can't do ant make
            3737
            Hi,

            The source has been updated, please download the jar file again to try the sample application.

            http://otn.oracle.com/sample_code/tech/java/j2ee/fbs10g/index.html

            Regards
            Elango.
            • 3. Re: fbs 10g sample can't do ant make
              213743
              wonderfull!
              thanks a lot

              Cristian
              • 4. Re: fbs 10g sample can't do ant make
                424395
                Hi:

                I am having same problem with ant make
                and i used both versions of fbs10g. I am using OC4J10g10.0.3

                Please help.

                Thanks in advance.

                My log file looks like:

                gen-client:
                [echo] Using Web Service Asswembler from c:/oc4j/webservices/lib/wsa.jar
                [java] INFO: Starting Web Services Assembler preview. build Feb-10-2004
                [java] INFO: Configuration file is D:\Project\ibfbs\config\client-config.xml
                [java] Exception during compile, trying again with shorter command line
                .....
                [java]      at java.lang.Runtime.exec(Runtime.java:326)
                [java]      at oracle.j2ee.ws.tools.wsa.Compiler.compile(Compiler.java:122)
                [java]      at oracle.j2ee.ws.tools.wsa.Compiler.compile(Compiler.java:134)
                [java]      at oracle.j2ee.ws.tools.wsa.Compiler.compile(Compiler.java:80)
                [java

                --
                web-classes:
                [javac] Compiling 48 source files to D:\Project\ibfbs\build\web\WEB-INF\classes
                [javac] D:\Project\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\StockQuoteEJB_Impl.java:9: package oracle.j2ee.ws.common.encoding does not exist
                [javac] import oracle.j2ee.ws.common.encoding.*;
                [javac] ^
                [javac] D:\Project\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\StockQuoteEJB_Impl.java:10: package oracle.j2ee.ws.client does not exist
                [javac] import oracle.j2ee.ws.client.ServiceExceptionImpl;
                [javac] ^
                [javac] D:\Project\ibfbs\web\src\oracle\otnsamples\ibfbs\admin\helper\wsclient\StockQuoteEJB_Impl.java:11: package oracle.j2ee.ws.common.util.exception does not exist
                [javac] import oracle.j2ee.ws.common.util.exception.*;
                [javac] ^
                .....
                • 5. Re: fbs 10g sample can't do ant make
                  543184
                  Hi,
                  Is FBS still working?
                  I followed all the instructions on OTN for it, but have trouble with "ant make".
                  First the build failed at wsa.jar, -config no longer valid in 10.3.1, so I installed OC4j 9. It got past wsa, but now I get errors like:

                  [javac] C:\FBS\ibfbs\ejb\src\oracle\otnsamples\ibfbs\trademanagement\ejb\Tra
                  deHelper.java:82: cannot find symbol
                  [javac] symbol : class ReadObjectQuery
                  [javac] location: class oracle.otnsamples.ibfbs.trademanagement.ejb.TradeHel
                  per
                  [javac] ReadObjectQuery readRate = new ReadObjectQuery(Stockrate.class);

                  [javac] ^
                  [javac] C:\FBS\ibfbs\ejb\src\oracle\otnsamples\ibfbs\trademanagement\ejb\Tra
                  deHelper.java:82: cannot find symbol
                  [javac] symbol : class ReadObjectQuery
                  [javac] location: class oracle.otnsamples.ibfbs.trademanagement.ejb.TradeHel
                  per
                  [javac] ReadObjectQuery readRate = new ReadObjectQuery(Stockrate.class);

                  [javac] ^
                  [javac] C:\FBS\ibfbs\ejb\src\oracle\otnsamples\ibfbs\trademanagement\ejb\Tra
                  deHelper.java:83: cannot find symbol
                  [javac] symbol : class ExpressionBuilder
                  [javac] location: class oracle.otnsamples.ibfbs.trademanagement.ejb.TradeHel
                  per

                  Are class files missing or what's the problem?

                  Thanks.