Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
I take back what I said. It seems there are classpath resolution issues when using a custom "JettyLauncher" while running under "GWT Eclipse Plugin", probably due to different classloaders assignment. I am afraid the time has finally come to abandon use of DevMode and the "GWt Eclipse Plugin", until this is fixed in later versions of GWT. I hope a future version of GWT will make use of a Jetty version supporting a more elegant way to override the "allowedFromSystemClassLoader" variable. On Monday, 19 December 2022 at 15:46:31 UTC eliasbala...@gmail.com wrote: > Overriding JettyLauncher with "javax.sql." on the > "allowedFromSystemClassLoader" variable has worked for me on a variety of > projects, using SuperDevMode + GWT 2.9.0 + JDK 11 > > I hope a future version of GWT will make use of a Jetty version supporting > a more elegant way to override the "allowedFromSystemClassLoader" variable. > > On Friday, 1 July 2022 at 20:32:18 UTC+1 nam...@gmail.com wrote: > >> Hello all >> >> I use legacy dev mode with a old FF17 with succes on GWT 2.10 / jdk 11. I >> had to overide JettyLauncher class to add "javax.sql." on the >> "allowedFromSystemClassLoader" variable >> Until now, I have no issue with this mode except this. >> >> Le jeu. 30 juin 2022 à 09:30, Thomas Broyer a écrit : >> >>> Didn't legacy devmode also only work with JDK 8? >>> >>> On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: >>> >>>> Without being able to see the project setup this is tough to answer. >>>> >>>> However regardless of the exception you are seeing: Classic/Legacy >>>> DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already >>>> uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date >>>> uses it). JsInterop is not supported by classic/legacy DevMode. With GWT >>>> 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation >>>> during development. >>>> >>>> -- J. >>>> >>>> abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 >>>> UTC+2: >>>> >>>>> Hi Team, >>>>> >>>>> I am trying to start classic DEV mode in eclipse through GWT eclipse >>>>> plugin . >>>>> I am using GWT 2.9.0 + Java 11 combination. >>>>> I am getting below error. Can you help me in resolving the below error: >>>>> >>>>> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >>>>> at >>>>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >>>>> >>>>> ~[gwt-dev-2.9.0.jar:?] >>>>> at >>>>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >>>>> >>>>> >>>> -- >>> >> You received this message because you are subscribed to the Google Groups >>> "GWT Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to google-web-tool...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/8f0d65cc-b082-4803-8072-459644d06126n%40googlegroups.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Overriding JettyLauncher with "javax.sql." on the "allowedFromSystemClassLoader" variable has worked for me on a variety of projects, using SuperDevMode + GWT 2.9.0 + JDK 11 I hope a future version of GWT will make use of a Jetty version supporting a more elegant way to override the "allowedFromSystemClassLoader" variable. On Friday, 1 July 2022 at 20:32:18 UTC+1 nam...@gmail.com wrote: > Hello all > > I use legacy dev mode with a old FF17 with succes on GWT 2.10 / jdk 11. I > had to overide JettyLauncher class to add "javax.sql." on the > "allowedFromSystemClassLoader" variable > Until now, I have no issue with this mode except this. > > Le jeu. 30 juin 2022 à 09:30, Thomas Broyer a écrit : > >> Didn't legacy devmode also only work with JDK 8? >> >> On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: >> >>> Without being able to see the project setup this is tough to answer. >>> >>> However regardless of the exception you are seeing: Classic/Legacy >>> DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already >>> uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date >>> uses it). JsInterop is not supported by classic/legacy DevMode. With GWT >>> 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation >>> during development. >>> >>> -- J. >>> >>> abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: >>> >>>> Hi Team, >>>> >>>> I am trying to start classic DEV mode in eclipse through GWT eclipse >>>> plugin . >>>> I am using GWT 2.9.0 + Java 11 combination. >>>> I am getting below error. Can you help me in resolving the below error: >>>> >>>> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >>>> at >>>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >>>> >>>> ~[gwt-dev-2.9.0.jar:?] >>>> at >>>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >>>> >>>> >>> -- >> > You received this message because you are subscribed to the Google Groups >> "GWT Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to google-web-tool...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/ca2662bc-f0ba-48f2-bd14-e673dd882ccdn%40googlegroups.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Hello all I use legacy dev mode with a old FF17 with succes on GWT 2.10 / jdk 11. I had to overide JettyLauncher class to add "javax.sql." on the "allowedFromSystemClassLoader" variable Until now, I have no issue with this mode except this. Le jeu. 30 juin 2022 à 09:30, Thomas Broyer a écrit : > Didn't legacy devmode also only work with JDK 8? > > On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: > >> Without being able to see the project setup this is tough to answer. >> >> However regardless of the exception you are seeing: Classic/Legacy >> DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already >> uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date >> uses it). JsInterop is not supported by classic/legacy DevMode. With GWT >> 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation >> during development. >> >> -- J. >> >> abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: >> >>> Hi Team, >>> >>> I am trying to start classic DEV mode in eclipse through GWT eclipse >>> plugin . >>> I am using GWT 2.9.0 + Java 11 combination. >>> I am getting below error. Can you help me in resolving the below error: >>> >>> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >>> at >>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >>> ~[gwt-dev-2.9.0.jar:?] >>> at >>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >>> >> -- > You received this message because you are subscribed to the Google Groups > "GWT Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com?utm_medium=email_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAHDmNXHzM1V6Ru9yLpUEO6o8Zh5grUq%2B_fD6WcinHC-OF%2B_98A%40mail.gmail.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Yes it seems that you need to run it in a separate servlet container, but it doesn't have to be Tomcat. You can use Jetty so long as it is fairly recent (unlike the old version embedded in GWT dev mode). On Friday, July 1, 2022 at 4:57:50 AM UTC+10 ora...@gmail.com wrote: > I am not sure if it is the same issue but when I switched to Java 11 I > had the following: > > "Server class 'javax.sql.DataSource' could not be found in the web app, > but was found on the system classpath > [ERROR] Found resouce but unrecognized URL format: ' > jrt:/java.sql/javax/sql/DataSource.class > <http://jrt/java.sql/javax/sql/DataSource.class>'" > > In according to https://github.com/gwtproject/gwt/issues/9582 there is an > issue with JettyLauncher. And it is recommended to use "CodeServer and a > separate servlet container." Here is a discussion on Jetty in GWT: > https://groups.google.com/g/google-web-toolkit-contributors/c/iU9hckIab2o?pli=1 > . > > It means that one needs to run the application under Tomcat (a separate > servlet container) instead of the embedded Jetty. > > On Thursday, June 30, 2022 at 7:48:35 AM UTC-4 m.conr...@gmail.com wrote: > >> I didn't think that java.sql.DataSource is emulated by GWT. Looks like >> you are pulling in server side only type stuff from somewhere? >> >> On Thu, Jun 30, 2022 at 3:30 AM Thomas Broyer wrote: >> >>> Didn't legacy devmode also only work with JDK 8? >>> >>> On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: >>> >>>> Without being able to see the project setup this is tough to answer. >>>> >>>> However regardless of the exception you are seeing: Classic/Legacy >>>> DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already >>>> uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date >>>> uses it). JsInterop is not supported by classic/legacy DevMode. With GWT >>>> 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation >>>> during development. >>>> >>>> -- J. >>>> >>>> abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 >>>> UTC+2: >>>> >>>>> Hi Team, >>>>> >>>>> I am trying to start classic DEV mode in eclipse through GWT eclipse >>>>> plugin . >>>>> I am using GWT 2.9.0 + Java 11 combination. >>>>> I am getting below error. Can you help me in resolving the below error: >>>>> >>>>> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >>>>> at >>>>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >>>>> >>>>> ~[gwt-dev-2.9.0.jar:?] >>>>> at >>>>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >>>>> >>>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "GWT Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to google-web-tool...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/8905067b-8bae-466f-8754-441beb2c4263n%40googlegroups.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
I am not sure if it is the same issue but when I switched to Java 11 I had the following: "Server class 'javax.sql.DataSource' could not be found in the web app, but was found on the system classpath [ERROR] Found resouce but unrecognized URL format: ' jrt:/java.sql/javax/sql/DataSource.class <http://jrt/java.sql/javax/sql/DataSource.class>'" In according to https://github.com/gwtproject/gwt/issues/9582 there is an issue with JettyLauncher. And it is recommended to use "CodeServer and a separate servlet container." Here is a discussion on Jetty in GWT: https://groups.google.com/g/google-web-toolkit-contributors/c/iU9hckIab2o?pli=1 . It means that one needs to run the application under Tomcat (a separate servlet container) instead of the embedded Jetty. On Thursday, June 30, 2022 at 7:48:35 AM UTC-4 m.conr...@gmail.com wrote: > I didn't think that java.sql.DataSource is emulated by GWT. Looks like you > are pulling in server side only type stuff from somewhere? > > On Thu, Jun 30, 2022 at 3:30 AM Thomas Broyer wrote: > >> Didn't legacy devmode also only work with JDK 8? >> >> On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: >> >>> Without being able to see the project setup this is tough to answer. >>> >>> However regardless of the exception you are seeing: Classic/Legacy >>> DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already >>> uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date >>> uses it). JsInterop is not supported by classic/legacy DevMode. With GWT >>> 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation >>> during development. >>> >>> -- J. >>> >>> abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: >>> >>>> Hi Team, >>>> >>>> I am trying to start classic DEV mode in eclipse through GWT eclipse >>>> plugin . >>>> I am using GWT 2.9.0 + Java 11 combination. >>>> I am getting below error. Can you help me in resolving the below error: >>>> >>>> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >>>> at >>>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >>>> >>>> ~[gwt-dev-2.9.0.jar:?] >>>> at >>>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >>>> >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "GWT Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to google-web-tool...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/4f396b02-550d-4772-8714-171cc364d6a5n%40googlegroups.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
I didn't think that java.sql.DataSource is emulated by GWT. Looks like you are pulling in server side only type stuff from somewhere? On Thu, Jun 30, 2022 at 3:30 AM Thomas Broyer wrote: > Didn't legacy devmode also only work with JDK 8? > > On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: > >> Without being able to see the project setup this is tough to answer. >> >> However regardless of the exception you are seeing: Classic/Legacy >> DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already >> uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date >> uses it). JsInterop is not supported by classic/legacy DevMode. With GWT >> 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation >> during development. >> >> -- J. >> >> abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: >> >>> Hi Team, >>> >>> I am trying to start classic DEV mode in eclipse through GWT eclipse >>> plugin . >>> I am using GWT 2.9.0 + Java 11 combination. >>> I am getting below error. Can you help me in resolving the below error: >>> >>> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >>> at >>> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >>> ~[gwt-dev-2.9.0.jar:?] >>> at >>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >>> >> -- > You received this message because you are subscribed to the Google Groups > "GWT Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com?utm_medium=email_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAFHWztwuW-y1LVr6WCdtAjpCdkcNNW%2BUMQDXmZfJ-JidtwTXQg%40mail.gmail.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Didn't legacy devmode also only work with JDK 8? On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote: > Without being able to see the project setup this is tough to answer. > > However regardless of the exception you are seeing: Classic/Legacy DevMode > will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already uses > JsInterop internally in its Java SDK emulation (e.g. java.util.Date uses > it). JsInterop is not supported by classic/legacy DevMode. With GWT 2.9.0 > you have to use SuperDevMode to have a functional Java SDK emulation during > development. > > -- J. > > abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: > >> Hi Team, >> >> I am trying to start classic DEV mode in eclipse through GWT eclipse >> plugin . >> I am using GWT 2.9.0 + Java 11 combination. >> I am getting below error. Can you help me in resolving the below error: >> >> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >> at >> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >> >> ~[gwt-dev-2.9.0.jar:?] >> at >> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >> >> > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Thanks Jens for your quick help. I appreciate it. On Thursday, June 30, 2022 at 2:16:30 AM UTC+5:30 Jens wrote: > Without being able to see the project setup this is tough to answer. > > However regardless of the exception you are seeing: Classic/Legacy DevMode > will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already uses > JsInterop internally in its Java SDK emulation (e.g. java.util.Date uses > it). JsInterop is not supported by classic/legacy DevMode. With GWT 2.9.0 > you have to use SuperDevMode to have a functional Java SDK emulation during > development. > > -- J. > > abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: > >> Hi Team, >> >> I am trying to start classic DEV mode in eclipse through GWT eclipse >> plugin . >> I am using GWT 2.9.0 + Java 11 combination. >> I am getting below error. Can you help me in resolving the below error: >> >> [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource >> at >> com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) >> >> ~[gwt-dev-2.9.0.jar:?] >> at >> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) >> >> > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/71767855-e935-4aa2-be51-2caee7cdd724n%40googlegroups.com.
Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Without being able to see the project setup this is tough to answer. However regardless of the exception you are seeing: Classic/Legacy DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date uses it). JsInterop is not supported by classic/legacy DevMode. With GWT 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation during development. -- J. abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2: > Hi Team, > > I am trying to start classic DEV mode in eclipse through GWT eclipse > plugin . > I am using GWT 2.9.0 + Java 11 combination. > I am getting below error. Can you help me in resolving the below error: > > [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource > at > com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) > > ~[gwt-dev-2.9.0.jar:?] > at > org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) > > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/d3be9c50-7af5-460a-a9ec-da38e6c2452bn%40googlegroups.com.
java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination
Hi Team, I am trying to start classic DEV mode in eclipse through GWT eclipse plugin . I am using GWT 2.9.0 + Java 11 combination. I am getting below error. Can you help me in resolving the below error: [b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) ~[gwt-dev-2.9.0.jar:?] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/61b8042a-b926-4310-be87-f841f2cb098bn%40googlegroups.com.
Re: com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException
Hi, as you are saying, if it worked for couple of times and then not, then I guess the exception is not mapped correct. Do you have enough free memory on the machine? Try restarting the machine...if this helps and after time the exception appiar again then is a machine problem(memory etc..). Ofcourse before re-check all the deployed libs if they are the same with the one on the compile time... Am Montag, 27. Mai 2013 13:48:03 UTC+2 schrieb Raghu rao: Hi, I am trying to store blob data into datastore, successfully i have inserted two rows of data. after that am not able to run the application and am getting below error. Pls advice me what to do? i tried with adding of Jdk1.7 in the build path but it did't work. error code is : May 27, 2013 11:33:56 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException: Serve at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:213) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255) at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79) at com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311) May 27, 2013 11:33:56 AM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: Serve at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255) at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79
com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException
Hi, I am trying to store blob data into datastore, successfully i have inserted two rows of data. after that am not able to run the application and am getting below error. Pls advice me what to do? i tried with adding of Jdk1.7 in the build path but it did't work. error code is : May 27, 2013 11:33:56 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException: Serve at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:213) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255) at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79) at com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311) May 27, 2013 11:33:56 AM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: Serve at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255) at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79) at com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311) May 27, 2013 11:33:56 AM com.google.apphosting.utils.jetty.JettyLogger
Re: com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException
This looks like you have some old versions of the gwt-servlet.jar in your classpath. Am Montag, 27. Mai 2013 13:48:03 UTC+2 schrieb Raghu rao: Hi, I am trying to store blob data into datastore, successfully i have inserted two rows of data. after that am not able to run the application and am getting below error. Pls advice me what to do? i tried with adding of Jdk1.7 in the build path but it did't work. error code is : May 27, 2013 11:33:56 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.ClassNotFoundException: Serve at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:213) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255) at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79) at com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311) May 27, 2013 11:33:56 AM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: Serve at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255) at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79) at com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509
java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler
Hi Guys, I'm trying to build an application using SMART GWT using below configurations. Eclipse Version : Juno 4.2 GWT Version : 2.0.0 App Engine : 1.3.7 The same is working in Eclipse GALILEO version Jars used: appengine-api-1.0-sdk-1.3.7.jar appengine-api-labs-1.3.7.jar appengine-jsr107cache-1.3.7.jar commons-beanutils-1.8.1.jar commons-collections.jar commons-digester-1.7.jar commons-io-1.4.jar commons-logging.jar datanucleus-appengine-1.0.7.final.jar datanucleus-core-1.1.5.jar datanucleus-jpa-1.1.5.jar font.jar fscontext.jar geronimo-jpa_3.0_spec-1.1.1.jar geronimo-jta_1.1_spec-1.1.1.jar groovy-all-1.5.5.jar gwt-dev.jar gwt-inc-20091216-r1739.jar gwt-servlet.jar gwt-user.jar gwt-vis.jar itext-2.1.7.jar jdo2-api-2.3-eb.jar jsr107cache-1.1.jar log4j-1.2.15.jar ojdbc14.jar org.springframework.beans-3.0.5.RELEASE.jar org.springframework.core-3.0.2.RELEASE.jar org.springframework.expression-3.0.3.RELEASE.jar poi-3.5-FINAL-20090928.jar quartz-all-1.6.0.jar smartgwt-skins.jar smartgwt.jar spring-core.jar spring.jar When I'm trying to complie the java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Exception in thread main I'm not able to find out whether the issues is releated wrong plug-in, jars or any property i'm missing in the showcase.gwt.xml ...?? Request share me the your suggestions to fix the same. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
java.lang.ClassNotFoundException: org.apache.http.HttpEntity
Hie In my gwt+gae app when running i am seeing below exception. the class in question is a part of gwt-dev.jar which is included in classpath (otherwise i think there will be many issues even before this). Any advise why I am getting the error on runtime even when the jar is a part of class path? Vik [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String vik.sakshum.sakshumweb.client.service.BloodDonorRegisterService.registerDonor(vik.sakshum.sakshumweb.client.bean.BloodDonorProfileBean) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at vik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl.registerDonor(BloodDonorRegisterServiceImpl.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 34 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 41 more Thankx and Regards Vik Founder http
Re: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
what version of gwt are you running? Also is this error in your local dev mode? ~Ashwin On Monday 08 August 2011 01:58 PM, Vik wrote: Hie In my gwt+gae app when running i am seeing below exception. the class in question is a part of gwt-dev.jar which is included in classpath (otherwise i think there will be many issues even before this). Any advise why I am getting the error on runtime even when the jar is a part of class path? Vik [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String vik.sakshum.sakshumweb.client.service.BloodDonorRegisterService.registerDonor(vik.sakshum.sakshumweb.client.bean.BloodDonorProfileBean) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at vik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl.registerDonor(BloodDonorRegisterServiceImpl.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 34 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307
Re: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 41 more Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
its in local dev mode and using gwt 2.3.0 Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Mon, Aug 8, 2011 at 2:05 PM, Ashwin Desikan ashwin.desi...@gmail.comwrote: ** what version of gwt are you running? Also is this error in your local dev mode? ~Ashwin On Monday 08 August 2011 01:58 PM, Vik wrote: Hie In my gwt+gae app when running i am seeing below exception. the class in question is a part of gwt-dev.jar which is included in classpath (otherwise i think there will be many issues even before this). Any advise why I am getting the error on runtime even when the jar is a part of class path? Vik [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String vik.sakshum.sakshumweb.client.service.BloodDonorRegisterService.registerDonor(vik.sakshum.sakshumweb.client.bean.BloodDonorProfileBean) throws java.lang.Exception' threw an unexpected exception: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at vik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl.registerDonor(BloodDonorRegisterServiceImpl.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 34 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
Re: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 34 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 41 more Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
at vik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl.registerDonor(BloodDonorRegisterServiceImpl.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 34 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 41 more Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
java.lang.ClassNotFoundException: com.google.web.bindery.requestfactory.server.RequestFactoryServlet
I am trying to run an application of RequestFactory on eclipse and I am getting this exception : java.lang.ClassNotFoundException: com.google.web.bindery.requestfactory.server.RequestFactoryServlet Although I have checked I have GWT SDK 2.3 in path , it has gwt- user.jar which contains the above class. Any Idea how to check this error. The stack trace is as follow: Initializing AppEngine server Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed D:\MyDynaTable\war\WEB-INF/appengine-web.xml Successfully processed D:\MyDynaTable\war\WEB-INF/web.xml [WARN] EXCEPTION java.lang.ClassNotFoundException: com.google.web.bindery.requestfactory.server.RequestFactoryServlet at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java: 176) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.mortbay.util.Loader.loadClass(Loader.java:91) at org.mortbay.util.Loader.loadClass(Loader.java:71) at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java: 186) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java: 157) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java: 169) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java: 119) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) [ERROR] javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: com.google.web.bindery.requestfactory.server.RequestFactoryServlet at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 242) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 130) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java: 186) at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java: 157) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java: 169) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java: 119) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500
Aw: java.lang.ClassNotFoundException: com.google.web.bindery.requestfactory.server.RequestFactoryServlet
Make sure you have the gwt-servlet.jar from GWT SDK 2.3.0 in your WEB-INF/lib folder. Sometimes Eclipse does not update that jar file if you upgrade to GWT 2.3.0. Just copy it from the GWT Plugin folder to you WEB-INF/lib folder. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0UfqDFzFu84J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Server Side java.lang.ClassNotFoundException
Hello. I deployed this war to Tomcat and the client side works fine. However, whenever I try and access the server-side, I get the following error message in the log. Feb 23, 2010 1:06:36 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet ProviderDataService java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:698) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 1847) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 890) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1354) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:698) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 1847) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 890) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1354) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1094) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:637) Can anybody give some guidance? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2 DevMode throws java.lang.ClassNotFoundException for a pojo during RPC call
GWT 1.8 works fine until when upgraded to GWT 2 ROOT CAUSE org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Caused by: java.lang.ClassNotFoundException: com.efycaci.gwt.client.LoggedUser/857921908 at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName (RPC.java:657) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:274) ... 29 more SEVERE: [1260954843468000] javax.servlet.ServletContext log: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'com.efycaci.gwt.client.LoggedUser/857921908' at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:163) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter (ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:352) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) ^Parameter 0 of is of an unknown type 'com.efycaci.gwt.client.LoggedUser/857921908' Has anybody faced this problem or Is there anybody who can help in this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: OOPHM r4218: java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService
Thanks for the reply. First, this problem did not happen in GWT 1.53. It only happens on OOPHM branch. I believe the WAR includes jar correctly. Attached is my web.xml. The lib folder I means is the subfolder of installed Tomcat directory. On Thu, Dec 4, 2008 at 5:45 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: This is an issue of your web.xml or war not including the jar correctly (or at all). By dumping it into the lib folder (which one?) it will automatically be on the class path already. Posting your web.xml could allow people to help discern why it's not including the jar. On Dec 3, 4:42 am, Kevin Tarn [EMAIL PROTECTED] wrote: I used NetBeans for my GWT project. Recently I tried to build OOPHM for using Firefox as my hosted browser. If I put gwt-user.jar into my WAR package, this ClassNotFoundException occurred. I tried to remove gwt-user.jar from WAR package, and put it into tomcat's lib folder. This exception doesn't happen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~--- ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; servlet servlet-nameXimLib/servlet-name servlet-classcom.xcome.server.XimLibImpl/servlet-class /servlet servlet servlet-nameSQLDB/servlet-name servlet-classcom.xcome.server.SQLDBImpl/servlet-class /servlet servlet servlet-nameGetIcon/servlet-name servlet-classcom.xcome.server.GetIcon/servlet-class /servlet servlet servlet-nameUploadIcon/servlet-name servlet-classcom.xcome.server.UploadIcon/servlet-class /servlet servlet-mapping servlet-nameXimLib/servlet-name url-pattern/com.xcome.xim/XimLib/url-pattern /servlet-mapping servlet-mapping servlet-nameSQLDB/servlet-name url-pattern/com.xcome.xim/SQLDB/url-pattern /servlet-mapping servlet-mapping servlet-nameGetIcon/servlet-name url-pattern/com.xcome.xim/GetIcon.jpg/url-pattern /servlet-mapping servlet-mapping servlet-nameUploadIcon/servlet-name url-pattern/com.xcome.xim/UploadIcon/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-filexim.html/welcome-file /welcome-file-list /web-app ?xml version=1.0 encoding=UTF-8? module inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.i18n.I18N/ inherits name='com.google.gwt.widgetideas.WidgetIdeas'/ entry-point class=com.xcome.client.xim/ set-property name=user.agent value=gecko/ set-property name=locale value=default / !-- Do not define servlets here, use web.xml -- script src=/EeeIM/javascripts/prototype.js/ script src=/EeeIM/javascripts/scriptaculous.js/ /module
OOPHM r4218: java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService
I used NetBeans for my GWT project. Recently I tried to build OOPHM for using Firefox as my hosted browser. If I put gwt-user.jar into my WAR package, this ClassNotFoundException occurred. I tried to remove gwt-user.jar from WAR package, and put it into tomcat's lib folder. This exception doesn't happen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: OOPHM r4218: java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService
This is an issue of your web.xml or war not including the jar correctly (or at all). By dumping it into the lib folder (which one?) it will automatically be on the class path already. Posting your web.xml could allow people to help discern why it's not including the jar. On Dec 3, 4:42 am, Kevin Tarn [EMAIL PROTECTED] wrote: I used NetBeans for my GWT project. Recently I tried to build OOPHM for using Firefox as my hosted browser. If I put gwt-user.jar into my WAR package, this ClassNotFoundException occurred. I tried to remove gwt-user.jar from WAR package, and put it into tomcat's lib folder. This exception doesn't happen. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
Hi All, I am a newbie to GWT. When I try run the GWTShell, the following error occurs No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module? Please note : my module inherits the User module and I am working on GWT v1.5.2 Please help me find what is going wrong, as ClassNotFoundException is part of java.lang package. Thanks in advance... Dhanraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
On Sep 25, 12:23 pm, dhanraj [EMAIL PROTECTED] wrote: Hi All, I am a newbie to GWT. When I try run the GWTShell, the following error occurs No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module? Please note : my module inherits the User module and I am working on GWT v1.5.2 Please help me find what is going wrong, as ClassNotFoundException is part of java.lang package. Did you use any external API on client side ? Like Log4j, Apache common* ? BTW a few lines of your code would help much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
dhanraj schrieb: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module? [...] Please help me find what is going wrong, as ClassNotFoundException is part of java.lang package. The GWT-compiler doesn't cover the complete java.lang-classes. The best way is to create your own Exceptions that are derived from com.google.gwt.user.client.rpc.SerializableException Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
If you are including external source code (such as in the form of a Jar file), you will need to include that jar file in your Java CLASS_PATH and you will also need to edit your .gwt.xml file to inherit information from the included jar. The best way to do this is to add $APPDIR/externalcode.jar in the -cp option in the YourProject-shell and YourProject-compile scripts. After this, edit YourProject.gwt.xml file and add a line like this... inherits name='com.thapar.gwt.user.ui.SimpleSortableTable (this was an example of how to include a SortableTable from http://psthapar.googlepages.com/simplesortabletable). On Sep 25, 10:27 am, Lothar Kimmeringer [EMAIL PROTECTED] wrote: dhanraj schrieb: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module? [...] Please help me find what is going wrong, as ClassNotFoundException is part of java.lang package. The GWT-compiler doesn't cover the complete java.lang-classes. The best way is to create your own Exceptions that are derived from com.google.gwt.user.client.rpc.SerializableException Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
Dudeman schrieb: The best way to do this is to add $APPDIR/externalcode.jar in the -cp option in the YourProject-shell and YourProject-compile scripts. After this, edit YourProject.gwt.xml file and add a line like this... inherits name='com.thapar.gwt.user.ui.SimpleSortableTable (this was an example of how to include a SortableTable from http://psthapar.googlepages.com/simplesortabletable). This will not help for Exceptions, because GWT tries to serialize StacktraceElement which will fail. I was serious when I was speaking of creating your own Exceptions ;-) Regards, Lothar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module?
Hi Dhanraj, Can you confirm us whether you have JRE 1.4 or above insatlled in your system or not.Please also check the Java PATH is set or not. Regards, Manish - Original Message - From: dhanraj [EMAIL PROTECTED] To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com Sent: Thursday, September 25, 2008 3:53 PM Subject: No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module? Hi All, I am a newbie to GWT. When I try run the GWTShell, the following error occurs No source code is available for type java.lang.ClassNotFoundException; did you forget to inherit a required module? Please note : my module inherits the User module and I am working on GWT v1.5.2 Please help me find what is going wrong, as ClassNotFoundException is part of java.lang package. Thanks in advance... Dhanraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Problem with java.lang.ClassNotFoundException only when deployed
Hi all, First off, I am a new user and have built a very simple application. It works fine under hosted mode. It compiles with no errors. When I deploy it to the web server and point a browser at it, it throws a ClassNotFoundException. I suspect this is a really simple problem (probably caused by a really stupid error). This is driving me crazy and I would really appreciate ANY help or suggestions anyone could throw my way. I have included a lot of error logs, copies of web.xml, directory structures etc. below. Trying to work through this is a learning experience, but I am stumped. The fact that the server is able to sort out the URL sent from the client enough to know the name of the object is ca.KeithFuller.server.CorpusServiceImpl suggests to me that the server is finding the web.xml file, which suggests that it should be able to find the object since I believe that WEB-INF/classes is always on the search path. The file CorpusServiceImpl.class is in WEB-INF/classes, and the corresponding java file starts with: package ca.KeithFuller.server; import java.util.*; // for Scanner import java.io.*;// for println import ca.KeithFuller.client.CorpusSearchReturns; import ca.KeithFuller.client.CorpusSearchService; import com.google.gwt.user.server.rpc.RemoteServiceServlet; public class CorpusServiceImpl extends RemoteServiceServlet implements CorpusSearchService { ... A whole pile of details follow: I use GWT 1.4.61 I use Eclipse 3.2.2 My webserver uses Linux, Tomcat and Apache. I use FireFox 3.0.1 and the URL is http://www.keithfuller.ca:9108/CorpusSearch/CorpusSearch.html The client code contains: ... // Create the proxy object final CorpusSearchServiceAsync serviceProxy = (CorpusSearchServiceAsync) GWT.create(CorpusSearchService.class); // Cast the proxy object to ServiceDefTarget String serviceUrl = GWT.getModuleBaseURL() + corpus-search; // if (GWT.isScript()){ // serviceUrl = /corpus-search; // } ((ServiceDefTarget)serviceProxy).setServiceEntryPoint(serviceUrl); ... The localhost.2008-09-18.log file contains: Sep 18, 2008 10:21:04 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet corpus-search as unavailable Sep 18, 2008 10:21:04 AM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] ca.KeithFuller.server.CorpusServiceImpl java.lang.ClassNotFoundException: ca.KeithFuller.server.CorpusServiceImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1362) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1208) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1068) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 874) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java: 665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java: 528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java: 81) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Sep 18, 2008 10:21:04 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet corpus-search java.lang.ClassNotFoundException: ca.KeithFuller.server.CorpusServiceImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1362) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1208) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1068) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 174
Re: Problem with java.lang.ClassNotFoundException only when deployed
Hi Keith, Looking at your deployment structure: The web server has the directory structure: apache-tomcat-5.5.25/webapps CorpusSearch ... a pile of html, rpc, js, html, css, and... web.xml WEB-INF classes CorpusSearch.class CorpusSearchReturns.class CorpusSearchServiceAsync.class CorpusSearchData.class CorpusSearchService.class CorpusServiceImpl.class web.xml lib gwt-servlet.jar web.xml the package structure ca.KeithFuller.server seems to be missing which would explain why you get a ClassNotFoundException for ca.KeithFuller.server.CorpusServiceImpl. I think you should copy the entire directory structure under WEB-INF\classes. Also I would recommend you take a little time to make an Ant build script that creates a WAR file for you application and copies it straight to your Tomcat deployment directory where it will automatically redeploy. This will kill problems like this (because Ant doesn't make mistakes) and save you a lot of time in the long run. There are lots of examples of how to do this in the group - just search for ant build WAR. regards gregor On Sep 18, 4:40 pm, Keith [EMAIL PROTECTED] wrote: Hi all, First off, I am a new user and have built a very simple application. It works fine under hosted mode. It compiles with no errors. When I deploy it to the web server and point a browser at it, it throws a ClassNotFoundException. I suspect this is a really simple problem (probably caused by a really stupid error). This is driving me crazy and I would really appreciate ANY help or suggestions anyone could throw my way. I have included a lot of error logs, copies of web.xml, directory structures etc. below. Trying to work through this is a learning experience, but I am stumped. The fact that the server is able to sort out the URL sent from the client enough to know the name of the object is ca.KeithFuller.server.CorpusServiceImpl suggests to me that the server is finding the web.xml file, which suggests that it should be able to find the object since I believe that WEB-INF/classes is always on the search path. The file CorpusServiceImpl.class is in WEB-INF/classes, and the corresponding java file starts with: package ca.KeithFuller.server; import java.util.*; // for Scanner import java.io.*; // for println import ca.KeithFuller.client.CorpusSearchReturns; import ca.KeithFuller.client.CorpusSearchService; import com.google.gwt.user.server.rpc.RemoteServiceServlet; public class CorpusServiceImpl extends RemoteServiceServlet implements CorpusSearchService { ... A whole pile of details follow: I use GWT 1.4.61 I use Eclipse 3.2.2 My webserver uses Linux, Tomcat and Apache. I use FireFox 3.0.1 and the URL ishttp://www.keithfuller.ca:9108/CorpusSearch/CorpusSearch.html The client code contains: ... // Create the proxy object final CorpusSearchServiceAsync serviceProxy = (CorpusSearchServiceAsync) GWT.create(CorpusSearchService.class); // Cast the proxy object to ServiceDefTarget String serviceUrl = GWT.getModuleBaseURL() + corpus-search; // if (GWT.isScript()){ // serviceUrl = /corpus-search; // } ((ServiceDefTarget)serviceProxy).setServiceEntryPoint(serviceUrl); ... The localhost.2008-09-18.log file contains: Sep 18, 2008 10:21:04 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet corpus-search as unavailable Sep 18, 2008 10:21:04 AM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] ca.KeithFuller.server.CorpusServiceImpl java.lang.ClassNotFoundException: ca.KeithFuller.server.CorpusServiceImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1362) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1208) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1068) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 127
Re: Problem with java.lang.ClassNotFoundException only when deployed
Hi Gregor, Yup, that fixed it. Stupid newbie error - fortunately the sort of error that only gets made once. Now I can start putting back in the server functionality that I took out to debug it. Thank you very much for your help, Keith On Fri, Sep 19, 2008 at 7:45 AM, gregor [EMAIL PROTECTED] wrote: Hi Keith, Looking at your deployment structure: The web server has the directory structure: apache-tomcat-5.5.25/webapps CorpusSearch ... a pile of html, rpc, js, html, css, and... web.xml WEB-INF classes CorpusSearch.class CorpusSearchReturns.class CorpusSearchServiceAsync.class CorpusSearchData.class CorpusSearchService.class CorpusServiceImpl.class web.xml lib gwt-servlet.jar web.xml the package structure ca.KeithFuller.server seems to be missing which would explain why you get a ClassNotFoundException for ca.KeithFuller.server.CorpusServiceImpl. I think you should copy the entire directory structure under WEB-INF\classes. Also I would recommend you take a little time to make an Ant build script that creates a WAR file for you application and copies it straight to your Tomcat deployment directory where it will automatically redeploy. This will kill problems like this (because Ant doesn't make mistakes) and save you a lot of time in the long run. There are lots of examples of how to do this in the group - just search for ant build WAR. regards gregor On Sep 18, 4:40 pm, Keith [EMAIL PROTECTED] wrote: Hi all, First off, I am a new user and have built a very simple application. It works fine under hosted mode. It compiles with no errors. When I deploy it to the web server and point a browser at it, it throws a ClassNotFoundException. I suspect this is a really simple problem (probably caused by a really stupid error). This is driving me crazy and I would really appreciate ANY help or suggestions anyone could throw my way. I have included a lot of error logs, copies of web.xml, directory structures etc. below. Trying to work through this is a learning experience, but I am stumped. The fact that the server is able to sort out the URL sent from the client enough to know the name of the object is ca.KeithFuller.server.CorpusServiceImpl suggests to me that the server is finding the web.xml file, which suggests that it should be able to find the object since I believe that WEB-INF/classes is always on the search path. The file CorpusServiceImpl.class is in WEB-INF/classes, and the corresponding java file starts with: package ca.KeithFuller.server; import java.util.*; // for Scanner import java.io.*;// for println import ca.KeithFuller.client.CorpusSearchReturns; import ca.KeithFuller.client.CorpusSearchService; import com.google.gwt.user.server.rpc.RemoteServiceServlet; public class CorpusServiceImpl extends RemoteServiceServlet implements CorpusSearchService { ... A whole pile of details follow: I use GWT 1.4.61 I use Eclipse 3.2.2 My webserver uses Linux, Tomcat and Apache. I use FireFox 3.0.1 and the URL ishttp://www.keithfuller.ca:9108/CorpusSearch/CorpusSearch.html The client code contains: ... // Create the proxy object final CorpusSearchServiceAsync serviceProxy = (CorpusSearchServiceAsync) GWT.create(CorpusSearchService.class); // Cast the proxy object to ServiceDefTarget String serviceUrl = GWT.getModuleBaseURL() + corpus-search; // if (GWT.isScript()){ // serviceUrl = /corpus-search; // } ((ServiceDefTarget)serviceProxy).setServiceEntryPoint(serviceUrl); ... The localhost.2008-09-18.log file contains: Sep 18, 2008 10:21:04 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet corpus-search as unavailable Sep 18, 2008 10:21:04 AM org.apache.catalina.core.ApplicationContext log SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] ca.KeithFuller.server.CorpusServiceImpl java.lang.ClassNotFoundException: ca.KeithFuller.server.CorpusServiceImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1362) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1208) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1068) at org.apache.catalina.core.StandardWrapper.allocate
Re: java.lang.ClassNotFoundException
This is not a compile problem. You have not deployed the service classes to your web container properly. On Sep 15, 12:00 am, Ananda Rao [EMAIL PROTECTED] wrote: Amit, thanks for replying... the correct path is same as given below. but still i am getting the error. when i browse to this project( in the browser) first i get is the error Status code exception. can you tell me why i am getting this. thanks in advance Ananda On Mon, Sep 15, 2008 at 9:16 AM, Amit Dhingra [EMAIL PROTECTED] wrote: The compiler is not able to search com.emr.pt01.doctormaster.server.DoctorServiceImpl Provide proper paths for this class. Cheers, Amit Dhingra On Mon, Sep 15, 2008 at 9:04 AM, Ananda Rao [EMAIL PROTECTED] wrote: Hi All, i am getting the below error when i try to execute the code. can you please help me in this regard.since iam new to java i need help from you to resolve this error. please help me Root cause. [EMAIL PROTECTED] com.emr.pt01.doctormaster.server.DoctorServiceImpl java.lang.ClassNotFoundException: com.emr.pt01.doctormaster.server.DoctorServiceImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1094) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet com.emr.pt01.doctormaster.server.DoctorServiceImpl javax.servlet.ServletException: Wrapper cannot find servlet class com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1102) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Regards, Ananda -- Warm Regards, Amit Dhingra- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
java.lang.ClassNotFoundException
Hi All, i am getting the below error when i try to execute the code. can you please help me in this regard.since iam new to java i need help from you to resolve this error. please help me Root cause. [EMAIL PROTECTED] com.emr.pt01.doctormaster.server.DoctorServiceImpl java.lang.ClassNotFoundException: com.emr.pt01.doctormaster.server.DoctorServiceImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1094) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet com.emr.pt01.doctormaster.server.DoctorServiceImpl javax.servlet.ServletException: Wrapper cannot find servlet class com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1102) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Regards, Ananda --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---