Somes problems with images in my portal

2004-10-21 Thread SMADJA Ludovic
Hi everyone,
 
I've some problems with all my pictures (logo, minimize picture, close
picture, ...) in my portal.
 
Sometimes, all my pictures disappear and are replaced with ALT text. After
some reload, they appear and disappear after.
 
In the path of the image, I've noticed that I've images/images/... path
instead of images/...
 
I've also read that I've to change base tag in top.vm but this action
doesn't solve the problem. 
 
Do you have any ideas ??


Cordialement, 

Ludovic SMADJA
groupe cegetel n n
Direction des Services Clients 
Industrialisation & Méthodes Techniques
Tour Cèdre - 7 allée de l'Arche - 92667 Courbevoie Cedex
Bureau 433 - Fax : +33 (0) 171 773 009 - Tel : +33 (0) 171 773 731 

 


jetpeed 2 build error

2004-10-21 Thread jean-charles . jabouille
Hi,

I have juste download the last cvs of Jetspeed2. I have a compilation
error.

this is the trace:

+
| Build and Install all Jetspeed 2 jars Jetspeed-2 Component Manager
| Memory: 32M/50M
+
Plugin 'maven-deploy-plugin' in project 'Jetspeed-2 Component Manager' is
not available

jar:install:

build:end:

build:start:

java:prepare-filesystem:
[mkdir] Created dir:
/home/jabouijc/jakarta-jetspeed-2/components/cm/target/classes

java:compile:
[echo] Compiling to
/home/jabouijc/jakarta-jetspeed-2/components/cm/target/classes
[javac] Compiling 9 source files to
/home/jabouijc/jakarta-jetspeed-2/components/cm/target/classes
[javac]
/home/jabouijc/jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/factorybeans/PlutoFactoryFactoryBean.java:24:
 package org.springframework.beans.factory.config does not exist
[javac] import
org.springframework.beans.factory.config.AbstractFactoryBean;
[javac] ^
[javac]
/home/jabouijc/jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/factorybeans/PlutoFactoryFactoryBean.java:37:
 cannot resolve symbol
[javac] symbol  : class AbstractFactoryBean
[javac] location: class
org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean
[javac] public class PlutoFactoryFactoryBean extends
AbstractFactoryBean
[javac]  ^
[javac]
/home/jabouijc/jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/factorybeans/ServletConfigFactoryBean.java:20:
 package org.springframework.beans.factory.config does not exist
[javac] import
org.springframework.beans.factory.config.AbstractFactoryBean;
[javac] ^
[javac]
/home/jabouijc/jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/factorybeans/ServletConfigFactoryBean.java:33:
 cannot resolve symbol
[javac] symbol  : class AbstractFactoryBean
[javac] location: class
org.apache.jetspeed.components.factorybeans.ServletConfigFactoryBean
[javac] public class ServletConfigFactoryBean extends
AbstractFactoryBean
[javac]   ^
[javac]
/home/jabouijc/jakarta-jetspeed-2/components/cm/src/java/org/apache/jetspeed/components/SpringComponentManager.java:44:
 cannot access org.springframework.core.io.DefaultResourceLoader
[javac] file org/springframework/core/io/DefaultResourceLoader.class
not found
[javac] appContext = new
FileSystemXmlApplicationContext(springConfigs, parentAppContext );
[javac]  ^
[javac] 5 errors

BUILD FAILED
File.. /home/jabouijc/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 133
Column 40
Unable to obtain goal [java:compile] --
/home/jabouijc/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48:
 Compile failed; see the compiler error output for details.
Total time: 55 seconds
Finished at: Thu Oct 21 09:49:18 CEST 2004



somoene have an idea ?

thanks for your answers...





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



LDAP implementation

2004-10-21 Thread Amit Soni
Hi all,
  I m already install jetspeed and implement it successfully but i want
to implement it in LDAP not in DB but i couldn't found any tutorial for
that so how can i start to implement jetspeed??

  so any one of u have any idea regarding this then pls help me.

Regards,
Amit Soni


--
Netcore's New Website
http://www.netcore.co.in
--

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



Re: customizing the customizer

2004-10-21 Thread Raphaël Luta
Dan Moore wrote:
Hi Raphael,
--- Raphaël Luta <[EMAIL PROTECTED]> wrote:

 

You'll be better off copying the Action class or whatever class you 
customize and register your modified class in the Registry
in A MyCustomizeSetPortlet and update the properties file to use this
one instead of the original one.
This way your changes won't be messed if you upgrade to a new version
of 
jetspeed.
   

I subclassed the MultiColumnControllerAction and overrode the relevant
methods.  I changed the value in controllers.xreg--is that the registry
you're talking about (I also looked in registry.xml and didn't see
anything that looked relevant)?  

 

registry.xml is something you should not be concerned about unless you 
need to extend the
registry schema (deep customization).
Instead of modifying the entry in conrollers.xreg, I would probably have 
cloned it into a local-controllers.xreg
and renamed the controller names somewhat differently (ie MyTwoColumns 
instead of TwoColumns).
Then change the default controller used by Jetspeed in my.properties:

services.PortalToolkit.default.controller=MyTwoColumns
and update the existing PSML files with explicit controllers to MyTwoColumns instead
of TwoColumns.
That way, you preserve all your environment even when you update the 
controllers.xreg next time you upgrade
Jetspeed.

Unfortunately, I had to put my subclass in the same package as
MultiColumnControllerAction; it wasn't found otherwise.  Jetspeed
seemed to ignore the modules.packages property I added to
TurbineResources.properties.
 

It should work, otherwise this is a major bug that needs to be fixed !
Right now, here's the process I go through to add a portlet to a pane.
1. Click on the customize button of a pane.
2. Click on the 'Add Portlet' button.
3. Choose a portlet or two.
4. Click 'Apply.'
5. Click 'Save and Apply.'
I'd like to turn that into this process:
1. Click on the 'add content' button of a pane.
2. Choose a portlet or two.
3. Click 'Save and Apply.'
I tried fiddling with the url I'm sent to after clicking the add button
and going there directly after logging in, but I seem to have to go
through the intermediate step (when I try to go directly, I'm just
returned to the home page).  Perhaps the information that the add
action needs is not present.
 

Here's an example that works for me (but you can try it on any jetspeed 
install):

1. Login on the sample jetspeed site:  http://www.bluesunrise.com/jetspeed/
2. Once logged in, type the following URL:
http://www.bluesunrise.com/jetspeed/portal/template/Customize/mode/add?action=controls.Customize
Note:  this screen will not return directly into the "main" page unless 
you modify the range of buttons,
ie you need to copy the "Save and Apply" button and logic from the main 
layout customization screen.

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


FW: Jetspeed 2 and maven jetspeed plugin

2004-10-21 Thread Randy Watler
Ludovic,

Search the archives for a discussion about the J2 plugin.

In general, the J2 approach is different. Unless you need to extend J2
itself, you should be able to simply deploy JSR-168 portlet webapps
directly into the J2 install. See the Wiki.

PSML, decorator, and template deployers are not in place yet. For these,
we simply copy directories up into /jetspeed/WEB-INF/pages,
/jetspeed/WEB-INF/decorators, and
/jetspeed/WEB-INF/templates, respectively.

Occationally, a web container restart is required, but most of the time
J2 picks up the changes automatically!

HTH,

Randy 

-Original Message-
From: SMADJA Ludovic
To: '[EMAIL PROTECTED]'
Sent: 10/21/04 1:34 AM
Subject: Jetspeed 2 and maven jetspeed plugin

Hello, 
 
I'v tried to use jetspeed 2 to create my portal.
 
The download from the CVS and the compilation is correct.
 
But how can I use the maven jetspeed plugin to create my portal like
with
jetspeed1 ?


regards, 

Ludovic SMADJA
groupe cegetel n n
Direction des Services Clients 
Industrialisation & Méthodes Techniques
Tour Cèdre - 7 allée de l'Arche - 92667 Courbevoie Cedex
Bureau 433 - Fax : +33 (0) 171 773 009 - Tel : +33 (0) 171 773 731 

 


org.apache.xml.utils.WrappedRuntimeException

2004-10-21 Thread Stefano Bianchi
Dear ALL,
I deployed my website on a laptop for a demo, but now I get this error e.g.
for the Administrative Portlets portlet:

problem in SAX transform: org.apache.xml.utils.WrappedRuntimeException: The
output format must have a '{http://xml.apache.org/xalan}content-handler'
property!

The same happens for other RSS portlet.
Should I replace some jar?

Any hint?
Thank you
Stefano


Ing. Stefano Bianchi
Softeco Sismat S.p.A.
Via De Marini, 1 - WTC Tower
16149 Genoa (ITALY)
e-mail: [EMAIL PROTECTED]
tel: +39 010 60.26.368
fax: +39 010 60.26.350



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



Re: org.apache.xml.utils.WrappedRuntimeException

2004-10-21 Thread Stefano Bianchi
Dear ALL,
I took a look at previous mails and I got the help I needed (at least so
far...)

*

From: "Jason Jones" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 22, 2004 12:45 AM
Subject: RE: problem in SAX transform:
org.apache.xml.utils.WrappedRuntimeException

> Try just deleting these jars from the WEB-INF/lib directory (and the
common
> directory) all together.  I ran into similar problems and this seems to
> solve them.

By common directory, do you mean tomcat/common/endorsed?

In my jetspeed dist I have:

jetspeed/lib
many jars including
- xalan-2.3.1.jar
- xml-apis.jar

jetspeed/webapp/WEB-INF/lib/
- hsqldb.jar

In tomcat:

tomcat/common/endorsed/
- xercesImpl.jar
- xmlParserApis.jar

I get rid of the SAX parser problem by moving xalan-2.3.1.jar and
xml-apis.jar from jetspeed/lib to tomcat/common/endorsed/. Is there another
(maybe better) way?

*

I simply COPIED xalan-2.3.1.jar and xml-apis.jar in [TOMCAT]/common/endorsed
from jetspeed/lib and it works now perfectly.

Thank you 4 your attention guys!
Bye
Stefano





- Original Message - 
From: "Stefano Bianchi" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 21, 2004 2:05 PM
Subject: org.apache.xml.utils.WrappedRuntimeException


> Dear ALL,
> I deployed my website on a laptop for a demo, but now I get this error
e.g.
> for the Administrative Portlets portlet:
>
> problem in SAX transform: org.apache.xml.utils.WrappedRuntimeException:
The
> output format must have a '{http://xml.apache.org/xalan}content-handler'
> property!
>
> The same happens for other RSS portlet.
> Should I replace some jar?
>
> Any hint?
> Thank you
> Stefano
>
>
> Ing. Stefano Bianchi
> Softeco Sismat S.p.A.
> Via De Marini, 1 - WTC Tower
> 16149 Genoa (ITALY)
> e-mail: [EMAIL PROTECTED]
> tel: +39 010 60.26.368
> fax: +39 010 60.26.350
>
>
>
> -
> 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]



Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Doug Schnelzer
I have Jetspeed 2 built and running using the following environment:

 

Tomcat 5.0.28

MySQL 4.0.17

 

I'm trying to deploy my first portlet using the instructions at
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here is
my output:

 

INFO: Loading portlet application from web archive
C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war

 INFO: Preparing to (re) deploy portlet app "DougsApp"

 INFO: Deploying portlet applicaion WAR MyFirstPortlet.war

 INFO: Portlet application deployment target directory is
C:\apache\tomcat\webapps\jetspeed/..//DougsApp

Writing out infused web.xml for DougsApp

 INFO: Did not load extended metadata as it most likely does not exist.
java.io.FileNotFoundException: Unable to locate file or path
C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml

 INFO: Loading web.xml into memory

 INFO: Saving the portlet.xml in the registry...

 INFO: Committing registry changes...

 INFO: FileSystem deployment done.

Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
install

INFO: Installing web application at context path /DougsApp from URL
file:/C:/apache/tomcat/webapps/DougsApp/

 INFO: Catalina deployment response: OK - Deployed application at context
path /DougsApp

 

Do I need to package my portlet with a jetspeed-portlet.xml deployment
descriptor?

 

When I view the Jetspeed main page, I get the following error below in the
new portlet window.

 

Thanks for the help.  I'm looking forward to getting more involved in the
Jetspeed2.

 

- Doug

 

org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
generating new PortletEntity:
org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExcept
ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst

at
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPortl
etWindow(PortletWindowAccessorImpl.java:100)

at
org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPowerT
ool.java:279)

at
org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(JetspeedP
owerTool.java:896)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at
org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExe
cutor.java:111)

at
org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(Ub
erspectImpl.java:302)

at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.
java:157)

at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
va:175)

at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java
:327)

at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.ja
va:51)

at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirecti
ve.java:95)

at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:23
0)

at org.apache.velocity.Template.merge(Template.java:256)

at
org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.mergeTemplate(Jetsp
eedVelocityViewServlet.java:116)

at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Velocit
yViewServlet.java:455)

at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityVie
wServlet.java:411)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:704)

at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:590)

at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:510)

at
org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedReq
uestDispatcher.java:65)

at
org.apache.jetspeed.velocity.JetspeedPowerTool.decorateAndIncludePortlet(Jet
speedPowerTool.java:774)

at
org.apache.jetspeed.velocity.JetspeedPowerTool.decorateAndInclude(JetspeedPo
werTool.java:661)

at sun.reflect.NativeMeth

Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Scott T. Weaver
Doug Schnelzer wrote:
I have Jetspeed 2 built and running using the following environment:

Tomcat 5.0.28
MySQL 4.0.17

I'm trying to deploy my first portlet using the instructions at
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here is
my output:

INFO: Loading portlet application from web archive
C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war
INFO: Preparing to (re) deploy portlet app "DougsApp"
INFO: Deploying portlet applicaion WAR MyFirstPortlet.war
INFO: Portlet application deployment target directory is
C:\apache\tomcat\webapps\jetspeed/..//DougsApp
Writing out infused web.xml for DougsApp
INFO: Did not load extended metadata as it most likely does not exist.
java.io.FileNotFoundException: Unable to locate file or path
C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml
INFO: Loading web.xml into memory
INFO: Saving the portlet.xml in the registry...
INFO: Committing registry changes...
INFO: FileSystem deployment done.
Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /DougsApp from URL
file:/C:/apache/tomcat/webapps/DougsApp/
INFO: Catalina deployment response: OK - Deployed application at context
path /DougsApp

Do I need to package my portlet with a jetspeed-portlet.xml deployment
descriptor?
 

nope.  Only if you want to use extend the meta-data or access Jetspeed 
Portlet Services directly.


When I view the Jetspeed main page, I get the following error below in the
new portlet window.
 

Could you please post your portlet.xml?

Thanks for the help.  I'm looking forward to getting more involved in the
Jetspeed2.

- Doug

org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
generating new PortletEntity:
org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExcept
ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst
   at
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPortl
etWindow(PortletWindowAccessorImpl.java:100)
   at
org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPowerT
ool.java:279)
   at
org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(JetspeedP
owerTool.java:896)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExe
cutor.java:111)
   at
org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(Ub
erspectImpl.java:302)
   at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.
java:157)
   at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
va:175)
   at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java
:327)
   at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.ja
va:51)
   at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirecti
ve.java:95)
   at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:23
0)
   at org.apache.velocity.Template.merge(Template.java:256)
   at
org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.mergeTemplate(Jetsp
eedVelocityViewServlet.java:116)
   at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Velocit
yViewServlet.java:455)
   at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityVie
wServlet.java:411)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:704)
   at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:590)
   at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:510)
   at
org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedReq
uestDispatcher.java:65)
   at
org.apache.jetspeed.velocity.JetspeedPowerTool.decorateAndIncludePortlet(Jet
speedPowerTool.java:774)
   at
org.apache.jetspeed.velocity.JetspeedPowerTool.decorateAndInclude(Jet

RE: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Doug Schnelzer
Here is my portlet.xml deployment descriptor.




Doug's First Portlet
Displaying Doug's First Portlet
com.aemcorp.firstportlet.FirstPortlet
-1

text/html
EDIT
VIEW
HELP





Thanks for the help
-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:18 AM
To: Jetspeed Users List
Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Doug Schnelzer wrote:

>I have Jetspeed 2 built and running using the following environment:
>
> 
>
>Tomcat 5.0.28
>
>MySQL 4.0.17
>
> 
>
>I'm trying to deploy my first portlet using the instructions at
>http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
>deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here is
>my output:
>
> 
>
>INFO: Loading portlet application from web archive
>C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war
>
> INFO: Preparing to (re) deploy portlet app "DougsApp"
>
> INFO: Deploying portlet applicaion WAR MyFirstPortlet.war
>
> INFO: Portlet application deployment target directory is
>C:\apache\tomcat\webapps\jetspeed/..//DougsApp
>
>Writing out infused web.xml for DougsApp
>
> INFO: Did not load extended metadata as it most likely does not exist.
>java.io.FileNotFoundException: Unable to locate file or path
>C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml
>
> INFO: Loading web.xml into memory
>
> INFO: Saving the portlet.xml in the registry...
>
> INFO: Committing registry changes...
>
> INFO: FileSystem deployment done.
>
>Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
>install
>
>INFO: Installing web application at context path /DougsApp from URL
>file:/C:/apache/tomcat/webapps/DougsApp/
>
> INFO: Catalina deployment response: OK - Deployed application at context
>path /DougsApp
>
> 
>
>Do I need to package my portlet with a jetspeed-portlet.xml deployment
>descriptor?
>  
>
nope.  Only if you want to use extend the meta-data or access Jetspeed 
Portlet Services directly.

> 
>
>When I view the Jetspeed main page, I get the following error below in the
>new portlet window.
>  
>
Could you please post your portlet.xml?

> 
>
>Thanks for the help.  I'm looking forward to getting more involved in the
>Jetspeed2.
>
> 
>
>- Doug
>
> 
>
>org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
>org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
>generating new PortletEntity:
>org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExcep
t
>ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst
>
>at
>org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPort
l
>etWindow(PortletWindowAccessorImpl.java:100)
>
>at
>org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPower
T
>ool.java:279)
>
>at
>org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(Jetspeed
P
>owerTool.java:896)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
>)
>
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
>.java:25)
>
>at java.lang.reflect.Method.invoke(Method.java:324)
>
>at
>org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyEx
e
>cutor.java:111)
>
>at
>org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(U
b
>erspectImpl.java:302)
>
>at
>org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier
.
>java:157)
>
>at
>org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.j
a
>va:175)
>
>at
>org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.jav
a
>:327)
>
>at
>org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.j
a
>va:51)
>
>at
>org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirect
i
>ve.java:95)
>
>at
>org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:2
3
>0)
>
>at org.apache.velocity.Template.merge(Template.java:256)
>
>at
>org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.mergeTemplate(Jets
p
>eedVelocityViewServlet.java:116)
>
>at
>org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Veloci
t
>yViewServlet.java:455)
>
>at
>org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityVi
e
>wServlet.java:411)
>
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>at
>org.apache.catalina.core.ApplicationFilterCha

RE: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Doug Schnelzer
I updated my portlet.xml deployment descriptor to include the 
element.  I validated the xml document and saw that it is required.  I'm
still getting the same error in the portlet window.

Here is my updated portlet.xml.

Thanks, Doug


http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
id="DougsApp" version="1.0">

Doug's First Portlet
Displaying Doug's First Portlet
com.aemcorp.firstportlet.FirstPortlet
-1

text/html
EDIT
VIEW
HELP


Doug's Portlet
Doug's Short Title




-Original Message-
From: Doug Schnelzer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:26 AM
To: 'Jetspeed Users List'
Subject: RE: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Here is my portlet.xml deployment descriptor.




Doug's First Portlet
Displaying Doug's First Portlet
com.aemcorp.firstportlet.FirstPortlet
-1

text/html
EDIT
VIEW
HELP





Thanks for the help
-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:18 AM
To: Jetspeed Users List
Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Doug Schnelzer wrote:

>I have Jetspeed 2 built and running using the following environment:
>
> 
>
>Tomcat 5.0.28
>
>MySQL 4.0.17
>
> 
>
>I'm trying to deploy my first portlet using the instructions at
>http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
>deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here is
>my output:
>
> 
>
>INFO: Loading portlet application from web archive
>C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war
>
> INFO: Preparing to (re) deploy portlet app "DougsApp"
>
> INFO: Deploying portlet applicaion WAR MyFirstPortlet.war
>
> INFO: Portlet application deployment target directory is
>C:\apache\tomcat\webapps\jetspeed/..//DougsApp
>
>Writing out infused web.xml for DougsApp
>
> INFO: Did not load extended metadata as it most likely does not exist.
>java.io.FileNotFoundException: Unable to locate file or path
>C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml
>
> INFO: Loading web.xml into memory
>
> INFO: Saving the portlet.xml in the registry...
>
> INFO: Committing registry changes...
>
> INFO: FileSystem deployment done.
>
>Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
>install
>
>INFO: Installing web application at context path /DougsApp from URL
>file:/C:/apache/tomcat/webapps/DougsApp/
>
> INFO: Catalina deployment response: OK - Deployed application at context
>path /DougsApp
>
> 
>
>Do I need to package my portlet with a jetspeed-portlet.xml deployment
>descriptor?
>  
>
nope.  Only if you want to use extend the meta-data or access Jetspeed 
Portlet Services directly.

> 
>
>When I view the Jetspeed main page, I get the following error below in the
>new portlet window.
>  
>
Could you please post your portlet.xml?

> 
>
>Thanks for the help.  I'm looking forward to getting more involved in the
>Jetspeed2.
>
> 
>
>- Doug
>
> 
>
>org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
>org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
>generating new PortletEntity:
>org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExcep
t
>ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst
>
>at
>org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPort
l
>etWindow(PortletWindowAccessorImpl.java:100)
>
>at
>org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPower
T
>ool.java:279)
>
>at
>org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(Jetspeed
P
>owerTool.java:896)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
>)
>
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
>.java:25)
>
>at java.lang.reflect.Method.invoke(Method.java:324)
>
>at
>org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyEx
e
>cutor.java:111)
>
>at
>org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(U
b
>erspectImpl.java:302)
>
>at
>org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier
.
>java:157)
>
>at
>org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.j
a
>va:175)
>
>at
>org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.jav
a
>:327)
>
>at
>org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.j
a
>va:51)
>
>at
>org.apach

Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Scott T. Weaver
Doug,
I see your problem right off.  You need to change the the name of your 
portlet to:

DougsFirst
Redploy and it should work.
Look at point 4 on http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  It specifies 
that the value after the "::" needs to match the value in  not the 
portlet-id attribute.
HTH,
Doug Schnelzer wrote:
Here is my portlet.xml deployment descriptor.


   
   Doug's First Portlet
   Displaying Doug's First Portlet
   com.aemcorp.firstportlet.FirstPortlet
   -1
   
   text/html
   EDIT
   VIEW
   HELP
   
   

Thanks for the help
-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:18 AM
To: Jetspeed Users List
Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Doug Schnelzer wrote:
 

I have Jetspeed 2 built and running using the following environment:

Tomcat 5.0.28
MySQL 4.0.17

I'm trying to deploy my first portlet using the instructions at
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here is
my output:

INFO: Loading portlet application from web archive
C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war
INFO: Preparing to (re) deploy portlet app "DougsApp"
INFO: Deploying portlet applicaion WAR MyFirstPortlet.war
INFO: Portlet application deployment target directory is
C:\apache\tomcat\webapps\jetspeed/..//DougsApp
Writing out infused web.xml for DougsApp
INFO: Did not load extended metadata as it most likely does not exist.
java.io.FileNotFoundException: Unable to locate file or path
C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml
INFO: Loading web.xml into memory
INFO: Saving the portlet.xml in the registry...
INFO: Committing registry changes...
INFO: FileSystem deployment done.
Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /DougsApp from URL
file:/C:/apache/tomcat/webapps/DougsApp/
INFO: Catalina deployment response: OK - Deployed application at context
path /DougsApp

Do I need to package my portlet with a jetspeed-portlet.xml deployment
descriptor?
   

nope.  Only if you want to use extend the meta-data or access Jetspeed 
Portlet Services directly.

 

When I view the Jetspeed main page, I get the following error below in the
new portlet window.
   

Could you please post your portlet.xml?
 

Thanks for the help.  I'm looking forward to getting more involved in the
Jetspeed2.

- Doug

org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
generating new PortletEntity:
org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExcep
   

t
 

ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst
  at
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPort
   

l
 

etWindow(PortletWindowAccessorImpl.java:100)
  at
org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPower
   

T
 

ool.java:279)
  at
org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(Jetspeed
   

P
 

owerTool.java:896)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
   

9
 

)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
   

l
 

.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyEx
   

e
 

cutor.java:111)
  at
org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(U
   

b
 

erspectImpl.java:302)
  at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier
   

.
 

java:157)
  at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.j
   

a
 

va:175)
  at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.jav
   

a
 

:327)
  at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.j
   

a
 

va:51)
  at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirect
   

i
 

ve.java:95)
  at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:2
   

3
 

0)
  at org.apache.velocity.Template.merge(Template.java:256)
  at
org.apache.jetspeed.velocity.JetspeedVelocityViewServlet.mergeTemplate(Jets
   

p
 

eedVelocityViewServlet.java:116)
  at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Veloci
   

t
 

yViewServlet.java:455)
  at
org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityVi
   

e
 

wServlet.java:4

RE: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Doug Schnelzer
Scott,

Thanks very much for you help.  I'm off and exploring portlets according to
168.  My next step is to plug in an existing Struts app we developed.  Looks
like you have already tackled integrating a Struts app.

We are planning on deploying a system in April 2005.  Do you think it is a
good idea for us to be working with Jetspeed2 now instead of Jetspeed1 +
Fusion?  With the significant re-architecture you are doing in Jetspeed2 it
seemed better to start with Jetspeed2 if we can.

Thanks, Doug
-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:52 AM
To: Jetspeed Users List
Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Doug,

I see your problem right off.  You need to change the the name of your 
portlet to:

DougsFirst

Redploy and it should work.

Look at point 4 on
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  It
specifies that the value after the "::" needs to match the value in
 not the portlet-id attribute.


HTH,

Doug Schnelzer wrote:

>Here is my portlet.xml deployment descriptor.
>
>
>
>
>Doug's First Portlet
>Displaying Doug's First Portlet
>
com.aemcorp.firstportlet.FirstPortlet
>-1
>
>text/html
>EDIT
>VIEW
>HELP
>
>
>
>
>
>Thanks for the help
>-Original Message-
>From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, October 21, 2004 11:18 AM
>To: Jetspeed Users List
>Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?
>
>Doug Schnelzer wrote:
>
>  
>
>>I have Jetspeed 2 built and running using the following environment:
>>
>>
>>
>>Tomcat 5.0.28
>>
>>MySQL 4.0.17
>>
>>
>>
>>I'm trying to deploy my first portlet using the instructions at
>>http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
>>deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here
is
>>my output:
>>
>>
>>
>>INFO: Loading portlet application from web archive
>>C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war
>>
>>INFO: Preparing to (re) deploy portlet app "DougsApp"
>>
>>INFO: Deploying portlet applicaion WAR MyFirstPortlet.war
>>
>>INFO: Portlet application deployment target directory is
>>C:\apache\tomcat\webapps\jetspeed/..//DougsApp
>>
>>Writing out infused web.xml for DougsApp
>>
>>INFO: Did not load extended metadata as it most likely does not exist.
>>java.io.FileNotFoundException: Unable to locate file or path
>>C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml
>>
>>INFO: Loading web.xml into memory
>>
>>INFO: Saving the portlet.xml in the registry...
>>
>>INFO: Committing registry changes...
>>
>>INFO: FileSystem deployment done.
>>
>>Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
>>install
>>
>>INFO: Installing web application at context path /DougsApp from URL
>>file:/C:/apache/tomcat/webapps/DougsApp/
>>
>>INFO: Catalina deployment response: OK - Deployed application at context
>>path /DougsApp
>>
>>
>>
>>Do I need to package my portlet with a jetspeed-portlet.xml deployment
>>descriptor?
>> 
>>
>>
>>
>nope.  Only if you want to use extend the meta-data or access Jetspeed 
>Portlet Services directly.
>
>  
>
>>When I view the Jetspeed main page, I get the following error below in the
>>new portlet window.
>> 
>>
>>
>>
>Could you please post your portlet.xml?
>
>  
>
>>Thanks for the help.  I'm looking forward to getting more involved in the
>>Jetspeed2.
>>
>>
>>
>>- Doug
>>
>>
>>
>>org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
>>org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
>>generating new PortletEntity:
>>org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExce
p
>>
>>
>t
>  
>
>>ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst
>>
>>   at
>>org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPor
t
>>
>>
>l
>  
>
>>etWindow(PortletWindowAccessorImpl.java:100)
>>
>>   at
>>org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPowe
r
>>
>>
>T
>  
>
>>ool.java:279)
>>
>>   at
>>org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(Jetspee
d
>>
>>
>P
>  
>
>>owerTool.java:896)
>>
>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>   at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
3
>>
>>
>9
>  
>
>>)
>>
>>   at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
p
>>
>>
>l
>  
>
>>.java:25)
>>
>>   at java.lang.reflect.Method.invoke(Method.java:324)
>>
>>   at
>>org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyE
x
>>
>>
>e
>  
>
>>cutor.java:111)
>>
>>   at
>>org.apache.velocity.util.introspection.UberspectImpl$VelGetterImp

Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

2004-10-21 Thread Scott T. Weaver
There is alrady one person on the list, Randy Walter, who already has a 
J2 based portal in its testing phases.  I have a J2-based portal project 
scheduled to go live the second week of November.   So IMO I would go 
with J2.

Doug Schnelzer wrote:
Scott,
Thanks very much for you help.  I'm off and exploring portlets according to
168.  My next step is to plug in an existing Struts app we developed.  Looks
like you have already tackled integrating a Struts app.
We are planning on deploying a system in April 2005.  Do you think it is a
good idea for us to be working with Jetspeed2 now instead of Jetspeed1 +
Fusion?  With the significant re-architecture you are doing in Jetspeed2 it
seemed better to start with Jetspeed2 if we can.
Thanks, Doug
-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:52 AM
To: Jetspeed Users List
Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Doug,
I see your problem right off.  You need to change the the name of your 
portlet to:

DougsFirst
Redploy and it should work.
Look at point 4 on
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  It
specifies that the value after the "::" needs to match the value in
 not the portlet-id attribute.
HTH,
Doug Schnelzer wrote:
 

Here is my portlet.xml deployment descriptor.


  
  Doug's First Portlet
  Displaying Doug's First Portlet
   

com.aemcorp.firstportlet.FirstPortlet
 

  -1
  
  text/html
  EDIT
  VIEW
  HELP
  
  

Thanks for the help
-Original Message-
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 11:18 AM
To: Jetspeed Users List
Subject: Re: Loading a new portlet in Jetspeed 2 -- jetspeed-portlet.xml?

Doug Schnelzer wrote:

   

I have Jetspeed 2 built and running using the following environment:

Tomcat 5.0.28
MySQL 4.0.17

I'm trying to deploy my first portlet using the instructions at
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.  When I
deploy the portlet, Jetspeed goes through the hot deploy sequence.  Here
 

is
 

my output:

INFO: Loading portlet application from web archive
C:\apache\tomcat\webapps\jetspeed\WEB-INF\deploy\MyFirstPortlet.war
INFO: Preparing to (re) deploy portlet app "DougsApp"
INFO: Deploying portlet applicaion WAR MyFirstPortlet.war
INFO: Portlet application deployment target directory is
C:\apache\tomcat\webapps\jetspeed/..//DougsApp
Writing out infused web.xml for DougsApp
INFO: Did not load extended metadata as it most likely does not exist.
java.io.FileNotFoundException: Unable to locate file or path
C:\apache\tomcat\webapps\jetspeed\..\DougsApp\WEB-INF\jetspeed-portlet.xml
INFO: Loading web.xml into memory
INFO: Saving the portlet.xml in the registry...
INFO: Committing registry changes...
INFO: FileSystem deployment done.
Oct 21, 2004 10:35:29 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /DougsApp from URL
file:/C:/apache/tomcat/webapps/DougsApp/
INFO: Catalina deployment response: OK - Deployed application at context
path /DougsApp

Do I need to package my portlet with a jetspeed-portlet.xml deployment
descriptor?
  

 

nope.  Only if you want to use extend the meta-data or access Jetspeed 
Portlet Services directly.


   

When I view the Jetspeed main page, I get the following error below in the
new portlet window.
  

 

Could you please post your portlet.xml?

   

Thanks for the help.  I'm looking forward to getting more involved in the
Jetspeed2.

- Doug

org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
org.apache.jetspeed.container.window.FailedToCreateWindowException: Error
generating new PortletEntity:
org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedExce
 

p
 

  

 

t
   

ion: Failed to retrieve Portlet Definition for DougsApp::DougsFirst
 at
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.getPor
 

t
 

  

 

l
   

etWindow(PortletWindowAccessorImpl.java:100)
 at
org.apache.jetspeed.velocity.JetspeedPowerTool.getWindowState(JetspeedPowe
 

r
 

  

 

T
   

ool.java:279)
 at
org.apache.jetspeed.velocity.JetspeedPowerTool.getDecoratorActions(Jetspee
 

d
 

  

 

P
   

owerTool.java:896)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 

3
 

  

 

9
   

)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
 

p
 

  

 

l
   

.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyE
 

x
 

  

 

e
   

cutor.java:111)
 at
org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.i

How to correctly Java Script with Jetspeed ?

2004-10-21 Thread Hampton, Thomas
I'm having problems using Java Script in portlets because I don't know
the correct place to put the function definitions.  Java Script
functions are supposed to be defined in the  section to make sure
that the scripts are loaded before they can possibly be called, but the
HTML for portlets don't have  tags.

I'm using Jetspeed 1, is this handled differently in Jetspeed 2 ?

I've scanned the discussion forums and found the following suggestions.

1) JavaScript does not need to be in the  tag just put it in the
body, that it was just convention that it's put in the  tag.
 
This is kind of true, the Java Script documentation says the following: 

Generally, you should define the functions for a page in the
HEAD portion of a document. That way, all functions 
are defined before any content is displayed. Otherwise, the user
might perform an action while the page is still loading 
that triggers an event handler and calls an undefined function,
leading to an error. 

The question is then, what else, besides putting the script definitions
in the HEAD tag, can you do to guarantee that the functions are defined
before content is displayed.  Different browsers process the content
differently.  I have not been having problems with IE but in Mozilla, if
you are quick, it's possible to click a link that triggers some script
that has not yet been processed.

2) Override the JetSpeed template file and put all the JavaScript into
the HEAD tag there.

This would mean that all my script would have to be in the portal layout
pages because that's where the HEAD tags are: 

templates\jsp\layouts\html\content.jsp
templates\jsp\layouts\html\default.jsp
templates\jsp\layouts\html\previous.jsp

And that it would be loaded all the time whether it's needed or not for
any page in the portal.  This is pretty non-elegant solution, especially
if you have a lot of script in your portal, but it would work.

3) It was suggested that other portals have a way to add content
dynamically (maybe I misunderstood this one) into the HEAD tag.


Here's a questions/suggestion from me :

Is it possible in Jetspeed to include the HEAD tags in the portlet's
HTML and have the portlet code (HTML portlet) merge the contents of the
HEAD tags from all portlets on a page together before sending the HTML
to the browser ?  Seems like this would solve the problem.



I would like to hear what everyone else thinks, as I've not yet
discovered a workable solution that I'm happy with.

Thanks,
Tom






RE: How to correctly Java Script with Jetspeed ?

2004-10-21 Thread Arthur D'Alessandro III
We use them in each portlet, and friendly up the javascript names (make them
unique) using the Portlet ID, this way you can have common javascript names
you reference in your portlets using the portletid.  We had to muck the
JS_PEID to remove the hyphens, as they didn't work well together. 

-Original Message-
From: Hampton, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 3:07 PM
To: [EMAIL PROTECTED]
Subject: How to correctly Java Script with Jetspeed ?

I'm having problems using Java Script in portlets because I don't know
the correct place to put the function definitions.  Java Script
functions are supposed to be defined in the  section to make sure
that the scripts are loaded before they can possibly be called, but the
HTML for portlets don't have  tags.

I'm using Jetspeed 1, is this handled differently in Jetspeed 2 ?

I've scanned the discussion forums and found the following suggestions.

1) JavaScript does not need to be in the  tag just put it in the
body, that it was just convention that it's put in the  tag.
 
This is kind of true, the Java Script documentation says the following: 

Generally, you should define the functions for a page in the
HEAD portion of a document. That way, all functions 
are defined before any content is displayed. Otherwise, the user
might perform an action while the page is still loading 
that triggers an event handler and calls an undefined function,
leading to an error. 

The question is then, what else, besides putting the script definitions
in the HEAD tag, can you do to guarantee that the functions are defined
before content is displayed.  Different browsers process the content
differently.  I have not been having problems with IE but in Mozilla, if
you are quick, it's possible to click a link that triggers some script
that has not yet been processed.

2) Override the JetSpeed template file and put all the JavaScript into
the HEAD tag there.

This would mean that all my script would have to be in the portal layout
pages because that's where the HEAD tags are: 

templates\jsp\layouts\html\content.jsp
templates\jsp\layouts\html\default.jsp
templates\jsp\layouts\html\previous.jsp

And that it would be loaded all the time whether it's needed or not for
any page in the portal.  This is pretty non-elegant solution, especially
if you have a lot of script in your portal, but it would work.

3) It was suggested that other portals have a way to add content
dynamically (maybe I misunderstood this one) into the HEAD tag.


Here's a questions/suggestion from me :

Is it possible in Jetspeed to include the HEAD tags in the portlet's
HTML and have the portlet code (HTML portlet) merge the contents of the
HEAD tags from all portlets on a page together before sending the HTML
to the browser ?  Seems like this would solve the problem.



I would like to hear what everyone else thinks, as I've not yet
discovered a workable solution that I'm happy with.

Thanks,
Tom






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



RE: How to correctly Java Script with Jetspeed ?

2004-10-21 Thread Dan Moore
Hi,

I edited my GlobalMacros.vm file, (in WEB-INF/templates/vm/) and added
this line to the headScripts macro:



compact.js has all the javascript I need. This macro is automatically
executed in the layout pages (at least with Jetspeed 1.5), so the
functions in compact.js are available to every portlet.  I'm not sure
if the browser caches that file or not.

Dan

--- Arthur D'Alessandro III <[EMAIL PROTECTED]> wrote:

> We use them in each portlet, and friendly up the javascript names
> (make them
> unique) using the Portlet ID, this way you can have common javascript
> names
> you reference in your portlets using the portletid.  We had to muck
> the
> JS_PEID to remove the hyphens, as they didn't work well together. 
> 
> -Original Message-
> From: Hampton, Thomas [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 21, 2004 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: How to correctly Java Script with Jetspeed ?
> 
> I'm having problems using Java Script in portlets because I don't
> know
> the correct place to put the function definitions.  Java Script
> functions are supposed to be defined in the  section to make
> sure
> that the scripts are loaded before they can possibly be called, but
> the
> HTML for portlets don't have  tags.
> 
> I'm using Jetspeed 1, is this handled differently in Jetspeed 2 ?
> 
> I've scanned the discussion forums and found the following
> suggestions.
> 
> 1) JavaScript does not need to be in the  tag just put it in
> the
> body, that it was just convention that it's put in the  tag.
>  
> This is kind of true, the Java Script documentation says the
> following: 
> 
>   Generally, you should define the functions for a page in the
> HEAD portion of a document. That way, all functions 
>   are defined before any content is displayed. Otherwise, the user
> might perform an action while the page is still loading 
>   that triggers an event handler and calls an undefined function,
> leading to an error. 
> 
> The question is then, what else, besides putting the script
> definitions
> in the HEAD tag, can you do to guarantee that the functions are
> defined
> before content is displayed.  Different browsers process the content
> differently.  I have not been having problems with IE but in Mozilla,
> if
> you are quick, it's possible to click a link that triggers some
> script
> that has not yet been processed.
> 
> 2) Override the JetSpeed template file and put all the JavaScript
> into
> the HEAD tag there.
> 
> This would mean that all my script would have to be in the portal
> layout
> pages because that's where the HEAD tags are: 
> 
>   templates\jsp\layouts\html\content.jsp
>   templates\jsp\layouts\html\default.jsp
>   templates\jsp\layouts\html\previous.jsp
> 
> And that it would be loaded all the time whether it's needed or not
> for
> any page in the portal.  This is pretty non-elegant solution,
> especially
> if you have a lot of script in your portal, but it would work.
> 
> 3) It was suggested that other portals have a way to add content
> dynamically (maybe I misunderstood this one) into the HEAD tag.
> 
> 
> Here's a questions/suggestion from me :
> 
> Is it possible in Jetspeed to include the HEAD tags in the portlet's
> HTML and have the portlet code (HTML portlet) merge the contents of
> the
> HEAD tags from all portlets on a page together before sending the
> HTML
> to the browser ?  Seems like this would solve the problem.
> 
> 
> 
> I would like to hear what everyone else thinks, as I've not yet
> discovered a workable solution that I'm happy with.
> 
> Thanks,
> Tom
> 
> 
> 
> 
> 
> 
> -
> 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: customizing the customizer

