Re: WebObjects Newbie
Re: WebObjects Newbie
- Subject: Re: WebObjects Newbie
- From: Chuck Hill <email@hidden>
- Date: Mon, 16 Jul 2007 12:57:19 -0700
Have you tried to run the apps that come with the turtorial? This
looks like you are either not following the instructions exactly (or
the instructions are wrong, but they have been tested pretty well).
If this happens with the apps that come with the tutorial, then have
a look in /Library/Java/Extensions. You have have some jars in there
that should not be in there. It looks like it is getting confused
looking for Main.java.
Chuck
On Jul 14, 2007, at 6:27 PM, Anthony John Sherbondy wrote:
Chuck,
Thanks for your input. I took your advice and reinstalled Eclipse
3.2.2 and stable WOLips. Reconstructed the WOApp following
guidelines in Janine's Tutorial throwing same exception error while
trying to run the WOApp:
[2007-07-14 21:21:03 EDT] <WorkerThread0>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.NullPointerException
[2007-07-14 21:21:03 EDT] <WorkerThread0>
java.lang.NullPointerException
at com.webobjects.appserver._private.WOComponentDefinition.<init>
(WOComponentDefinition.java:84)
at
com.webobjects.appserver.WOApplication._componentDefinitionFromClassNa
med(WOApplication.java:2353)
at com.webobjects.appserver.WOApplication._componentDefinition
(WOApplication.java:2448)
at com.webobjects.appserver.WOApplication.pageWithName
(WOApplication.java:1943)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedSession(WOComponentRequestHandler.java:273)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
Any suggestions?
Anthony
On Jul 14, 2007, at 4:11 PM, Chuck Hill wrote:
Anthony,
Eclipse 3.3 and the WOLips nightly build should be considered
unstable and bleeding edge. I strongly recommend that you not use
it until it has settled down. You are pretty much on your own
with 3.3. Instead, use Eclipse 3.2 and the stable WOLips build.
Chuck
On Jul 14, 2007, at 12:25 PM, Anthony John Sherbondy wrote:
Hello all;
I am a newbie to webobjects but subscribed to this fine list and
have been following the discussion trails (don't know what to
think of the future of webobjects yet given the discussion but I
really want to try). You all seem like very smart and
knowledgeable folks and well-grounded in webobjects so I did not
want to step in a cow pile with my first foot forward. I want to
thank Chuck Hill, Mike Schrag and others for the valuable advice
being provided on this mailing list. I also want to thank Janine
Sisk for the nice beginner's tutorial and sample files. These
have helped me a great deal in getting started. However, I have
already encountered a problem which I cannot solve. Kindly give a
newbie some advice, please.
I successfully downloaded and installed Eclipse 3.3 and installed
the standard WOLips for 3.3 as well as other modules for Java,
web development, and C,C++ plugins. My goal is to deploy
webobjects on Apple MacOSX 10.4.10 using a Tomcat-6.0.13
container behind the standard standard Apache-1.3.33 server with
mod_jk and have this system up, running nicely. I have also been
able to plugin Tomcat-6 on the development system within Eclipse.
I also have downloaded and installed FrontBase-4.2.7 (which I
really like, so far better than all others I have looked at -
Postgresql, MySQL, OpenBase, Sqlite3, etc.).
I followed Janine's tutorial faithfully and first I noticed that
the build.xml is created but does not show up in the Package
Explorer as described in the tutorial. Everything else does.
Additionally, I get a java.lang.NullPointerException message in
the webbrowser while trying to Run the completed nhlpm webobject
tutorial example. Therefore, I have failed somewhere but cannot
discover it error yet. Any pointers would be appreciated. Console
output as follows:
[2007-07-14 15:14:54 EDT] <main> null
[2007-07-14 15:14:54 EDT] <main> Waiting for requests...
[2007-07-14 15:14:55 EDT] <WorkerThread0>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.NullPointerException
[2007-07-14 15:14:55 EDT] <WorkerThread0>
java.lang.NullPointerException
at com.webobjects.appserver._private.WOComponentDefinition.<init>
(WOComponentDefinition.java:84)
at
com.webobjects.appserver.WOApplication._componentDefinitionFromClass
Named(WOApplication.java:2353)
at com.webobjects.appserver.WOApplication._componentDefinition
(WOApplication.java:2448)
at com.webobjects.appserver.WOApplication.pageWithName
(WOApplication.java:1943)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatc
hWithPreparedSession(WOComponentRequestHandler.java:273)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatc
hWithPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleR
equest(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRe
quest(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
Thanks,
Anthony
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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/products/practical_webobjects
--
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/products/practical_webobjects
_______________________________________________
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