Wednesday, June 30, 2010

Re: Exceptions after unchecking "Use Google AppEngine" -> SOLVED

I'm having exactly the same problem, but i didn't get the clue on how
to solve this one.
Should i remove some files which are in the "war\WEB-INF\lib"
directory? If yes, which ones should stay/be removed?

The application is an "extended" example with additional mysql
connection. I've unchecked the mentioned option because i was unable
to get the MySQL Driver working.
I had this Exception before unchecking:
Caused by: java.lang.ExceptionInInitializerError
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
282)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
com.setlog.gwt.servicetest.server.db.DBInterface.<init>(DBInterface.java:
69)

Currently the following files are in the lib directory:

appengine-api-1.0-sdk-1.3.4.jar
appengine-api-labs-1.3.4.jar
appengine-jsr107cache-1.3.4.jar
datanucleus-appengine-1.0.7.final.jar
datanucleus-core-1.1.5.jar
datanucleus-jpa-1.1.5.jar
geronimo-jpa_3.0_spec-1.1.1.jar
geronimo-jta_1.1_spec-1.1.1.jar
gwt-servlet.jar
jdo2-api-2.3-eb.jar
jsr107cache-1.1.jar
mysql-connector-java-5.1.7-bin.jar


On 21 Jun., 21:45, Rajeev Dayal <rda...@google.com> wrote:
> Filed the following issue for this:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5041
>
>  <http://code.google.com/p/google-web-toolkit/issues/detail?id=5041>Feel
> free to star it/add comments as you see fit.
>
> On Sun, Jun 20, 2010 at 9:41 AM, Sripathi Krishnan <
>
>
>
> sripathi.krish...@gmail.com> wrote:
> > The (probably satisfactory) approach is to remove the GAE jars from the
> > classpath. When you uncheck GAE, it doesn't remove the jars from the
> > classpath. There is some kind of version mismatch in one of the jetty
> > classes (as shown by NoClassDefFoundError), so when you remove GAE jars,
> > things work fine.
>
> > --Sri
>
> > On 20 June 2010 19:03, Magnus <alpineblas...@googlemail.com> wrote:
>
> >> Hello,
>
> >> for all those who have problems connecting to a mysql database within
> >> a RPC call:
> >> The solution found in this thread is to uncheck "Use Google AppEngine"
> >> in the eclipse project settings:
>
> >>http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg14...
>
> >> But this leads to problems when running the app in hosted mode.
>
> >> My (unsatisfactory but working) approach:
> >> Create a new Web Application Project, where AppEngine is unchecked at
> >> project creation.
>
> >> I hope this will be usefull for someone...
>
> >> Magnus
>
> >> On Jun 20, 2:35 pm, Magnus <alpineblas...@googlemail.com> wrote:
> >> > Hello,
>
> >> > after unchecking "Use Google AppEngine" in the project properties in
> >> > Eclipse, I get the following exceptions when launching the
> >> > application.
>
> >> > (I did so, because I found a solution for my database problem:
> >>http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg14...)
>
> >> > Can you help?
>
> >> > Thank you
> >> > Magnus
>
> >> > [WARN] Server class
>
> >> 'com.google.appengine.repackaged.org.apache.commons.logging.impl.Log4JLogge r'
> >> > could not be found in the web app, but was found on the system
> >> > classpath
> >> >    [WARN] Adding classpath entry 'file:/home/wagner/.eclipse/
> >> > org.eclipse.platform_3.3.0_385211434/configuration/eclipse/plugins/
> >> > com.google.appengine.eclipse.sdkbundle.1.3.3_1.3.3.v201004231111/
> >> > appengine-java-sdk-1.3.3.1/lib/shared/jsp/repackaged-appengine-commons-
> >> > logging-1.1.1.jar' to the web app classpath for this session
> >> >    For additional info see: file:/home/wagner/.eclipse/
> >> > org.eclipse.platform_3.3.0_385211434/configuration/eclipse/plugins/
> >> > com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
> >> > doc/helpInfo/webAppClassPath.html
> >> > Starting Jetty on port 8888
> >> >    [WARN] failed org.mortbay.jetty.nio.SelectChannelConnector
> >> > $1@145c859
> >> > java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.<init>(Ljava/
> >> > lang/Object;)V
> >> >         at org.mortbay.io.nio.SelectorManager
> >> > $SelectSet.<init>(SelectorManager.java:306)
> >> >         at
> >> org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> >> > 223)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
>
> >> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java:
> >> > 303)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at org.mortbay.jetty.Server.doStart(Server.java:233)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
> >> > com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> >> > 543)
> >> >         at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
> >> >         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
> >> >         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
> >> >         at com.google.gwt.dev.DevMode.main(DevMode.java:275)
> >> >    [WARN] failed SelectChannelConnec...@127.0.0.1:8888
> >> > java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.<init>(Ljava/
> >> > lang/Object;)V
> >> >         at org.mortbay.io.nio.SelectorManager
> >> > $SelectSet.<init>(SelectorManager.java:306)
> >> >         at
> >> org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> >> > 223)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
>
> >> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java:
> >> > 303)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at org.mortbay.jetty.Server.doStart(Server.java:233)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
> >> > com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> >> > 543)
> >> >         at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
> >> >         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
> >> >         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
> >> >         at com.google.gwt.dev.DevMode.main(DevMode.java:275)
> >> >    [WARN] failed Server@18f1d7e
> >> > java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.<init>(Ljava/
> >> > lang/Object;)V
> >> >         at org.mortbay.io.nio.SelectorManager
> >> > $SelectSet.<init>(SelectorManager.java:306)
> >> >         at
> >> org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> >> > 223)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
>
> >> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java:
> >> > 303)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at org.mortbay.jetty.Server.doStart(Server.java:233)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
> >> > com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> >> > 543)
> >> >         at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
> >> >         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
> >> >         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
> >> >         at com.google.gwt.dev.DevMode.main(DevMode.java:275)
> >> > Exception in thread "main" java.lang.NoSuchMethodError:
> >> > org.mortbay.thread.Timeout.<init>(Ljava/lang/Object;)V
> >> >         at org.mortbay.io.nio.SelectorManager
> >> > $SelectSet.<init>(SelectorManager.java:306)
> >> >         at
> >> org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
> >> > 223)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
>
> >> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java:
> >> > 303)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at org.mortbay.jetty.Server.doStart(Server.java:233)
> >> >         at
> >> > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
> >> > 39)
> >> >         at
> >> > com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
> >> > 543)
> >> >         at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
> >> >         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
> >> >         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
> >> >         at com.google.gwt.dev.DevMode.main(DevMode.java:275)
>
> >> --
> >> 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment