RE: NullPointerException while rendering JSP template

2004-03-31 Thread Mark Orciuch
> Thanks for your help, I actually changed
> "services.TemplateService.default.extension" to "jsp" in
> TurbineResources.properties and it all worked fine. So I guess there is
> a slight issue rendering JSP with the Velocity engine :p

You can still use JSP based portlets when Velocity is the default template
engine. However, you cannot mix Velocity and JSP when it comes to layouts
and navigation. This wouldn't even make sense. It's either one or the other.

Last time I checked JSP support worked fine in Jetspeed. It is our goal to
support both. Please let us know if it isn't so.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: [EMAIL PROTECTED]
web: http://www.ngsltd.com


>
> I read it is supposed to work, but it might not be a prioritary goal in
> Jetspeed development. Maybe I'll post a bug request someday.
>
> Again, thanks for all :)
>
> --
> | Jean-Baptiste Lièvremont|
> |   E-mail : [EMAIL PROTECTED]|
> |[EMAIL PROTECTED] |
> |   Tel: (+33)6.14.85.19.96   |
>
> -
> 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]



Re: NullPointerException while rendering JSP template

2004-03-31 Thread Jean-Baptiste Lievremont
Raphaël Luta wrote:

Am I reading your log correctly and you're using a JSP navigation  
within a Velocity layout ?
It's supposed to work OK but this is not a case we have thouroughly  
tested I guess.

Thanks for your help, I actually changed 
"services.TemplateService.default.extension" to "jsp" in 
TurbineResources.properties and it all worked fine. So I guess there is 
a slight issue rendering JSP with the Velocity engine :p

I read it is supposed to work, but it might not be a prioritary goal in 
Jetspeed development. Maybe I'll post a bug request someday.

Again, thanks for all :)

--
| Jean-Baptiste Lièvremont|
|   E-mail : [EMAIL PROTECTED]|
|[EMAIL PROTECTED] |
|   Tel: (+33)6.14.85.19.96   |
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: NullPointerException while rendering JSP template

2004-03-30 Thread Marphil
Hi Jean,

I think I had the got the same exception when I tried
to set

topnav.vm=top_default.jsp

This thread might help you solve your issue.

Thanks.

Marphil



--- Stefano Bianchi <[EMAIL PROTECTED]>
wrote:
> From: "Stefano Bianchi" <[EMAIL PROTECTED]>
> To: "Jetspeed Users List"
> <[EMAIL PROTECTED]>
> Subject: Re: Jetspeed 1.4 - trouble using jsp
> instead of velocity template
> Date: Fri, 26 Mar 2004 09:14:14 +0100
> 
> Dear Murphil,
> 
> the one I suggested should be the only change in
> JR.p relative to this
> specific issue.
> 
> System should then ignore topnav.vm, leftnav.vm,
> bottomnav.vm when
> formatting the portal layout.
> 
> You just have to make all changes you need (images,
> background) in relative
> files in
>
[TOMCAT]\webapps\jetspeed\WEB-INF\templates\jsp\navigations\html.
> 
> Properties files are long to read and analyse, but
> they are quite powerful!
> 
> Good luck
> Stefano
> 
> 
> - Original Message - 
> From: "Marphil" <[EMAIL PROTECTED]>
> To: "Jetspeed Users List"
> <[EMAIL PROTECTED]>
> Sent: Friday, March 26, 2004 8:56 AM
> Subject: Re: Jetspeed 1.4 - trouble using jsp
> instead of velocity template
> 
> 
> > Hi Stefano,
> >
> > Do I still need to change the following in JR.p?
> > topnav.vm
> > leftnav.vm
> > bottomnav.vm
> >
> > Thank you very much!
> >
> >
> > Marphil
> >
> >
> > --- Stefano Bianchi <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Dear Marphil,
> > > have you changed the following line in
> > > TourbineResources.properties in
> > > [TOMCAT]\webapps\jetspeed\WEB-INF\conf?
> > > You have to define which template you want to
> use,
> > > but consider (this is
> > > what I experienced) that if you choose to use
> jsp,
> > > portal will be managed
> > > with a mix of vm and jsp, and not only with jsp
> > > (there are no controls nor
> > > controllers implemented in jsp, but I'm still
> using
> > > Jetspeed 1.4-b3...)
> > >
> > > #
> > >
> >
>
---
> > > #
> > > #  T E M P L A T E  S E R V I C E
> > > #
> > > #
> > >
> >
>
---
> > >
> > > # Roughly, the number of templates in each
> category.
> > > #
> > > # Defaults: layout=2, navigation=10, screen=50
> > >
> > > services.TemplateService.layout.cache.size=2
> > >
> services.TemplateService.navigation.cache.size=10
> > > services.TemplateService.screen.cache.size=50
> > > #
> > > services.TemplateService.default.extension=vm
> > > --
> > > -@@@
> > > services.TemplateService.default.extension=jsp
> > >
> > > Then if you want to change your top default just
> > > modify top_default.jsp in
> > >
> >
>
[TOMCAT]\webapps\jetspeed\WEB-INF\templates\jsp\navigations\html
> > > and it will
> > > work (no restart is needed if you change
> something
> > > on the fly).
> > >
> > > Best regards
> > > Stefano
> > >
> > >
> > >
> > > - Original Message - 
> > > From: "Marphil" <[EMAIL PROTECTED]>
> > > To: "Jetspeed Users List"
> > > <[EMAIL PROTECTED]>
> > > Sent: Friday, March 26, 2004 8:14 AM
> > > Subject: Jetspeed 1.4 - trouble using jsp
> instead of
> > > velocity template
> > >
> > >
> > > > Hi,
> > > >
> > > > Can anybody share how did they managed to use
> jsp
> > > on
> > > > their portals?
> > > >
> > > > I tried...
> > > > topnav.vm=top_default.jsp
> > > > but is throwing a JasperException.
> > > >
> > > > Thanks.
> > > >
> > > >
> > > > Marphil
> > > >





