Re: Google Data Client Library (gdata) install with WebObjects
Re: Google Data Client Library (gdata) install with WebObjects
- Subject: Re: Google Data Client Library (gdata) install with WebObjects
- From: Greg Smith <email@hidden>
- Date: Tue, 13 Oct 2009 13:56:31 -0700
You are my hero!
That worked great. They are all jar files, I copied them to the
Libraries folder and deleted the gdata folder that was in there. Then
in Eclipse I created a new library, added all the jars from that
folder and added that library to the build path. Now it works in
deployment too!
A follow up question about System/Libray/Java/Extensions. I have put
many jar files in there to do this or that thing with general
success. (Though in this case the gdata instructions seemed to
indicate I would need to add mail.jar. Once I did that, email seemed
to fail.) By the emphasis below, it seems that may not be the correct
practice. What would it be? Same as above? Another location? For
all jars, or just some?
Many thanks.
Greg
On Oct 13, 2009, at 12:51 PM, Chuck Hill wrote:
Hi Greg,
On Oct 13, 2009, at 12:45 PM, Greg Smith wrote:
I placed the gdata folder in the Libraries folder
I think that is the root problem. WOLips is expecting files in that
folder, not more folders. Can you move all the gdata files into the
Libraries folder? Are they all jar/zip files?
for the app and then added it via Configure Build Path in Eclipse.
They should be on the Libraries and the Order and Export tabs.
This seemed to make all imports happy and the app worked in
development. When it didn't work in deployment I tried moving the
gdata folder to a folder within System/Libray/Java/
Again, it is not expecting folders in there.
and changing build path. Again devel happy deployment can't seem
to find it. I also added various dependencies to the System/Libray/
Java/Extensions folder on both devel and deployment computers.
Noooooo. You go screwing around down there, you get to keep all the
pieces when it explodes.
I assume Libraries are added at compile time and need not be moved
to the deployment server so if it did not work in deployment the
build was a problem. What problem and how to fix it is a mystery.
Or maybe I have a bad assumption. Just in case I moved the gdata
folder to the server too. I also made sure all extensions were the
same on both computers.
Sorry for the addressing problem. Anyones wisdom in this area
would be greatly appreciated.
Chuck
On Oct 13, 2009, at 12:00 PM, Chuck Hill wrote:
Hi Greg,
Please keep messages on the list.
On Oct 13, 2009, at 9:19 AM, Greg Smith wrote:
Thanks Chuck, you are amazing again. That worked great in
development but gave the following error in the log when deployed.
com.webobjects.foundation.NSForwardException
[java.lang.NoClassDefFoundError] com/google/gdata/client/
Query:<DirectAction> Action Named 'aAction()' raised an
Exception: java.lang.NoClassDefFoundError: com/google/gdata/
client/Query
Do you know if I need change build.xml to reflect the added
library? Thanks.
What did you do with it when you removed it from /Library/Java/
Extensions? It should go in the Libraries folder in one of your
projects (the app or a common framework).
Chuck
On Sep 16, 2009, at 12:10 PM, Chuck Hill wrote:
On Sep 16, 2009, at 11:50 AM, Greg Smith wrote:
Greeting,
Has anyone installed and used gdata with WebObjects? Gdata
looks like the best option for getting google calendar data
into WebObjects. I tried to install it but no luck, WO can't
find imports. There may be some issues with gdata expecting to
be use with Tomcat. All I've tried so far is to place the
'gdata' folder in the java extensions. If anyone has made this
work I would love hear about it. Thanks
/Library/Java/Extensions? That is pretty much guaranteed to be
the wrong location. Put it in the Libraries folder in your
app / framework.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems.
http://www.global-village.net/products/practical_webobjects
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden