• 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
WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebObjects apps in war; maven; where is ERXServletAdaptor; etc.


  • Subject: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • From: Greg Brown <email@hidden>
  • Date: Wed, 22 Jul 2009 19:49:09 -0400

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.

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.

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 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
      • From: Henrique Prange <email@hidden>
    • Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: EOF-Modeling-Prototypes
  • Next by Date: Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • Previous by thread: Re: EOF-Modeling-Prototypes
  • Next by thread: Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • Index(es):
    • Date
    • Thread