Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Can't Run Vaadin Enterprise Application(EJB3) in GlassFish V3

dinesh thalis
1 decade ago Jan 19, 2010 4:13pm
Henri Sara
1 decade ago Jan 20, 2010 5:54am
dinesh thalis
1 decade ago Jan 20, 2010 6:53am
Henri Sara
1 decade ago Jan 20, 2010 7:35am
dinesh thalis
1 decade ago Jan 20, 2010 8:32am
dinesh thalis
1 decade ago Jul 24, 2010 4:46am

I post my question skype chat yesterday, I got below answers

henri.sara: The classloader of the ApplicationServlet class is unable to load your application class - this looks like some kind of a classpath issue, but I cannot really say much more Does it work if instead of using ApplicationServlet, you subclass AbstractApplicationServlet?

public Class<? extends Application> getApplicationClass() { return HooApplication.class; }
public Application getNewApplication(HttpServletRequest request) { return new HooApplication(); }
samiekblad: As Henri said. But I the line numbers do not match to 6.4: http://dev.vaadin.com/browser/versions/6.4/src/com/vaadin/terminal/gwt/server/ApplicationServlet.java)
ah... thats because of the generated headers I suppose.
ClassNotFoundException at line 58 in this src

Using above help I modified my code like below

create new servelt

package web;

import com.example.hoo.HooApplication;
import com.vaadin.Application;
import com.vaadin.terminal.gwt.server.ApplicationServlet;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author dinesh
 */
public class Test extends ApplicationServlet {

  
    @Override
    public Class<? extends Application> getApplicationClass() {
        return HooApplication.class;
    }

    @Override
    public Application getNewApplication(HttpServletRequest request) {
        return new HooApplication();
    }   
}

edit my web.xml

<servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class> 
to this
<servlet-class>web.Test</servlet-class>

Using that i can run my ejb3 application in glassfish v3,

I'm going to use above code to develop my banking application, Is it good to use above code ?

please give you're precious comments.

Thank You.

Michael A
10 years ago Mar 30, 2012 10:00pm
Henri Sara
10 years ago Apr 03, 2012 10:02am