Re: WXCheckboxList & deployment question
Re: WXCheckboxList & deployment question
- Subject: Re: WXCheckboxList & deployment question
- From: Chuck Hill <email@hidden>
- Date: Tue, 24 Jul 2007 16:29:23 -0700
On Jul 24, 2007, at 4:14 PM, Randy Wigginton wrote:
For my project I wanted to use the WXCheckbox element; so, I loaded
the project into XCode, built the deployment version (which made /
Library/Frameworks/WOComponentElements), added that framework to my
project. Immediately, I noticed the build never worked; it always
gave an error that the jar was not in /Library/WebObjects/lib.
No. The jars in that location are not the same as the jar in /
Library/Frameworks/WOComponentElements/Resourcs/Java/
WOComponentElements.jar. The jars in the lib/ directory are entire
frameworks packaged as jars.
No, I don't know how to make Xcode generate one of these jars,
hopefully someone else will.
So, I copied the jar to that location, wondering why I needed to do
that extra step. I continue on, everything seems to be working fine.
That is because it is using what is in /Library/Frameworks/
So I build a WAR file from my project (which has been successful,
thanks to all those that helped). When I deploy the WAR, and
attempt to go to the page with the checkbox list, I get this error:
- WOBundle.lookForClassInAllBundles(WXCheckBoxList) failed!
- <com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[java.lang.ClassNotFoundException] Cannot find class or component
named WXCheckBoxList in runtime or in a loadable bundle:
<com.webobjects.appserver._private.WOComponentDefinition: Error
parsing template for Component : 'jar:file:///quigo/adsonar-server/
webapps/MediaKommandantWO/WEB-INF/lib/MediaKommandantWO.jar!/
Resources/ManageSectionsLibraries.wo':
java.lang.ClassNotFoundException: Cannot find class or component
named WXCheckBoxList in runtime or in a loadable bundle
That is because the jar you put in lib/ is an ordinary jar, not a
jar'ed bundle.
Chuck
--
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