1 Reply Latest reply on Jul 26, 2004 12:46 AM by gnepys

    JBossBook_323.zip Examples don't compile

    hillel

      I've just got the latests docs and installed JBossBook_323.zip
      I changed the examples/build.xml file - changing the jboss.dist to /usr/local/jboss-3.2.3
      Then I ran the examples according to the pdf

      [examples]$ ant -Dchap=chap6 -Dex=1p2p run-example
      Buildfile: build.xml

      validate:
      [java] ImplementationTitle: JBoss [WonderLand]
      [java] WARNING: requested version: 3.2 does not match the run.jar version: JBoss (http://www.jboss.org/)
      [java] ImplementationVendor: 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
      [java] ImplementationVersion: JBoss.org
      [java] SpecificationTitle: JBoss
      [java] SpecificationVendor: 3.2.3
      [java] SpecificationVersion: JBoss (http://www.jboss.org/)
      [java] JBoss version is: JBoss (http://www.jboss.org/)
      [java] Java Result: 1

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=/usr/local/jboss-3.2.3

      compile-src:

      config:
      [echo] Preparing chap12 configuration fileset
      [copy] Copying 1 file to /usr/local/jboss-3.2.3/server/chap12/conf

      compile-src:
      [echo] Generating xdoclet source
      [ejbdoclet] [INFO] start - -Running
      [ejbdoclet] [INFO] start - -Running
      [ejbdoclet] [INFO] start - -Running
      [ejbdoclet] [INFO] start - -Running
      [ejbdoclet] [INFO] start - -Running
      [ejbdoclet] [INFO] start - -Running
      [echo] Generating wsdl client

      compile:
      [javac] Compiling 139 source files to /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/output/classes
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/test/util/ejb/RemoteTestException.java:60: warning: The class `java.io.PrintStream' has been deprecated.
      [javac] public void printStackTrace(java.io.PrintStream ps)
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/test/util/ejb/RemoteAssertionFailedError.java:59: warning: The class `java.io.PrintStream' has been deprecated.
      [javac] public void printStackTrace(java.io.PrintStream ps)
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3b/ExClient.java:0: error: cannot find file for class javax.security.auth.callback.CallbackHandler
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3b/ExClient.java:5: error: Class or interface `javax.security.auth.login.LoginContext' not found in import.
      [javac] import javax.security.auth.login.LoginContext;
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3b/ExClient.java:46: error: Type `LoginContext' not found in the declaration of the local variable `lc'.
      [javac] LoginContext lc = new LoginContext("srpHAReadOnlyJNDI", handler);
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3a/ExClient.java:6: error: Class or interface `javax.security.auth.login.LoginContext' not found in import.
      [javac] import javax.security.auth.login.LoginContext;
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3a/ExClient.java:42: error: Type `LoginContext' not found in the declaration of the local variable `lc'.
      [javac] LoginContext lc = new LoginContext("srpHA", handler);
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3/ExClientSetup.java:7: error: Class or interface `javax.security.auth.login.LoginContext' not found in import.
      [javac] import javax.security.auth.login.LoginContext;
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3/ExClient.java:5: error: Class or interface `javax.security.auth.login.LoginContext' not found in import.
      [javac] import javax.security.auth.login.LoginContext;
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex3/ExClient.java:27: error: Type `LoginContext' not found in the declaration of the local variable `lc'.
      [javac] LoginContext lc = new LoginContext("srp", handler);
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex2/JndiUserAndPass.java:0: error: cannot find file for class javax.security.auth.spi.LoginModule
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex2/ExClient.java:4: error: Class or interface `javax.security.auth.login.LoginContext' not found in import.
      [javac] import javax.security.auth.login.LoginContext;
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap8/ex2/ExClient.java:21: error: Type `LoginContext' not found in the declaration of the local variable `lc'.
      [javac] LoginContext lc = new LoginContext("ExClient", handler);
      [javac] ^
      [javac] /home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/src/main/org/jboss/chap12/hello/HelloBean.java:0: internal compiler error: Segmentation fault
      [javac] Please submit a full bug report,
      [javac] with preprocessed source if appropriate.
      [javac] See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

      BUILD FAILED
      file:/home/hillel/jbossdocsmay/Disk1/AllDocsSubscription/AdminDevel/examples/build.xml:101: Compile failed; see the compiler error output for details.

      Total time: 3 seconds

      I'm using j2sdk1.4.2_04
      Any help appreciated