Re: wolips support for sass workflow

David Avendasora <[email protected]> Sat, 20 Aug 2011 22:15:21 +0800
Newsgroups gmane.comp.web.webobjects.woproject.devel
Message-ID <[email protected]>
--Apple-Mail-2-535072546
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

You have to delete (manually I believe) the build directory out of your =
project.=20

That should do it.

If that doesn't get it picking up the changes, I can walk you through =
using an additional "builder" for your project that would use Ant to =
trigger the gem to run. But I'm sure just getting bundleless builds =
working should to it.

Dave


On Aug 18, 2011, at 6:59 AM, Andr=E9 Koppany wrote:

> Hi David,
>=20
> I switched off the bundle builds and now get the following error =
message, when I start the app in eclipse:
>=20
> [2011-8-18 0:55:17 MESZ] <main> Initialized : =
er.extensions.ERXExtensions
> [2011-8-18 0:55:18 MESZ] <main> A fatal exception occurred: null
> [2011-8-18 0:55:18 MESZ] <main> java.lang.ExceptionInInitializerError
> 	at =
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsSt=
ream(WOResourceManager.java:116)
> 	at =
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProp=
erties.java:317)
> 	at =
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)=

> 	at =
com.webobjects.appserver.WOApplication.<init>(WOApplication.java:779)
> 	at =
er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.=
java:24)
> 	at =
er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1036)
> 	at =
de.mackoy.eventportal.app.Application.<init>(Application.java:64)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native =
Method)
> 	at =
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc=
essorImpl.java:39)
> 	at =
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr=
uctorAccessorImpl.java:27)
> 	at =
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at java.lang.Class.newInstance0(Class.java:355)
> 	at java.lang.Class.newInstance(Class.java:308)
> 	at =
com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
> 	at =
er.extensions.appserver.ERXApplication.main(ERXApplication.java:820)
> 	at =
de.mackoy.eventportal.app.Application.main(Application.java:60)
> Caused by: java.lang.IllegalStateException: Main bundle 'Properties' =
file can't be read.  Did you run as a Java Application instead of a =
WOApplication in WOLips?
> Please post your deployment configuration in the Wonder mailing list.
> 	at =
er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXApplicat=
ion.java:739)
> 	at =
er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication=
.java:636)
> 	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> 	at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm=
pl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at =
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122=
)
> 	at =
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotif=
icationCenter.java:588)
> 	at =
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifica=
tionCenter.java:532)
> 	at =
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifica=
tionCenter.java:562)
> 	at =
com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:2546)
> 	at =
com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(NSBundle.java:=
748)
> 	at =
com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:373)
> 	... 16 more
>=20
>=20
> Do you have any Ideas how I can fix that?
> Do I have to adjust the launch arguments?
> I am using the latest Wonder Version (2 weeks old revision) and WO =
Lips 3.7.10091
>=20
> Best,
> Andr=E9
>=20
>=20
> Am 17.08.2011 um 22:54 schrieb David Holt:
>=20
>> Hi Andr=E9,
>>=20
>> On the D2W side changes are being picked up automatically now if you =
use bundleless builds. Have you turned that on?
>>=20
>> David
>>=20
>>=20
>> On 2011-08-17, at 1:46 PM, Andr=E9 Koppany wrote:
>>=20
>>> Hi,
>>>=20
>>> we are using sass (http://sass-lang.com/) to generate our css code.
>>> The workflow is, that the WebServerResources Folder will be watched =
for changes=20
>>> in *.scss files by the sass gem and produces the *.css files.
>>>=20
>>> To get this changes into the running wo project, I have to refresh =
every time by hand
>>> the WebServerResources folder in eclipse
>>>=20
>>> Is there a way that the folder will be automatically refreshed?
>>> I know there is something available for the D2W rule files. Maybe =
this could be utilized for this?
>>>=20
>>> Best,
>>> Andr=E9
>>=20
>=20


--Apple-Mail-2-535072546
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You =
have to delete (manually I believe) the build directory out of your =
project.&nbsp;<div><br></div><div>That should do =
it.</div><div><br></div><div>If that doesn't get it picking up the =
changes, I can walk you through using an additional "builder" for your =
project that would use Ant to trigger the gem to run. But I'm sure just =
getting bundleless builds working should to =
it.</div><div><br></div><div>Dave<br><div><br></div><div><br><div><div>On =
Aug 18, 2011, at 6:59 AM, Andr=E9 Koppany wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hi David,<div><br></div><div>I =
switched off the bundle builds and now get the following error message, =
when I start the app in eclipse:</div><div><br></div><div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); ">[2011-8-18 0:55:17 MESZ] &lt;main&gt; Initialized : =
er.extensions.ERXExtensions</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); ">[2011-8-18 =
0:55:18 MESZ] &lt;main&gt; A fatal exception occurred: null</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); ">[2011-8-18 0:55:18 MESZ] &lt;main&gt; =
java.lang.ExceptionInInitializerError</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at =
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsSt=
ream(<span style=3D"text-decoration: underline ; color: =
#0a1c8c">WOResourceManager.java:116</span>)</div><div style=3D"margin-top:=
 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at =
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">WOProperties.java:317</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at com.webobjects.appserver.WOApplication._initWOApp(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">WOApplication.java:5743</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at com.webobjects.appserver.WOApplication.&lt;init&gt;(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">WOApplication.java:779</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at =
er.extensions.appserver.ajax.ERXAjaxApplication.&lt;init&gt;(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">ERXAjaxApplication.java:24</span>)</div><div style=3D"margin-top:=
 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at er.extensions.appserver.ERXApplication.&lt;init&gt;(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">ERXApplication.java:1036</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at de.mackoy.eventportal.app.Application.&lt;init&gt;(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">Application.java:64</span>)</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
sun.reflect.NativeConstructorAccessorImpl.newInstance0(<span =
style=3D"text-decoration: underline ; color: #0a1c8c">Native =
Method</span>)</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
sun.reflect.NativeConstructorAccessorImpl.newInstance(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NativeConstructorAccessorImpl.java:39</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">DelegatingConstructorAccessorImpl.java:27</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
java.lang.reflect.Constructor.newInstance(<span style=3D"text-decoration: =
underline ; color: #0a1c8c">Constructor.java:513</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
java.lang.Class.newInstance0(<span style=3D"text-decoration: underline ; =
color: #0a1c8c">Class.java:355</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at java.lang.Class.newInstance(<span style=3D"text-decoration: =
underline ; color: #0a1c8c">Class.java:308</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
com.webobjects.appserver.WOApplication.main(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">WOApplication.java:547</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at er.extensions.appserver.ERXApplication.main(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">ERXApplication.java:820</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at de.mackoy.eventportal.app.Application.main(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">Application.java:60</span>)</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); ">Caused by: =
<span style=3D"text-decoration: underline ; color: =
#0a1c8c">java.lang.IllegalStateException</span>: Main bundle =
'Properties' file can't be read.&nbsp; Did you run as a Java Application =
instead of a WOApplication in WOLips?</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
">Please post your deployment configuration in the Wonder mailing =
list.</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
er.extensions.appserver.ERXApplication$Loader.collectMainProps(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">ERXApplication.java:739</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at =
er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">ERXApplication.java:636</span>)</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; color: rgb(255, 24, 19); =
"><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown =
Source)</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">DelegatingMethodAccessorImpl.java:25</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
java.lang.reflect.Method.invoke(<span style=3D"text-decoration: =
underline ; color: #0a1c8c">Method.java:597</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSSelector._safeInvokeMethod(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSSelector.java:122</span>)</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSNotificationCenter.java:588</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSNotificationCenter.postNotification(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSNotificationCenter.java:532</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSNotificationCenter.postNotification(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSNotificationCenter.java:562</span>)</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: =
rgb(255, 24, 19); "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSBundle.postNotification(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSBundle.java:2546</span>)</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSBundle.java:748</span>)</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>at =
com.webobjects.foundation.NSBundle.&lt;clinit&gt;(<span =
style=3D"text-decoration: underline ; color: =
#0a1c8c">NSBundle.java:373</span>)</div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; color: rgb(255, 24, 19); "><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>... 16 =
more</div><div><br></div><div><br></div><div>Do you have any Ideas how I =
can fix that?</div><div>Do I have to adjust the launch =
arguments?</div><div>I am using the latest Wonder Version (2 weeks old =
revision) and WO Lips =
3.7.10091</div><div><br></div><div>Best,</div><div>Andr=E9</div><div><br><=
/div><div><br></div><div><div>Am 17.08.2011 um 22:54 schrieb David =
Holt:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div>Hi Andr=E9,<br><br>On the D2W side changes are being =
picked up automatically now if you use bundleless builds. Have you =
turned that on?<br><br>David<br><br><br>On 2011-08-17, at 1:46 PM, Andr=E9=
 Koppany wrote:<br><br><blockquote =
type=3D"cite">Hi,<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote type=3D"cite">we are using =
sass (<a href=3D"http://sass-lang.com/">http://sass-lang.com/</a>) to =
generate our css code.<br></blockquote><blockquote type=3D"cite">The =
workflow is, that the WebServerResources Folder will be watched for =
changes <br></blockquote><blockquote type=3D"cite">in *.scss files by =
the sass gem and produces the *.css files.<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote type=3D"cite">To get this =
changes into the running wo project, I have to refresh every time by =
hand<br></blockquote><blockquote type=3D"cite">the WebServerResources =
folder in eclipse<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote type=3D"cite">Is there a way =
that the folder will be automatically =
refreshed?<br></blockquote><blockquote type=3D"cite">I know there is =
something available for the D2W rule files. Maybe this could be utilized =
for this?<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote =
type=3D"cite">Best,<br></blockquote><blockquote =
type=3D"cite">Andr=E9<br></blockquote><br></div></blockquote></div><br></d=
iv></div></blockquote></div><br></div></div></body></html>=

--Apple-Mail-2-535072546--