Hi, 

I want to test my new installed WO541/WOLips, so following the tutorial
created project and component with NSTimestamp.

In HTML
<webobject name = "ApplicationName"></webobject>
        <webobject name = "Now"></webobject>
        <webobject name = "Greeting"></webobject>

In WOD
ApplicationName : WOString {
        value = application.name;
}

Now : WOString {
        value = now;
        dateformat = "%m/%d/%y";
}

Greeting : MyComponent {
        
}

In Java
public NSTimestamp now(){
                return new
NSTimestamp(2008,1,1,1,0,0,NSTimeZone.getDefault());
        }
OR
public NSTimestamp now(){
                return new NSTimestamp();
        }

When I run app, got error
Exception in thread "main" java.lang.NoClassDefFoundError:
com.webobjects.foundation.NSTimeZone
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.foundation.NSTimestamp.<clinit>(NSTimestamp.java:1481)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.foundation.NSLog$PrintStreamLogger.<init>(NSLog.java:1917
)
   at com.webobjects.foundation.NSLog.<clinit>(NSLog.java:670)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.foundation._NSUtilities.<clinit>(_NSUtilities.java:196)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.appserver.WOApplication.<clinit>(WOApplication.java:322)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at java.lang.Class.initializeClass(libgcj.so.81)


Anyone know what's problem?

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to