Print control not displayed for Role user - Very Urgent

2005-03-29 Thread Bhaskar T
Hi All,
I have created my own Security ID and I gave the following
(view,print,maiximize,minimize) Security Access to Role user.

Now when I log in and access the psml for which my security id is
defined, the protlet is displayed but the print control is not getting
displayed only maximize and minimize controls are displayed.

When I give Security Access as * Role user, I am getting all the
controls(including print) on the portlet, but when I try to add only
Security Access View, Maximize, Minimize and Print  the Print control
is not getting displayed for the portlet.

My requirement is to display only the print,maximize,minimize controls
for a portlet when the Role is User.

This is very urgent, can anyone help me out.

Thanks
Bhaskar

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



ways to inter-portlet-application-communication(inJ2)

2005-03-29 Thread Thomas . Koch
hi together !

if i am looking in the internet for ways of interportlet-communication i 
found
a lot of description, how i save a object in session.

now i have 2-3 questions to this:

1.  is it true: ? when we speak from the application_scope, we speak 
from the scope of the portlet-application
and not of the scope from the portal or portlet container ?!
so it's not possible to change data between two 
portlet-applications like this:
 
 portletSession.setAttribute(key,value,PortletSession.APPLICATION_SCOPE);

2.  as a result of this, we have to develop ways with other 
tecnologies, like webservices, RMI, SOAP etc. ?!

3.  existing way's in J2 ?

best regards

thomas

Re: Read a psml file

2005-03-29 Thread Bhaskar T
Hi All,
There is a easiest way to access the parameters defined in a psml file.
In the portlet you just add the below code to read any parameter of
the psml file.

String textInPsmlFile = this.getAttribute(text);

I am assuing the parameter text is defined in the psml file as below:
parameter name=text value=this is the value I am looking in portelt/

Please let me know if this has answered your problem.
bye,
Bhaskar


On Wed,  9 Feb 2005 19:17:10 +0100, angeloimm [EMAIL PROTECTED] wrote:
 Hi all; in order to have the name of the PSML fiel where we are:
 ( (DefaultJetspeedRunData) (data)).getProfile().getDocument().getName(); by 
 usign a similar thing you should have a similar thing:
 C:/JBoss-3.2.5/server/default/jetspeed.war/web-inf/psml etc.
 
 Then i have used this code:
 
  public String getPsmlParameter(String psmlDocument, String parameterName) {
LOG.info(Starting to searching and reading PSML file:  + psmlDocument);
 
SAXBuilder saxBuilder = new SAXBuilder(
org.apache.xerces.parsers.SAXParser);
try {
  Document document = saxBuilder.build(new File(psmlDocument));
  if (LOG.isDebugEnabled()) {
 
LOG.debug(Is the Attribute null ?  +
  ( (Attribute) (XPath.
 selectSingleNode(document,
  //portlets/entry/[EMAIL 
 PROTECTED]' +
  parameterName +
  ']/@value)))==null);
LOG.debug(I'll return for parameterName: [ + parameterName +
  ] this value:  +
  ( (Attribute) (XPath.selectSingleNode(document,
//portlets/entry/[EMAIL PROTECTED]' + parameterName + 
 ']/@value))).
  getValue());
  }
  return ( (Attribute) (XPath.selectSingleNode(document,
  //portlets/entry/[EMAIL PROTECTED]' + parameterName + 
 ']/@value))).
  getValue();
}
catch (IOException ex) {
  LOG.error(IOException. Message:  + ex.getMessage());
  throw new IllegalArgumentException(IOException. Message:  +
 ex.getMessage());
}
catch (JDOMException ex) {
 
  LOG.error(JDOMException. Message:  + ex.getMessage());
  throw new IllegalArgumentException(JDOMException. Message:  +
 ex.getMessage());
 
}
  }
 
 I hope to be usefull.
 Bye
 
 -- Initial Header ---
 
 From  : Deep Kumar [EMAIL PROTECTED]
 To  : Jetspeed Users List jetspeed-user@jakarta.apache.org
 Cc  :
 Date  : Wed, 9 Feb 2005 20:12:55 +0530
 Subject : Re: Read a psml file
 
  how did u do that???
 
  Thanks in advance
  - Original Message -
  From: angeloimm [EMAIL PROTECTED]
  To: jetspeed-user jetspeed-user@jakarta.apache.org
  Cc: jetspeed-user jetspeed-user@jakarta.apache.org
  Sent: Wednesday, February 09, 2005 7:24 PM
  Subject: Re: Read a psml file
 
 
  Hi; thanks for your answer infact i have used XPath... the problem i had
  was to know the psml to read but i have solved it.
  Thanks
 
  -- Initial Header ---
 
  From  : Carlos Torres [EMAIL PROTECTED]
  To  : Jetspeed Users List jetspeed-user@jakarta.apache.org
  Cc  :
  Date  : Wed, 9 Feb 2005 11:26:04 -0200
  Subject : Re: Read a psml file
 
   Hi
   You could read the parameter in the psml file as a XML file with DOM or
  SAX
   API.
   I didn't know if it is your question, if not explain better
   If you need to change the attribute or parameter in the psml you could
  read
   it and transform in a DOM object and write it back, with the new
  attribute,
   in the file.
  
   Carlos Torres.
  
   - Original Message -
   From: zaza [EMAIL PROTECTED]
   To: Jetspeed Users List jetspeed-user@jakarta.apache.org
   Sent: Wednesday, February 09, 2005 10:27 AM
   Subject: Re: Read a psml file
  
  
David Sean Taylor wrote:
 angeloimm wrote:

 Hi all; if i know the psml name... how could i have a parameter in
 this psml file?


 Not sure if I understand the question, but I'll try.
 To change the parameters on a portlet instance, you can edit the psml
 file  by hand, for example the StockQuote portlet, override the
  default
 init parameters on a portlet instance:

 entry id=P-f570871a5a-10008 parent=StockQuote
 layout position=-1 size=-1
 property name=column value=0/
 property name=row value=1/
 /layout

 parameter name=symbols
  value=MSFT,IBM,ORCL,SUNW,ITGW/

 /entry

 or change them from the running portlet. For example the StockQuote
 portlet provides an edit mode to edit the parameters

 For example let's suppose i have in the file a.psml a parameter
  called
 text. well in a portlet called b 

don't show portlet upon error

2005-03-29 Thread Roel van Dijk
I'm using Jetspeed 1.6-dev.

Is it possible to stop the rendering of a portlet when an error occurs in
the buildNormalContext method? For example, if the portlet uses a URL and
the URL can't be reached, the portlet doesn't need to be displayed. Any
ideas?

Thanks,

Roel



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



Fwd: Getting Folder from path

2005-03-29 Thread zazo
Hi all,
 
I am writing custom layout for my Jetspeed site. To have it fully
work I need one more, little thing -- Is there a way to get Folder
object having only path pointing to it?
 
Ex. Let's say I have String
http://localhost:8080/jetspeed/portal/Public; and by using some
tricky API function I can get object of Folder bounded to public
folder. Then I can check its name, title etc
 
Can anyone help me, or at least point where should I look for solution?
 
I am using J2-M1. 
 
Thank you in advance.
 
Best wishes.
 
Tomasz
 


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



Jetspeed forgets Attributes and Parameter

2005-03-29 Thread Nadine Farid
Hi,

I am using special IDs that have a number at the end signifying the status
of the current service provided by a portlet.
If a request does not come from this specific portlet, it should still
remember its status. I have tried stroring this with setAttribute() and
setParameter(), but the result seems pretty random except for the last
instance of that portlet.
I don't get the last value that I've set, but some value from before
(randomly, but mostly the very first one I set).
I have tried changing the cache attributes in the registry to no avail.

Is there something I am missing, or might this be a bug?

Thanks for your input.
Nadine



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



Problem with MySQL 4.1 and Jetpeed 1.5 (1.4-B4)

2005-03-29 Thread Danny Gehl
Hello,

we have encountered a serious problem while updating our MySQL DB server to
version 4.1.
When a new User is created, the fields CREATED and PASSWORD_CHANGED in the
TURBINE_USER table are set to '-00-00 00:00:00'. When Jetspeed attempts
to read
this user later, the following exeption is thrown:


=
java.sql.SQLException: Cannot convert value '-00-00 00:00:00' from
column 9 to TIMESTAMP.
 at com.workingdogs.village.DataSet.fetchRecords(Unknown Source)
 at com.workingdogs.village.DataSet.fetchRecords(Unknown Source)
 at com.workingdogs.village.DataSet.fetchRecords(Unknown Source)
 at org.apache.torque.util.BasePeer.getSelectResults(BasePeer.java:1657)
 at org.apache.torque.util.BasePeer.executeQuery(BasePeer.java:1545)
 at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1391)
 at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1368)
 at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doSelectVillageR
ecords(BaseTurbineUserPeer.java:416)
 at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doSelectVillageR
ecords(BaseTurbineUserPeer.java:384)
 at
org.apache.jetspeed.om.security.turbine.TurbineUserPeer.doSelectUsers(Turbin
eUserPeer.java:70)
 at
org.apache.jetspeed.services.security.turbine.TurbineUserManagement.getUsers
(TurbineUserManagement.java:186)
 at
org.apache.jetspeed.services.JetspeedUserManagement.getUsers(JetspeedUserMan
agement.java:68)
 at
org.apache.jetspeed.services.JetspeedSecurity.getUsers(JetspeedSecurity.java
:195)
 at
org.apache.jetspeed.modules.actions.portlets.security.UserBrowserAction.buil
dNormalContext(UserBrowserAction.java:129)
 at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.buildNorm
alContext(VelocityPortletAction.java:74)
 at
org.apache.jetspeed.modules.actions.portlets.GenericMVCAction.doPerform(Gene
ricMVCAction.java:169)
 at
org.apache.jetspeed.modules.actions.portlets.GenericMVCAction.perform(Generi
cMVCAction.java:76)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(GenericMV
CPortlet.java:276)
 at
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(GenericMVCP
ortlet.java:207)

==

I've searched the list and found several hints, but none of them seem to
work. The first thing I
tried was updating to jetspeed version 1.5 (from 1.4b4), but the problem
stays. I recompiled
everything for MySQL, but no effect. If anyone could help me on this, that
would be great.


Sincerely,

Danny Gehl

==
T-Systems Multimedia Solutions GmbH
Danny Gehl
Authorized Java Center (AJC)
Hausanschrift: Riesaer Straße 5, 01029 Dresden
Tel.: (0351) 8505 845
Fax.: (in Arbeit)
E-Mail: mailto:[EMAIL PROTECTED]
http://www.T-Systems-MMS.com



Something weird happening with fusion/pluto

2005-03-29 Thread Fabrice Dewasmes
Hi all !

I'm using JS1 + fusion (without the latest deployment model)

1. The user logs in (let's say he's in role 'dummy')
2. the default dummy psml page is rendered
3. the user chooses another PSML Page using the drop down menu at
the top right of the page and is now on a psml page from anon user.
4. User clicks on a link which has been rendered by a
renderResponse.createActionURL().toString() on a JSR168 portlet. And that's
where the trick happens... He's redirected on the default user's psml page
('dummy' psml page).
(Which of course is not what we want : the previously clicked portlet is even
not displayed). So the problem won't occur if the JSR168 porlet is in the
'dummy' psml page.

After investigating it seems that the rendered URL is something like
/jetspeed/portal/_ns:XXX/media-type/html/language/-1/user/anon/Accueil.psml/js_pane/P-XX-10003
(XXXs are to be replaced with a alphanumeric sequence)
and if I remove the _ns: part everything works fine !

Am I wrong ? What is this mysterious _ns:part ?

Thank you very much for your help.

Best regards

Fabrice

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



Problens initalizing Jetspeed 2

2005-03-29 Thread Bruno Gondim Bilescky
Hi, my name is bruno

I'm trying to install Jetspeed 2 on a windows 2000 with Tomcat 5.5.7
but after following the Getting Started guide I found this problem:

javax.servlet.ServletException: Failed to initalize jetspeed. 
org.apache.jetspeed.exception.JetspeedException: Unable to create
Engine

org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:206)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)

org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:43)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.jetspeed.exception.JetspeedException: Unable to create Engine
org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:76)

org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:135)
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800)
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695)
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)

