Re: Frameworks on Windows
Re: Frameworks on Windows
- Subject: Re: Frameworks on Windows
- From: Owen McKerrow <email@hidden>
- Date: Fri, 17 Dec 2004 11:54:37 +1100
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\javafou
ndation.jar
E:/
Apple\Library\Frameworks\JavaEOControl.framework\Resources\Java\javaeoco
ntrol.jar
E:/
Apple\Library\Frameworks\JavaEOAccess.framework\Resources\Java\javaeoacc
ess.jar
E:/
Apple\Library\Frameworks\JavaWebObjects.framework\Resources\Java\javaweb
obj
ects.jar
E:/
Apple\Library\Frameworks\JavaWOExtensions.framework\Resources\Java\JavaW
OExtensions.jar
E:/
Apple\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar
E:/Apple/
Local\Library\Frameworks\OpenBasePKPlugIn.framework\Resources\Java\OpenB
asePKPlugIn.jar
E:/
Apple\Library\Frameworks\JavaJDBCAdaptor.framework\Resources\Java\javajd
bcadaptor.jar
E:/Apple/
Local\Library\Frameworks\OMFramework.framework\Resources\Java\omframewor
k.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