2004-10-21 Thread Dan Moore

--- Raphaël Luta <[EMAIL PROTECTED]> wrote:

> Dan Moore wrote:
> 
> >Hi Raphael,
> >
> >--- Raphaël Luta <[EMAIL PROTECTED]> wrote:
> >
> >
> >  
> >
> >>You'll be better off copying the Action class or whatever class you
> 
> >>customize and register your modified class in the Registry
> >>in A MyCustomizeSetPortlet and update the properties file to use
> this
> >>one instead of the original one.
> >>This way your changes won't be messed if you upgrade to a new
> version
> >>of 
> >>jetspeed.
> >>
> >>
> >
> >I subclassed the MultiColumnControllerAction and overrode the
> relevant
> >methods.  I changed the value in controllers.xreg--is that the
> registry
> >you're talking about (I also looked in registry.xml and didn't see
> >anything that looked relevant)?  
> >
> >  
> >
> registry.xml is something you should not be concerned about unless
> you 
> need to extend the
> registry schema (deep customization).
> Instead of modifying the entry in conrollers.xreg, I would probably
> have 
> cloned it into a local-controllers.xreg
> and renamed the controller names somewhat differently (ie
> MyTwoColumns 
> instead of TwoColumns).
> Then change the default controller used by Jetspeed in my.properties:
> 
> services.PortalToolkit.default.controller=MyTwoColumns
> 
> and update the existing PSML files with explicit controllers to
> MyTwoColumns instead
> of TwoColumns.
> 
> 
> That way, you preserve all your environment even when you update the 
> controllers.xreg next time you upgrade
> Jetspeed.

Thanks for the advice.

> >Unfortunately, I had to put my subclass in the same package as
> >MultiColumnControllerAction; it wasn't found otherwise.  Jetspeed
> >seemed to ignore the modules.packages property I added to
> >TurbineResources.properties.
> >  
> >
> It should work, otherwise this is a major bug that needs to be fixed
> !

Oops.  I had a portlet that wasn't correctly configured, and I
misdiagnosed the behavior of jetspeed after that.



Thanks,
Dan

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



Re: jetpeed 2 build error

2004-10-21 Thread David Sean Taylor
[EMAIL PROTECTED] wrote:
Hi,
I have juste download the last cvs of Jetspeed2. I have a compilation
error.
this is the trace:
Sorry I fell behind keeping the maven repo up-to-date.
The remote Maven repo has been refreshed.
Please try again and see if that helps...
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Do Roles work ?

2004-10-21 Thread David Sean Taylor
Jonathan Hawkins wrote:
Dan,
Thanks for the reply. The Close box I am trying to disable is on every
portlet's title bar, first icon I think.
If you simply need to get rid of it on a global level,
services.JetspeedSecurity.permission.default.anonymous=view
services.JetspeedSecurity.permission.default.loggedin=view,customize,maximize,minimize,print,info

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


RE: Do Roles work ?

2004-10-21 Thread Jonathan Hawkins
Thanks for the reply, that will certainly do in the short term. The idea was
to have the portlet close button available dependant upon the user's role.

Thanks

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: 22 October 2004 01:23
To: Jetspeed Users List
Subject: Re: Do Roles work ?

Jonathan Hawkins wrote:

> Dan,
> 
> Thanks for the reply. The Close box I am trying to disable is on every
> portlet's title bar, first icon I think.
> 

If you simply need to get rid of it on a global level,

services.JetspeedSecurity.permission.default.anonymous=view
services.JetspeedSecurity.permission.default.loggedin=view,customize,maximiz
e,minimize,print,info



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 05/10/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 05/10/2004
 


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



Réf. : Re: jetpeed 2 build error

2004-10-21 Thread jean-charles . jabouille

I have take the original package of spingframework and it work...




   

  David Sean   

  Taylor   Pour :   Jetspeed Users List <[EMAIL 
PROTECTED]> 
  <[EMAIL PROTECTED] cc :  
  
  se.com>  Objet :  Re: jetpeed 2 build error  

   

  22/10/2004 01:48 

  Veuillez 

  répondre à   

  "Jetspeed Users  

  List"

   

   




[EMAIL PROTECTED] wrote:

> Hi,
>
> I have juste download the last cvs of Jetspeed2. I have a compilation
> error.
>
> this is the trace:
>
Sorry I fell behind keeping the maven repo up-to-date.
The remote Maven repo has been refreshed.
Please try again and see if that helps...

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773 4646
[mobile] +01 707 529 9194

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