Hi Christoph Wick,
I have added ERFoundation.jar in my classpath and this
resolved the NSBundleFactory class not found error. The ERJars
and ERExtensions are existing before JavaFoundation.
Still there is another following error generating while
launching the application:
-----------------------------------------------------------
com.webobjects.foundation.NSForwardException
[java.lang.NoSuchMethodError]
org.apache.commons.lang.ObjectUtils.notEqual(Ljava/lang/Object;Ljava/lang/Object;)Z:java.lang.NoSuchMethodError:
org.apache.commons.lang.ObjectUtils.notEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
at
com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:43)
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:124)
at
com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
at
com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
at
com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
at
com.cssg.webobjects.eoaccess.EOAdaptorHelper.setConnectionDictionaryForModelNamed(EOAdaptorHelper.java:89)
at
com.cssg.webobjects.eoaccess.OracleEOAdaptorHelper.setConnectionLoginForModelNamed(OracleEOAdaptorHelper.java:43)
at
Application.<init>(Application.java:292)
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
er.extensions.appserver.ERXApplication.main(ERXApplication.java:866)
at Application.main(Application.java:743)
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:597)
at
com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
Caused by: java.lang.NoSuchMethodError:
org.apache.commons.lang.ObjectUtils.notEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
at
er.extensions.eof.ERXModelGroup.checkForMismatchedJoinTypes(ERXModelGroup.java:549)
at
er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:272)
at
er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:148)
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:597)
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
... 20 more
3263 [main] INFO NSLog - Error:
java.lang.NoSuchMethodError:
org.apache.commons.lang.ObjectUtils.notEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
3263 [main] INFO NSLog - Could not connect to
database. Application terminating.
APPLICATION SHUTDOWN SEQUENCE COMPLETE
-----------------------------------------------------------
Following is my classpath:
------------------------------------------------------------
# JVM == java
# JVMOptions == -server
# JDB == jdb
# JDBOptions ==
# ApplicationClass == Application
APPROOT/Resources/Java/
APPROOT/Resources/Java/solar.jar
WOROOT/Library/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
WOROOT/Library/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar
WOROOT/Library/Frameworks/AjaxLook.framework/Resources/Java/AjaxLook.jar
WOROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/junit-4.10.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.17.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.7.10.jar
WOROOT/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.7.10.jar
WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
WOROOT/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar
WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
----------------------------------------------------------------------------------------------------
Thanks,
Raghu.
On 10-Apr-2015, at 2:40 PM, CHRISTOPH WICK |
i4innovation GmbH, Bonn wrote:
Hi Raghu,
NSBundleFactory seems to be in ERJars/ERFoundation.jar
I think you should place ERJars and ERExtensions before
JavaFoundation in your classpath (the should be always
the first to load before all the Apple legacy stuff).
C.U.CW
--
The three great virtues of a programmer are Laziness,
Impatience and Hubris. (Randal Schwartz)
On 10.04.2015, at 10:24,
Raghavender Bokka <email@hidden>
wrote:
Hi Team,
The following is the error
generating when I ran the application through command
prompt:
---------------------------
java.lang.reflect.InvocationTargetException
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:597)
at
com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
Caused by:
java.lang.NoClassDefFoundError:
com/webobjects/foundation/development/NSBundleFactory
at
er.extensions.appserver.ERXApplication.setup(ERXApplication.java:1042)
at
er.extensions.appserver.ERXApplication.main(ERXApplication.java:865)
at
Application.main(Application.java:743)
... 5 more
Caused by:
java.lang.ClassNotFoundException:
com.webobjects.foundation.development.NSBundleFactory
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:307)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more
---------------------------
Thanks,
Raghu.
On 10-Apr-2015, at 10:06 AM,
Raghavender Bokka wrote:
Hi Team,
We have upgraded Project
Wonder frameworks from 5.4 to 6.1.3 version. And the
application is built using Java 1.6 version and also
the server environment is having Java 1.6 version.
When we tried to launch the
application, it is loading all the classpath jars
but not launching the application. No errors are
generated, the following is the launch log:
--------------------------------------------------------------------------------------
Reading UNIXClassPath.txt ...
Launching Solar.woa ...
java
-DWORootDirectory="/opt/Apple"
-DWOLocalRootDirectory="/opt/Apple/Local"
-DWOUserDirectory="/opt/Apple/Local/Library/WebObjects/Applications/SOLARBASECODE/APPLICATION_MAINTENANCE_SCRIPTS"
-DWOEnvClassPath="" -DWOApplicationClass=Application
-DWOPlatform=UNIX -Dcom.webobjects.pid=564 -server
-Xms512m -Xmx1024m -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap -WOPort 5009
-Config SolarTAdmin -EOAdaptorDebugEnabled false
-IsReportMillLicenseInstalled true -WOHost
192.168.1.49 -WOSMTPHost 192.168.1.10 -WOOutputPath
/opt/Apple/Local/Library/WebObjects/Applications/SOLARBASECODE/APPLICATION_LOGS/04.09.2015_log/Solardd
Loading
/opt/Apple/Local/Library/WebObjects/Applications/SOLARBASECODE/APPLICATION_BUILD/Ironfistproduction/IronfistProduction-SOLARAdmin/Solar.woa/Contents/UNIX/UNIXClassPath.txt
Generated classpath:
/opt/Apple/Local/Library/WebObjects/Applications/SOLARBASECODE/APPLICATION_BUILD/Ironfistproduction/IronfistProduction-SOLARAdmin/Solar.woa/Contents/Resources/Java/
/opt/Apple/Local/Library/WebObjects/Applications/SOLARBASECODE/APPLICATION_BUILD/Ironfistproduction/IronfistProduction-SOLARAdmin/Solar.woa/Contents/Resources/Java/solar.jar
/opt/Apple/Library/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
/opt/Apple/Library/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar
/opt/Apple/Library/Frameworks/AjaxLook.framework/Resources/Java/AjaxLook.jar
/opt/Apple/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/junit-4.10.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.17.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.7.10.jar
/opt/Apple/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.7.10.jar
/opt/Apple/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
/opt/Apple/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
/opt/Apple/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
/opt/Apple/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
/opt/Apple/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar
/opt/Apple/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
/opt/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
/opt/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-ext-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/AppleJavaExtensions-1.2.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jeuclid-mathviewer-3.1.9.jar
/opt/Apple/Local/Library/WebObjects/Extensions/xml-apis.jar
/opt/Apple/Local/Library/WebObjects/Extensions/xml-apis-1.3.04.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-discovery.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-lang-2.4.jar
/opt/Apple/Local/Library/WebObjects/Extensions/activation.jar
/opt/Apple/Local/Library/WebObjects/Extensions/logkit-1.0.1.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-parser-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-dom-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-ps-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/ReportMill12.jar
/opt/Apple/Local/Library/WebObjects/Extensions/ojdbc14.jar
/opt/Apple/Local/Library/WebObjects/Extensions/wsdl4j-1.5.1.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-logging-1.0.4.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-logging.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-xml-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-tests-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/html2image-0.9.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jeuclid-fop-3.1.9.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphics2d-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-css-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/poi-3.6-20091214.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-util-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/log4j-1.2.4.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-svggen-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-discovery-0.2.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jeuclid-swt-3.1.9.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphics-base-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-io-2.0.5.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-swf-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jsoup-1.7.1.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-awt-util-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-anim-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/batik-svg-dom-1.7.jar
/opt/Apple/Local/Library/WebObjects/Extensions/poi30-rm.jar
/opt/Apple/Local/Library/WebObjects/Extensions/axis.jar
/opt/Apple/Local/Library/WebObjects/Extensions/axis-ant.jar
/opt/Apple/Local/Library/WebObjects/Extensions/cron4j-2.2.5.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-io-1.3.1.jar
/opt/Apple/Local/Library/WebObjects/Extensions/saaj.jar
/opt/Apple/Local/Library/WebObjects/Extensions/avalon-framework-4.1.2.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jeuclid-cli-3.1.9.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-gif-1.2.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-logging-1.1.1.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jeuclid-core-3.1.9.jar
/opt/Apple/Local/Library/WebObjects/Extensions/jaxrpc.jar
/opt/Apple/Local/Library/WebObjects/Extensions/smtp.jar
/opt/Apple/Local/Library/WebObjects/Extensions/mailapi.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-emf-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/xmlgraphics-commons-1.3.1.jar
/opt/Apple/Local/Library/WebObjects/Extensions/freehep-graphicsio-pdf-2.1.3.jar
/opt/Apple/Local/Library/WebObjects/Extensions/ams-fonts-1.0.jar
/opt/Apple/Local/Library/WebObjects/Extensions/dejavu-fonts-2.29.jar
/opt/Apple/Local/Library/WebObjects/Extensions/stix-fonts-1.0-beta-2.jar
/opt/Apple/Local/Library/WebObjects/Extensions/scheduling.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-cli-1.2.jar
/opt/Apple/Local/Library/WebObjects/Extensions/wsdl4j.jar
/opt/Apple/Local/Library/WebObjects/Extensions/log4j-1.2.14.jar
/opt/Apple/Local/Library/WebObjects/Extensions/commons-lang-2.0.jar
/opt/Apple/Local/Library/WebObjects/Extensions/xml-apis-ext-1.3.04.jar
/opt/Apple/Local/Library/WebObjects/Extensions/
--------------------------------------------------------------------------------------
Any help would be appreciated.
Thanks,
Raghu.
_______________________________________________
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
_______________________________________________
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