On Jul 22, 2009, at 7:49 PM, Greg Brown wrote:
Hi,
For more fun and joy, I am trying to package and -- this is the
important part-- run a WebObjects Wonder app in a tomcat or jetty
container.
If you are using the current stable or nightly of WOLips, this should
"just work".
I think I am getting tripped up by the Wonder initialization in a
servlet environment. (WO 5.3)
The auto-generated web.xml file has:
<!-- The WebObjects Servlet that interfaces between the Servlet
container
world and the WebObjects world. -->
<servlet>
<servlet-name>WOServletAdaptor</servlet-name>
<servlet-class>
er.extensions.jspservlet.ERXServletAdaptor
</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
Hmm Wonder has no er.extensions.jspservlet.ERXServletAdaptor.java,
and neither does the http://maven.wocommunity.org/content/groups/public
& snapshot repository of goodies.
It is included as a Library (in the Referenced Libraries directory) in
ERJars.
Q 1. Should http://maven.wocommunity.org/content/groups/public have
this jar, or am I missing where it is?
I did a svn checkout, and a maven build and I found a jar with
ERXServletAdaptor. Next question:
Q 2. Should I use that jar?
In
http://wiki.objectstyle.org/confluence/display/WONDER/Creating+a+wonder+app+to+deploy+as+a+servlet
Stop! Did you read the warning at the top of that? That is an old
document and doesn't apply to modern WO development.
Try the instructions at http://wiki.objectstyle.org/confluence/display/WONDER/Servlet+Deployment+Setup
. That is the current method of setting up a WO project for servlet
deployment.
Dave
I read that "Henrique created a class called ERXServletAdaptor and
it is submitted as a pending project wonder patch as we speak (or as
I type, as the case may be). I could not get the code in that patch
to run as is, so I have changed it just a bit. Here is my version of
the class that works for me. Something very similar to this may soon
be bundled with project wonder [ or not--"As I told Henrique in his
bug report: I'm not going to include this
into ERX..." ] , but for now, you can just toss this class into
your project's Sources folder:"
(yeah, after you figure out javax.servlet api has to be found and
added as a dependancy. )
Is that the version I should use? Is that different than the jar I
got with a Wonder svn download and build? Which one?
Q 3. Info.plist Doctype? Do I have to remove that? Here it says to:
http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment-Tomcat+Deployment
Q 4. Perhaps it is WO 5.3.3? They have the WOServletAdaptor in two
jars JavaWOJSPServlet and a JavaWOJSPServlet_client ; which one?
both? or is it the classpath order?
Oh, the excitement!
This is the error I always get: javax.servlet.UnavailableException:
Error initializing ERXServletAdaptor: ${mainclass}
t . i. a
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]