• 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: SerializerFactory and Leopard 10.5 (eclipse and xcode)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)


  • Subject: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 24 May 2009 12:27:25 -0700


On May 23, 2009, at 5:58 PM, Carlos Maldonado wrote:

"Well I'll be damn!"... I equalized /Library/WebObjects/Extensions directory with /Library/Java/Extensions and worked.


Noooooooooooooo.  No. No. No.  :-)

You are just making more problems. Ideally there should be NOTHING in /Library/Java/Extensions. Slightly less ideal is to have JDBC drivers in there. mail.jar and activate.jar if you must. Pretty much anything else is just asking for classloader problems (which is what you have been experiencing).


Chuck


I assured myself of having same versions (new ones) of axis in both directories and PLUS adding the JavaWebServicesSupport framework to my classpath too and worked.

That 0.37% above the 98% was what made me go to XCode and check for all the added frameworks the app had and that I probably didn't add when the XCodeMigration project converted the original.

Thanks
-Carlos


On May 23, 2009, at 4:03 PM, Chuck Hill wrote:


On May 23, 2009, at 12:56 PM, Carlos Maldonado wrote:

More on this issue... I created a different app to try to discard
errors related to my particular classpath or any other user-created
library or framework but I got the same error, could this error is
more related to the mix between MacOS10.5+WOLips?

No, that works fine.

I am 98.37% sure that you have jars in /Library/Java/Extensions or /
Library/WebObjects/Extensions that should not be there / are an older
version.

Chuck


. The code below is a dummy just to prove myself that the error is
not related to anything else on the project I'm converting from
10.4(WO5.3) to 10.5 (WO5.4). I created this dummy project --which
btw, it successfully compiles-- with just the offending code new
BeanSerializerFactory which fails with the error following the code.

package your.app.components;

import org.apache.axis.encoding.ser.BeanDeserializerFactory;
import org.apache.axis.encoding.ser.BeanSerializerFactory;

import com.webobjects.appserver.WOContext;
import com.webobjects.appserver.WOWebServiceRegistrar;

import er.extensions.components.ERXComponent;

public class Main extends ERXComponent {
	class xyz {
		public xyz() {}
	}
	public Main(WOContext context) {
		super(context);
		javax.xml.namespace.QName ldUserAccountQName = new
javax.xml.namespace.QName("Foo-UAccount", "MooUAcct");
		WOWebServiceRegistrar.registerFactoriesForClassWithQName(new
BeanSerializerFactory(xyz.class, ldUserAccountQName), new
BeanDeserializerFactory(xyz.class, ldUserAccountQName), xyz.class,
ldUserAccountQName);

	}
}

Application:  	 HolaSoap
Error: 	java.lang.reflect.InvocationTargetException
Reason: 	javax/xml/rpc/encoding/SerializerFactory
Stack trace:
File 	Line# 	Method 	Package
ClassLoader.java 	NA 	defineClass1 	java.lang
ClassLoader.java 	675 	defineClass 	java.lang
SecureClassLoader.java 	124 	defineClass 	java.security
URLClassLoader.java 	260 	defineClass 	java.net
URLClassLoader.java 	56 	access$100 	java.net
URLClassLoader.java 	195 	run 	java.net
AccessController.java 	NA 	doPrivileged 	java.security
URLClassLoader.java 	188 	findClass 	java.net
ClassLoader.java 	316 	loadClass 	java.lang
ClassLoader.java 	251 	loadClass 	java.lang
ClassLoader.java 	374 	loadClassInternal 	java.lang
ClassLoader.java 	NA 	defineClass1 	java.lang
ClassLoader.java 	675 	defineClass 	java.lang
SecureClassLoader.java 	124 	defineClass 	java.security
URLClassLoader.java 	260 	defineClass 	java.net
URLClassLoader.java 	56 	access$100 	java.net
URLClassLoader.java 	195 	run 	java.net
AccessController.java 	NA 	doPrivileged 	java.security
URLClassLoader.java 	188 	findClass 	java.net
ClassLoader.java 	316 	loadClass 	java.lang
ClassLoader.java 	251 	loadClass 	java.lang
ClassLoader.java 	374 	loadClassInternal 	java.lang
ClassLoader.java 	NA 	defineClass1 	java.lang
ClassLoader.java 	675 	defineClass 	java.lang
SecureClassLoader.java 	124 	defineClass 	java.security
URLClassLoader.java 	260 	defineClass 	java.net
URLClassLoader.java 	56 	access$100 	java.net
URLClassLoader.java 	195 	run 	java.net
AccessController.java 	NA 	doPrivileged 	java.security
URLClassLoader.java 	188 	findClass 	java.net
ClassLoader.java 	316 	loadClass 	java.lang
ClassLoader.java 	306 	loadClass 	java.lang
Launcher.java 	280 	loadClass 	sun.misc
ClassLoader.java 	251 	loadClass 	java.lang
ClassLoader.java 	374 	loadClassInternal 	java.lang
Main.java 	18 	<init> 	your.app.components
NativeConstructorAccessorImpl.java 	NA 	newInstance0 	sun.reflect
NativeConstructorAccessorImpl.java 	39 	newInstance 	sun.reflect
DelegatingConstructorAccessorImpl.java 	27 	newInstance 	sun.reflect
Constructor.java 	494 	newInstance 	java.lang.reflect
_NSUtilities.java 	614 	instantiateObject 	com.webobjects.foundation
WOComponentDefinition.java 	544 	_componentInstanceInContext
com.webobjects.appserver._private
WOComponentDefinition.java 	642 	componentInstanceInContext
com.webobjects.appserver._private
WOApplication.java 	2332 	pageWithName 	com.webobjects.appserver
WOComponentRequestHandler.java 	284 	_dispatchWithPreparedSession
com.webobjects.appserver._private
WOComponentRequestHandler.java 	332
_dispatchWithPreparedApplication 	com.webobjects.appserver._private
WOComponentRequestHandler.java 	369 	_handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java 	442 	handleRequest
com.webobjects.appserver._private
WOApplication.java 	1687 	dispatchRequest 	com.webobjects.appserver
ERXApplication.java 	1737 	dispatchRequestImmediately
er.extensions.appserver
ERXApplication.java 	1702 	dispatchRequest 	er.extensions.appserver
WOWorkerThread.java 	144 	runOnce 	com.webobjects.appserver._private
WOWorkerThread.java 	226 	run 	com.webobjects.appserver._private
Thread.java 	613 	run 	java.lang
NA : Non applicable, JIT activated

Any insights or suggested workarounds?

-Carlos
_______________________________________________
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

-- Chuck Hill Senior Consultant / VP Development

Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/





-- Chuck Hill Senior Consultant / VP Development

Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/

_______________________________________________
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


  • Follow-Ups:
    • Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
      • From: Carlos Maldonado <email@hidden>
    • Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
      • From: Mike Schrag <email@hidden>
References: 
 >SerializerFactory and Leopard 10.5 (eclipse and xcode) (From: Carlos Maldonado <email@hidden>)
 >Re: SerializerFactory and Leopard 10.5 (eclipse and xcode) (From: Chuck Hill <email@hidden>)
 >Re: SerializerFactory and Leopard 10.5 (eclipse and xcode) (From: Carlos Maldonado <email@hidden>)

  • Prev by Date: Custom Project Templates with non English
  • Next by Date: Re: EOF Stumper (for me at least)
  • Previous by thread: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Next by thread: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Index(es):
    • Date
    • Thread