• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATH is different between dev and deployment, make deploy failed(WO5.4.3)


  • Subject: Re: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
  • From: Andrew Lindesay <email@hidden>
  • Date: Thu, 11 Dec 2008 15:30:48 +1300

Hello Kevin;

I suggest that you simply put all of the WebObjects frameworks directly into the ".woa" bundle and then you don't need to worry about where they are in the deployment system.

cheers.

On 11/12/2008, at 3:23 PM, Ren, Kevin wrote:

Hi,


Eclipse3.4+WOLips nightly build+WO5.4.3 in Ubuntu

Simple HelloWorld.woa

In development build path, the javafoundation.jar, javajdbcadaptor.jar,javawebobjects.jar…. Are point to Whatever/Apple/ System/Library/Frameworks directory, all good.

After application built, install it to Whatever/Apple/Library/ WebObjects/Applications.

After I run the application I got path error. Like
java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication

I found it's quite different between WO5.4.3 and WO5.3 in UnixClassPath.txt and HelloWorld script,

In UnixClassPath.txt, the path is point to

WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/ javafoundation.jar
…
but when I look HelloWorld script, I found


#
# Depending upon the platform, provide default values for the path
# abstractions (we call these values "shorthands").
#
if [ "${PLATFORM_TYPE}" = "Rhapsody" ]
then
    LOCALROOT=/Local
    WOROOT=/System
elif [ "$PLATFORM_TYPE" = "Darwin" ]
then
    LOCALROOT=
    WOROOT=/System
else
    WOROOT=${NEXT_ROOT}
    LOCALROOT=${NEXT_ROOT}/Local
Fi


That's meant WOROOT=Whatever/Apple,

I got error message, like:
java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication


I change it to WOROOT=${NEXT_ROOT}/System, then I can start my HelloWorld, fixed problem.



If I add local framework, in UnixClassPath.txt, looks like LOCALROOTLibrary/Frameworks/Ajax.framework/Resources/Java/Ajax.jar , so no LOCALROOTLibrary definition in HelloWorld script.

So I want to know how these UnixClassPath.txt or MacOSCalssPath.txt and HelloWorld scripts generated, then I can fix for all applications during the build, not one by one fix script.

Anyone have idea? No problem for development, only build for deployment.

Thanks


Kevin






"This communication is confidential and may contain privileged and/ or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."


_______________________________________________
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

___ Andrew Lindesay www.lindesay.co.nz

_______________________________________________
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


References: 
 >PATH is different between dev and deployment, make deploy failed(WO5.4.3) (From: "Ren, Kevin" <email@hidden>)

  • Prev by Date: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
  • Next by Date: RE: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
  • Previous by thread: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
  • Next by thread: RE: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
  • Index(es):
    • Date
    • Thread