• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCode v Eclipse problem with WO WebServices development
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode v Eclipse problem with WO WebServices development


  • Subject: Re: XCode v Eclipse problem with WO WebServices development
  • From: Des Oates <email@hidden>
  • Date: Wed, 26 Jan 2005 16:05:13 +0000

Looks like you're right! The axis, and saaj jars were installed in that /Library/WebObjects/Extensions. So that answered my first question.

However, even if I add all of these classes found here to my Eclipse The same runtime error occurs, so my second puzzle is still unsolved.

But thanks for your help.

Des

On 26 Jan 2005, at 02:12, Chuck Hill wrote:

Here is my best guess.  :-)

vexCode uses WOBootstrap to load the app. WOBootstrap automatically loads
any jar files found in /Library/WebObjects/Extensions. Eclipse, on the
other hand, uses its own launcher (actually, a launcher from WOLips) to
load the app. This knows nothing of /Library/WebObjects/Extensions, you
need to set the classpath correctly yourself. You might like to file a
feature request for WOLips regarding this.



Chuck



At 01:33 AM 26/01/2005 +0000, Des Oates wrote:

I'm wondering if there is anyone who can point me in the direction of where
I'm going wrong here.


I'm trying to get a Web Services server project running using WOLips and
Eclipse. I've got a very simple project that publishes the Calculator class
from Apple's example documentation as a test project. The Application's
constructor simply calls super() and this method:


   private void initWebServices () {
    		NSLog.out.appendln("Initializing WebServices...");
    		WOWebServiceRegistrar.registerWebService(Calculator.class, true);
    }

With the XCode project it compiles and runs fine. I can view the generated
wsdl when the server is running. However with the Eclipse project I get
lots of NoClassDefFoundErrors at runtime like the one shown below


[2005-01-26 00:26:47 GMT] <main> java.lang.NoClassDefFoundError:
org/apache/axis/AxisFault
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
com.webobjects.webservices.generation._WSRuleUtilities.class$(_WSRuleUt iliti
es.java:34)
at
com.webobjects.webservices.generation._WSRuleUtilities.<clinit>(_WSRule Utili
ties.java:39)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtiliti es.ja
va:307)
at
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java: 291)
at com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java: 2555)
at com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java: 711)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:369)
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOP roper
ties.java:179)
at com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java: 5046)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:553)
at Application.<init>(Application.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor Acces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon struc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
at Application.main(Application.java:11)


Looking at this trace log, it looks like the AxisFault class is not on the
classpath, but both projects include an identical set of 12 WO frameworks
and nothing else. These are:


	JavaWebServicesGeneration
	JavaWebServicesSupport
	JavaFoundation
	JavaEOControl
	JavaEOAccess
	JavaWebObjects
	JavaWOExtensions
	JavaXML
	JavaDTWGeneration
	JavaDirectoToWeb
	JavaEOProject
	JavaJDBCAdaptor

So my first question is to figure out why the axis library is being found
by XCode, but not Eclipse.


Then, it I then add the axis.jar and the saaj.jar to the Eclipse project I
get another error as shown in this trace:


Initializing WebServices...
[2005-01-26 01:00:27 GMT] <main> A fatal exception occurred: null
[2005-01-26 01:00:27 GMT] <main> java.lang.NoClassDefFoundError
at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:76)
at
com.webobjects.appserver.WOWebServiceRegistrar.setUpDeploymentDocument( WOWeb
ServiceRegistrar.java:46)
at
com.webobjects.appserver.WOWebServiceRegistrar.<clinit>(WOWebServiceReg istra
r.java:38)
at Application.initWebServices(Application.java:23)
at Application.<init>(Application.java:18)


which kinda baffles me because the class (org.apache.axis.utils.XMLUtils)
is in the axis jar, which is in the classpath.


Can anyone think of any reason why this would happen, or suggest any
pointers. Is it a properties problem?

Thanks
Des

Environment Spec:
Mac OS X 10.3.7
Eclipse 3.0.0
WOLips 1.1.0.90
XCode 1.5
	IDE 389.0
	Core 387.0
	ToolSupport 372.0



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village
.net


This email sent to email@hidden<<<<


--

Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net



_______________________________________________ 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
References: 
 >Re: XCode v Eclipse problem with WO WebServices development (From: Chuck Hill <email@hidden>)

  • Prev by Date: Many to Many relationship
  • Next by Date: Many to Many self join
  • Previous by thread: Re: XCode v Eclipse problem with WO WebServices development
  • Next by thread: templates/html generating
  • Index(es):
    • Date
    • Thread