[J1.5] Repeatedly: How must work modul EditAccount

2005-01-31 Thread Vladimir Lisin
Hi all

Sorry but I didn't received the answer on my question about the work the 
modul Edit Acount and have to repeat it :-
The template  top_loggedIn.jsp have the link ""
wich it  was translated in 
http://10.5.6.135:8090/jportal/portal/template/EditAccount/action/PrepareScreenEditAccount";
 
After clicking on this link I have the next errors:
---
Error encountered processing a template: 
/layouts/html/default.jsporg.apache.jasper.JasperException: 
/WEB-INF/templates/jsp/screens/html/ErrorNoScreenData.inc(16,0) Page 
directive: can't have multiple occurrences of contentType at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
 

at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428) 

...

The menu for Admin have line "User Browser" where I can Edit the datas of 
users by link
" http://10.5.6.135:8090/jportal/portal/media-type/html/language/ru/user/Lisin/page/default.psml/js_panename/UserForm/entityid/turbine?mode=update";>Edit"

This link works right.
How must be written the link in top_loggedIn.jsp or how User can change 
the his datas ?

Very thanks in advance, Vladimir


Re: J2 Warning: HttpServletRequest.getContextPath() now returns the contextPath of the Portlet, not the Portal

2005-01-31 Thread Ate Douma

David Sean Taylor wrote:
Ate Douma wrote:
I've just fixed issue: http://issues.apache.org/jira/browse/JS2-203
Please read it if you are currently are (mis)using the
Portal contextPath from within a Servlet/JSP/Velocity dispatched by a 
Portlet.

Regards, Ate

after a cvs update, when I login Im now getting
--
HTTP Status 404 - /security/login/proxy
type Status report
message /security/login/proxy
description The requested resource (/security/login/proxy) is not 
available.
Apache Tomcat/5.0.30
--

Shouldn't we now be logging on to /login/proxy ?
-
No, to /jetspeed/login/proxy.
I can't reproduce your error. Please check that you indeed have updated
the change-password.jsp and login.jsp from the security application.
In these the required url is now generated with an explicit reference
to the portal (jetspeed) context using the following construction:


This should lead to a url prefixed with the portal (/jetspeed) context.
Ate
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Invalid XML character

2005-01-31 Thread Hisashi Yamaguchi
Hi
The problem has been resolved.
All I needed to do is juts saving file
as the same encoding that is defined in XML.
I really appreciate your help.
Thanks,
--Hisashi.Yamaguchi
- Original Message - 
From: "Nan Anonymous" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" 
Sent: Friday, January 28, 2005 6:30 PM
Subject: Re: Invalid XML character

I have not looked into the internal of JS but usually the XML parser
already takes care of encoding. One possible causes if that your
document's content is actually in UTF-8 even though the XML encoding
said it is Shift_JIS
You should first verified that you are saving the file in the same
encoding as proclaimed by the XML declaration.
Hope this help.
On Fri, 28 Jan 2005 18:08:11 +0900, Hisashi Yamaguchi
<[EMAIL PROTECTED]> wrote:
Hi
I'm trying to run a XSLT portlet.
What I really want to do is
to exchange XML data that contains Japanese character.
Following is exactly the same data that I'm trying.


 
   åå
   èå
   Midfielder-Forward
   159
   14
   USA
 
 
   Zbigniew
   Boniek
   Forward
   80
   24
   Poland
 

Every time I try, the portlet shows broken Character,
and Tomcat log says below.
An invalid XML character (Unicode: 0x1b) was found in the element content 
of
the document.

As long as I guess, the encording that
Jetspeed expect to get must be Unicode,
so it doesn't work corectly at any time.
Any comments would be really appreciated.
Thanks,
--Hisashi.Yamaguchi
-
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]


Re: Cannot deploy portlets

2005-01-31 Thread Marcel Dullaart
Hi,

I found something similar when deploying J2 on JB0ss 4.0.1 (see my
blog: http://marcels-javanotes.blogspot.com)
The wiki tells you to set the JBossManager as ApplicationServerManager
in the jetspeed-spring.xml, but that class is not implemented yet., It
only defines stub implementations.
I think that this causes the deployment of the portlets to fail.

Marcel

On Tue, 25 Jan 2005 23:40:15 +0800, Lim Wei Min,Amos
<[EMAIL PROTECTED]> wrote:
> Hi there,
> following the wiki 
> http://wiki.apache.org/portals/Jetspeed2/JBossHowToDetailed , i managed to 
> run Jetspeed 2 for jboss-3.2.5. i verified this by typing 
> http://localhost:8080/jetspeed and then seeing an empty page. however, when i 
> pasted the 9 .war files :jetspeed-layouts.war ,struts-demo.war ,php.war 
> ,perl.war ,security.war ,demo.war ,pam.war ,jsf-demo.war ,rss.war into  
> JBoss' server/all/deploy/jetspeed.war/WEB-INF/deploy,  i noticed i cannot 
> deploy of any these portlets. checking jetspeed.log, i kept noticing this 
> exception, see below:
> 
> 2005-01-25 22:54:22,612 [Autodeployment File Scanner Thread] INFO  STDOUT -  
> INFO: Loading web.xml into memory
> 2005-01-25 22:54:22,792 [Autodeployment File Scanner Thread] INFO  STDOUT - 
> ERROR: Unexpected exception deploying portlet application: 
> java.lang.NoSuchMethodError: 
> org.apache.jetspeed.om.common.servlet.MutableWebApplication.getSecurityRoles()Lorg/apache/pluto/om/common/SecurityRoleSet;
>  attempting rollback...
> java.lang.NoSuchMethodError: 
> org.apache.jetspeed.om.common.servlet.MutableWebApplication.getSecurityRoles()Lorg/apache/pluto/om/common/SecurityRoleSet;
>  at 
> org.apache.jetspeed.util.descriptor.PortletApplicationWar.validate(PortletApplicationWar.java:414)
>  at 
> org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication(FileSystemPAM.java:384)
>  at 
> org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSystemPAM.java:310)
>  at 
> org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPAM.java:121)
>  at 
> org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(ApplicationServerPAM.java:80)
>  at 
> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:259)
>  at 
> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:162)
>  at 
> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:304)
>  at 
> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:195)
>  at 
> org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:458)
> 2005-01-25 22:54:22,792 [Autodeployment File Scanner Thread] INFO  STDOUT -  
> INFO: Exception in deploy. Rollback of application deployment...
> 2005-01-25 22:54:22,792 [Autodeployment File Scanner Thread] INFO  STDOUT -  
> INFO: Rollback: Remove C:\jboss-3.2.5\server\all\deploy\jetspeed.war/..//demo 
> and all sub-directories.
> 2005-01-25 22:54:22,812 [Autodeployment File Scanner Thread] INFO  STDOUT - 
> ERROR: org.apache.jetspeed.deployment.DeploymentException: Error 
> (re)deploying portlet app: 
> org.apache.jetspeed.tools.pamanager.PortletApplicationException: 
> java.lang.NoSuchMethodError: 
> org.apache.jetspeed.om.common.servlet.MutableWebApplication.getSecurityRoles()Lorg/apache/pluto/om/common/SecurityRoleSet;
> org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying 
> portlet app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: 
> java.lang.NoSuchMethodError: 
> org.apache.jetspeed.om.common.servlet.MutableWebApplication.getSecurityRoles()Lorg/apache/pluto/om/common/SecurityRoleSet;
>  at 
> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doDeploy(DeployPortletAppEventListener.java:299)
>  at 
> org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:162)
>  at 
> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:304)
>  at 
> org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:195)
>  at 
> org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:458)
> Caused by: org.apache.jetspeed.tools.pamanager.PortletApplicationException: 
> java.lang.NoSuchMethodError: 
> org.apache.jetspeed.om.common.servlet.MutableWebApplication.getSecurityRoles()Lorg/apache/pluto/om/common/SecurityRoleSet;
>  at 
> org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSystemPAM.java:333)
>  at 
> org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPAM.java:121)
>  at 
> org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(ApplicationServerPAM.java:80)
>  at 
> org.apache.jetspeed.deployment.impl.Dep

Re: Why is the login portlet authenticating twice?

2005-01-31 Thread Marcel Dullaart
Hi,

I am not answering your question, but I am wondering what you did to
deploy J2 on JBoss.
First, which version of JBoss are you using?
And can you give me an overview of the steps taken to get J2 running
including portlets.

Thanx,
Marcel
On Mon, 31 Jan 2005 06:56:32 +1300, Pesendorfer, Tom
<[EMAIL PROTECTED]> wrote:
> I only managed to login in Jetspeed-2's login portlet (running on JBoss!) by
> adding the users and passwords from the HSQLDB database to the
> users.properties (also added the roles to the roles.properties) used by
> JBoss' default login module
> (org.jboss.security.auth.spi.UsersRolesLoginModule) - this (I assume) would
> be the equivalent to the tomcat-users.xml. The first question is: Why is
> this used rather than the
> org.apache.jetspeed.security.impl.DefaultLoginModule from login.conf?  Is it
> because I haven't got the "Jetspeed" realm defined?
> Secondly, it seems, when I login, it's first validating against the file
> (using the web container) and then afterwards checking against the database.
> Am I understanding this correct/is this how it's supposed to work?  Can
> someone shed some light on the design/intentions?
> Also, every time I login, it sets the updateRequired attribute of the
> credential to true and forces me to change the password.  This in turn
> screws up authentication because then the password does not match the one in
> the file anymore. Any help or explanation/clarification much appreciated!
> 
> Regards,
> 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: [J1.5] Repeatedly: How must work modul EditAccount

2005-01-31 Thread Archana Turaga
What is your default template engine...velocity or jsp..make sure you
are following the rules of setting the default template engine..given at
the jetspeed 1.5 configuration page. 
We are using the Edit Account without any problem.

-Original Message-
From: Vladimir Lisin [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 31, 2005 2:30 AM
To: Jetspeed Users List
Subject: [J1.5] Repeatedly: How must work modul EditAccount

Hi all

Sorry but I didn't received the answer on my question about the work the

modul Edit Acount and have to repeat it :-
The template  top_loggedIn.jsp have the link ""
wich it  was translated in 
http://10.5.6.135:8090/jportal/portal/template/EditAccount/action/
PrepareScreenEditAccount"
 
After clicking on this link I have the next errors:
---
Error encountered processing a template: 
/layouts/html/default.jsporg.apache.jasper.JasperException: 
/WEB-INF/templates/jsp/screens/html/ErrorNoScreenData.inc(16,0) Page 
directive: can't have multiple occurrences of contentType at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94) 

at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:428) 

...

The menu for Admin have line "User Browser" where I can Edit the datas
of 
users by link
" http://10.5.6.135:8090/jportal/portal/media-type/html/language/ru/
user/Lisin/page/default.psml/js_panename/UserForm/entityid/turbine?mode=
update">Edit"

This link works right.
How must be written the link in top_loggedIn.jsp or how User can change 
the his datas ?

Very thanks in advance, Vladimir



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



ERROR VelocityPortletControl - Exception while creating content

2005-01-31 Thread angeloimm
Hi all; i'm using Jetspeed 1.5, JBoss 3.2.5; all worked fine until this 
morning; now i have this error:
2005-01-31 15:24:58,739 [http-0.0.0.0-8080-Processor22] ERROR 
VelocityPortletControl - Exception while creating content
org.apache.velocity.exception.MethodInvocationException: Invocation of method 
'getContent' in  class 
org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrapper 
threw exception class java.lang.NoClassDefFoundError : null
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
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.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)
rethrown as
org.apache.turbine.util.TurbineException: Error rendering Velocity template: 
/controls/html/jetspeed.vm: Invocation of method 'getContent' in  class 
org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrapper 
threw exception class java.lang.NoClassDefFoundError : null
at 
org.apache.turbine.services.velocity.TurbineVelocityService.renderingError(TurbineVelocityService.java:533)
at 
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:499)
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.jetspeed.portal.controls.VelocityPortletControl.getContent(VelocityPortletControl.java:155)
at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
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.jetspeed.portal.controllers.VelocityPortletController.getContent(VelocityPortletController.java:105)
at 
org.apache.jetspeed.portal.BasePortletSet.getContent(BasePortletSet.java:353)
at 
org.apache.jetspeed.util.template.JetspeedTool.getPane(JetspeedTool.java:154)
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.ASTMethod.execute(ASTMethod.java:260)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
a

RE: [J1.5] Repeatedly: How must work modul EditAccount

2005-01-31 Thread Vladimir Lisin
Thanks all.
Sorry for worry !
 EditAccount works right .

Best regards,  Vladimir

RE: Profiles and PSML issues, jetspeed 1.5

2005-01-31 Thread Archana Turaga
A2: ["For a given user if the user does not have a PSML then the role's
PSML can be taken in and if that is not present then the Group PSML is
taken in"],: This just how the behavior is...it was just general
knowledge for you...:-). You are right about atleast one role being
assigned to the user ...the group thingy is just something I found when
I was playing around with it...that when I delete the role PSML the
group PSML is considered. In your problem definition I do not think you
need to be concerned with this. 

 

["You can use Groups as logical dividers...as in have "Dallas" group and
'Orlando' group and make all the roles and users belong to the relevant
groups."]- In 1.5 you can assign groups to role...login in
admin/Jetspeed and look at the User browser (Group-Roles link). And
users can also belong to groups...that is how we are using groups. We
are using groups as it makes sense to us...:-) We do not associate
group-to-role level (but it can be used like that). Also look at the
database table Turbine-User-Group-Role. Initially why we could
arbitrarily assign groups to roles or users did not really make
sense...but then we found a way to use it to our advantage. And yes I'm
saying to set the config to use role-based PSML and then assign users or
roles to groups. The groups assignment is really independent of the fact
it is role-based.

 

And yes you are right about the merge (that it does not involve code
change...a property setting should help). But even when the user is
assigned to multiple roles only one PSML is picked up for display (so
there is definitely more work when the merge needs to be performed).
When user is assigned to multiple roles the role-merge really makes
sense because the issue with multiple roles is which PSML will the user
get to see (that is never dictated by any configuration...it seems
random...maybe the PSML of the first role in the list of roles for that
user)...I currently have the same issue...As a first cut we do not
support users having multiple roles.

 

