Yes, I am using Wonder but I am unable to track down the problem to be
certain it is because of Wonder.

The way I see it, WOComponentDefinition tries to load the template and
starts with a wrong framework bundle URL
prefix: jar:file:///Project/target/work/webapp/WEB-INF/lib/web-0.1.jar!/

This gets appended with "/Main.html" (and .wod, woo) and then checked
with NSPathUtilities.fileExistsAtPathURL.

The problem is 
jar:file:///Project/target/work/webapp/WEB-INF/lib/web-0.1.jar!//Main.html
isn't a valid JAR entry: there is not "/Main.html" entry, but there is a
"Main.html" entry.

So one thing is that we have that double slash (//) before Main.html in the
URL which makes NSPathUtilities.fileExistsAtPathUR return false.

Of course, the other problem is that the actual URL should end with
"Resources/Main.html".

How do I change resource managers to test this some more?

I have to admit getting this WAR to work is much more frustrating than it
should and the fact the WO isn't open-source makes it even harder to track
down the problem.

--emi

On Tue, Jul 5, 2011 at 5:27 PM, Mr. G Brown <[email protected]> wrote:

> Are you using Wonder?
>
> Jar frameworks work with all of Apple's Weobjects code, but Wonder code has
> problems with jar frameworks.
>
> You might experiment with changing resource managers, and switch away from
> Wonders, see the thread discussion:
>
> http://lists.apple.com/archives/webobjects-dev/2010/Jul/msg00241.html
>
> Of course it may be that I have not had enough caffeine, so you may want to
> disregard this post.
>
> gb _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/webobjects-dev/emilian.bold%40gmail.com
>
> This email sent to [email protected]
>



-- 
http://www.josekibold.ro : Honesty & well-done software.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to