I have an old WebObjects app I'm trying to update. It was written using 1.4
Java on 10.5 and was updated at some point to 5.4.3.
I haven't done any WebObjects development since 10.5.
I had a request to make some changes to this app, and I'm finding that there
are several issues which I don't understand.
I managed to get Eclipse 3.7.2 loaded and the Wonder Frameworks loaded and
there seem to be only a few things at this point preventing the project from
running.
I have a lot of Raw Type warnings where NSArray and NSMutableArray are used.
I'm thinking these can probably be safely ignored for now.
The other issue I have is that there are a lot of WebObjects template problems.
They all seem related to the use of session.
Here is an example that is flagged.
CheckBox2: WOCheckBox {
checked = session.currentDoc.agreeToTerms;
}
The error is that there is no key 'currentDoc' for the key path 'session'.
Of course if I look in Session.java there is a declaration for currentDoc.
I did make a new test project in Eclipse and am able to get that to run, so I'm
not sure if something is amiss in my old projects settings, or if it's just the
way it was written is no longer valid and I need to make a change to update it
somehow.
When I try to run the app this is what I get.
[2012-12-29 11:6:9 CST] <main> A fatal exception occurred:
org/apache/oro/text/regex/MalformedPatternException
[2012-12-29 11:6:9 CST] <main> java.lang.NoClassDefFoundError:
org/apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:348)
at
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:335)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:1760)
at
com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:700)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:344)
at
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:779)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:526)
Caused by: java.lang.ClassNotFoundException:
org.apache.oro.text.regex.MalformedPatternException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 19 more
I'm guessing I'm missing something in my install somewhere, but I just don't
know where or what to look for at this point.
Any help would be appreciated.
Thanks,
Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]