PATH is different between dev and deployment, make deploy failed(WO5.4.3)
PATH is different between dev and deployment, make deploy failed(WO5.4.3)
- Subject: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
- From: "Ren, Kevin" <email@hidden>
- Date: Thu, 11 Dec 2008 15:23:42 +1300
- Thread-topic: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
Title: PATH is different between dev and deployment, make deploy failed(WO5.4.3)
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