Re: NSDictionary Error
Re: NSDictionary Error
- Subject: Re: NSDictionary Error
- From: Don Lindsay <email@hidden>
- Date: Thu, 3 May 2007 14:14:33 -0400
Hello;
I found the issue. I removed JavaFoundation.jar from the extension
folder.
Don
On May 3, 2007, at 2:10 PM, Don Lindsay wrote:
/Library/Java/Extensions:
JavaEOControl.jar
JavaFoundation.jar
jce1_2_1.jar
local_policy.jar
ojdbc14.jar
OpenBaseJDBC.jar
sunjce_provider.jar
US_export_policy.jar
/Library/WebObjects/Extensions:
avalon-framework-4.1.2.jar
axis-ant.jar
axis.jar
commons-discovery.jar
commons-logging.jar
jaxrpc.jar
jdsremote.jar
log4j-1.2.8.jar
ReportMill9.jar
saaj.jar
servlet.jar
wsdl4j.jar
Thanks
Don
On May 3, 2007, at 1:07 PM, Chuck Hill wrote:
What is in:
/Library/Java/Extensions
and
/Library/WebObjects/Extensions
Chuck
On May 3, 2007, at 9:19 AM, Don Lindsay wrote:
Hello;
I have a bit more information. The error only occurs when I use
the Security Framework by David Newnann. This is from the secure
store example project. Is it possible the class name changed on
Intel Macs? After I attempt to build and run the project (any
project that uses Security Framework) I get the following:
Generated classpath:
/Users/don/Desktop/WOSecurity/SecureStoreX/SecureStoreX/build/
Development/SecureStore.woa/Contents/Resources/Java/SecureStore.jar
/System/Library/Frameworks/JavaFoundation.framework/Resources/
Java/javafoundation.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/
Java/javaeocontrol.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/
Java/javaeoaccess.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/
Java/javawebobjects.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/
Java/javajdbcadaptor.jar
/System/Library/Frameworks/JavaWOExtensions.framework/Resources/
Java/JavaWOExtensions.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/
javaxml.jar
/Library/Frameworks/WOComponentElements.framework/Resources/
Java/WOComponentElements.jar
/Library/Frameworks/WOExamplesHarness.framework/Resources/Java/
WOExamplesHarness.jar
/Library/Frameworks/JavaWOSecurity.framework/Resources/Java/
JavaWOSecurity.jar
/Users/don/Library/Java/
/Library/Java/
/System/Library/Java/
/Network/Library/Java
/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
/Library/WebObjects/Extensions/avalon-framework-4.1.2.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-discovery.jar
/Library/WebObjects/Extensions/commons-logging.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/jdsremote.jar
/Library/WebObjects/Extensions/log4j-1.2.8.jar
/Library/WebObjects/Extensions/ReportMill9.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/servlet.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/
[2007-05-03 12:15:15 EDT] <main> Cannot load class with name
com.webobjects.foundation.NSBundle
[2007-05-03 12:15:15 EDT] <main> A fatal exception occurred: null
[2007-05-03 12:15:15 EDT] <main>
java.lang.ExceptionInInitializerError
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(
WOProperties.java:187)
at com.webobjects.appserver.WOApplication._initWOApp
(WOApplication.java:5081)
at com.webobjects.appserver.WOApplication.<init>
(WOApplication.java:551)
at com.webobjects.security.SPApplication.<init>
(SPApplication.java:79)
at Application.<init>(Application.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.webobjects.appserver.WOApplication.main
(WOApplication.java:323)
at Application.main(Application.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)
Caused by: com.webobjects.foundation.NSForwardException
[java.lang.ClassNotFoundException]
com.webobjects.foundation.NSBundle
at
com.webobjects.foundation.NSForwardException._runtimeExceptionForThr
owable(NSForwardException.java:47)
at
com.webobjects.foundation._NSUtilities._classWithFullySpecifiedName(
_NSUtilities.java:218)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:212)
... 18 more
thanks, any ideas?
Don
On May 3, 2007, at 10:59 AM, Don Lindsay wrote:
Hello;
I have been working with this for a week. I have tried to
start it from the command line by modifying the class path and
writing my own script. Still no joy.
I went back to one of my previous macs and am able to run the
application with no problem.
The differences between the two machines are as follows:
Does not run:
Intel Quad, 2GB of Ram, OS X Server 10.4.9
Runs:
G5 Quad, 2GB of Ram, OS X 10.4.9
Is there an issue with running the WebObjects on an Intel
machine? If I create a new WebObjects Project on the Intel
machine it runs without a problem.
I realize this is probably a classpath problem, I have checked
the Java WebObjects jar and the JavaFoundation jar files. They
appear to be valid, especially since I can run a new WebObjects
Project.
Thanks,
Don
On Apr 30, 2007, at 10:11 PM, Don Lindsay wrote:
Hello;
Here is the generated Classpath. I am still getting the error
for some reason.
Generated classpath:
/private/tmp/dwtm.dst/Library/WebObjects/Applications/
dwtm.woa/Contents/Resources/Java/dwtm.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/
Java/javaeoaccess.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/
Java/javawebobjects.jar
/System/Library/Frameworks/JavaWOExtensions.framework/
Resources/Java/JavaWOExtensions.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/
javaxml.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/
Resources/Java/javajdbcadaptor.jar
/System/Library/Frameworks/JavaWOJSPServlet.framework/
Resources/Java/javawojspservlet.jar
/Library/Frameworks/WOComponentElements.framework/Resources/
Java/WOComponentElements.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/
Java/javaeocontrol.jar
/Library/Frameworks/JavaWOSecurity.framework/Resources/Java/
JavaWOSecurity.jar
/Library/Frameworks/WOExamplesHarness.framework/Resources/
Java/WOExamplesHarness.jar
/Library/Frameworks/WOComponentExamples.framework/Resources/
Java/WOComponentExamples.jar
/System/Library/Frameworks/JavaEOApplication.framework/
Resources/Java/javaeoapplication.jar
/System/Library/Frameworks/JavaFoundation.framework/Resources/
Java/javafoundation.jar
/Users/don/Library/Java/
/Library/Java/
/System/Library/Java/
/Network/Library/Java
/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-discovery.jar
/Library/WebObjects/Extensions/commons-logging.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/log4j-1.2.8.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/
Thanks
Don
On Apr 30, 2007, at 4:49 PM, Ray Kiddy wrote:
On Apr 30, 2007, at 12:36 PM, Don Lindsay wrote:
Howdy Chuck;
I did a clean and build and still have the issue. I have
not made any changes to the application since the last time
it was built and deployed 4 months ago.
Don
Look at the classpath as it is printed out by Xcode when you
launch. Find the JavaFoundation.jar file. Is the file there?
Is it readable. Do a "jar tf" on it. Does it have the classes?
Your classpath is what it is. The classes on the classpath are
what they are.
If it is not making sense construct a one-line script out of
the output from the script inside the woa and launch it.
Double-check what is in it and tweak until it works. The
things you had to change are the problem.
- ray
On Apr 30, 2007, at 2:55 PM, Chuck Hill wrote:
That looks like a classpath error, or a class loader issue.
Try a clean and rebuilt. What have you changed?
Chuck
On Apr 30, 2007, at 11:50 AM, Don Lindsay wrote:
Hello;
I am having an issue with one of my applications. It just
started, I get the following error when I attempt to run
the application:
[2007-04-30 14:45:58 EDT] <main> A fatal exception
occurred: com/webobjects/foundation/NSDictionary
[2007-04-30 14:45:58 EDT] <main>
java.lang.NoClassDefFoundError: com/webobjects/foundation/
NSDictionary
at
com.webobjects.security.SPSecurityPolicyAbstract.policyConfig(
SPSecurityPolicyAbstract.java:347)
at com.webobjects.security.SPSecurityPolicyAbstract.<init>
(SPSecurityPolicyAbstract.java:403)
at com.webobjects.security.SPSecurityPolicy.<init>
(SPSecurityPolicy.java:110)
at com.webobjects.security.SPSecurityPolicy.policy
(SPSecurityPolicy.java:104)
at com.psgs.dodig.dwtm.Application.<init>(Application.java:
42)
Any ideas? I am using Xcode 2.4.1.
Thanks,
Don
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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 (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40ganymede.org
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:
40mac.com
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:
40mac.com
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:
40global-village.net
This email sent to email@hidden
--
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:
40mac.com
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