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

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


  • Subject: Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 23 Jul 2009 12:35:26 +1000

On 23/07/2009, at 11:20 AM, David Avendasora wrote:

On Jul 22, 2009, at 7:49 PM, Greg Brown wrote:

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.

With ant ERJars is used, that's true. But not with maven. This particular jar - which has no equivalents that I can see in the source files needs to be added to your repo.


Where is the source for ERXServletAdaptor btw?

(Henrique - since you do servlet builds how are you handling this?)

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

_______________________________________________ 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

with regards, --

Lachlan Deck



_______________________________________________
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: email@hidden
References: 
 >WebObjects apps in war; maven; where is ERXServletAdaptor; etc. (From: Greg Brown <email@hidden>)
 >Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc. (From: David Avendasora <email@hidden>)

  • Prev by Date: failed to provide new primary keys for entity
  • Next by Date: Re: Chuck Hill's quite good Practices, WOWODC 08
  • Previous by thread: Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • Next by thread: Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • Index(es):
    • Date
    • Thread