org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
org.apache.catalina.startup.Catalina.start(Catalina.java:537)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.7 logs.


Could anybody help me?

PS: While building it I got some errors because in the code there was
a variable named enum, but maven says that enum is a registered word.
So i had to change it's name, but it was a local variable.

Thanks again

Bruno Bilescky

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



Deployment fails on a Solaris box JS1.6/wFusion

2005-03-29 Thread Hema Menon
I am trying to deploy our application running with Jetspeed1.6 with
fusion build with the new j2_deployment_refactoring_sync branch.
Everything works fine on a Windows environment. This was installed on
a solaris box. When trying to deploy a JSR168 portlet, it fails with
the following exception.

ERROR: java.io.IOException: No such file or directory
org.apache.jetspeed.deployment.DeploymentException: java.io.IOException: No such
 file or directory
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep
loyPortletApplication(DeployPortletAppEventListener.java:163)
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv
okeDeploy(DeployPortletAppEventListener.java:148)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc
h(StandardDeploymentManager.java:257)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(
StandardDeploymentManager.java:168)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep
loymentEvent(StandardDeploymentManager.java:202)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys
temScanner.run(StandardDeploymentManager.java:332)
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at java.io.File.createTempFile(File.java:1439)
at org.apache.jetspeed.tools.deploy.JetspeedDeploy.init(JetspeedDeploy
.java:75)
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep
loyPortletApplication(DeployPortletAppEventListener.java:158)
... 5 more

Any idea what is wrong?

Thanks,
Hema
~~
Hema Menon

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



J2 Configuration

2005-03-29 Thread Mike R .

I am documenting the Jetspeed 2.0 configuration (as documentation 
is sparse...) 

Can anyone give me a quick overview of the config files currently in use
for JetSpeed 2.0?  

For example, I have the following questions after having investigated 
the config, starting from the web.xml:

1.  The web.xml references jetspeed-configuration.xml.  Is this
the location of a XML config database that will be created?
Or is this a leftover config item that is no longer being used?
I see no jetspeed-configuration.xml in either the binary or source 
distributions.

2.  In the jetspeed.properties file, there is an entry:
   deployment.descriptor.mapping.xml=
/WEB-INF/conf/portletdefinitionmapping.xml

The portletdefinitionmapping.xml only appears in the archives castor directory;
is it obsolete?

Thanks, need help fast!

Mike R.






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



RE: ThreeColumnLayout doesn't work!?

2005-03-29 Thread Clemens A mensik
  [...snip...]
 
 Try change fragment ids to new ones in all fragment elements

ah, what kind of bug is this?

thx a lot for your advice, now it works...

greets
clemens


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



Re: Deployment fails on a Solaris box JS1.6/wFusion- Resolved

2005-03-29 Thread Hema Menon
Sorry, false alarm. The stack trace explains it all. The temp
directory was present, however the catalina_tmpdir was not.
Catalina.sh seems to set the java.io.tmpdir to CATALINA_TMPDIR, which
in my case did not exist.

Hema

On Tue, 29 Mar 2005 12:54:53 -0600, Hema Menon [EMAIL PROTECTED] wrote:
 I am trying to deploy our application running with Jetspeed1.6 with
 fusion build with the new j2_deployment_refactoring_sync branch.
 Everything works fine on a Windows environment. This was installed on
 a solaris box. When trying to deploy a JSR168 portlet, it fails with
 the following exception.
 
 ERROR: java.io.IOException: No such file or directory
 org.apache.jetspeed.deployment.DeploymentException: java.io.IOException: No 
 such
 file or directory
at 
 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep
 loyPortletApplication(DeployPortletAppEventListener.java:163)
at 
 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv
 okeDeploy(DeployPortletAppEventListener.java:148)
at 
 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc
 h(StandardDeploymentManager.java:257)
at 
 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(
 StandardDeploymentManager.java:168)
at 
 org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep
 loymentEvent(StandardDeploymentManager.java:202)
at 
 org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys
 temScanner.run(StandardDeploymentManager.java:332)
 Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at java.io.File.createTempFile(File.java:1439)
at 
 org.apache.jetspeed.tools.deploy.JetspeedDeploy.init(JetspeedDeploy
 .java:75)
at 
 org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.dep
 loyPortletApplication(DeployPortletAppEventListener.java:158)
... 5 more
 
 Any idea what is wrong?
 
 Thanks,
 Hema
 ~~
 Hema Menon
 


-- 


~~
Hema Menon

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



Re: don't show portlet upon error

2005-03-29 Thread Yohanes Santoso
Roel van Dijk [EMAIL PROTECTED] writes:

 I'm using Jetspeed 1.6-dev.

 Is it possible to stop the rendering of a portlet when an error occurs in
 the buildNormalContext method? For example, if the portlet uses a URL and
 the URL can't be reached, the portlet doesn't need to be displayed. Any
 ideas?

Short answer: you can't. Basically, as soon as a portlet is rendered
the data is sent to server and for all practical purposes can't be
undone.

So, what you want is to do the resource fetching _before_ any of the
portlet is rendered. One way to do this is to create an Action that
does the fetching, and upon a submit from your portlet, go to this
Action.

YS.

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



J2 Tomcat JAAS

2005-03-29 Thread Dworkin, Marc
Hi,

I am trying to install Jetspeed2 on top of tomcat 5.0.  I have a JAAS
Realm set up in tomcat which authenticates users and populates roles off
an LDAP directory.  I am using the SingleSignOn Valve so this
authentication works across webapps.  I would like this to work for
jetspeed as well.  Query: Can it?

When I try having jetspeed use my JAAS Login Module I get the following
error:

type Status report

message SecurityConstraintsImpl.checkConstraints(): Access for
view not permitted.

description Access to the specified resource
(SecurityConstraintsImpl.checkConstraints(): Access for view not
permitted.) has been forbidden.

Thanks,

//mD




This e-mail message is intended only for the named recipient(s) above. It may 
contain confidential information. If you are not the intended recipient you are 
hereby notified that any dissemination, distribution or copying of this e-mail 
and any attachment(s) is strictly prohibited. If you have received this e-mail 
in error, please immediately notify the sender by replying to this e-mail and 
delete the message and any attachment(s) from your system. Thank you.


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

Jetspeed In Action

2005-03-29 Thread Vladimir Simjanoski
Hi!
I've read somewhere that Jetspeed In Action is in the writing process.
Can anyone (the author?) tell me when it's going to be printed?
Are there any plans for making some chapters available earlier
(chapter on layouts/decorators and security/sso will be very
valuable)?
I find the documentation on the website obscure in many areas (too
many TODOs)...

Regards, 
Vladimir

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