Re: WebObjects jar frameworks and classpaths
Re: WebObjects jar frameworks and classpaths
- Subject: Re: WebObjects jar frameworks and classpaths
- From: John Pollard <email@hidden>
- Date: Fri, 9 Jan 2009 17:17:27 +0000
Update...I solved the build problem by editing the .classpath file to
reference my Frameworks in the same way as the other frameworks are
now referenced following the WOLips upgrade.
This allows the WOLips Ant Tools, Install to complete ok without the
compile errors I noted below.
However, my Run configuration had vanished. I tried to create a new
Run Configuration, but got the error that my
MPMallDirectActionRequestHandler.java class could not be found
(located in the same package as the main class I specified).
I tried copying an old project .launch file and using that which
superficially fixed this and allowed me to run ok.
However, I still get the same runtime error as before, so I wonder if
in fact it is not valid to use an old .launch file after moving to the
latest WOLips?
Thanks, sure I'll get out of this soon but would appreciate help from
those who understand this environment.
John
On 8 Jan 2009, at 16:14, John Pollard wrote:
List,
I have now updated my build.xml file from a new dummy application
created using the latest WOLips as advised in the WOLips blog for
the new hotness. I also did this for my WO framework that contains
the jars I need to link in to, using a new dummy framework.
Now I get sight of my problem a step earlier, when trying to install
(WOLips Ant Tools, Install), where I see:
/Users/john/EclipseWork/workspace/MPMall/Sources/mpMall/
SyndicationFeedBuilder.java:15: package
com.sun.syndication.feed.synd does not exist
[wocompile] import com.sun.syndication.feed.synd.*;
...[snip]
Though there are still no errors showing in my actual code, this
only shows up when I try to install. If this package can't be found,
why doesn't it show in my source file?
When I look at the Java Build Path of my application after upgrading
to "hotness", I see that things that were previously listed as
dependent Projects in the Projects tab are now shown in the
Libraries tab as things like "MPServerEOs Framework". So what is now
the suggested way of adding dependent frameworks? I can still do so
in the Projects tab, but can't see how to confirm with what is now
showing in the Libraries tab; I can't see how to add my framework
that contains the jars and have it appear like the others now do as
"MyJarFramework Framework". Perhaps if I can solve this it will
remove my compile problem as the framework in question contains the
jar that contains the missing com.sun.syndication.feed.synd package
in the error message.
Thanks again
John
On 8 Jan 2009, at 14:01, John Pollard wrote:
Lachlan,
Many thanks for your reply. I have updated to the latest Eclipse
3.4.1 and the latest WOLips nightly, but that does not resolve this
issue. I am also posting to the rome mailing list to try from that
angle, but a nightly build of the latest rome jar didn't help either.
I also tried adding the two jars to my application directly,
cutting out the framework, but got the same outcome.
The rome jar only depends on the jdom dar, so shouldn't be too
complicated. I will post back if I eventually find the reason for
this.
John
On 6 Jan 2009, at 23:31, Lachlan Deck wrote:
Hi John,
On 07/01/2009, at 12:18 AM, John Pollard wrote:
A bit off topic, but I am struggling to make sense of this.
Simply put I want to understand why I can't put a couple of jars
into a WO framework and have the code still work as it does when
the same jars are in /Library/Java/Extensions.
Not really off topic. This is a classpath issue.
Created a new WebObjects framework.
Manually moved two jar files (rome-1.0RC1.jar and jdom.jar) out
of /Library/Java/Extensions into the new framework project's /
Libraries sub folder
Good.
In Java Build Path properties, Libraries tab, Add Jars.. to add
them in, then in the Order and Export tab tick them
Good.
In the app project, add the new framework as a dependency
Eclipse shows no compile time problems, so why the runtime error:
[java.lang.NoClassDefFoundError] com/sun/syndication/io/
ModuleGenerator
I will be very grateful for any pointers to help me solve this
one; in particular why/when Eclipse is happy at compile time, but
actually the classes are not found when run.
Are you running WOLips nightly and Eclipse 3.4.x? If not you might
need to update WOLips/Eclipse to get the fix that I think went in
late November.
The class that is not found is definitely in the rome jar.
Search the archives for Transitive. It's a transitive dependency
problem.
with regards,
--
Lachlan Deck
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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