• 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
[SOLVED] Frameworks on Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Frameworks on Windows


  • Subject: [SOLVED] Frameworks on Windows
  • From: Owen McKerrow <email@hidden>
  • Date: Fri, 17 Dec 2004 13:59:53 +1100

Hi All,

OK it came down to 2 things in the end
1) The OpenbasePKPlugin needed to be in
E:\Apple\Library\Frameworks

and my Framework needed to be in

E:\Apple\Local\Library\Frameworks

not E:\Apple\Local\Library\WebObjects\Frameworks, as I originally had it.

Thanks as always Chuck for the help.

Owen

On 17/12/2004, at 11:54 AM, Owen McKerrow wrote:

I've delete my reference to the Framework component form the Main page and I still get a null pointer exception. So I must have changed something whilst doing all this testing. So I did as Chuck suggested and ran the App from the command-line and got the following output. OK here's what I get when I run the App from the Command line. Comments below .....


E:\Documents and Settings\emlab>cd E:\Apple\Local\Library\WebObjects\Application
s\CCC.woa


E:\Apple\Local\Library\WebObjects\Applications\CCC.woa>CCC
Configuring launch environment for CCC ...
Launching CCC.
java -DWORootDirectory="E:/Apple" -DWOLocalRootDirectory="E:/Apple/Local" -DWO
UserDirectory="E:/APPLE/LOCAL/LIBRARY/WEBOBJ~1/APPLIC~1/CCC.woa" -DWOApplication
Class=Application -DWOPlatform=Windows -classpath WOBootstrap.jar com.webobjects
._bootstrap.WOBootstrap
appRoot is E:\Apple\Local\Library\WebObjects\Applications\CCC.woa/Contents
Loading E:\Apple\Local\Library\WebObjects\Applications\CCC.woa/Contents/ Windows/
CLSSPATH.TXT
Generated classpath:
E:\Apple\Local\Library\WebObjects\Applications\CCC.woa/ Contents\Resources\Java\ccc.jar
E:/ Apple\Library\Frameworks\JavaFoundation.framework\Resources\Java\javafo undation.jar
E:/ Apple\Library\Frameworks\JavaEOControl.framework\Resources\Java\javaeoc ontrol.jar
E:/ Apple\Library\Frameworks\JavaEOAccess.framework\Resources\Java\javaeoac cess.jar
E:/ Apple\Library\Frameworks\JavaWebObjects.framework\Resources\Java\javawe bobj
ects.jar
E:/ Apple\Library\Frameworks\JavaWOExtensions.framework\Resources\Java\Java WOExtensions.jar
E:/ Apple\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar
E:/Apple/ Local\Library\Frameworks\OpenBasePKPlugIn.framework\Resources\Java\Open BasePKPlugIn.jar
E:/ Apple\Library\Frameworks\JavaJDBCAdaptor.framework\Resources\Java\javaj dbcadaptor.jar
E:/Apple/ Local\Library\Frameworks\OMFramework.framework\Resources\Java\omframewo rk.jar
E:\Documents and Settings\emlab\Library\Java
E:/Apple/Local\Library\Java
E:\Apple\Library\Java\ \Network\Library\Java
E:/Apple\Library\Frameworks\JavaVM.framework\Classes\classes.jar
E:/Apple\Library\Frameworks\JavaVM.framework\Classes\ui.jar
E:\Apple\Local\Library\WebObjects\Extensions\avalon-framework -4.1.2.jar
E:\Apple\Local\Library\WebObjects\Extensions\axis-ant.jar
E:\Apple\Local\Library\WebObjects\Extensions\axis.jar
E:\Apple\Local\Library\WebObjects\Extensions\commons-discovery.jar
E:\Apple\Local\Library\WebObjects\Extensions\commons-logging.jar
E:\Apple\Local\Library\WebObjects\Extensions\jaxrpc.jar
E:\Apple\Local\Library\WebObjects\Extensions\log4j-1.2.4.jar
E:\Apple\Local\Library\WebObjects\Extensions\logkit-1.0.1.jar
E:\Apple\Local\Library\WebObjects\Extensions\saaj.jar
E:\Apple\Local\Library\WebObjects\Extensions\wsdl4j.jar
E:\Apple\Local\Library\WebObjects\Extensions\activation.jar
E:\Apple\Local\Library\WebObjects\Extensions\classes12.zip
E:\Apple\Local\Library\WebObjects\Extensions\commons-lang-2.0.jar
E:\Apple\Local\Library\WebObjects\Extensions\fmpjdbc12.jar
E:\Apple\Local\Library\WebObjects\Extensions\itext-0.99.jar
E:\Apple\Local\Library\WebObjects\Extensions\jfreechart-0.9.13.jar
E:\Apple\Local\Library\WebObjects\Extensions\jradius-client.jar
E:\Apple\Local\Library\WebObjects\Extensions\mail.jar
E:\Apple\Local\Library\WebObjects\Extensions\mysql-connector-java -3.0.10-stable-bin.jar
E:\Apple\Local\Library\WebObjects\Extensions\OpenBaseJDBC.jar
E:\Apple\Local\Library\WebObjects\Extensions\poi-2.0-final -20040126.jar
E:\Apple\Local\Library\WebObjects\Extensions\servlet.jar
E:\Apple\Local\Library\WebObjects\Extensions\OpenBasePKPlugIn.jar
E:\Apple\Local\Library\WebObjects\Extensions\
[2004-12-17 11:41:01 EST] <main> Failed to load file:///E:\Apple\Local\Library\F
rameworks\OpenBasePKPlugIn.framework/Resources/Info.plist. Treating as empty. co
m.webobjects.foundation.NSForwardException [java.io.FileNotFoundException] \Syst
em\Library\DTDs\PropertyList.dtd (The system cannot find the path specified)
[2004-12-17 11:41:02 EST] <main> Creating LifebeatThread now with: MainBundle 11
40 emlabxptestbed/130.130.72.249 1085 30000
Welcome to MainBundle!
The SMTPHost for this app is smtp.uow.edu.au
App Path is : http://libcccserv.library.uow.edu.au/scripts/WebObjects.exe/ccc.woa/
[2004-12-17 11:41:01 EST] <main> The URL for webserver connect is:
http://emlabxptestbed/cgi-bin/WebObjects.exe/MainBundle.woa/-1140
[2004-12-17 11:41:02 EST] <main> Waiting for requests...
[2004-12-17 11:52:52 EST] <WorkerThread0> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request: java.lang.NullPointerException