I hope I sort of cleared your doubts...let me knowalso look at the
mailing list for similar discussions...there was one thread that
explained this theory real well...I never bookmarked it...:-(

 

 

Regards,

Archana

 

 



From: Mehdi Bennani [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 30, 2005 6:49 PM
To: Jetspeed Users List; Archana Turaga
Subject: RE: Profiles and PSML issues, jetspeed 1.5

 

Thanks Archana for your answers, very helpful.
I'll start with number 2 as this is the only one still unclear. 

 

2.
I think I understand what you are saying and it is actually very close
from what we are trying to achieve. Your 'Orlando' and 'Dallas' groups
are our 'California' and 'Nevada' institutions...and grouping them this
way would make lots of sense to us. But I am not sure to understand how
jetspeed supports that. When you say: ["For a given user if the user
does not have a PSML then the role's PSML can be taken in and if that is
not present then the Group PSML is taken in"],  how would Group PSML be
taken in, as users of the system have always at least one role, the
default 'user' role. If I make my user part of the "California"
institution group, by default it gets added to the CaliforniaUser
grouprole. And in that case he/she gets the "user" role PSML profile.
So, how can the group PSML be taken in? Is there anything in the config
files?

 

Then, when you say: ["You can use Groups as logical dividers...as in
have "Dallas" group and 'Orlando' group and make all the roles and users
belong to the relevant groups."] Are you saying we can set our config
files to use role-based PSML fallback and at the same time make users
and roles belong to groups? and how can roles belong to groups?

 

3. 
I understand your solution and it actually may cut it for us too. Thank
you for the tip!
 
1.
Yeah I understand that with this current behavior, user can inherit a
profile made of their multiple roles, and then they can change it on
their own and customize it. That's one approach. 
However, there are cases where you do not want the user to customize
their look and feel and let the admin takes care of that. And in that
case, you want all the users to inherit that. 
Yes, it would be expensive, but isn't exactly what it's being done right
now with one role only, when role PSML is true and merge=false. The only
difference is the number of roles you are using to create the profile.
Instead of taking one, we can take many. 
I think it's a feature that would certainly be useful, and that comes
almost for free in terms of the code needed. It could be a configuration
parameter to set the behavior (dynamic vs. static role merge).

Mehdi--


-Original Message-
From: Archana Turaga [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 28, 2005 11:31 AM
To: Jetspeed Users List
Subject: RE: Profiles and PSML issues, jetspeed 1.5

I hope the answers help.

A1: I also had the same query for

J2 Velocity Error?

2005-01-31 Thread Frank Villarreal
FYI:

Not sure if this is a bug  using Jetspeed 2, I've created a new custom
decorator theme (both for the layout and the portlet).  I essentially copied
an existing folder structure being used for the other J2 themes (minty-blue,
jetspeed, etc) and customized it.  Everything seems to work correctly except
for one minor detail ... the uri for the portlet action buttons (edit, help,
min, max, ect) are somehow still resolving the image directory in the
"jetspeed" theme folder.  I'm baffled as to why this is occurring.  I
believe I have removed all references within the decorator.properties and
decorator.vm files within my custom folder(s).  Anyone else seeing this
behavior ... or am I have I not had enough coffee yet?

- Frank


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



Problem with admin user.

2005-01-31 Thread Deep Kumar
Hi All,
Wherever I am trying to add any user or try configure the profile
for any user. Some or the other configuration gets screwed, like, after
configuration of user accounts, Edit account won't work or sometime Add user
doesn't work.
Anybody having clue what wrong with my jetspeed portal.


Regards
Deep Kumar


- Original Message -
From: "Vladimir Lisin" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" 
Sent: Monday, January 31, 2005 8:05 PM
Subject: RE: [J1.5] Repeatedly: How must work modul EditAccount


> Thanks all.
> Sorry for worry !
>  EditAccount works right .
>
> Best regards,  Vladimir


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



Re: J2 Velocity Error?

2005-01-31 Thread Christopher Wood
I think the piece you're missing is in 
templates\layout\html\columns\layout.vm. I don't pretend to understand 
fully how the rendering process works, but this template appears to be 
what aggregates the portlet fragments - if you look at the page source, 
you can see by inspection that it generates the html between the layout 
and portlet decorators. I don't understand yet how this template is 
selected, or if it is possible to specify an alternative.

Chris


Frank Villareal wrote:
>
> Not sure if this is a bug  using Jetspeed 2, I've created a new 
custom
> decorator theme (both for the layout and the portlet).  I essentially 
copied
> an existing folder structure being used for the other J2 themes 
(minty-blue,
> jetspeed, etc) and customized it.  Everything seems to work correctly 
except
> for one minor detail ... the uri for the portlet action buttons (edit, 
help,
> min, max, ect) are somehow still resolving the image directory in the
> "jetspeed" theme folder.  I'm baffled as to why this is occurring.  I
> believe I have removed all references within the decorator.properties 
and
> decorator.vm files within my custom folder(s).  Anyone else seeing this
> behavior ... or am I have I not had enough coffee yet?
>
> - Frank

Chris Wood - my.epoline®Portal Developer 
EUROPEAN PATENT OFFICE
Patentlaan 2 - 2280HV Rijswijk (ZH) - Netherlands 
Tel: +31 (0)70 340 47 96
Web: www.epoline.org | email: [EMAIL PROTECTED] 


RE: J2 Velocity Error?

2005-01-31 Thread Frank Villarreal
Chris,

Thanks for taking a stab at my question, but I don't think that's the
problem.  Layout.vm seems to control the (re)positioning of portlets within
a page.  Upon further inspection, it seems J2 uses a request filter to remap
image requests to the current decorator "theme" folder.  And like I said
previously, 99% of my custom images and stylesheet customizations are
showing up correctly ... it's just those pesky portlet window image uris
that continue to resolve to the "jetspeed" decorator folders.  It appears
that in the velocity file (decorator.vm), there is a line of code that reads
...

#set($actions = $jetspeed.DecoratorActions)

The actions are the options available for a specific window/portlet (edit,
view, max, min, etc).  This action list is then iterated and rendered in
each portlet's title bar with the following snippet of velocity code ...

#foreach ($action in $actions)



#end

The problem I am experiencing is that the tag ${action.Link} doesn't appear
to be resolving to my custom theme.  It renders as
"content/images/minimized.gif" ... which would appear to be correct, since
the portal should "know" that I'm using a custom theme and "remap" the image
request to the correct folder using the filter ... because I told it to use
my custom theme in the PSML for the page by adding the following entry ...

layout-decorator="mycustomtheme" portlet-decorator="mycustomtheme"

Unfortunately, it doesn't appear to be working.  Gotta love Monday mornings
... :-)

- Frank



-Original Message-
From: Christopher Wood [mailto:[EMAIL PROTECTED]
Sent: Monday, January 31, 2005 09:23 AM
To: Jetspeed Users List
Subject: Re: J2 Velocity Error?


I think the piece you're missing is in
templates\layout\html\columns\layout.vm. I don't pretend to understand
fully how the rendering process works, but this template appears to be
what aggregates the portlet fragments - if you look at the page source,
you can see by inspection that it generates the html between the layout
and portlet decorators. I don't understand yet how this template is
selected, or if it is possible to specify an alternative.

Chris


Frank Villareal wrote:
>
> Not sure if this is a bug  using Jetspeed 2, I've created a new
custom
> decorator theme (both for the layout and the portlet).  I essentially
copied
> an existing folder structure being used for the other J2 themes
(minty-blue,
> jetspeed, etc) and customized it.  Everything seems to work correctly
except
> for one minor detail ... the uri for the portlet action buttons (edit,
help,
> min, max, ect) are somehow still resolving the image directory in the
> "jetspeed" theme folder.  I'm baffled as to why this is occurring.  I
> believe I have removed all references within the decorator.properties
and
> decorator.vm files within my custom folder(s).  Anyone else seeing this
> behavior ... or am I have I not had enough coffee yet?
>
> - Frank

Chris Wood - my.epoline®Portal Developer
EUROPEAN PATENT OFFICE
Patentlaan 2 - 2280HV Rijswijk (ZH) - Netherlands
Tel: +31 (0)70 340 47 96
Web: www.epoline.org | email: [EMAIL PROTECTED]


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



RE: J2 Velocity Error?

2005-01-31 Thread watler
Frank,

This is an issue I have known about but i have not gotten around to fixing
yet. I just modify my custom portlet decorator like this:

  #foreach ($action in $actions)
#set($actionImage = $action.Link)
#if($actionImage.startsWith("content/images/"))
  #set($actionImage =
"content/myportletdecorator/images/${actionImage.substring(15)}")
#end
#if($actionImage.endsWith(".gif"))
  #set($actionImageLength = $actionImage.length() - 4)
  #set($actionImage = "${actionImage.substring(0,
$actionImageLength)}.jpg")
#end

  #end

I will bump this up my todo list,

Randy


> Chris,
>
> Thanks for taking a stab at my question, but I don't think that's the
> problem.  Layout.vm seems to control the (re)positioning of portlets
> within
> a page.  Upon further inspection, it seems J2 uses a request filter to
> remap
> image requests to the current decorator "theme" folder.  And like I said
> previously, 99% of my custom images and stylesheet customizations are
> showing up correctly ... it's just those pesky portlet window image uris
> that continue to resolve to the "jetspeed" decorator folders.  It appears
> that in the velocity file (decorator.vm), there is a line of code that
> reads
> ...
>
> #set($actions = $jetspeed.DecoratorActions)
>
> The actions are the options available for a specific window/portlet (edit,
> view, max, min, etc).  This action list is then iterated and rendered in
> each portlet's title bar with the following snippet of velocity code ...
>
> #foreach ($action in $actions)
> 
>  src="${action.Link}"
> alt="${action.Alt}" border="0">
> 
> #end
>
> The problem I am experiencing is that the tag ${action.Link} doesn't
> appear
> to be resolving to my custom theme.  It renders as
> "content/images/minimized.gif" ... which would appear to be correct, since
> the portal should "know" that I'm using a custom theme and "remap" the
> image
> request to the correct folder using the filter ... because I told it to
> use
> my custom theme in the PSML for the page by adding the following entry ...
>
> layout-decorator="mycustomtheme" portlet-decorator="mycustomtheme"
>
> Unfortunately, it doesn't appear to be working.  Gotta love Monday
> mornings
> ... :-)
>
> - Frank
>
>
>
> -Original Message-
> From: Christopher Wood [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 31, 2005 09:23 AM
> To: Jetspeed Users List
> Subject: Re: J2 Velocity Error?
>
>
> I think the piece you're missing is in
> templates\layout\html\columns\layout.vm. I don't pretend to understand
> fully how the rendering process works, but this template appears to be
> what aggregates the portlet fragments - if you look at the page source,
> you can see by inspection that it generates the html between the layout
> and portlet decorators. I don't understand yet how this template is
> selected, or if it is possible to specify an alternative.
>
> Chris
>
>
> Frank Villareal wrote:
>>
>> Not sure if this is a bug  using Jetspeed 2, I've created a new
> custom
>> decorator theme (both for the layout and the portlet).  I essentially
> copied
>> an existing folder structure being used for the other J2 themes
> (minty-blue,
>> jetspeed, etc) and customized it.  Everything seems to work correctly
> except
>> for one minor detail ... the uri for the portlet action buttons (edit,
> help,
>> min, max, ect) are somehow still resolving the image directory in the
>> "jetspeed" theme folder.  I'm baffled as to why this is occurring.  I
>> believe I have removed all references within the decorator.properties
> and
>> decorator.vm files within my custom folder(s).  Anyone else seeing this
>> behavior ... or am I have I not had enough coffee yet?
>>
>> - Frank
>
> Chris Wood - my.epoline®Portal Developer
> EUROPEAN PATENT OFFICE
> Patentlaan 2 - 2280HV Rijswijk (ZH) - Netherlands
> Tel: +31 (0)70 340 47 96
> Web: www.epoline.org | email: [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]



RE: J2 Velocity Error?

2005-01-31 Thread Frank Villarreal
Thanks Randy (and Chris).  I was about to implement something very similar
just so I could proceed ... but your hack works like a charm.  Thanks again.

- Frank




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 31, 2005 11:01 AM
To: Jetspeed Users List
Subject: RE: J2 Velocity Error?


Frank,

This is an issue I have known about but i have not gotten around to fixing
yet. I just modify my custom portlet decorator like this:

  #foreach ($action in $actions)
#set($actionImage = $action.Link)
#if($actionImage.startsWith("content/images/"))
  #set($actionImage =
"content/myportletdecorator/images/${actionImage.substring(15)}")
#end
#if($actionImage.endsWith(".gif"))
  #set($actionImageLength = $actionImage.length() - 4)
  #set($actionImage = "${actionImage.substring(0,
$actionImageLength)}.jpg")
#end

  #end

