> This setup has some "unusual" artifacts. The main one being that root
> of the package hierarchy is always shared by workbench and the apps
> (it must be, as afterall at deploy time it's a single app). So
> programmer has com.foo.bar, and workbench.jar also has com.foo.bar.

This shouldn't be a  problem, you can have many jars that have the
same package hierarchy without an issue.

Are you changing anything other than jar/not jar to recreate the
problem? For instance, is it a different machine, different
installation of the container?

The fact that tapestry assets don't work seems to be saying that
something else is going on.

On Thu, May 22, 2008 at 11:45 AM, Adam Zimowski <[EMAIL PROTECTED]> wrote:
> I'll mention from high level the setup I have, to shed some additional
> light. My main app (we call it workbench around here) is a general
> purpose container which hosts applications written for it. It provides
> for all apps the common layout, user interface,  security,
> infrastructure, etc etc. Programmers write apps, which eventually
> deploy in WEB-INF/lib as JARs.
>
> The step I'm on currently is I JARred Workbench into a testable
> runtime, so programmers import workbench.jar into their project, and
> just with their own (temporary) WEB-INF/web.xml and WEB-INF/lib they
> can run, test and develop application in the workbench environment.
>
> This setup has some "unusual" artifacts. The main one being that root
> of the package hierarchy is always shared by workbench and the apps
> (it must be, as afterall at deploy time it's a single app). So
> programmer has com.foo.bar, and workbench.jar also has com.foo.bar.
>
> Could this be a problem?
>
> On Thu, May 22, 2008 at 1:37 PM, Adam Zimowski <[EMAIL PROTECTED]> wrote:
>> I never see requests come through that should be my assests. It hits
>> several times with path being "/" and once with path being "/home",
>> which is Index page in my "home" package. The links returned are:
>>
>> <link href="assets/tapestry/default.css" rel="stylesheet" type="text/css">
>> <link href="assets/resources/css/style.css" media="screen"
>> rel="stylesheet" type="text/css"> (my own)
>>
>> One of the anchors on my layout component generates like this:
>>
>> <a class="activenavitab" href="home/index.layout.tab/home" id="tab">
>>
>> My form's action (on the login component) looks like this:
>>
>> <form action="home/index.login.loginform" id="loginForm" method="post"
>> name="loginForm">
>>
>> It all looks normal to me. Why is it freaking out is beyond me..
>>
>> -adam
>>
>> On Thu, May 22, 2008 at 1:30 PM, Josh Canfield <[EMAIL PROTECTED]> wrote:
>>>> I stepped through AssetDispatcher and it is getting called, but it
>>>> never finds path that starts with "/assets/" so it always returns
>>>> false:
>>>
>>> Do you see requests come through that should be your assets? What is
>>> getPath returning?
>>>
>>> Can you paste the <link> and <a> tags that are created?
>>>
>>>
>>>
>>> On Thu, May 22, 2008 at 11:18 AM, Adam Zimowski <[EMAIL PROTECTED]> wrote:
>>>> I stepped through AssetDispatcher and it is getting called, but it
>>>> never finds path that starts with "/assets/" so it always returns
>>>> false:
>>>>
>>>>        String path = request.getPath();
>>>>
>>>>        // Remember that the request path does not include the context
>>>> path, so we can simply start
>>>>        // looking for the asset path prefix right off the bat.
>>>>
>>>>        if (!path.startsWith(TapestryConstants.ASSET_PATH_PREFIX)) return 
>>>> false;
>>>>
>>>> Why is it working when my app isn't JARred?
>>>>
>>>> On Thu, May 22, 2008 at 1:11 PM, Adam Zimowski <[EMAIL PROTECTED]> wrote:
>>>>> Yeah, everything works if it isn't jarred. Thanks for pointing out
>>>>> AssetDispatcher. I'll try to debug it.
>>>>>
>>>>> On Thu, May 22, 2008 at 12:52 PM, Josh Canfield <[EMAIL PROTECTED]> wrote:
>>>>>>> What's weird is that internal Tapestry
>>>>>>> resources aren't loading either.
>>>>>>
>>>>>> You said earlier that it worked if it wasn't jar'd, do the tapestry
>>>>>> assets work in that environment?
>>>>>> Are you getting anything in your log files?
>>>>>> You might try stepping into the AssetDispatcher to see if it's getting 
>>>>>> called.
>>>>>>
>>>>>> Josh
>>>>>>
>>>>>> On Thu, May 22, 2008 at 10:22 AM, Adam Zimowski <[EMAIL PROTECTED]> 
>>>>>> wrote:
>>>>>>> I tried that and no difference. What's weird is that internal Tapestry
>>>>>>> resources aren't loading either. For instance:
>>>>>>>
>>>>>>> /assets/tapestry/default.css
>>>>>>>
>>>>>>> will not load either. This is consistent with the presentation. Again,
>>>>>>> all functionality works, including data access, but on forms, for
>>>>>>> instance, input errors aren't styled at all. Nothing. My styles, js,
>>>>>>> and images are gone, and those of Tapestry are also gone.
>>>>>>>
>>>>>>> -adam
>>>>>>>
>>>>>>> On Thu, May 22, 2008 at 12:15 PM, Thiago HP <[EMAIL PROTECTED]> wrote:
>>>>>>>>>  <link rel="stylesheet" media="screen" type="text/css"
>>>>>>>>>  href="${asset:classpath:resources/css/layout.css}" />
>>>>>>>>
>>>>>>>> Try ${asset:classpath:/resources/css/layout.css} (note the slash after
>>>>>>>> 'classpath:').
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thiago
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> 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]
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> TheDailyTube.com. Sign up and get the best new videos on the internet
>>>>>> delivered fresh to your inbox.
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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]
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> TheDailyTube.com. Sign up and get the best new videos on the internet
>>> delivered fresh to your inbox.
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to