• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: No template found for component Main at jar:file WEB-INF/lib/
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No template found for component Main at jar:file WEB-INF/lib/


  • Subject: Re: No template found for component Main at jar:file WEB-INF/lib/
  • From: Emilian Bold <email@hidden>
  • Date: Wed, 06 Jul 2011 10:37:04 +0200

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@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



--
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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: No template found for component Main at jar:file WEB-INF/lib/
      • From: Henrique Prange <email@hidden>
References: 
 >Re: No template found for component Main at jar:file WEB-INF/lib/ (From: "Mr. G Brown" <email@hidden>)

  • Prev by Date: New example app for D2W and ERModernLook
  • Next by Date: Re: WOWODC 2011 recordings
  • Previous by thread: Re: No template found for component Main at jar:file WEB-INF/lib/
  • Next by thread: Re: No template found for component Main at jar:file WEB-INF/lib/
  • Index(es):
    • Date
    • Thread