On 29/dic/08, at 18:24, Johann Werner wrote:

Please keep messages on list.

Am 29.12.2008 um 17:28 schrieb Francesco Romano:


On 29/dic/08, at 17:07, Johann Werner wrote:


Am 29.12.2008 um 16:50 schrieb Francesco Romano:


On 29/dic/08, at 13:49, Johann Werner wrote:


Am 29.12.2008 um 13:15 schrieb Francesco Romano:


On 29/dic/08, at 12:57, Johann Werner wrote:

Hi Francesco,

Am 28.12.2008 um 11:36 schrieb Francesco Romano:

Hi..
I've to deploy my application. It's the first time I use WebObjects and it's the first time too that I deploy a Web Application.

I'm using WebObjects 5.4.2, project Wonder and I'm developing on WOLips.

My deployment machine is an iMac G5 with OS 10.4.11. I've installed the WO 5.4 framework and wonder. (maybe in the future I'll try to embed the frameworks.. )

You should embed all frameworks right from the beginning it's not very complicated. And this will spare you from many headaches especially if you develop with 5.4 and deploy on 5.3 upgraded manually to 5.4.


I have to add this lines in build.properties, am I right?

embed.ProjectLocal=true
embed.External=true
embed.Local=true
embed.User=true
embed.System=true
embed.Network=true

Yes, you could do it in the preferences of Eclipse in the WOLips section if you don't want to fiddle with the build.properties.


I can't find it in the preferences...
I added those lines... but... it seems the framework is not embedded.. the size is the same and switching to wo5.3 I can't start my app.

Ah my fault. You can make these preferences by right-clicking on a specific project in the WO explorer and choosing properties. There you find the entry "WOLips Deployment" where you can check what to embed.

I can't find deploy!
<Picture 1.png>

I thought you were using latest WOLips where it has these options. Adding the embed.* lines to your properties file without the current WOLips won't do anything I suppose. You should search the list for the threads discussing WOLips/New Hotness/Eclipse 3.4.


So I've to update to the last WOLips?




And.. even if the deployment machine does not have the WOFramework the app should work ?

That's right though there have to be the frameworks for wotaskd or you need a fully embedded wotaskd too (if you don't want to run your app through e.g. Tomcat). But more important is the fact that you can deploy your app on a server regardless of what WO version it has (and additional 3rd party frameworks are installed or not installed).

Now.. I've two "problems" and needs for some advices..

First problem:
To build I just "right-clicked" on build.xml and Run as-> Ant build.
It creates a DIST directory with the app.

I copied the entire app in /Library/WebObjects/Applications.

Than I removed the WebServerResources and put it into / Library/WebServer/Documents/WebObjects/Myapp.woa/Contents/

But if I run the app (I'm using JavaMonitors) every image/css in not loaded..

Where are the URLs pointing to? Does it correspond to your WebServerResources path? Have you set the correct permissions?


mmm... I did the following things:
1) copy the app in /Library/WebObjects/Applications
2) copy the WebServerResources to /Library/WebServer/Documents/ WebObjects/Myapp.woa/Contents/ (if I copy I can see the images and css.. but to test if the app uses the documents located in the "right" folder I deleted the images in the Application package and it doesn't work)
3) Setting up the app in JavaMonitor
4) Turn on Apache (in SystemPreferences -> Sharing -> WebSharing)
5) open TCP 80 port in the router :)

I connect to http://myhost/cgi-bin/WebObjects/myApp

I meant what URLs are in your html pages? Where does the browser expect your images/css to reside?


ehm... I continue to don't understand..
mmm maybe you mean this?

<link rel="stylesheet" type="text/css" href="/WebObjects/iPN.woa/ Contents/WebServerResources/site.css"></link>
Yes I meant that. Is that file located at /Library/WebServer/ Documents/WebObjects/iPN.woa/Contents/WebServerResources/ site.css ? If yes look at your apache logfiles for errors. You could also check if Safari loaded that file by looking at the network info in the Develop menu of Safari.



I removed the folder WebServerResources located in the app and I left the one in the Documents folder of Apache.. So.. it doesn't load the images and the .css and I see this in Network info:

<link rel="stylesheet" type="text/css" href="/cgi-bin/WebObjects/ iPN.woa/_wr_? wodata=ERROR_NOT_FOUND_framework_app_filename_site.css"></link>

Why do you delete the WSR inside the app? The above URL says that the resource manager can't find the file. I had that problem some long time ago but I can't remember what I did to resolve it.

jw


I thought that could be a "test" if the app was using the data inside the WebServer Documents folder or the data inside its folder..


Francesco
_______________________________________________
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 arch...@mail-archive.com

Reply via email to