java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
Hi All, I'm new to this, and I'm trying to use my Manager class in a GWT module. I'm using Eclipse 3.6 with the latest GWT plugin and generating a project from it. In my GreetingServiceImpl I have a method, public String getDataFeed() throws IllegalArgumentException, that tries to instantiate my DataFeedManager class through a default constructor. That default constructor is currently doing nothing at all -- it's just there for my testing. But when I'm attempting to do DataFeedManager dfm = new DataFeedManager() I'm getting the following: Service method 'public abstract java.lang.String com.eyes.client.GreetingService.getDataFeed() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException What am I doing wrong? Researching this I saw that people were helped by adding google-collect-1.0-rc1.jar to the build path and I added it but I still get the above error. Any help will be greatly appreciated. Eyal -- 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: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
OK, I narrowed it down a bit. My DataFeedManager has some Analytics code in it. When I removed it, everything was fine. So I guess this is an issue of integrating GWT and Analytics? How do I get my GWT to feel comfortable with Analytics code in the business layer? Thanks, Eyal On Nov 1, 6:31 pm, Eyal twoworldsf...@gmail.com wrote: Hi All, I'm new to this, and I'm trying to use my Manager class in a GWT module. I'm using Eclipse 3.6 with the latest GWT plugin and generating a project from it. In my GreetingServiceImpl I have a method, public String getDataFeed() throws IllegalArgumentException, that tries to instantiate my DataFeedManager class through a default constructor. That default constructor is currently doing nothing at all -- it's just there for my testing. But when I'm attempting to do DataFeedManager dfm = new DataFeedManager() I'm getting the following: Service method 'public abstract java.lang.String com.eyes.client.GreetingService.getDataFeed() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException What am I doing wrong? Researching this I saw that people were helped by adding google-collect-1.0-rc1.jar to the build path and I added it but I still get the above error. Any help will be greatly appreciated. Eyal -- 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: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
I got it to work by moving the Analytics jars directly under WEB-INF/ lib. They were in a subfolder and apparently GWT can't handle that. On Nov 1, 7:13 pm, Eyal twoworldsf...@gmail.com wrote: OK, I narrowed it down a bit. My DataFeedManager has some Analytics code in it. When I removed it, everything was fine. So I guess this is an issue of integrating GWT and Analytics? How do I get my GWT to feel comfortable with Analytics code in the business layer? Thanks, Eyal On Nov 1, 6:31 pm, Eyal twoworldsf...@gmail.com wrote: Hi All, I'm new to this, and I'm trying to use my Manager class in a GWT module. I'm using Eclipse 3.6 with the latest GWT plugin and generating a project from it. In my GreetingServiceImpl I have a method, public String getDataFeed() throws IllegalArgumentException, that tries to instantiate my DataFeedManager class through a default constructor. That default constructor is currently doing nothing at all -- it's just there for my testing. But when I'm attempting to do DataFeedManager dfm = new DataFeedManager() I'm getting the following: Service method 'public abstract java.lang.String com.eyes.client.GreetingService.getDataFeed() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException What am I doing wrong? Researching this I saw that people were helped by adding google-collect-1.0-rc1.jar to the build path and I added it but I still get the above error. Any help will be greatly appreciated. Eyal -- 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.
Using Rome in a GWT application
Hi all, I am using Rome to parse RSS feeds in my GWT application. When I'm running the code, which is generic, as a Java application all is well. But when I'm attempting to do it through GWT I'm getting the following: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.myapp.client.GreetingService.listUsers() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/sun/syndication/io/XmlReader The class in question, com.sun.syndication.io.XmlReader is part of xerces. I've added the xerces jars (including the impl) to the project (in Eclipse) but then I get this: WARNING: Nested in javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.SAXParserFactoryImpl Researching this a bit, I found that there is probably a conflict between two SAXParserFactoryImpl classes. This problem is associated with gwt-gears, or gwt-gadgets. But I am not using any of them. My project is a simple GWT with very little code in it, and it was generated through the Eclipse plugin. Any ideas? I'll greatly appreciate it... Thanks, Eyal -- 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: Using Rome in a GWT application
Hi Boris, Thank you for your reply. I am running my app on Eclipse (Galileo) on Windows 7. The installed JRE is jdk1.6.0_17. I feel bad about giving you my classpath (below) because it's so long but maybe you see something in it? If so, many many thanks!!! Eyal C:\Users\Eyal\workspace\BooksApp\src;C:\Users\Eyal\workspace\BooksApp \test-classes;C:\Users\Eyal\workspace\BooksApp\war\WEB-INF\classes;C: \installers\software development\eclipse-jee-galileo-SR1-win32\eclipse \plugins\com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared \appengine-local-runtime-shared.jar;C:\installers\software development \eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\geronimo- el_1.0_spec-1.0.1.jar;C:\installers\software development\eclipse-jee- galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\geronimo- jsp_2.1_spec-1.0.1.jar;C:\installers\software development\eclipse-jee- galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\geronimo- servlet_2.5_spec-1.2.jar;C:\installers\software development\eclipse- jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp \repackaged-appengine-ant-1.7.1.jar;C:\installers\software development \eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp \repackaged-appengine-ant-launcher-1.7.1.jar;C:\installers\software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp \repackaged-appengine-commons-el-1.0.jar;C:\installers\software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp \repackaged-appengine-commons-logging-1.1.1.jar;C:\installers\software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp \repackaged-appengine-jasper-compiler-5.0.28.jar;C:\installers \software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp \repackaged-appengine-jasper-runtime-5.0.28.jar;C:\installers\software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\appengine- api-1.0-sdk-1.3.7.jar;C:\installers\software development\eclipse-jee- galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\appengine- api-labs-1.3.7.jar;C:\installers\software development\eclipse-jee- galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\appengine- jsr107cache-1.3.7.jar;C:\installers\software development\eclipse-jee- galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user \jsr107cache-1.1.jar;C:\installers\software development\eclipse-jee- galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm \datanucleus-appengine-1.0.7.final.jar;C:\installers\software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm \datanucleus-core-1.1.5.jar;C:\installers\software development\eclipse- jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm \datanucleus-jpa-1.1.5.jar;C:\installers\software development\eclipse- jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm \geronimo-jpa_3.0_spec-1.1.1.jar;C:\installers\software development \eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm \geronimo-jta_1.1_spec-1.1.1.jar;C:\installers\software development \eclipse-jee-galileo-SR1-win32\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm\jdo2- api-2.3-eb.jar;C:\installers\software development\eclipse-jee-galileo- SR1-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311405\appengine-java-sdk