3 Replies Latest reply on Oct 26, 2004 5:49 PM by Bill Burke

    Compiling Tutorials

    Fabrizio Boco Newbie

      On my linux box (Suse 9.0) I have installed:

      * jdk1.5.0
      * Jboss 4.0.0
      * JBoss AOP 1.0 RC2
      * EJB3.0 Preview release

      following the istructions in Installing EJB 3.0.

      When I compile the stateless tutorial (running ant into the stateless directory) I get the errrors:

      Illegal character: \64

      @Stateless
      ^

      Illegal character: \64

      @Local
      ^

      Illegal character: \64

      @Remote
      ^
      What's wrong ?

      Thanks

      Ciao

      Fabrizio

        • 1. Re: Compiling Tutorials
          Bill Burke Master

          check your PATH and your JAVA_HOME environment variable. I've seen this exact error when I compile with JDK 1.4.x.

          Bill

          • 2. Re: Compiling Tutorials
            Fabrizio Boco Newbie

            Bill,

            thank you, I checked JAVA_HOME before posting but I had not seen the mistake !!

            Now is working fine, but running the client from another machine I get this error:

            Exception in thread "main" javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.stateless.StatelessRemoteProxy (no security manager: RMI class loader disabled)]
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:653)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at org.jboss.tutorial.stateless.client.Client.main(Client.java:24)
            Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.stateless.StatelessRemoteProxy (no security manager: RMI class loader disabled)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
            at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
            at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
            at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
            at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:48)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:551)
            ... 3 more

            Can you help me again ?

            Thanks

            Fabrizio





            • 3. Re: Compiling Tutorials
              Bill Burke Master

              create a java.policy file with the following within it:

              grant {
               // Allow everything for now
               permission java.security.AllPermission;
              };
              


              Then add this system property to the client startup:

              -Djava.security.policy=java.policy