> Hold on...
> Some interesting developments.
>
> I see:
>
> Package stuff in WEB-INF/lib
>   -> /hellotap/start/ returns
>      'red color coded' message:
>
>            An unexpected application exception has occurred.
>
>            Page Start did not generate any markup when rendered.
>            This could be because its template file could not
>            be located, or because a render phase method in
>            the page prevented rendering.
>
> Package stuff normally in WEB-INF/classes (not in lib)
>   -> /hellotap/start/ returns
>      same error message as before, but this time in all black fonts - not
>      'red' color coded.
>
> Questions:
> 1) My Start.tml is in WEB-INF/Start.tml - is this ok?
>

NO! This is wrong!
I must have misread
"http://tapestry.apache.org/tapestry5/tutorial1/first.html"; where it says:

'Let's start with the template, which is stored in the webapp's WEB-INF
folder. Tapestry component templates are well-formed XML documents.'

I thought this meant the Start.tml should go in WEB-INF, but in fact it
should be one level higher.


> 2) Apparently there is a difference in OC4J packaging T5 classes in lib
>    vs. classes. Can you explain why one error message would be 'red' and
>    the other all 'black'. Is there a .css that cannot be loaded or
>    something?
>
> Thanks for baring with me...
> -J.
>
>
>
>> The first step is to add an issue to JIRA.
>>
>> You did PACKAGE up the classes files as a new JAR, right?  Just moving
>> won't accomplish anything.
>>
>> On Mon, Mar 3, 2008 at 6:00 PM, Jan Vissers <[EMAIL PROTECTED]>
>> wrote:
>>> Did the test by moving all WEB-INF/classes stuff to WEB-INF/lib, and
>>>  although I see some log4j stuff going on; more specifically:
>>>
>>>  08/03/04 02:53:12 Oracle Containers for J2EE 10g (10.1.3.3.0)
>>> initialized
>>>  08/03/04 02:53:28 log4j:WARN No appenders could be found for logger
>>>  
>>> (org.apache.tapestry.services.TapestryModule.ServletApplicationInitializer).
>>>  08/03/04 02:53:28 log4j:WARN Please initialize the log4j system
>>> properly.
>>>
>>>  I still get 403 on the context root and 404 on context root + start.
>>>
>>>  Do you suggest diving into 'ClassNameLocator' and the (changed) class
>>>  loader behavior in OC4J 10.1.3 and up? To inform you; behavior is the
>>> same
>>>  in OC4J11g - Oracle's JEE5 implemenation (currently in developer
>>> preview).
>>>  When this is isn't fixed or tracked down I can see the
>>> people/companies
>>>  that need to use OC4J leaving Tapestry for something different and/or
>>> not
>>>  choosing Tapestry (5) in the first place.
>>>
>>>  Regs,
>>>  -J.
>>>
>>>
>>>
>>>
>>>  > I'm sorry that I don't have direct experience with OC4J.
>>>  >
>>>  > My first step would be to use Jetty Launcher (or equivalent) to
>>> verify
>>>  > that the application is built correctly before trying to track down
>>>  > what horrid things Oracle has been doing.
>>>  >
>>>  > The theory is that Tapestry is servlet-container agnostic and all
>>>  > servlet containers properly implement the spec.  As you can guess,
>>>  > this is partly fantasy, and we've patched a few things in Tapestry
>>> for
>>>  > Tomcat and WebLogic.  Jetty is the gold standard for performing as
>>>  > expected.
>>>  >
>>>  > The most likely cause is that OC4J's way of exposing classpath
>>>  > resources packaged in WEB-INF/classes is not compatible with
>>> Tapestry.
>>>  >  There is not a standard on how the servlet class loader should
>>> react,
>>>  > nor is there a proper API for scanning for files (including
>>> classes),
>>>  > which is something Tapestry 5 must do at startup.
>>>  >
>>>  > One thing to try is to package everything that would go into
>>>  > WEB-INF/classes into a JAR, and place that JAR inside WEB-INF/lib.
>>>  > This is easy with Maven and not difficult with Ant.
>>>  >
>>>  > The ClassNameLocator service is the point of weakness here; it makes
>>>  > some "guesses" about class loader structure in order to perform the
>>>  > scan.
>>>  >
>>>  > On Mon, Mar 3, 2008 at 4:53 PM, Jan Vissers <[EMAIL PROTECTED]>
>>>  > wrote:
>>>  >> Hi,
>>>  >>
>>>  >>  Comparing wicket and T5 for our next stack selection; giving T5 a
>>> final
>>>  >> go
>>>  >>  on OC4J 10.1.3+ (also 11g) - without maven.
>>>  >>
>>>  >>  Simplest of projects:
>>>  >>
>>>  >>  WEB-INF/web.xml contains:
>>>  >>
>>>  >>    <context-param>
>>>  >>       <param-name>tapestry.app-package</param-name>
>>>  >>       <param-value>com.cumquatit.tapestry.tutorial</param-value>
>>>  >>    </context-param>
>>>  >>    <filter>
>>>  >>       <filter-name>app</filter-name>
>>>  >>       <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
>>>  >>    </filter>
>>>  >>    <filter-mapping>
>>>  >>       <filter-name>app</filter-name>
>>>  >>       <url-pattern>/*</url-pattern>
>>>  >>    </filter-mapping>
>>>  >>
>>>  >>  WEB-INF also contains a file:
>>>  >>    Start.tml
>>>  >>
>>>  >>  Package com.cumquatit.tapestry.pages contains:
>>>  >>    Start.java
>>>  >>
>>>  >>  Packaged in .WAR and deployed successfully. Trying:
>>>  >>    http://riederhof31:8888/hellotap/       => 403 Forbidden
>>>  >>    http://riederhof31:8888/hellotap/start/ => 404 Not Found
>>>  >>    http://riederhof31:8888/hellotap/start  => 404 Not Found
>>>  >>
>>>  >>  Although I checked Tomcat deployment notes, I can't see anything
>>> wrong
>>>  >>  with my deployment. Bottomline; is there anybody out there in the
>>> world
>>>  >>  already doing stuff with T5 on OC4J, or is everybody just using
>>> Jetty?
>>>  >>
>>>  >>  Getting T5 to work on OC4J will be critical for our decision to
>>> keep
>>>  >>  Tapestry in our web development stack. We have been users of T3
>>> and
>>> T4
>>>  >> for
>>>  >>  a couple of years now, of which T4 had also a number of (Hivemind
>>>  >> related)
>>>  >>  issues on OC4J.
>>>  >>
>>>  >>  Hoping somebody can chime in!
>>>  >>  Thanks,
>>>  >>  -J.
>>>  >>
>>>  >>
>>>  >>  ---------------------------------------------------------------------
>>>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>>>  >>
>>>  >>
>>>  >
>>>  >
>>>  >
>>>  > --
>>>  > Howard M. Lewis Ship
>>>  >
>>>  > Creator Apache Tapestry and Apache HiveMind
>>>  >
>>>  > ---------------------------------------------------------------------
>>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>>  >
>>>  >
>>>
>>>
>>>
>>>  ---------------------------------------------------------------------
>>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to