WO application failing to load UNIXClassPath.txt
All, I am in the process of trying to move our build environment and am getting different results when starting an application from the new build environment. I'm not sure what we may have missed when setting up the new build environment but when the application starts from code built there it does not load the UNIXClassPath.txt. The current build environment is a MacBook and we are moving to building on a Solaris Unix platform. The application builds, using ANT, with no issues but when it is deployed, on a different Solaris Unix server, it does not load the UNIXClassPath.txt. When I run the application built on the MacBook I get this at the beginning of the log file: Loading /app/software/Apple/Local/Library/WebObjects/Applications/DecisionQJava.woa/Contents/UNIX/UNIXClassPath.txt Generated classpath: When I run the application built on the Solaris Unix server the first thing in the log file is: DecisionQ version 3.0 (no indication that the classpath file is being loaded). Any thoughts on what we may have failed to load/move to the new build server? Let me know if there are more details that you might need. Thanks, Terry Soles 214-273-3916 (v922) 3916 ___ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com This email sent to arch...@mail-archive.com
RE: WO application failing to load UNIXClassPath.txt
Chuck, The DecisionQ version 3.0 is coming from an NSLog.out in the application main (DecisionQ is the application name). The other reason I don't believe that the classpath is actually being loaded is because once the application does get started we get some other errors that indicate the class was not found (java.lang.NoClassDefFoundError). Here is an example from the log file of one of the errors that I am seeing: handleRequest: Unknown error occured: java.lang.NoClassDefFoundError: com/equifax/xml/xmlschema/interconnect/InternationalAddressType java.lang.NoClassDefFoundError: com/equifax/xml/xmlschema/interconnect/InternationalAddressType at GenericHandler.getICData(Unknown Source) at DecisionQHandler.handleRequest(Unknown Source) at DecisionQ.processRequest(Unknown Source) at DecisionQ.main(Unknown Source) at DecisionQ_main.main(Unknown Source) Thanks, Terry Soles 214-273-3916 (v922) 3916 -Original Message- From: Chuck Hill [mailto:ch...@global-village.net] Sent: Thursday, March 28, 2013 1:58 PM To: Soles, James T Cc: webobjects-deploy@lists.apple.com Subject: Re: WO application failing to load UNIXClassPath.txt Where does DecisionQ version 3.0 get output from? If the classpath was not getting loaded, I would not expect the launch to get very far. More likely that log output is getting re-directed elsewhere. Chuck On 2013-03-28, at 7:47 AM, Soles, James T wrote: All, I am in the process of trying to move our build environment and am getting different results when starting an application from the new build environment. I'm not sure what we may have missed when setting up the new build environment but when the application starts from code built there it does not load the UNIXClassPath.txt. The current build environment is a MacBook and we are moving to building on a Solaris Unix platform. The application builds, using ANT, with no issues but when it is deployed, on a different Solaris Unix server, it does not load the UNIXClassPath.txt. When I run the application built on the MacBook I get this at the beginning of the log file: Loading /app/software/Apple/Local/Library/WebObjects/Applications/DecisionQJava.woa/Contents/UNIX/UNIXClassPath.txt Generated classpath: When I run the application built on the Solaris Unix server the first thing in the log file is: DecisionQ version 3.0 (no indication that the classpath file is being loaded). Any thoughts on what we may have failed to load/move to the new build server? Let me know if there are more details that you might need. Thanks, Terry Soles 214-273-3916 (v922) 3916 ___ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-deploy/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Executive Managing Partner, VP Development and Technical Services Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada's Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WO application failing to load UNIXClassPath.txt
If it is from an NSLog rather than System.out.println then at least part of the classpath is getting loaded. You might want to call code like this from main to see what sort of classpath is getting generated: static public String dumpJVMConfiguration() { StringBuffer output = new StringBuffer(\nSystem Properties Follow\n); Properties systemProperties = System.getProperties(); Enumeration propertyNames = systemProperties.propertyNames(); while (propertyNames.hasMoreElements()) { String propertyName = (String) propertyNames.nextElement(); if (propertyName.equals(java.class.path) || propertyName.equals(com.webobjects.classpath)) { output.append(Classpath\n); String pathSeparator = systemProperties.getProperty(path.separator); NSArray classPathComponents = NSArray.componentsSeparatedByString(systemProperties.getProperty(propertyName), pathSeparator); Enumeration classpathEnumeration = classPathComponents.objectEnumerator(); while (classpathEnumeration.hasMoreElements()) { String jarPath = (String) classpathEnumeration.nextElement(); output.append(jarPath + \n); try { File jarFile = new File(jarPath); output.append((jarFile.isFile() ? -- Exists\n : *** -- Does not Exist!\n)); } catch (Throwable t) { output.append(Exception validating classpath: + t + \n); } } } else { output.append(propertyName + = + systemProperties.getProperty(propertyName) + \n); } } return output.toString(); } Otherwise, take a look at the launch script in the .woa bundle and see what it is doing (bash). Chuck On 2013-03-28, at 11:09 AM, Soles, James T wrote: Chuck, The DecisionQ version 3.0 is coming from an NSLog.out in the application main (DecisionQ is the application name). The other reason I don't believe that the classpath is actually being loaded is because once the application does get started we get some other errors that indicate the class was not found (java.lang.NoClassDefFoundError). Here is an example from the log file of one of the errors that I am seeing: handleRequest: Unknown error occured: java.lang.NoClassDefFoundError: com/equifax/xml/xmlschema/interconnect/InternationalAddressType java.lang.NoClassDefFoundError: com/equifax/xml/xmlschema/interconnect/InternationalAddressType at GenericHandler.getICData(Unknown Source) at DecisionQHandler.handleRequest(Unknown Source) at DecisionQ.processRequest(Unknown Source) at DecisionQ.main(Unknown Source) at DecisionQ_main.main(Unknown Source) Thanks, Terry Soles 214-273-3916 (v922) 3916 -Original Message- From: Chuck Hill [mailto:ch...@global-village.net] Sent: Thursday, March 28, 2013 1:58 PM To: Soles, James T Cc: webobjects-deploy@lists.apple.com Subject: Re: WO application failing to load UNIXClassPath.txt Where does DecisionQ version 3.0 get output from? If the classpath was not getting loaded, I would not expect the launch to get very far. More likely that log output is getting re-directed elsewhere. Chuck On 2013-03-28, at 7:47 AM, Soles, James T wrote: All, I am in the process of trying to move our build environment and am getting different results when starting an application from the new build environment. I'm not sure what we may have missed when setting up the new build environment but when the application starts from code built there it does not load the UNIXClassPath.txt. The current build environment is a MacBook and we are moving to building on a Solaris Unix platform. The application builds, using ANT, with no issues but when it is deployed, on a different Solaris Unix server, it does not load the UNIXClassPath.txt. When I run the application built on the MacBook I get this at the beginning of the log file: Loading /app/software/Apple/Local/Library/WebObjects/Applications/DecisionQJava.woa/Contents/UNIX/UNIXClassPath.txt Generated classpath: When I run the application built on the Solaris Unix server the first thing in the log file is: DecisionQ version 3.0 (no indication that the classpath file is being loaded). Any thoughts on what we may have failed to load/move to the new build server? Let me know if there are more details that you might need. Thanks, Terry Soles 214-273-3916 (v922) 3916 ___ Do not post admin requests to the list.