1. #1
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    mjmsmith is on a distinguished road

      0  

    Default error in beta4 Mail demo

    error in beta4 Mail demo


    After successfully building the beta4 Mail sample, I get the following error when I run it:

    [ERROR] Unable to instantiate 'com.extjs.gxt.samples.mail.server.MailServiceImpl'
    java.lang.ClassNotFoundException: com.extjs.gxt.samples.mail.server.MailServiceImpl

    This is on OS X 10.5.3 with java version "1.5.0_13".

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    how exactly are you launching it? the error is saying it can't find the classes specified so perhaps something is missing in your launch config.

  3. #3
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    mjmsmith is on a distinguished road

      0  

    Default


    I edited Mail-compile.sh and Mail-shell.sh as follows:

    - added "-Xmx512M"
    - changed GWT_HOME to point to my GWT dir (1.5RC1)
    - changed "gwt-dev-linux.jar" to "gwt-dev-mac.jar" in the classpath

    I also added "-XstartOnFirstThread" to Mail-shell.sh.

    I built/launched it by running the shell script from the samples/mail dir.

    The sample loads ok initially. I don't get the error until after the login dialog goes away and the "EXT GWT Mail Demo" interface is displayed.

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    ok - so did you javac compile the mail have source into a directory called bin?

    the shell script is only looking in these locations for the java compile classes... do any of these match?

    src:
    .:
    ../bin:

  5. #5
    Ext User
    Join Date
    May 2008
    Location
    Phoenix, AZ
    Posts
    223
    Vote Rating
    0
    posta07 is on a distinguished road

      0  

    Default


    I too am getting the error mjmsmith is getting.
    I am on windows with GWT 1.5 RC1 and GXT beta 4.

    Please help me understand why I am getting this error.

    Thanks!


    [ERROR] Unable to instantiate 'com.extjs.gxt.samples.mail.server.MailServiceImpl'
    java.lang.ClassNotFoundException: com.extjs.gxt.samples.mail.server.MailServiceImpl
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName(Class.java:169)
    at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:952)
    at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:278)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  6. #6
    Ext User
    Join Date
    May 2008
    Posts
    4
    Vote Rating
    0
    mjmsmith is on a distinguished road

      0  

    Default


    Quote Originally Posted by gslender View Post
    ok - so did you javac compile the mail have source into a directory called bin?
    I'm sorry, I don't understand the question.

    I've done a successful build with Mail-compile.sh. The server-side MailServerImpl.java file doesn't get compiled into a class file anywhere. The class file is present in the pre-existing mail.war, but perhaps I'm unclear on how to run the server. What would be the normal process for getting the mail sample up and running?

  7. #7
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    there are two parts to a GWT hosted application (if you are using RPC)

    1) the client side which is compiled from java source

    2) the server side which is a native java application that needs to be compiled and launched by the tomcat web server - servlet container

    you are doing 1 but not 2

    war files contain both 1 and 2 but are used by 2 to publish 1 and launch 2

    gwt compiler just does 1

    javac can compile 2 for use by gwt hosted mode (which contains tomcat for 2 and a browser for 1)

  8. #8
    Ext User
    Join Date
    Sep 2008
    Posts
    2
    Vote Rating
    0
    gsmd is on a distinguished road

      0  

    Default


    same here.
    unpacked, changed the paths in Mail-shell.cmd, run it. get exactly the same
    Code:
    [ERROR] Unable to instantiate 'com.extjs.gxt.samples.mail.server.MailServiceImpl'
    winxp, ext 1.1, gwt 1.5.2.

  9. #9
    Ext User
    Join Date
    Apr 2008
    Location
    Ravenna, Italy
    Posts
    41
    Vote Rating
    0
    mgallinucci is on a distinguished road

      0  

    Default


    I have the same problem: I changed GWT_HOME to my gwt install dir, and I get the same problem...

    [ERROR] Unable to instantiate 'com.extjs.gxt.samples.mail.server.MailServiceImpl'

    It seems that it doesn't compile src from resources project (MailServiceImpl has imports from that project). The Mail-shell.cmd include also resources/src folder, so it should compile also that classes.

    I really don't understand how to work the example!

  10. #10
    Ext User
    Join Date
    May 2008
    Location
    Phoenix, AZ
    Posts
    223
    Vote Rating
    0
    posta07 is on a distinguished road

      0  

    Default


    You need to compile the server side classes yourself (using javac for example). The GWT compile (or hosted mode) script DOES NOT compile the server-side classes for you.

    See grant's post:

    there are two parts to a GWT hosted application (if you are using RPC)

    1) the client side which is compiled from java source

    2) the server side which is a native java application that needs to be compiled and launched by the tomcat web server - servlet container

    you are doing 1 but not 2

    war files contain both 1 and 2 but are used by 2 to publish 1 and launch 2

    gwt compiler just does 1

    javac can compile 2 for use by gwt hosted mode (which contains tomcat for 2 and a browser for 1)
    Ext-GWT, GWT, Spring Framework, Hibernate, Maven

    My Blog:
    http://www.christianposta.com/blog

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi