JetSpeed2 Maven Plugin

2004-08-10 Thread Randy Watler
After poking around in the CVS JetSpeed2 world off and on over the last two
days, I have a quick question on how the existing Maven Plugin support
should be used. I would like to start building a customized portal. Since
there is no jetspeed2:genapp goal yet, I assume that I should copy the
/portal directories as a starting point and use the jetspeed2:build.portal
goal to merge/build jetspeed2 support into my customized version? Is it safe
to say that one should not edit the contents of /portal?

Just trying to get started on the right foot!

Randy Watler


Re: Build

2004-08-10 Thread Dain Sundstrom
I believe it is now called install or install-now.
-dain
On Aug 9, 2004, at 6:35 AM, Scott T. Weaver wrote:
It apperas, Maven 1.0 does not support the plugin:deploy goal anymore. 
 However, this should not impact the allBuild goal of J2 as it never 
invokes plugin:deploy.  If you need to, the maven-plugin sub-project 
has a "deploy-plugin" goal that emulates very closely the the logic of 
plugin:deploy.

HTH
Philip Saville wrote:
Sorry, I was 6 out on the line number... I am having difficulties with
the maven plug-in.
Starting the reactor...
Our processing order:
Jetspeed 2 Maven Plugin
+
| Build and deploy the Jetspeed 2 Maven plugin Jetspeed 2 Maven Plugin
| Memory: 36M/53M
+
BUILD FAILED
File.. E:\jetspeed-2.0\jakarta-jetspeed-2\maven.xml
Element... maven:reactor
Line.. 324
Column 40
Unable to obtain goal [deploy-plugin] --
E:\jetspeed-2.0\jakarta-jetspeed-2\maven-plugin\maven.xml:5
4:43:  No goal [plugin:deploy]
Total time: 4 minutes 28 seconds
Finished at: Fri Aug 06 21:54:37 PDT 2004
Please, any help would be greatly appreciated. Thanks,
Philip
-Original Message-
From: Philip Saville [mailto:[EMAIL PROTECTED] Sent: Friday, August 
06, 2004 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Build

Hi,
I receive the exact same error. I referred to the issues in the 
Jetspeed
2
Tiki, and still no luck :(

Thanks,
Philip


From: "Call, Terry M" <[EMAIL PROTECTED]>

Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>

To: "Jetspeed Users List" <[EMAIL PROTECTED]>

Subject: Build

Date: Fri, 6 Aug 2004 14:22:05 -0500


I am new to jetspeed:

I had jetspeed 2 installed. Installed jestspeed 1.5 and took the

tutorial. Now when I try to build jetspeed 2 I get:


BUILD FAILED

File.. C:\IMICS\DevTools\jakarta-jetspeed-2\maven.xml

Element... maven:reactor

Line.. 318

Column 40

Unable to obtain goal [deploy-plugin] --

C:\IMICS\DevTools\jakarta-jetspeed-2\ma

ven-plugin\maven.xml:54:43:  No goal [plugin:deploy]

Total time: 3 minutes 49 seconds

Finished at: Fri Aug 06 13:35:07 CDT 2004


Any ideas?


-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



_
Express yourself instantly with MSN Messenger! Download today - it's
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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



--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Dain Sundstrom
Chief Architect
Gluecode Software
310.536.8355, ext. 26
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Action not found (but it's there)?

2004-08-10 Thread Stijn de Witt
Archana,

You say I should put my path in front, but how? I am using the 'merge
properties' technique, and my modules.packages line always gets added at the
end. Still, it is strange that it worked before. I've had this before.
Somehow there is something wrong, somewhere...but beats me what.

I could ofcourse modify the JetspeedResources from jetspeed itself, and
place my modules path before it in there, but up to now I managed to avoid
having to change the jetspeed source. And this *should* work, shouldn't it?

Thanks,
-Stijn


- Original Message - 
From: "Archana Turaga" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 10, 2004 2:24 PM
Subject: RE: Action not found (but it's there)?


> Try putting your module package declaration in front of the Jetspeed
> module package definition.
>
> -Original Message-
> From: Stijn de Witt [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 09, 2004 8:01 PM
> To: Jetspeed Users List
> Subject: Action not found (but it's there)?
>
> Hi, I have an action located in
> WEB-INF\classes\nl\bergland\portal\jetspeed1\actions\job
> it's name is BitCandidateSubmitAction.class
> I have set up the Turbine modules.packages path, adding
> nl.bergland.portal.jetspeed1
>
> I tried all sorts of things, but I keep getting this
> ClassNotFoundException.
> Does anyone know of another cause of this, besides a wrong
> modules.packages
> path?
> The weird thing is that I had this working before, but it broke
> somehow...
> Any help would be greatly appreciated.
>
> Greetings,
> -Stijn
>
>
> 2004-08-10 02:50:40,203 [PoolThread-9] DEBUG GenericMVCPortlet -
> GenericMVCPortlet: Executing action [job.BitCandidateSubmitAction] for
> portlet [BitCandidateSubmitPortlet]
> 2004-08-10 02:50:40,265 [PoolThread-9] ERROR GenericMVCPortlet -
> GenericMVCPortlet - error executing action
> java.lang.ClassNotFoundException:
>
>  Requested Action not found: job.BitCandidateSubmitAction
>  Turbine looked in the following modules.packages path:
>  [org.apache.jetspeed.modules, org.apache.turbine.modules,
> nl.bergland.portal.jetspeed1]
>
>  at
> org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:17
> 4)
>  at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
>  at
> org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(Gener
> icMV
> CPortlet.java:276)
>  at
> org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(Generic
> MVCP
> ortlet.java:207)
>  at
> org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(P
> ortl
> etWrapper.java:119)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>  at java.lang.reflect.Method.invoke(Unknown Source)
>  at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
> e(Ub
> erspectImpl.java:267)
>  at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
> :197
> )
>  at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
> e.ja
> va:175)
>  at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
> .jav
> a:220)
>  at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
> a:23
> 0)
>  at org.apache.velocity.Template.merge(Template.java:256)
>  at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:449)
>  at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:418)
>  at
> org.apache.turbine.services.velocity.TurbineVelocityService.decodeReques
> t(Tu
> rbineVelocityService.java:494)
>  at
> org.apache.turbine.services.velocity.TurbineVelocityService.handleReques
> t(Tu
> rbineVelocityService.java:336)
>  at
> org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(Turbi
> neVe
> locity.java:143)
>  at
> org.apache.jetspeed.portal.controls.VelocityPortletControl.getContent(Ve
> loci
> tyPortletControl.java:155)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>  at java.lang.reflect.Method.invoke(Unknown Source)
>  at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
> e(Ub
> erspectImpl.java:267)
>  at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
> :197
> )
>  at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
> e.ja
> va:175)
>  at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
> .jav
> a:220)
>  at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55
> )
>  at
> org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
>  at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
> .jav
> a:114)
>  at
> org.apache.velocity.runtime.parser.node.ASTBloc

RE: library struts-1.2.1.jar missing

2004-08-10 Thread Shen, Ching
Ate:
After add-in http://cvs.apache.org/repository/ into build.properties , the build is 
successful
Thank you for the tip.

-Original Message-
From: Ate Douma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 1:11 PM
To: Jetspeed Users List
Subject: Re: library struts-1.2.1.jar missing




Shen, Ching wrote:

> Hi,
> Am I the only person has problem to build jetspeed 2?
> When I am trying to build, I get following errors:
> Attempting to download struts-1.2.1.jar.
> WARNING: Failed to download struts-1.2.1.jar.
>  
> BUILD FAILED
> File.. /root/jakarta-jetspeed-2/maven.xml
> Element... maven:reactor
> Line.. 151
> Column 40
> The build cannot continue because of the following unsatisfied dependency:
>  
> struts-1.2.1.jar
> 
> I checked ibiblio site, and the library is not there!  Where can  get this version 
> of status? 
> I would appreciate any guideline
Its in http://cvs.apache.org/repository/
Make sure your own build.properties (in your user home) doesn't override the 
maven.repo.remote property as specified in the project.properties in the J2 
source tree.

> 
> Thank you!
> 
> Ching Shen
> 
> 
> 
> -
> 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]



[OT] [Ann] BlueGlue 3.0 available - Jetspeed Updated

2004-08-10 Thread Eric Weidner
OpenLogic Releases BlueGlue 3.0

Easy Street for Installing, Configuring & Updating Open Source Development 
Tools

Need a really easy way to install, configure, and update open source 
development tools?  OpenLogic, Inc. has released BlueGlue 3.0, the latest 
version of its comprehensive Open Source Development Toolbox.  Previously 
known as Out-of-the-Box, BlueGlue is a one-stop, intelligent distribution of 
over 100 best-of-breed Open Source development tools, including  Apache, 
JBoss, Tomcat, Struts, Eclipse, PHP, Python, MySQL, PostgreSQL, CVS, 
Hibernate, AspectJ, Wiki, and many more. It provides Java and LAMP developers 
with the most automated, convenient and reliable way to select, install, 
configure and maintain their development infrastructure, freeing them from 
countless hours of system administration drudgery and frustration.  BlueGlue 
3.0 works on Linux or Windows and features:

Automated Installation, Configuration, Integration, Deployment, and Testing of 
any combination of open source projects chosen.  A workstation or server can 
be set up in less than an hour. 

Managed, stable update releases that keep everything current with the latest 
fixes, enhancements and security patches. 

Over 10 re-usable sample applications with full source to help kick-start 
development and learning. 

For more information on the many time saving capabilities of BlueGlue, go to 
http://www.openlogic.com. 

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



RE: problems with the base tag

2004-08-10 Thread OlsonE
Jay - 

I have seen this as well - it normally occurred after I had a template 
blow up, or I was replacing templates on the fly.  I changed the base line 
in /WEB-INF/templates/vm/layouts/default.vm (normally about the 3rd line) 
from:



to



I haven't seen the problem again.  I believe the problem occurs because 
the $clink URI is changed somewhere down the line, but in some error 
cases, it does not get set back correctly.  Then (in the base tag) the uri 
is something other than what we want?  Just a guess...

Eric Olson




"Jeremy Ford" <[EMAIL PROTECTED]> 
08/10/2004 01:10 PM
Please respond to
"Jetspeed Users List" <[EMAIL PROTECTED]>


To
[EMAIL PROTECTED]
cc

Subject
RE: problems with the base tag






This has been reported in the past, but I have been unable to replicate 
the 
issue.

Jeremy Ford
[EMAIL PROTECTED]


>From: Jay Gallagher <[EMAIL PROTECTED]>
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: Jetspeed Users List <[EMAIL PROTECTED]>
>Subject: problems with the base tag
>Date: Tue, 10 Aug 2004 13:15:12 -0400
>
>Im having problems with the base tag in Jetspeed 1.5
>
>it should be
>https://localhost:8443/jportal/";>
>
>but randomly seems to change to.
>
>https://localhost:8443/jportal/images/jportal.gif";>
>
>
>has any one else seen something like this or know what could cause it?
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 

hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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




Re: library struts-1.2.1.jar missing

2004-08-10 Thread Ate Douma

Shen, Ching wrote:
Hi,
Am I the only person has problem to build jetspeed 2?
When I am trying to build, I get following errors:
Attempting to download struts-1.2.1.jar.
WARNING: Failed to download struts-1.2.1.jar.
 
BUILD FAILED
File.. /root/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 151
Column 40
The build cannot continue because of the following unsatisfied dependency:
 
struts-1.2.1.jar

I checked ibiblio site, and the library is not there!  Where can  get this version of status? 
I would appreciate any guideline
Its in http://cvs.apache.org/repository/
Make sure your own build.properties (in your user home) doesn't override the 
maven.repo.remote property as specified in the project.properties in the J2 
source tree.

Thank you!
Ching Shen

-
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: problems with the base tag

2004-08-10 Thread Jeremy Ford
This has been reported in the past, but I have been unable to replicate the 
issue.

Jeremy Ford
[EMAIL PROTECTED]

From: Jay Gallagher <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
To: Jetspeed Users List <[EMAIL PROTECTED]>
Subject: problems with the base tag
Date: Tue, 10 Aug 2004 13:15:12 -0400
Im having problems with the base tag in Jetspeed 1.5
it should be
https://localhost:8443/jportal/";>
but randomly seems to change to.
https://localhost:8443/jportal/images/jportal.gif";>
has any one else seen something like this or know what could cause it?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


problems with the base tag

2004-08-10 Thread Jay Gallagher
Im having problems with the base tag in Jetspeed 1.5
it should be
https://localhost:8443/jportal/";>
but randomly seems to change to.
https://localhost:8443/jportal/images/jportal.gif";>
has any one else seen something like this or know what could cause it?


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


RE: library struts-1.2.1.jar missing

2004-08-10 Thread Bo van Weert

Acuse de recibo
   
SuRE: library struts-1.2.1.jar missing 
document   
o: 
   
Ha sido   Boudewijn van Weert/srvNotes 
recibido   
por:   
   
Con   10/08/2004 18.41.47  
fecha: 
   





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



RE: library struts-1.2.1.jar missing

2004-08-10 Thread Call, Terry M
Make sure you are not behind a firewall. If so, you will have to connect
directly to the internet.

-Original Message-
From: Shen, Ching [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 10, 2004 10:36 AM
To: [EMAIL PROTECTED]
Subject: library struts-1.2.1.jar missing


Hi,
Am I the only person has problem to build jetspeed 2?
When I am trying to build, I get following errors:
Attempting to download struts-1.2.1.jar.
WARNING: Failed to download struts-1.2.1.jar.
 
BUILD FAILED
File.. /root/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 151
Column 40
The build cannot continue because of the following unsatisfied
dependency:
 
struts-1.2.1.jar

I checked ibiblio site, and the library is not there!  Where can  get
this version of status? 
I would appreciate any guideline

Thank you!

Ching Shen



-
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]



library struts-1.2.1.jar missing

2004-08-10 Thread Shen, Ching
Hi,
Am I the only person has problem to build jetspeed 2?
When I am trying to build, I get following errors:
Attempting to download struts-1.2.1.jar.
WARNING: Failed to download struts-1.2.1.jar.
 
BUILD FAILED
File.. /root/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 151
Column 40
The build cannot continue because of the following unsatisfied dependency:
 
struts-1.2.1.jar

I checked ibiblio site, and the library is not there!  Where can  get this version of 
status? 
I would appreciate any guideline

Thank you!

Ching Shen



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



Re: add a library

2004-08-10 Thread Raphaël Luta
[EMAIL PROTECTED] wrote:
Hi,
I d'like to add a jar library for compiling jetspeed. Where I have to put
it please ?
thanks for answers...
Put in your Maven library repository and add a new library dependency
in Jetspeed project.xml (check the existing dependencies for the syntax).
I advise you to check out Maven site for more information on how
to use it and possibly install an internal central maven repository.
--
Raphael Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Action not found (but it's there)?

2004-08-10 Thread Archana Turaga
Try putting your module package declaration in front of the Jetspeed
module package definition. 

-Original Message-
From: Stijn de Witt [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 09, 2004 8:01 PM
To: Jetspeed Users List
Subject: Action not found (but it's there)?

Hi, I have an action located in
WEB-INF\classes\nl\bergland\portal\jetspeed1\actions\job
it's name is BitCandidateSubmitAction.class
I have set up the Turbine modules.packages path, adding
nl.bergland.portal.jetspeed1

I tried all sorts of things, but I keep getting this
ClassNotFoundException.
Does anyone know of another cause of this, besides a wrong
modules.packages
path?
The weird thing is that I had this working before, but it broke
somehow...
Any help would be greatly appreciated.

Greetings,
-Stijn


2004-08-10 02:50:40,203 [PoolThread-9] DEBUG GenericMVCPortlet -
GenericMVCPortlet: Executing action [job.BitCandidateSubmitAction] for
portlet [BitCandidateSubmitPortlet]
2004-08-10 02:50:40,265 [PoolThread-9] ERROR GenericMVCPortlet -
GenericMVCPortlet - error executing action
java.lang.ClassNotFoundException:

 Requested Action not found: job.BitCandidateSubmitAction
 Turbine looked in the following modules.packages path:
 [org.apache.jetspeed.modules, org.apache.turbine.modules,
nl.bergland.portal.jetspeed1]

 at
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:17
4)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(Gener
icMV
CPortlet.java:276)
 at
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(Generic
MVCP
ortlet.java:207)
 at
org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(P
ortl
etWrapper.java:119)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(Ub
erspectImpl.java:267)
 at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:197
)
 at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.ja
va:175)
 at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.jav
a:220)
 at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:23
0)
 at org.apache.velocity.Template.merge(Template.java:256)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:449)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:418)
 at
org.apache.turbine.services.velocity.TurbineVelocityService.decodeReques
t(Tu
rbineVelocityService.java:494)
 at
org.apache.turbine.services.velocity.TurbineVelocityService.handleReques
t(Tu
rbineVelocityService.java:336)
 at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(Turbi
neVe
locity.java:143)
 at
org.apache.jetspeed.portal.controls.VelocityPortletControl.getContent(Ve
loci
tyPortletControl.java:155)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(Ub
erspectImpl.java:267)
 at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:197
)
 at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.ja
va:175)
 at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.jav
a:220)
 at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55
)
 at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
 at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.jav
a:114)
 at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55
)
 at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
 at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.jav
a:114)
 at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:23
0)
 at org.apache.velocity.Template.merge(Template.java:256)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:449)
 at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:418)
 at
org.apache.turbine.services.velocity.TurbineVelocityService.decodeReques
t(Tu
rbineVelocityService.java:494)
 at
org.apache.turbine.services.velocity.TurbineVelocityService.handleReques
t(Tu
rbineVelocityService.java:336)
 at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(Turbi
neVe
locity.java:143)
 at
org.apache.jetspeed.portal.controllers.VelocityPortletController.getCont
ent(
VelocityPortletController.java:105)
 at