I will bump this up my todo list,

Randy




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



Re: J2: Absolute URL rendering

2005-01-31 Thread watler
Scott,

I think this can be addressed in the layout decorators/macros if you would
like a quick workaround, (it invokes a method in the JetspeedPowerTool
there to convert relative urls into absolute ones: you could use your own
constants or macros there).

Otherwise, I have added it to my todo list,

Thanks,

Randy


> Hello all,
>
> I have noticed that whatever renders navigation urls apparently writes
fully-qualified urls instead of relative ones, apparently based on
whatever the hostname is in the incoming request.
>
> Is this a configurable option? The reason I ask is that if not, this
makes it difficult if not impossible to proxy behind say an apache httpd
instance.
>
> In the past, I've been able to route virtual hostnames to specific
webapps in tomcat (or any other container for that matter by this sort
of httpd configuration:
>
> 
> NameVirtualHost *:80
> #... other virtual host configurations
> 
> ServerName app1.mydomain.com
> RewriteEngine on
> RewriteRule ^(.*)$ http://my.tomcat.host:8080/
> ProxyPassReverse / http://my.tomcat.host:8080/
> 
> 
>
> This allows http://app1.mydomain.com to be routed to an internal tomcat
host on a different port, and can even be used to mask the "app1"
context from the end user.  Since app1 writes its urls using relative
"/"  prefixed paths, all is well.
>
> I have tried this with J2, and when I navigate to
> http://subdomain.myhost.com the left-nav links such as "Public Links"
render not as "/jetspeed/portal/Public" but as
> "http://my.tomcat.host:8080/jetspeed/portal/Public";.  Depending on
network configuration, this linke may or may not even resolve to the end
user.
>
> Since httpd is not performing url rewriting, it would appear that J2 is
writing
> protocol:host:port/context instead of relative paths.
>
> What can I do to change this behavior? It is my goal to at some point
mask the fact that my portal is running in a "/jetspeed" context as well
as to run tomcat behind an httpd front-end in the same manner as my many
other webapps housed in tomcat.
>
>
> Regards,
> --
>
>
> -Scott
>
>
> Scott Heaberlin
>
> - 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: Why is the login portlet authenticating twice?

2005-01-31 Thread Pesendorfer, Tom
Marcel,

I have tried it in versions from 3.2.3 to 3.2.6 and it works the same in all
of them.  I started by following the original instructions at
http://wiki.apache.org/portals/Jetspeed2/JBossHowTo, but found out that
there was more to it and it wasn't quite that simple (at least not for me),
so I posted a new page on the wiki at
http://wiki.apache.org/portals/Jetspeed2/JBossHowToDetailed.  That page
includes the exact, detailed steps taken to get it to run and also some more
on deployment & trouble-shooting.

Cheers,
Tom

-Original Message-
From: Marcel Dullaart [mailto:[EMAIL PROTECTED] 
Sent: Monday, 31 January 2005 11:21 PM
To: Jetspeed Users List
Subject: Re: Why is the login portlet authenticating twice?


Hi,

I am not answering your question, but I am wondering what you did to
deploy J2 on JBoss.
First, which version of JBoss are you using?
And can you give me an overview of the steps taken to get J2 running
including portlets.

Thanx,
Marcel
On Mon, 31 Jan 2005 06:56:32 +1300, Pesendorfer, Tom
<[EMAIL PROTECTED]> wrote:
> I only managed to login in Jetspeed-2's login portlet (running on JBoss!)
by
> adding the users and passwords from the HSQLDB database to the
> users.properties (also added the roles to the roles.properties) used by
> JBoss' default login module
> (org.jboss.security.auth.spi.UsersRolesLoginModule) - this (I assume)
would
> be the equivalent to the tomcat-users.xml. The first question is: Why is
> this used rather than the
> org.apache.jetspeed.security.impl.DefaultLoginModule from login.conf?  Is
it
> because I haven't got the "Jetspeed" realm defined?
> Secondly, it seems, when I login, it's first validating against the file
> (using the web container) and then afterwards checking against the
database.
> Am I understanding this correct/is this how it's supposed to work?  Can
> someone shed some light on the design/intentions?
> Also, every time I login, it sets the updateRequired attribute of the
> credential to true and forces me to change the password.  This in turn
> screws up authentication because then the password does not match the one
in
> the file anymore. Any help or explanation/clarification much appreciated!
> 
> Regards,
> 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]

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



Database Related Question

2005-01-31 Thread Shah Amit
I have an existing database, and a website built on it. We are in a process 
of portalizing the website with Jetspeed2.

Now I downloaded jetspeed2 and the DB that it creates has quite a lot of 
tables (atleast 30 - 40). Out of all of these tables, I do understand that 
security_XXX tables would probably be used by the JAAS Security module of 
jetspeed. But apart from those, which are the tables that I would have to 
preserve on my production database for jetspeed to work ??

Like, I know that there are lot of sample applications shipped with 
Jetspeed2, and lot of those applications might need their own tables. But if 
I were to remove all the sample applications shipped with J2, and only have 
the minimal skeleton of J2, what are the tables that I need to preserve ??

Any help would be very appreciated ...
Thanks,
Amit

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


Re: J2: Absolute URL rendering

2005-01-31 Thread Ate Douma
I already have a patch ready for issue 
http://issues.apache.org/jira/browse/JS2-204.
It will solve this issue as well.
But, the is one catch related to using non-secure PortletURLs when in a secure 
mode
which I want to discuss first with the Pluto team before I commit it.
[EMAIL PROTECTED] wrote:
Scott,
I think this can be addressed in the layout decorators/macros if you would
like a quick workaround, (it invokes a method in the JetspeedPowerTool
there to convert relative urls into absolute ones: you could use your own
constants or macros there).
Otherwise, I have added it to my todo list,
Thanks,
Randy

Hello all,
I have noticed that whatever renders navigation urls apparently writes
fully-qualified urls instead of relative ones, apparently based on
whatever the hostname is in the incoming request.
Is this a configurable option? The reason I ask is that if not, this
makes it difficult if not impossible to proxy behind say an apache httpd
instance.
In the past, I've been able to route virtual hostnames to specific
webapps in tomcat (or any other container for that matter by this sort
of httpd configuration:

NameVirtualHost *:80
#... other virtual host configurations

   ServerName app1.mydomain.com
   RewriteEngine on
   RewriteRule ^(.*)$ http://my.tomcat.host:8080/
   ProxyPassReverse / http://my.tomcat.host:8080/


This allows http://app1.mydomain.com to be routed to an internal tomcat
host on a different port, and can even be used to mask the "app1"
context from the end user.  Since app1 writes its urls using relative
"/"  prefixed paths, all is well.
I have tried this with J2, and when I navigate to
http://subdomain.myhost.com the left-nav links such as "Public Links"
render not as "/jetspeed/portal/Public" but as
"http://my.tomcat.host:8080/jetspeed/portal/Public";.  Depending on
network configuration, this linke may or may not even resolve to the end
user.
Since httpd is not performing url rewriting, it would appear that J2 is
writing
protocol:host:port/context instead of relative paths.
What can I do to change this behavior? It is my goal to at some point
mask the fact that my portal is running in a "/jetspeed" context as well
as to run tomcat behind an httpd front-end in the same manner as my many
other webapps housed in tomcat.
Regards,
--
-Scott
Scott Heaberlin
- 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]


jetspeed2 and simple webapps

2005-01-31 Thread Carlos Ortiz
 

Maybe a stupid question, but what Jetspeed2 Bridge would I use if I just
wanted to call a non-jsf, non-struts, webapp from a jetspeed2 portlet
without having to add portlet code?  Just a plain old servlet.

 

Is this possible?

 

Thanks,

 

Carlos.



Re: J2 Warning: HttpServletRequest.getContextPath() now returns the contextPath of the Portlet, not the Portal

2005-01-31 Thread David Sean Taylor
Ate Douma wrote:

No, to /jetspeed/login/proxy.
I can't reproduce your error. Please check that you indeed have updated
the change-password.jsp and login.jsp from the security application.
In these the required url is now generated with an explicit reference
to the portal (jetspeed) context using the following construction:
(Not sure why I sent this to user list)
Seems my Tomcat instance had some leftover artifacts (war files) from my 
 testing with Randy's deployment. I removed them at it cleared up

--
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: Spring portlet

2005-01-31 Thread David Sean Taylor
Matthias Koch wrote:
Hi,
its my first time working with jetspeed, because I used the Spring Framework for
my applications I just will test how I can integrate them into jetspeed.
 Portlet is Not Available: SpringPortletDemo
Reason: PortletFactory: Failed to load portlet
org.apache.portals.bridges.frameworks.GenericFrameworkPortlet:javax.portlet.PortletException:
Spring Configuration file not specified
Can anyone help me getting this portlet to run, please?
or any hints what i have maked wrong?
You will need to add these settings to your portlet def:

spring-configuration
/WEB-INF/velocity/spring-portlet-configuration.xml


validator-configuration
/WEB-INF/velocity/validator-configuration.xml

Look here for examples:
http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/portals-bridges/library/
--
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: Nested portlet?

2005-01-31 Thread David Sean Taylor
Nan Anonymous wrote:
Hmm.. forgot this forum is for both.
I would be more interesting on JS2 as I want to do this in as much
conformance to JSR168 as possible. Of course, a comparison of
different approaches for different portal servers would also be very
educational.
Thanks
You can setup a portlet pipeline and retrieve only the content for one 
portlet within another portlet. This is what we do in Jetspeed 1.6 
fusion to support jsr 168 portlets

Another quick solution is to include the content of another portlet 
using the IFramePortlet and a portlet on a single psml page with a clear 
decorator:


SRC

/jetspeed/portal/frames/dtb-frame.psml

--
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: jetspeed2 and simple webapps

2005-01-31 Thread David Sean Taylor
Carlos Ortiz wrote:
 

Maybe a stupid question, but what Jetspeed2 Bridge would I use if I just
wanted to call a non-jsf, non-struts, webapp from a jetspeed2 portlet
without having to add portlet code?  Just a plain old servlet.
 

Is this possible?
Of course. Just use the GenericServletPortlet for servlets and JSPs
See examples under the demo portlet app
--
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: Database Related Question

2005-01-31 Thread David Sean Taylor
Shah Amit wrote:
I have an existing database, and a website built on it. We are in a 
process of portalizing the website with Jetspeed2.

Now I downloaded jetspeed2 and the DB that it creates has quite a lot of 
tables (atleast 30 - 40). Out of all of these tables, I do understand 
that security_XXX tables would probably be used by the JAAS Security 
module of jetspeed. But apart from those, which are the tables that I 
would have to preserve on my production database for jetspeed to work ??

Like, I know that there are lot of sample applications shipped with 
Jetspeed2, and lot of those applications might need their own tables. 
But if I were to remove all the sample applications shipped with J2, and 
only have the minimal skeleton of J2, what are the tables that I need to 
preserve ??

Ive gone thru something similar here.
Minimized, its not that much smaller (see below)
summary:
phase 1 schema: need this for the capability map component which only 
runs against a relational database store

phase 2 schema: need the profiler schema
phase3 ojb: ojb internals
prefs schema: to handle preferences - required for proper operation 
using prefs

registry schema: all Portlet app and portlet info from portlet.xml 
stored here

security-schema: you could minimize this by removing SSO tables
or providing your own security components

# ---
# MEDIA_TYPE
# ---
drop table if exists MEDIA_TYPE;
CREATE TABLE MEDIA_TYPE
(
MEDIATYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
CHARACTER_SET VARCHAR (40),
TITLE VARCHAR (80),
DESCRIPTION MEDIUMTEXT,
PRIMARY KEY(MEDIATYPE_ID)
);
# ---
# CLIENT
# ---
drop table if exists CLIENT;
CREATE TABLE CLIENT
(
CLIENT_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
USER_AGENT_PATTERN VARCHAR (128),
MANUFACTURER VARCHAR (80),
MODEL VARCHAR (80),
VERSION VARCHAR (40),
PREFERRED_MIMETYPE_ID INTEGER NOT NULL,
PRIMARY KEY(CLIENT_ID)
);
# ---
# MIMETYPE
# ---
drop table if exists MIMETYPE;
CREATE TABLE MIMETYPE
(
MIMETYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
PRIMARY KEY(MIMETYPE_ID)
);
# ---
# CAPABILITY
# ---
drop table if exists CAPABILITY;
CREATE TABLE CAPABILITY
(
CAPABILITY_ID INTEGER NOT NULL,
CAPABILITY VARCHAR (80) NOT NULL,
PRIMARY KEY(CAPABILITY_ID)
);
# ---
# CLIENT_TO_CAPABILITY
# ---
drop table if exists CLIENT_TO_CAPABILITY;
CREATE TABLE CLIENT_TO_CAPABILITY
(
CLIENT_ID INTEGER NOT NULL,
CAPABILITY_ID INTEGER NOT NULL
);
# ---
# CLIENT_TO_MIMETYPE
# ---
drop table if exists CLIENT_TO_MIMETYPE;
CREATE TABLE CLIENT_TO_MIMETYPE
(
CLIENT_ID INTEGER NOT NULL,
MIMETYPE_ID INTEGER NOT NULL
);
# ---
# MEDIATYPE_TO_CAPABILITY
# ---
drop table if exists MEDIATYPE_TO_CAPABILITY;
CREATE TABLE MEDIATYPE_TO_CAPABILITY
(
MEDIATYPE_ID INTEGER NOT NULL,
CAPABILITY_ID INTEGER NOT NULL
);
# ---
# MEDIATYPE_TO_MIMETYPE
# ---
drop table if exists MEDIATYPE_TO_MIMETYPE;
CREATE TABLE MEDIATYPE_TO_MIMETYPE
(
MEDIATYPE_ID INTEGER NOT NULL,
MIMETYPE_ID INTEGER NOT NULL
);
# ---
# PROFILING_RULE
# ---
drop table if exists PROFILING_RULE;
CREATE TABLE PROFILING_RULE
(
RULE_ID VARCHAR (80) 

[J1] different questions

2005-01-31 Thread Daniel Brose
Hi there!

I'm quite new to Jetspeed and currently I'm building my first portal site
with Jetspeed 1.6-dev out of the CVS. I have some questions:
- Where do I get information about switching the db from HypersonicSQL to
e.g. MySQL?
- I want to use some own configuration files for my portlets (like storing
special database names and such). Does Jetspeed have some classes ready for
that? What could I do instead?
- Is there any possibility to control which user has access to which
portlet, something like a "user-rights management"?
- Are there any examples for portlets with graphical output like pie-charts?

Any help would be appreciated!


Regards

-- 
Daniel Brose

http://www.daniel-brose.de
mailto:[EMAIL PROTECTED]
ICQ-UIN: 5366841
Mobil: 0173/2903411


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



AW: File Upload

2005-01-31 Thread apache
Yeah, I did it ;)

-Ursprüngliche Nachricht-
Von: Carlos Torres [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 31. Januar 2005 22:59
An: Apache JetSpeed User; Apache JetSpeed Dev
Betreff: File Upload


Hello all,

Anybody made a page(portlet) with file upload using JetSpeed 1.5 ?

Please help me.

Thanks.

Carlos Torres



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



Re: File Upload

2005-01-31 Thread Carlos Torres
Can you explain how you did it? Which classes you used, if any change was
necessary.

Thanks.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" 
Sent: Monday, January 31, 2005 6:02 PM
Subject: AW: File Upload


Yeah, I did it ;)

-Ursprüngliche Nachricht-
Von: Carlos Torres [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 31. Januar 2005 22:59
An: Apache JetSpeed User; Apache JetSpeed Dev
Betreff: File Upload


Hello all,

Anybody made a page(portlet) with file upload using JetSpeed 1.5 ?

Please help me.

Thanks.

Carlos Torres



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



AW: File Upload

2005-01-31 Thread apache
 public void doUploaddhl(RunData rundata, Context context) throws Exception
  {
try
{
  FileItem fi = rundata.getParameters().getFileItem("filename");
  OrderManager om = new OrderManager();
  om.importTrackAndTrace(fi.getStream());
}
catch(Exception e)
{
  logger.error("tt-import-failure: " + e);
}
  }

the fileitem returns a stream, which you can handle. filename is the name of
the html-form-element

-Ursprüngliche Nachricht-
Von: Carlos Torres [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 31. Januar 2005 23:07
An: Jetspeed Users List
Betreff: Re: File Upload


Can you explain how you did it? Which classes you used, if any change was
necessary.

Thanks.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "'Jetspeed Users List'" 
Sent: Monday, January 31, 2005 6:02 PM
Subject: AW: File Upload


Yeah, I did it ;)

-Ursprüngliche Nachricht-
Von: Carlos Torres [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 31. Januar 2005 22:59
An: Apache JetSpeed User; Apache JetSpeed Dev
Betreff: File Upload


Hello all,

Anybody made a page(portlet) with file upload using JetSpeed 1.5 ?

Please help me.

Thanks.

Carlos Torres



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



Re: Nested portlet?

2005-01-31 Thread Nan Anonymous
> 
> You can setup a portlet pipeline and retrieve only the content for one
> portlet within another portlet. This is what we do in Jetspeed 1.6
> fusion to support jsr 168 portlets
> 

Thanks. Can you point me to the document about this portlet pipeline?

I suppose there can be an API (as Java class/method or JSP tag) to
include another portlet. Something like this can be put in the view
rendering JSP of one portlet:

...

  ^DJIX ^IXIA ...
  ...


Is there anything like that already? Is it doable?

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



Re: Why is the login portlet authenticating twice?

2005-01-31 Thread Marcel Dullaart
Thanx for pointing out the second page.
Section 4.3.2 describes exactly the problems I am having, but I don't
think it is acceptable to undeploy all portlets before shutting down
JB, but for the time being its oke.
I'll give it a try on 4.0.1 and let you know about the results.

Marcel

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



File Upload

2005-01-31 Thread Carlos Torres
Hello all,

Anybody made a page(portlet) with file upload using JetSpeed 1.5 ?

Please help me.

Thanks.

Carlos Torres