So there a couple of things I noticed.
1) First and formost it can't load OpenBase's plist file. So I copied over the OpenBasePKPlugin.framework again just to make sure. Still same error.
2) Some of the lines have a mixture of "/" and "\" would his matter ?
3) The URL it gives me is for MainBundle.woa not CCC.woa as I would expect. Is this just because Im running it from the command line ?


Just to note the last line with the error it only occurs when I try and view the page in a browser.

Owen


On 17/12/2004, at 10:51 AM, Chuck Hill wrote:

At 10:22 AM 17/12/2004 +1100, Owen McKerrow wrote:
Heres the contents of the CLASSPATH.txt file :

That looks all OK.


So in other-words its in C:\Apple\Local\Library\Frameworks assuming
LOCALROOT is C:\Apple\Local

So where is LOCALROOT defined on a Windows box ?

Its not. :-) It is replaced at runtime by the script that starts the app.
However, there _are_ some things are need to be defined. Here is what is
on my machine (only the stuff that might be relevant stuff):
CLASSPATH=U:\Sun\j2sdk1.4.2_05\lib\tools.jar;U: \usr\FrontBase\Java\frontbase
jdbc.jar;U:\usr\FrontBase\Java\FrontBasePlugIn.jar;
JAVA_HOME=U:\Sun\j2sdk1.4.2_05
JRE_HOME=U:\Sun\j2sdk1.4.2_05\jre
LIB=U:\Apple\Developer\Libraries
NEXT_ROOT=U:/Apple
NEXT_SYSTEM_ROOT=U:/Apple
SYSTEMROOT=C:\WINNT
TEMP=C:\TEMP
TMP=C:\TEMP
WEBOBJECTS_JAVA_EXTENSIONS=U:\Sun\j2sdk1.4.2_05/JRE/lib/ext
WEBOBJECTS_JAVA_HOME=U:\Sun\j2sdk1.4.2_05



Ohh and here is the contents from the Apps log file :

There is nothing useful there. Try running it from the command line. That
should (IIRC) list out the whole classpath etc.



Chuck



On 17/12/2004, at 5:28 AM, Chuck Hill wrote:

I switch back and forth between OS X and Win2K all the time, I've
never had a problem with this. Mind you, I may have built something
into our build process and forgotten about it. We have a lot of stuff
going on in those Ant scripts.


My first guess is that the WO config on the Windows server is wrong.
Assuming a default setup, the framework would go in
c:\Apple\Local\Library\Frameworks.  What are the contents of the
CLSSPATH.TXT file under the Windows folder in the application?  i.e
AppName.woa/Contents/Windows/CLSSPATH.TXT


Chuck


On Dec 15, 2004, at 9:00 PM, Owen McKerrow wrote:

Hi All,

Im currently having problems getting my Frameworks to work under
windows. I have framework called boo, which has 1 WOComponent which
simply has BOO on the page. Its a partial component. I then build the
framework and put a copy into /Library/Frameworks. In my project I
then include this framework and drag and drop the boo page from the
framework into my main page. This works fine on both Mac OS X (
development and deployment modes ) as well as Solaris, but for the
life of me I can't get the boo to show when I deploy to a windows
box, XP or Win 2000. In fact if I include a component from a frame
work ( even one as simple as Boo ) and I go to that page I a get a
Null Pointer Exception. Don't ask me form where cause thats all the
info it gives me.


So what Im wondering is have I placed the framework in the right
place.

Where are you meant to place Frameworks on a Windows box that you are
using for deployment ?



Thanks Owen

 'The test of a first-rate intelligence is the ability to hold two
opposed ideas in the mind at the same time and still be able to
function.'
-F.Scott Fitzgerald,

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


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




"As of tomorrow, employees will only be able to access the building
using individual security cards. Pictures will be taken next Wednesday
employees will receive their cards in two weeks."
- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp




--

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



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
People who prefer typing to pointing then seem to prefer acronyms to save typing :-)
-Denis Stanton, On people using Command Line Interfaces


_______________________________________________
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


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
People who prefer typing to pointing then seem to prefer acronyms to save typing :-)
-Denis Stanton, On people using Command Line Interfaces


_______________________________________________
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: Frameworks on Windows (From: Chuck Hill <email@hidden>)
 >Frameworks on Windows (From: Owen McKerrow <email@hidden>)
 >Re: Frameworks on Windows (From: Chuck Hill <email@hidden>)
 >Re: Frameworks on Windows (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Re: Forms and Two image submit buttons
  • Next by Date: HTML Design question
  • Previous by thread: Re: Frameworks on Windows
  • Next by thread: DB2, War, etc.
  • Index(es):
    • Date
    • Thread