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.

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>

Francesco
jw


Francesco
jw

Where is the error?

Second Problem:
Logging..

I need some "basic" logging.. I mean.. someone logs in, operation on the db (maybe..)...
Now it's logging everything... and this is too much!!
How can I reduce the logging?

This in an example:


And.. I put the Logs into /Library/WebObjects/Logs
Is there a way to rotate logs, limit the number of files, etc.. ?

Than...
Because it's my first time, there are some "advices".. (I don't know.. security, configurations,...) (As I said I'm deploying with JavaMonitor, and the standard Apache on Tiger)


Thanks.

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/jw%40oyosys.de

This email sent to j...@oyosys.de






Mit freundlichen Grüßen
Johann Werner

--

Dipl.-Ing. Johann Werner
TTI GmbH, TGU oyosys
c/o Universität Stuttgart
Pfaffenwaldring 27
70569 Stuttgart

Tel.: +49(0)711/68569532
Fax.: +49(0)711/68563706
j...@oyosys.de
www.oyosys.de

Geschäftsführung der TTI GmbH
Prof. Dr.-Ing. Bernd Bertsche
Elgar Rödler

Handelsregister: HRB 19455
Gerichtsstand: Amtsgericht Stuttgart
USt-ID gemäß §27a: DE 194532993
Steuer-ID: 99039/02378





 _______________________________________________
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