• 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: Henrique Prange <email@hidden>
  • Date: Wed, 06 Jul 2011 19:22:28 -0300

Hi Emilian,

Have you read this tutorial [1]?

The project has a generated Info.plist in your Resources (src/main/resources) folder?

Have you added the ERXServletAdaptor configuration to the project's web.xml file?

[1]http://wiki.objectstyle.org/confluence/display/WOL/Packaging+WO+Applications+as+true+WAR+with+Maven

Cheers,

Henrique

On 06/07/2011, at 05:37, Emilian Bold wrote:

> 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

 _______________________________________________
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

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

  • Prev by Date: Re: maven-wolifecycle-plugin version 2.2.1 vs. 2.0.17
  • Next by Date: Re: Does the ERXStaticResourceRequestHandler work with those compressed jarred resources?
  • Previous by thread: Re: No template found for component Main at jar:file WEB-INF/lib/
  • Next by thread: [MEET] Toronto Cocoaheads / tacow - July 12
  • Index(es):
    • Date
    • Thread