--- Jean-Baptiste Lievremont
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> My JSP template for the left navigation displays "
> Error processing 
> navigation template:/html/left.jsp using module:
> BaseJspNavigation" at 
> the end of the generated HTML. The rest of the
> content is as expected.
> 
> I am running Jetspeed 1.4 and struts-menu 1.3 in
> tomcat 5.0.19, JDK 
> 1.4.2_02 with sparcv9 extensions, sun solaris 8.
> 
> The 'turbine.log' file reads :
> 
> 2004-03-30 17:02:38,522 [http8080-Processor2] ERROR 
> JetspeedLoggingService  - Error processing
> navigation 
> template:/html/left.jsp using module:
> BaseJspNavigation
> java.lang.NullPointerException
> at 
>
org.apache.turbine.util.template.TemplateNavigation.toString(TemplateNavigation.java:127)
> at 
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:321)
> at 
>
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at 
>
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
> at 
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at
>
org.apache.velocity.Template.merge(Template.java:296)
> at
>
org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at
>
org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at 
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:494)
> at 
>
org.ap

Re: NullPointerException while rendering JSP template

2004-03-30 Thread Raphaël Luta
Le 30 mars 04, à 18:19, Jean-Baptiste Lievremont a écrit :

Hi,

My JSP template for the left navigation displays " Error processing  
navigation template:/html/left.jsp using module: BaseJspNavigation" at  
the end of the generated HTML. The rest of the content is as expected.

I am running Jetspeed 1.4 and struts-menu 1.3 in tomcat 5.0.19, JDK  
1.4.2_02 with sparcv9 extensions, sun solaris 8.

The 'turbine.log' file reads :

2004-03-30 17:02:38,522 [http8080-Processor2] ERROR  
JetspeedLoggingService  - Error processing navigation  
template:/html/left.jsp using module: BaseJspNavigation
java.lang.NullPointerException
   at  
org.apache.turbine.util.template.TemplateNavigation.toString(TemplateNa 
vigation.java:127)
   at  
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReferenc 
e.java:321)

Am I reading your log correctly and you're using a JSP navigation  
within a Velocity layout ?
It's supposed to work OK but this is not a case we have thouroughly  
tested I guess.

If you send me the detailed config and template files I can try to see  
where the issue is but I'd
simply recommend you to stick to a single layout technology (JSP or  
velocity) for
your layout and navigations.

--
Raphaël Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


NullPointerException while rendering JSP template

2004-03-30 Thread Jean-Baptiste Lievremont
Hi,

My JSP template for the left navigation displays " Error processing 
navigation template:/html/left.jsp using module: BaseJspNavigation" at 
the end of the generated HTML. The rest of the content is as expected.

I am running Jetspeed 1.4 and struts-menu 1.3 in tomcat 5.0.19, JDK 
1.4.2_02 with sparcv9 extensions, sun solaris 8.

The 'turbine.log' file reads :

2004-03-30 17:02:38,522 [http8080-Processor2] ERROR 
JetspeedLoggingService  - Error processing navigation 
template:/html/left.jsp using module: BaseJspNavigation
java.lang.NullPointerException
   at 
org.apache.turbine.util.template.TemplateNavigation.toString(TemplateNavigation.java:127)
   at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:321)
   at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
   at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
   at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
   at org.apache.velocity.Template.merge(Template.java:296)
   at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
   at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
   at 
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:494)
   at 
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:336)
   at 
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:143)
   at 
org.apache.turbine.modules.layouts.VelocityDirectLayout.doBuild(VelocityDirectLayout.java:106)
   at org.apache.turbine.modules.Layout.build(Layout.java:91)
   at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
   at 
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:169)
   at org.apache.turbine.modules.Page.build(Page.java:90)
   at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
   at org.apache.turbine.Turbine.doGet(Turbine.java:563)
...

The full stack trace is available at 
http://mith.dnsalias.org/~mith/stackTrace-2004-03-30

I can send the source of the page upon request.

Regards

--
| Jean-Baptiste Lièvremont|
|   E-mail : [EMAIL PROTECTED]|
|[EMAIL PROTECTED] |
|   Tel: (+33)6.14.85.19.96   |
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]