You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Hammad Sophie <ha...@sibisoft.com> on 2002/05/15 22:33:11 UTC

RE: velocity template files path problem SOLVED!

Ignore this message. I figured it out. The class to update is:
JetspeedTemplateLocatorService version 1.7 5/9/02.

My problem was solved. Thanks Chris, Mark.

However, just wanted to point out a minor issue with the log message in the
jetspeed.log file:
The log message isn'tshowing the path correctly. here is a dump:

[13:26:06,212 DEBUG] template exists:
C:\jakarta-tomcat-4.0.3\webapps\testportal\WEB-INF\templates\vm\portlets\htm
l\member_info.vm returning /html/member_info.vm

My file is actually under:
C:\jakarta-tomcat-4.0.3\webapps\testportal\WEB-INF\test\templates\vm\portlet
s\html\member_info.vm

Hammad.

-----Original Message-----
From: Hammad Sophie [mailto:hammad@sibisoft.com]
Sent: Wednesday, May 15, 2002 12:41 PM
To: Jetspeed Users List
Subject: RE: velocity template files path problems


Thanks again Chris.

Can I get away with patching a few files or do I need to rebuild the entire
project again. If patching will work, what files do i need from cvs? :)

Hammad.





RE: velocity template files path problem SOLVED!

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
> Sorry for the confusion.
> 
> I hope this clarifies:
> 1. Turbine and jetspeed are able to find the template in the new
> path which
> i specified.
> 2. The template is only in the new path, not in the old one.
> 3. The only problem remaining is that the log message which
> indicates where
> the template was found shows the incorrect path. ie. it says that
> it found
> the template at the old path (which is not where it is). Instead it
> should
> say that the template was found at the new path.
> 

This is what is confusing me...

Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: velocity template files path problem SOLVED!

Posted by Hammad Sophie <ha...@sibisoft.com>.
Sorry for the confusion.

I hope this clarifies:
1. Turbine and jetspeed are able to find the template in the new path which
i specified.
2. The template is only in the new path, not in the old one.
3. The only problem remaining is that the log message which indicates where
the template was found shows the incorrect path. ie. it says that it found
the template at the old path (which is not where it is). Instead it should
say that the template was found at the new path.

Hammad.

-----Original Message-----
From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
Sent: Friday, May 17, 2002 12:13 PM
To: Jetspeed Users List
Subject: RE: velocity template files path problem SOLVED!


Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
> Yes I realize that. I want to keep my templates separate from
> jetspeed's
> default templates. The member_info.vm template is only in my 'test'
> directory tree.
>

I am confused then.... oh well, one for bugzilla then.

Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: velocity template files path problem SOLVED!

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
> Yes I realize that. I want to keep my templates separate from
> jetspeed's
> default templates. The member_info.vm template is only in my 'test'
> directory tree.
> 

I am confused then.... oh well, one for bugzilla then.

Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: velocity template files path problem SOLVED!

Posted by Hammad Sophie <ha...@sibisoft.com>.
Yes I realize that. I want to keep my templates separate from jetspeed's
default templates. The member_info.vm template is only in my 'test'
directory tree.

Hammad.

-----Original Message-----
From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
Sent: Thursday, May 16, 2002 11:52 PM
To: Jetspeed Users List
Subject: RE: velocity template files path problem SOLVED!


Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
> Chris:
>
> Here are the lines from the files:
> jr.props
>
services.TemplateLocator.templateRoot=/WEB-INF/templates,/WEB-INF/test/templ
> ates
>
> tr.props:
> services.VelocityService.file.resource.loader.path =
> /WEB-INF/templates/vm,/WEB-INF/test/templates/vm
>
> My file is in
> <blah.....>\WEB-INF\test\templates\vm\portlets\html\member_info.vm
>

You do realise that by specifying your "test" directory second on the
path, it will look there only if the file is NOT found in the other
template root.

Is the member_info.vm in both directory structures?

Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: velocity template files path problem SOLVED!

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
> Chris:
> 
> Here are the lines from the files:
> jr.props
>
services.TemplateLocator.templateRoot=/WEB-INF/templates,/WEB-INF/test/templ
> ates
> 
> tr.props:
> services.VelocityService.file.resource.loader.path =
> /WEB-INF/templates/vm,/WEB-INF/test/templates/vm
> 
> My file is in
> <blah.....>\WEB-INF\test\templates\vm\portlets\html\member_info.vm
> 

You do realise that by specifying your "test" directory second on the
path, it will look there only if the file is NOT found in the other
template root.

Is the member_info.vm in both directory structures?

Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: velocity template files path problem SOLVED!

Posted by Hammad Sophie <ha...@sibisoft.com>.
Chris:

Here are the lines from the files:
jr.props
services.TemplateLocator.templateRoot=/WEB-INF/templates,/WEB-INF/test/templ
ates

tr.props:
services.VelocityService.file.resource.loader.path =
/WEB-INF/templates/vm,/WEB-INF/test/templates/vm

My file is in
<blah.....>\WEB-INF\test\templates\vm\portlets\html\member_info.vm

Hammad.

-----Original Message-----
From: Chris Kimpton [mailto:kimptoc_mail@yahoo.com]
Sent: Wednesday, May 15, 2002 11:58 PM
To: Jetspeed Users List
Subject: RE: velocity template files path problem SOLVED!


Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
>
> However, just wanted to point out a minor issue with the log
> message in the
> jetspeed.log file:
> The log message isn'tshowing the path correctly. here is a dump:
>
> [13:26:06,212 DEBUG] template exists:
>
C:\jakarta-tomcat-4.0.3\webapps\testportal\WEB-INF\templates\vm\portlets\htm
> l\member_info.vm returning /html/member_info.vm
>
> My file is actually under:
>
C:\jakarta-tomcat-4.0.3\webapps\testportal\WEB-INF\test\templates\vm\portlet
> s\html\member_info.vm
>

Are you sure... looking the code, when it prints that message, it
means that its found the template in the specified place...but if
your seeing the correct template being shown, it implies that the
templatelocator template path is wrong (so it is finding the template
in the wrong place), but your velocity path is ok - since your seeing
the correct template.

Regards,
Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: velocity template files path problem SOLVED!

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Hammad Sophie <ha...@sibisoft.com> wrote:
> 
> However, just wanted to point out a minor issue with the log
> message in the
> jetspeed.log file:
> The log message isn'tshowing the path correctly. here is a dump:
> 
> [13:26:06,212 DEBUG] template exists:
>
C:\jakarta-tomcat-4.0.3\webapps\testportal\WEB-INF\templates\vm\portlets\htm
> l\member_info.vm returning /html/member_info.vm
> 
> My file is actually under:
>
C:\jakarta-tomcat-4.0.3\webapps\testportal\WEB-INF\test\templates\vm\portlet
> s\html\member_info.vm
> 

Are you sure... looking the code, when it prints that message, it
means that its found the template in the specified place...but if
your seeing the correct template being shown, it implies that the
templatelocator template path is wrong (so it is finding the template
in the wrong place), but your velocity path is ok - since your seeing
the correct template.

Regards,
Chris

=====
------------------------------------------
http://www.soccer2002.org.uk - The Game is On!

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>