Hi,

Does any body know  how I can resolve this  ?

java.lang.ClassNotFoundException

I have included two client codes.

QUARKUS  CLIENT

@Path("/hello")
public class GreetingResource {

    private static RMIInterface look_up;

    @GET
    @Produces(MediaType.TEXT_PLAIN)

    public String hello()

     throws MalformedURLException, RemoteException, NotBoundException
    {
          look_up = (RMIInterface) Naming.lookup("//localhost/MyServer");
          String response = look_up.helloTo("coco");
          return response ;
    }

}


JOptionPane  Client THIS WORKS ......

public class ClientOperation {

    private static RMIInterface look_up;

    public static void main(String[] args)
        throws MalformedURLException, RemoteException, NotBoundException {

        look_up = (RMIInterface) Naming.lookup("//localhost/MyServer");
        String txt = JOptionPane.showInputDialog("What is your name?");

        String response = look_up.helloTo(txt);
        JOptionPane.showMessageDialog(null, response);

    }

}


/The stacktrace below has been reversed to show the root cause first. Click Here <http://0.0.0.0:8080/hello> to see the original stacktrace/

        java.lang.ClassNotFoundException: org.acme.rmiinterface.RMIInterface 
(no security manager: RMI class loader disabled)
        at 
java.rmi/sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:556)
        at 
java.rmi/java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:646)






On 24/01/2020 23:22, Geertjan Wielenga wrote:
Select 'Project from Archetype' in the New Project dialog and then search for 'quarkus', click Finish, and choose Debug, Test, Run, or Profile.
Gj

On Sat, Jan 25, 2020 at 12:19 AM Armel Nene <[email protected] <mailto:[email protected]>> wrote:

    As with the current maven support for Java development in
    Netbeans, the plugin will increase developer productivity and a
    better experience. Quarkus comes many options which one cannot
    possibly remember them all. My suggestion is to have as another
    option (new project) under the Maven Java option.

    I have been using NetBeans to develop Quarkus based applications
    with the current workflow:

    -> customise quarkus project from https://code.quarkus.io/
    -> download the generated Maven project
    -> load it in Netbeans
    -> command line execution or create new goals

    The following Quarkus command are not supported or integrated with
    netbeans
    -> Native tests are integrated in Netbeans
    -> Native build not supported in Netbeans
    -> Deploying to K8s not supported in Netbeans
    -> Quarkus dev mode not supported in Netbeans

    The current workaround are just not good enough for developers.
    Other IDE built or in the process of building their own plugins.
    Is this something that could be supported by Netbeans natively or
    should it be a community based project?


    On 24 Jan 2020, at 23:03, Geertjan Wielenga <[email protected]
    <mailto:[email protected]>> wrote:

    If Quarkus is an archetype on Maven Central then you can use
    NetBeans right now, since several years, to generate your Quarkus
    Maven archetype -- and then debug, test, and run it. NetBeans
    supports Maven out of the box.

    Gj

    On Fri, Jan 24, 2020 at 11:52 PM Armel Nene
    <[email protected] <mailto:[email protected]>> wrote:

        Hi all,

        My first time here but I have been using Netbeans and
        blogging about for over a decade.

        I am proposing a plugin to create a new type of Java projects
        based on the Quarkus framework. The Quarkus framework helps
        developers create Java applications which are optimised for
        environment such as Kubernetes and function as a service
        platform (AWS Lambda, Azure function for now). Quarkus is
        also Microprofile compatible.

        Quarkus uses Maven and Graddle as its build tool, those tools
        are natively supported in Netbeans. At its foundation, the
        Quarkus plugin should provide the same functionality as
        https://code.quarkus.io/. The plugin comes into its own when
        it is fully integrated with the following NetBeans feature:

          * Debugger
          * Tester
          * Run
              o Local (JVM build)
              o Local (Native build)
              o Local Kubernetes

        I am happy to lead the project if there is enough community
        buy-in. Let me know your thoughts.


        Cheers,

        Armel

        twitter: @armelnene


--
Backbutton.co.uk
¯\_(ツ)_/¯
♡۶Java♡۶RMI ♡۶
Make Use Method {MUM}
makeuse.org
{MUM}opensuse.org

Reply via email to