On 11/22/06, Bjerke, Michael A. <[EMAIL PROTECTED]> wrote:
I have been assigned the task of taking a WebObject application from a Mac,
importing it into Eclipse 3.2.1 on Windows, making some changes and
redeploying. Having never done anything with WebObjects I thought I would
run through a tutorial that created an application called WOLipsTest. I
managed to get that to work, so that I can run it through Eclipse and it
performs as expected: printing out the date.
So then I asked Eclipse to export a WAR file that I could dump into my
Tomcat applications directory. The screen that appears asks for the name of
the web module and I don't know what it's referring to. Nothing I type in
is recognized as a valid name.
This is probably because you were using the Eclipse WTP to create the
war, which doesn't know anything about WO, and WOLips doesn't
integrate with it all, AFAIK.
So, I gave up on that route, created a simple web.xml, and made some changes
to the build.xml to resolve references. Now when I run the build it creates
a war file (WOLipsTest.war). I drop that into my Tomcat applications
directory (C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps).
Tomcat recognizes it and creates a WOLipsTest directory. Now, how am I
supposed to reach this app? I can use this URL
(http://127.0.0.1:8080/WOLipsTest/) to get to the webapps
directory, but from there I just end up browsing through folders. What am I
missing?
Lots of assumptions here. You have Eclipse 3.2.1 plus a relatively
recent build of WOLips installed. You also have WebObjects 5.2.x or
5.3.x installed somewhere on your Windows box.
If you started with a Mac WOLips project that builds a war file and
deploys to Tomcat, then it should work and there's probably some small
thing to get it to work. WebObjects sometimes doesn't like spaces in
it's paths, and that could be one issue.
War deployment is not the standard WO deployment, so if the Mac
project is building normally, then it will be easier to get the
Win/WOLips project to build normally and deploy normally. You would do
this by right-clicking on the project and choosing WOLips
Tools->Install. This will create a .woa folder (see the build log for
where it put it). Just replace the existing deployment .woa with this
.woa and it should work (probably want to back up the original .woa
first).
If you are taking a normal Mac WO project (either WOLips or Xcode) and
trying to deploy it as a war on Tomcat, then there are several extra
steps to take. You'll want to look at
http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/Deployment/Tomcat_Deployment.
More details would help.
Logan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to archive@mail-archive.com