Fwd: Tomcat + WebObjects 5.2.4
Fwd: Tomcat + WebObjects 5.2.4
- Subject: Fwd: Tomcat + WebObjects 5.2.4
- From: "Jerry W. Walker" <email@hidden>
- Date: Thu, 28 Jul 2005 07:54:01 -0400
Hi, Steven,
On Jul 27, 2005, at 1:43 PM, Steven Samols wrote:
Thanks Jerry
You're welcome.
I've looked at the generated class path and it looks OK and the
classpath file is ok too (I think!) I'm not too sure what you mean
by explicity read the file? The path is certainly ok and there
should be no permission problems.
First, select the path entry that is supposed to lead to your
Main.java class file. Copy the path to the clipboard (so you don't
make any transcription errors). Then go into Terminal.app and issue
the following command:
jar -tvf <paste the copied path here>
This is the Java jar archiving command. with the options, "-tvf" it
should list the contents (t) in verbose format (v) of the referenced
archive (f).
By issuing this command, you will be testing a couple things
simultaneously:
* your ability to simply read the file (no permissions problems on
the path, it's where you think it is, etc.)
* your ability to find the class itself in the java archive (check
the jar listing to confirm this)
This would be most useful if you first do an "su - <name of user
under which the app runs>". That way you will be testing permissions
from the perspective of the app user.
I also get exactly the same problem if I try to run one of the
sample Apple applications e.g. Pet Store
Do you have any other ideas?
Other than to keep your responses on the list, no, I'm afraid I
don't. On the list, others will probably chime in and help us find
the solution. Furthermore, the solution will be available to others
who might experience the same problems.
Unfortunately, we tend to deploy with the standard WO deployment on
Xserves, so my knowledge of Tomcat is limited.
Regards,
Jerry
Regards
Stevem
----- Original Message -----
From: Jerry W. Walker
To: Steven Samols
Cc: email@hidden
Sent: Wednesday, July 27, 2005 5:47 PM
Subject: Re: Tomcat + WebObjects 5.2.4
Hi, Steven,
The key to your problem seems to be the following line in your
error messages:
"<TA1>[2005-07-27 15:16:22 BST] <http-8080-Processor5>
<com.webobjects.appserver._private.WOComponentDefinition> WARNING:
Unable to find component class named "Main". If this is not
intended to be a classless component, check your framework settings
and the contents of your classpath file (in the .woa's Contents/
<PLATFORM_NAME> subdirectory)."
This indicates that your Main class has not been found. The natural
result of that is that ANYTHING declared in that class will be
invisible. Do as the error message suggests, that is:
* check your framework settings
* check the contents of your classpath file (in the .woa's
Contents/<PLATFORM_NAME> subdirectory).
Also, when WO starts up, it will normally list the Generated
classpath in the run log. Check that to confirm that WO is
interpreting what you think you're specifying. If it looks right
and you're still getting the error, confirm that your Main class
can be found by one of the entries in the Generated classpath by
explicitly attempting to read the file using the Generated
classpath path entry. You might be dealing with a permissions problem.
If it doesn't seem to match what you think you're setting, then
trace down why you're not setting what you think you are.
Good luck.
Regards,
Jerry
On Jul 27, 2005, at 10:18 AM, Steven Samols wrote:
Hi
I'm trying to deploy an application in Tomcat (3.2.2 & 4.1) using
WebObjects 5.2.4 but whenever a key is referenced in my main page
I get:
<TA1>[2005-07-27 15:15:06 BST] <main> Waiting for requests...
27-Jul-2005 15:15:07 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
27-Jul-2005 15:15:07 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
27-Jul-2005 15:15:07 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/46 config=C:\Tomcat41\.\conf
\jk2.properties
<TA1>[2005-07-27 15:16:22 BST] <http-8080-Processor5>
<com.webobjects.appserver._private.WOComponentDefinition> WARNING:
Unable to find component class named "Main". If this is not
intended to be a c
lassless component, check your framework settings and the contents
of your classpath file (in the .woa's Contents/<PLATFORM_NAME>
subdirectory).
...
at com.webobjects.foundation.NSKeyValueCoding
$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)
...
I've tried deploying as stub WAR and SSDD.
I've tried deploying on Windows and Redhat but I get exactly the
same results.
I've tried putting my classes into packages but this does not
help. The instamce variable above is declared as public in class
Main.
I've tried tweaking the classpaths in the web.xml file to no avail.
Can anyone help with this? Or does anyone have a trivial app
which does run that can be jarred up and compared to mine?
Thanks for any help
Regards
Steven
_______________________________________________
--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength
Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax
_______________________________________________
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