Hello All,
Please help me understand the following behavior:
We are using Turbine with Webmacro using by subclassing
WebMacroSiteScreen and WebMacroSiteAction.
We can successfully reach screens and actions which
do not have extra "hierarchy" specifiers in the pathname, e.g.
server/DSS/servlet/DSS/template/IndexView.wm
and
server/DSS/servlet/DSS/template/Patient.wm/patientoid/pt001/action/SelectPat
ientReq
The problem occurs if the screens and actions are
"pushed down" below "modules" in the class hierarchy, e.g.
server/DSS/servlet/DSS/template/clinforms/PsychosocialView.wm
and
server/DSS/servlet/DSS/template/AnotherView.wm/actions/clinforms/Psychosocia
lReq
Here we are using "clinforms" to designate a branch of our
class hierarchy.
So... if I escape it by hand (using %2F for /) as DynamicURI
(or should I say WebMacroLink) does, everything works fine. So
also if I use a comma.
Is this intended behavior? Is this even an aspect of HTTP/HTML
that I am taking for granted? I looked at the sourcecode for
some of the template provider/service code, but, in truth, it
was a bit hard to follow the flow of events. It seems that
the system path.separator is used for parsing, and I have a
feeling that some of the terms are "bitten off" along the way.
At the end of this message is are portions of the generated stack
traces... Some errors ultimately show up in ECS or WebMacro
routines, but I believe the parsing/setting of the filename
in the provider services is the culprit. More detail on request,
of course, but I thought this would be old hat to anyone who's
already encountered it.
Clearly not a problem if DynamicURI/WebMacroLinks are always
used, but it would be nice to have a more user-friendly pathname
(i.e. with slashes instead of %2F)
It seems that the marker words "template", "action", and "screen"
and the grammar of the request would be enough to remove any
semantic ambiguity.
Thanks in advance for any assistance!
Dave
P.S. Is there a handy way to search the list on-line?
It looks like I would have to download the daily summaries,
put them in a directory, and do a flat file search. Somehow,
it seems there might be an easier way.
P.P.S. The tops of the three relevant stack traces follow:
--------------
[Fri Nov 03 11:36:04 PST 2000] -- ERROR -- Turbine.handleException: null
[Fri Nov 03 11:36:04 PST 2000] -- ERROR --
Exception: java.lang.NullPointerException
Stack Trace follows:
java.lang.NullPointerException
at org.apache.ecs.StringElement.addElement(StringElement.java,
Compiled Code)
at
org.apache.turbine.modules.screens.WebMacroSiteScreen.buildTemplate(WebMacro
SiteScreen.java:155)
---------------
[Fri Nov 03 11:36:08 PST 2000] -- ERROR -- TurbineTemplateProvider failed
to load template E:\tdk\webapps\DSS\templates\screens\clinforms
[Fri Nov 03 11:36:08 PST 2000] -- ERROR --
Exception: java.io.FileNotFoundException:
E:\tdk\webapps\DSS\templates\screens\clinforms (Access is denied)
Stack Trace follows:
java.io.FileNotFoundException:
E:\tdk\webapps\DSS\templates\screens\clinforms (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java, Compiled
Code)
at java.io.FileInputStream.<init>(FileInputStream.java, Compiled
Code)
at java.io.FileReader.<init>(FileReader.java:39)
at org.webmacro.engine.FileTemplate.getReader(FileTemplate.java,
Compiled Code)
at org.webmacro.engine.WMTemplate.parse(WMTemplate.java, Compiled
Code)
at
org.apache.turbine.services.webmacro.TurbineTemplateProvider.findTemplate(Tu
rbineTemplateProvider.java, Compiled Code)
at
org.apache.turbine.services.webmacro.TurbineTemplateProvider.resourceRequest
(TurbineTemplateProvider.java, Compiled Code)
at
org.webmacro.broker.RequestResourceEvent.providerSet(RequestResourceEvent.ja
va, Compiled Code)
at org.webmacro.broker.ResourceManager.resolve(ResourceManager.java,
Compiled Code)
at org.webmacro.broker.ResourceManager.locate(ResourceManager.java,
Compiled Code)
at org.webmacro.broker.ResourceBroker.locate(ResourceBroker.java,
Compiled Code)
at org.webmacro.broker.ResourceBroker.request(ResourceBroker.java,
Compiled Code)
at org.webmacro.broker.ResourceBroker.getValue(ResourceBroker.java,
Compiled Code)
at org.webmacro.WM.getTemplate(WM.java, Compiled Code)
at
org.apache.turbine.services.webmacro.TurbineWebMacroService.getTemplate(Turb
ineWebMacroService.java, Compiled Code)
-------------
[Fri Nov 03 11:36:08 PST 2000] -- ERROR -- An error occurred while
rendering template screens/clinforms:
Resource[template, screens/clinforms] not found: Unable to resolve requested
resource
[Fri Nov 03 11:36:08 PST 2000] -- ERROR --
Exception: org.webmacro.NotFoundException: Resource[template,
screens/clinforms] not found: Unable to resolve requested resource
Stack Trace follows:
org.webmacro.NotFoundException: Resource[template,
screens/clinforms] not found: Unable to resolve requested resource
at org.webmacro.broker.ResourceEvent.getValue(ResourceEvent.java,
Compiled Code)
at org.webmacro.broker.ResourceBroker.getValue(ResourceBroker.java,
Compiled Code)
at org.webmacro.WM.getTemplate(WM.java, Compiled Code)
at
org.apache.turbine.services.webmacro.TurbineWebMacroService.getTemplate(Turb
ineWebMacroService.java, Compiled Code)
-------------
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]