org.apache.jetspeed.portal.BasePortletSet.getContent(BasePortletSet.jav

add a library

2004-08-10 Thread jean-charles . jabouille

Hi,

I d'like to add a jar library for compiling jetspeed. Where I have to put
it please ?


thanks for answers...



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



RE: Portlets execution flow

2004-08-10 Thread Bjorn Vidar Remme
Correction* 

The action event does call the public void doBrowse_refresh(RunData, 
Context) method. 
There was a Null pointer Exeption thrown in there when it tried to fetch 
and use the portlet object in the Context .
 Apparently this exception caused the rundata only method to be called.


Med vennlig hilsen/Kind regards,

Bjorn Vidar Remme
Application Engineer






Bjorn Vidar Remme
09.08.2004 20:52

To: "Jetspeed Users List" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Portlets execution flow

Hi Bob, 

What you are saying makes sense. The trouble was that I was using 
qualified action names, but I still had major problems. I then reluctantly 
came to the conclusion that there was something fundamentally wrong with 
my code. 

Looking over the code again I remember changing the form method from POST 
to GET because my action event would not fire if I used POST. A major 
mistake! Changing the method caused the action parameter in the URL to be 
ignored. And the code executed as if I where using $jslink alone. 

It took me a while to figure out what was going on. Overriding the 
executeEvents() methods and logging any Exceptions thrown gave me the 
answer. When I supply an action in the URL it looks for an event method 
with the signature âpublic void doBrowse_X(RunData rundata)â and not 
âpublic void doBrowse_refresh(RunData, Context)â.

No wonder my event was not triggered because I used the Context variation.

I then changed my code and it worked just as you said. Brilliant!

The only consequence of removing the Context as a parameter is that we 
must find an alternative way to get the portlet id. Probably submitting it 
as a parameterâ


Thanks, you really saved the day!!!


Kind regards,
Bjorn Vidar Remme







"Bob Fleischman" <[EMAIL PROTECTED]>
06.08.2004 18:18
Please respond to "Jetspeed Users List"
 
To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Portlets execution flow


Bjorn:

You can limit the impact of which class runs your method via the action by
qualifying the action.

That is: use action=Myportlet2.doUpdate rather than action=doUpdate.  With
the second method any portlet which has a doUpdate method will fire.

As to having several Portlets share a current model. We have found that it
is best to have a separate action class that modifies the model. Then 
using
the setAction style described in this thread you can update the common 
model
first. That action will be called before any rendering.

Your portlet should then be limited to building up your context. Otherwise
you are duplicating your efforts by putting model update code in 2 places.

Bob

-Original Message-
From: Bjorn Vidar Remme [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 06, 2004 10:41 AM
To: Jetspeed Users List
Subject: Re: Portlets execution flow

Hi all, 

Well the trouble by using setAction() is that the action is executed for 
all the portlets (if a suitable method exists). You can easily test this 
by adding multiple instances of the same portlet to a page (same action 
class) or multiple portlets with different action classes but the same 
event name. You will then see that the action event is executed once for 
all the portlets.

The pattern is thus (AE=action event, BNC=buildNormalContext):
AE for portlet A, BNC for portlet A, AE for portlet B, BNC for portlet B 
etc..

Not what we want at all, we just want the action event to fire once.
This is why I specify the portlet ID in the action like this: 
$jslink.getAction("myaction", $portlet)

The action event is then executed only once, but as I described in my 
previous post the pattern is (clicking on portlet B): BNC-A, AE -B, BNC-B 
and not the desired AE-B, BNC-A, BNC-B.


Note: I am using getAction() because setAction() is deprecated according 
to the documentation. It does the same thing.
 

Kind regards,
Bjorn Vidar Remme






[EMAIL PROTECTED]
06.08.2004 15:54
Please respond to "Jetspeed Users List"
 
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
cc: 
Subject:Re: Portlets execution flow


Bjorn, Oscar -

I have never seen the problems you are mentioning below - my action 
handler methods ALWAYS execute before the build*() methods on the active 
portlets.  We are currently using Velocity-based portlets.  When we 
specify the action parameter in a form, we use the following code 
template:

 
or


The first version uses the "default" action as specified in the xreg for 
the portlet - this is what we use in most cases.  The second version uses 
any action you specify - as long as the action package you are using is 
declared to Turbine using the "module.packages" key (see 
TurbineResources.properties, and look for that key.)

For an example of the first version, look at the source in 
/tutorial/tutorials/9/templates/vm/portlets/html/coffees-browser.vm 
(directly from cvs) as well as the related xreg files.  An example of the 

VelocityPortletAction, $jslink.getAction('someaction', $portlet) -> Portlet not found in Context.

2004-08-10 Thread Bjorn Vidar Remme
Hi all, 

(Using Jetspeed-1.6-dev)

When I submit a form using $jslink.getAction() I am not able to retrieve 
the portlet ID from the context. I have used the $jslink.getAction(âxxxâ, 
$portlet) but still my application behaves unexpected because of a null 
pointer exception when it tries to use fetch the portlet ID. 

Looking at the log and the jetspeed sources the Context object appears to 
be created in the GenericMVCAction.perform() method. But this is just an 
empty Context and the portlet is nowhere to be found. 

Can anybode explain why the portlet is not in the Context at this point. 
Is this the normal behaviour?

I just need the portlet ID so that I can store some portlet specific data 
in the RunData object. I can submit the portlet ID as a parameter to my 
action but I would like to avoid that.



Kind regards,
Bjorn Vidar Remme