controlling portlet caching in jetspeed 1.5

2005-02-10 Thread Dan Moore
Hi folks,

I am looking into portlet caching a bit in Jetspeed 1.5.  We have some
portlets, all subclasses of VelocityPortlet.  The data they pull (from
an oracle database) is mostly static, but there are some times where
data changes, and we'd like the portlets to reflect that.  All of these
portlets are marked as cacheOnValue, cacheOnName in the registry.  

I can tell that the data layer is getting the new data because we have
a search portlet and the results correspond to the changed data. 
However, other display portlets don't reflect the changed data until
the server is restarted.

I spend some time in the js1.5 source (thanks, koders.com) and found
that VelocityPortlets are cacheable by default.

A couple of questions:

1.  Can I refresh the portlet cache without restarting my servlet
container?

2.  I was able to find reference to an expiration time in millisecods
(in AbstractPortlet) but didn't see that in the configuration files,
and couldn't find a default value.  Is there one?

3.  I think that all that happens after portlets are stale (epxired) is
that their refresh method is called.  Is that true?

4.  I'm thinking that turning off cacheOnValue might be a fix for our
situation.  Does that make sense?

Thanks,
Dan

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



Re: [J1] my.properties use problem

2005-02-03 Thread Dan Moore
Hi Daniel.

--- Daniel Brose <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> as suggested in
>
http://portals.apache.org/jetspeed-1/config_guide.html#Override_any_properti
> es_in_default_property_files, I want to use my own properties-file
> my.properties. I use the one which came out of the CVS which includes
> the
> two required entries:
> services.ResourceService.classname =
> org.apache.jetspeed.services.resources.JetspeedResourceService
> include = TurbineResources.properties
> 
> I also edited my web.xml like this:
> 
> properties
> 
>   WEB-INF/conf/my.properties
> 
> 

This is in the 'jetspeed' servlet configuration in web.xml, right? 
Does everything work correctly when you aren't using my.properties and
you build normally?

Dan

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



Re: Build Jetspeed 1.5 with Maven

2005-02-03 Thread Dan Moore

--- Stefano Bianchi <[EMAIL PROTECTED]> wrote:

> Dear Dan,
> I tried your option and now I got a jetspeed-1.5.jar in my target
> folder.

Great.

> Is it the same for deploy on Tomcat? Or should I have a .war? (Sorry,
> newbie
> question...)

Are you using maven?  After you get the new jetspeed.jar, I believe (I
don't use maven) you can build the app as suggested in the tutorial:
http://portals.apache.org/jetspeed-1/tutorial/1/deploy.html, and that
will build a war for you.  Not sure of this though.

> Furthermore, in the thread you suggested me, I saw you made several
> changes
> to get your Oracle stuff: I thought it was sufficient to configure
> properly
> the Torque.properties. Is it the rest only Maven-related or am I
> missing
> something?

It was bugs in the oracle Torque configuration.  Shouldn't apply in
your case.

> I checked \src\sql\external and I saw there are
> populate-mysql.sql and turbine-mysql.sql.
> Are they enough to generate the DB? Why are they generated if I have
> not
> still changed Torque.properties?

Were these regnerated (what do their timestamps tell you)?  I thought
you did change Torque.properties?  The turbine-mysql and populate-mysql
files are enough to generate the DB unless you want the psml in the
database.  

> Sorry, but I have to speed up development and I'm spending too much
> time in
> getting everything configured to start...

Yes, I hear you.  Have you worked through the tutorial on
http://portals.apache.org/jetspeed-1/tutorial?  That helped me
immensely with general concepts.

> On behalf of all newbies around, I warmly ask developers (you made a
> great
> job, it is just a slight remark) to make DB switch easier for those
> who are
> not skilled in Maven, builds etc.

David Sean Taylor, at the end of that thread, suggested a way to do
this.  Unfortunately, no one (myself included) has had time to
implement this.

Dan

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



Re: Build Jetspeed 1.5 with Maven

2005-02-01 Thread Dan Moore

--- Stefano Bianchi <[EMAIL PROTECTED]> wrote:

> Dear ALL (and David Sean, if you are there!),
> I tried to build Jetspeed with Maven since I want to migrate to
> MySql.
> 
> I installed Maven,
> tested it with Maven -v,
> checked the mailing list (similar questions, not this one!),
> checked the installation guidelines for Jetspeed (there is already a
> project.xml included in the source distribution, is it ok?)
>  ** but I still get no .war in \target folder (only
> classes,
> jetspeed, test-classes, test-reports). **
> 
> Furthermore, the DOS shell since to hang at the end of the following:
> 
> D:\Download\jetspeed-1.5>maven war

I think you want to skip the tests: maven -Dmaven.test.skip=true
since it hangs on network access.

Also, this thread may be helpful to you (an aside: anyone know why the
search functionality isn't working on the mailing list?), as it
documents what I went through to rebuild the jars for an Oracle db:

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&by=thread&from=902500

Dan

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



Re: Error messages for Security Forms hard coded

2005-01-28 Thread Dan Moore
Hi,

One other solution:

1. modify the SecurityConstants class to have only keys
(ERROR_MESSAGE_1, ERROR_MESSAGE_EMAIL_INVALID) in it,

and

2. find where the errors were ouptput (in which velocity/jsp template)
and wrap them with a call to the l10n tool.

This way, you can just put whatever error messages you want in a bundle
with the appropriate key.

If you were willing to live with the text in the SecurityConstants
class as your key, you wouldn't need to do step 1, but I'm not sure how
java handles keys with spaces and other special characters in them.

This wouldn't handle, however, the case where the Security class
returns the incorrect (too general) error message.  Not sure how to
handle that.

Dan

--- Mehdi Bennani <[EMAIL PROTECTED]> wrote:

> Hey Folks, 
> 
>  
> 
> We have implemented our UserManagement, groupManagement and
> roleManagement security classes as per the jetpseed interfaces
> provided.
> It is all working fine, except that the messages returned when there
> is
> any failure are all hard-coded and coming from the SecurityConstants
> class string array. This poses a problem, not only for localization
> but
> also prevents us from displaying the right message to the user.  
> 
> Example: if the admin tries to create a user with an invalid email
> address according to some password policy, we would like to inform
> the
> admin: "Error: password not conform to policy XYZ...". But instead we
> get the generic: "Invalid Entity Name. Please enter a valid entity
> name."
> 
>  
> 
> Are you thinking of changing that in the future? And, in the
> meantime,
> is there a way to access the context from our UserManagement class
> and
> put in the right message? Something like:
> 
> context.put(SecurityConstants.PARAM_MSG, "Error: password not conform
> to
> policy XYZ");
> 
>  
> 
> And would that be enough? Wouldn't that context value be overwritten
> afterwards from the Security Action class?
> 
>  
> 
>  
> 
> Thank you a bunch,
> 
> Mehdi--
> 
>  
> 
> 


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



Re: Jetspeed-2 Clustering

2005-01-27 Thread Dan Moore
That's a great point.  With any setup, you're going to want to be sure
that the PSML and Registry data is shared, especially if it's going to
be changed.  If JS2 doesn't have JMS support, you might be able to
store this data in your Oracle database.

Dan

--- Jeff Sheets <[EMAIL PROTECTED]> wrote:

> I know in Jetspeed 1 there is JMS messaging support that is supposed
> to help clustering.  I haven't used it though.
> 
> Here's a link:  http://portals.apache.org/jetspeed-1/messaging.html
...snip...

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



Re: Jetspeed-2 Clustering

2005-01-27 Thread Dan Moore
Hi Andre,

I want to preface this with the fact that I haven't clustered JS2, nor
JS1.  In fact, I don't even use JS2.

That said, I wanted to comment on how I'd design this system, or at
least start.

--- Andre Bonhote <[EMAIL PROTECTED]> wrote:

> Hi!
> 
> It's my first post, and I am completely new to Jetspeed, so bear with
> me
> please.
> 
> The idea is to deploy a portal on n machines, where n is 4 at the
> moment. We would like to have some pretty load balancers in front of
> them, the boxes are located in two countries. As this is usual for
> good
> portals, the user/customer should not care about where he is.
> 
> The jetspeed-2 installation will access an oracle 10 database. Now
> there's my question: Since it doesn't make sense (IMHO) to put the
> oracle beast on all the 4 machines, is it possible to have all 4
> jetspeed installations access the same database? Or even, the same
> tablespace? Or do I have to create users for each server?

You shouldn't have to create database users for each server.  You
should be able to set up oracle to live on a fifth box, and have each
JS server connect over tcp/ip.  Set up your tnsnames.ora on each box
and it should be easy.

> Is there a clustering guide somewhere? I am quite stuck at the
> moment,
> to be honest.

If I were to want to cluster JS2, I'd first make sure tomcat was
sharing session information across the cluster:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
(this message will provide some comfort, but I'm not sure if it applies
to JS2
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=500554)

Then I'd disable the data cache of JS2, if there is any.  You can test
that easily enough if you get two boxes running with a simple portlet
that changes a row in the db--see if the other change is reflected.

Now, this will of course hurt performance, since you'll be accessing
data across the network every time, but it's a cheap way to cluster. 
I'm really not sure what the JS2 data layer looks like.  Checkt that'
it looks like it might be Torque from the docs on the site.  In that
case, you'll probably be interested in this document:
http://db.apache.org/torque/managers-cache.html
which might help you use torques cache in a clustered environment.
(Not sure what version of torque is being used, though.) 

Also, I'd recommend you develop, or at the very least test, with at
least two machines, as having a dev environment similar to production
can save you a lot of grief.

Good luck and let us know how it goes.

Dan

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



Re: J1.5: Remember me/auto-logon facility

2005-01-26 Thread Dan Moore
Hi Vladimir,

I believe you want to look at this source file:
src/java/org/apache/jetspeed/modules/actions/JetspeedSessionValidator.java
and
src/java/org/apache/jetspeed/modules/actions/JLogoutUser.java
to see how autologin is implemented on 1.5.

>From a cursory examination, it appears that logging out actually
removes the auto login cookies.  If you want to test auto login, try
logging in, then closing your browser, then opening your browser and
revisiting the site.

Hope this helps.

Dan

--- Vladimir Lisin <[EMAIL PROTECTED]> wrote:

> Hi all
> 
> Please, can anabody comment and suggest the solution in next  problem
> ?
> 
> I am filling the Login and PSW fields,  flagging  the checkbox "
> Remember 
> me".
> Thereafter I see the cookie "[EMAIL PROTECTED]"  in directory 
> C:\Documents and Settings\Lisin.ELCOMGAZ\Cookies\
> Then I make logout and see that cookie "[EMAIL PROTECTED]" was
> deleted.
> And at second login I haven't  any   "/auto-logon" :-(
> How must work  the "Remember me/auto-logon facility" in J1.5 ?
> The next is the fragment of my JR.properties:
>
.
># Remember me/auto-logon facility
> automatic.logon.enable=true
> #number of seconds until logon expires (2592000 = 1 month, 
> 30*24*60*60)
> automatic.logon.cookie.maxage=2592000
> automatic.logon.cookie.comment=Jetspeed automatic logon cookie
> #domain, blank means use getServer to derive it.  Is of the form 
> .foo.com.
> automatic.logon.cookie.domain=
> #path, blank means use getContextPath, default to / - all paths
> automatic.logon.cookie.path=/
> #specifies when the random portion of the cookie is regenerated-
> # - firstlogon, means it is only generated the first time the
> users 
> #   requests this feature, useful when you want to
> allow
> #   them to use the feature across computers
> # - everylogon, means it is regenerated upon each successful
> logon
> #   useful for getting a little added security
> (default)
> automatic.logon.cookie.generation=everylogon
> 
> # automatically save user state on logout
> automatic.logout.save = true
>
.
> 
> 
> Thanks in advance.
> Vladimir 


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



Re: Expresso & Jetspeed

2005-01-19 Thread Dan Moore
I have.  Jetspeed 1.5 and Expresso 5.5.

Our setup was fairly heavily customized; what particular questions did
you have?

Dan

--- Stefano Paganucci <[EMAIL PROTECTED]> wrote:

> Has someone integrated Expresso Framework with Jetspeed2 or Jetspeed?
> 
> Is it possible to do?
> 
> Regards,
> 
> Stefano
> 
> 
>  
> 
> 
> 
> 
> This message is for the designated recipient only and may contain
> privileged
> or confidential information. If you have received it in error, we
> apoligize
> for this. Please notify the sender immediately and delete the
> original. Any
> other use of the message is illegal. SMS Group S.r.l. does not accept
> any
> liability for corruption, interception or damages, if any, caused by
> unauthorized use of this message or parts.
> 
>  
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005
>  
> 


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



Re: Returning binary data through portlet

2005-01-15 Thread Dan Moore
Hi Alan,

I can't imagine that you can actually do this, because once the portal
begins rendering text (which would happen before your portlet was
rendered), you can't change it to render binary data.

Any chance you can have a link to a servlet with a target of _blank
which pops up in a new window and sends the binary data?  (I outlined
how I did this in a slightly different circumstance here:
http://www.mooreds.com/weblog/archives/18.html)  Or, you could just
link to that JSP.

Dan

--- Alan Chiang <[EMAIL PROTECTED]> wrote:

> Hi all,
>   Wondering if anyone knows how to get a portlet to return binary
> data, or get Jetspeed to return binary data.  I have a JSP that reads
> files for download, coupled with the JSP portlet, but any data
> returned seems to be intercepted and interpreted as text and is
> dumped
> to the portlet window.
> 
>   All the response headers have been correctly set and this JSP works
> outside of the portlet;
> so either the response headers are being swallowed, or the data is
> being converted.  Any quick and dirty way to get files to download
> through portlets?
> 
> Thanks
> -- 
> "Calling Canadian beef unsafe is like calling your twin sister ugly"
> ~ Mark Dopp
> 
> -
> 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]



instructions for installing js2

2005-01-14 Thread Dan Moore
Hi folks,

Didn't see this posted to the list, thought it might help some people
out.  It's Matt Raible's instructions for installing JS2.

http://raibledesigns.com/wiki/Wiki.jsp?page=InstallJetspeed

Please note that I've not tested these, since I'm using JS1.

Cheers,
Dan

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



Re: New Chinese User using Jetspeed 1.5

2004-12-27 Thread Dan Moore
Hi Raghdan,

What error messages did you see in the log files when you tried to add
the user?

What database are you using?

It sounds like jetspeed is recognizing the Chinese locale, just not
working when you add a user via the interface; is that true?  If you
add a user via the database, does that work?

Dan

--- Raghdan <[EMAIL PROTECTED]> wrote:

> Dear,
> 
> I have tried the following steps to add a new jetspeed user using
> Chinese letters, but it is not work.
> http://nagoya.apache.org/eyebrowse/ReadMsg?listId=23
> 
> &msgNo=15155
>  
> Knowing that the interface and the .psml pages language are converted
> to
> Chinese.
> 
> Any help in how to solve this.
> 
> Regards
>  
>  
>  
>  
> 


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



jetspeed 1.5: session validation doesn't complete before other components see the user

2004-12-23 Thread Dan Moore
Hi folks,

I have an existing system with which I'm integrating jetspeed 1.5.  I
have about 100,000 users already in the system, and they already have a
login setup, so I don't want to use jetspeed's authentication system.

However, I still need to make sure that visitors to the portal are
valid users.  I did this via the JetspeedSessionValidation class
(actually a subclass).  This subclass will do the needed database
lookups (based on a cookie the browser sends) and construct a jetspeed
user object based on that data.  

I thought that the sessionvalidator was called before anything else;
logging statements as well as the Turbine source code certainly seems
to indicate that:
http://jakarta.apache.org/turbine/turbine/turbine-2.2.0/xref/org/apache/turbine/Turbine.html

However, I'm getting errors like this in the logfiles:
2004-12-23 16:41:06,805 [http8080-Processor3] WARN 
CastorPsmlManagerService - PSMLManager:
/oracle/expresso5-5-0-complete/webapps/mme/WEB-INF/psml/user/NONE/html/default.psml


In default.vm, I'm able to see that a user has a username of 'NONE'
also.

NONE is my anonymous user. These errors seem to indicate that the
database lookup seems to take long enough that other components are
seeing an anonymous user.  

We cache the database lookup for each session, so this error only
happens on the first login of each session, but this is still an issue.

I'm concerned that I chose the wrong place to auto login users.  Is
there a better place to do what I'm doing?  Is there a way to make sure
JetspeedSessionValidation.doPerform() completes before other components
are instantiated?

Thanks,
Dan

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



Re: How to avoid skin for a portlet

2004-12-21 Thread Dan Moore
Not sure it there are any parameters to change this, but at the very
least you can edit WEB-INF/templates/vm/controls/html/jetspeed.vm to
remove any skinning.

Dan

--- Bhaskar T <[EMAIL PROTECTED]> wrote:

> Hi All,
> I don't want to have any skin to my portlet.
> Can anyone tell me what I have to do for the same.
> In configure mode of the portlet I don't see any No Skin option, so
> please suggest me what I should do?
> 
> Thanks in advance
> Bhaskar
> 
> -
> 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: Jetspeed-1 vs 2

2004-12-15 Thread Dan Moore
Well, since none of the regular contributors to Jetspeed have fielded
this, I'll take a swing.

I'm using Jetspeed 1.5 for a project that started in September, and
have been quite happy with it.

I think your choice between J1 and J2 is based on a couple of things:

1.  How important is JSR 168 compliance?  If it's important, J2 or J1.6
might be a viable solution.  To me, it's not that important since we're
developing all of our own portlets.

2.  How much do you like being on the bleeding edge?  I'm not a huge
fan, which is why I went with J1.  The documentation for J1 is very
good for an open source project.

3.  How soon is your project starting?  I don't know what the roadmap
to J2 looks like, but the longer you can afford to wait, the better J2
will be.  (Looks like there's a roadmap here:
http://wiki.apache.org/portals/Jetspeed2/RoadMap; doesn't seem to be
too up to date.)

I also believe (am not sure) that there's going to be a Jetspeed 1.6
release which will be based on J2, but will run Jetspeed 1.5 portlets. 
Could be wrong though.

Good luck.
Dan

--- Colin Freas <[EMAIL PROTECTED]> wrote:

> 
> So, I'm just beginning to evaluate Jetspeed as a candidate for 
> implementing a portal.  Lots of questions, as you might expect.  
> Probably the biggest: I'm not sure what the practical implications of
> 
> using Jetspeed 1 verses 2 are, in either the short term or the long. 
> 
>  From what I've read, a major release of Jetspeed 2 is due early in 
> 2005, but, judging by the Jetspeed 1 and 2 branches of the Portals
> web 
> site, Jetspeed 2 seems, frankly, in a nascent state of development. 
> The 
> notion of which is reinforced by this excellent note by Scott Weaver:
>
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg11763.html
> 
> So, that was late March, now it's mid-Decmeber.  Anything
> fundamentally 
> different from what was outlined there?  Are all of those features on
> 
> track for the release?
> 
> The release date of "early 2005", by the way, I get from this article
> by 
> Bob Fleischman:
> http://www.javaworld.com/javaworld/jw-11-2004/jw-1129-jetspeed.html
> 
> A nice technical piece on Jetspeed 1, but mentions explicitly that
> the 
> example developed within will not function correctly with J2.  My 
> question here would then be: how different would the same example be
> in J2?
> 
> And that brings me to a couple of questions related directly to my
> first 
> point about J1 vs J2.  Iis it recommended, at this point, to develop
> new 
> projects soley using J2?  Is it expected that sites using J1 will 
> eventually migrate to J2, or will J1 be supported and developed 
> indefinitely? 
> 
> Thanks for any thoughts.
> 
> Colin Freas
> 
> -
> 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: Jetspeed using Oracle

2004-12-10 Thread Dan Moore
Jonathan,

1. I don't think David's suggestions were implemented; I think that the
focus has been on 1.6/2.0.

2. I'm not sure if all databases need this amount of rebuilding, or
just oracle, since I've only used oracle.  I've seen some folks on this
mailing list who use mysql or mssql or sybase--they might be better
folks to ask.

Thanks,
Dan

--- Jonathan Hawkins <[EMAIL PROTECTED]> wrote:

> Dan,
> 
> Thanks for all the info, will give it a go. Are you aware if
> Jetspeed2 needs
> rebuilding for each database vendor, or were David's recommendations
> implemented (torque jar file per database).
> 
> Jon
> 
> -Original Message-
> From: Dan Moore [mailto:[EMAIL PROTECTED]
> Sent: 09 December 2004 21:15
> To: Jetspeed Users List
> Subject: Re: Jetspeed using Oracle
> 
> 
> Hi Jonathan,
> 
> I went through some shenanigans to get PSML with Oracle working. 
> Check
> out this thread for more information:
> 
>
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
> .apache.org&by=thread&from=902500
> 
> Dan
> 
> --- Jonathan Hawkins <[EMAIL PROTECTED]> wrote:
> 
> > I've managed to get Jetspeed using Oracle for the security stuff.
> I'm
> > now
> > trying to get it to use Oracle for the psml registry, to no avail.
> I
> > have
> > followed the instructions in
> > http://portals.apache.org/jetspeed-1/psml_db.html . When performing
> > maven
> > import it always reports no profiles to export. When attempting a
> > build I
> > never get target/classes/sql/security-schema.sql.   What am I doing
> > wrong,
> > does anyone have a sql script to populate a default db-psml.
> > 
> > Many thanks
> > 
> > Jon Hawkins
> > 
> > 
> > This email and any files transmitted with it are confidential 
> > and intended solely for the use of the individual or entity to 
> > whom they are addressed. Any unauthorised distribution or 
> > copying is strictly prohibited. Whilst Cedar Software Ltd 
> > takes steps to prevent the transmission of viruses via e-mail, 
> > we cannot guarantee that any email or attachment is free from 
> > computer viruses and you are strongly advised to undertake your 
> > own anti-virus precautions. Cedar Software Ltd grants no 
> > warranties regarding performance, use or quality of any e-mail 
> > or attachment and undertakes no liability for loss or damage, 
> > howsoever caused.  
> > 
> > 
> > For more information on Cedar Software and our products, 
> > please visit our web site at http://www.cedar.com/Home.asp
> > 
> > 
> >
> -
> > 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]
> 
> 
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity to 
> whom they are addressed. Any unauthorised distribution or 
> copying is strictly prohibited. Whilst Cedar Software Ltd 
> takes steps to prevent the transmission of viruses via e-mail, 
> we cannot guarantee that any email or attachment is free from 
> computer viruses and you are strongly advised to undertake your 
> own anti-virus precautions. Cedar Software Ltd grants no 
> warranties regarding performance, use or quality of any e-mail 
> or attachment and undertakes no liability for loss or damage, 
> howsoever caused.  
> 
> 
> For more information on Cedar Software and our products, 
> please visit our web site at http://www.cedar.com/Home.asp
> 
> 
> -
> 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: Jetspeed 1.5 and Active Directory

2004-12-09 Thread Dan Moore
Hi,

I think Active Directory is LDAP compliant
(http://www.microsoft.com/windowsserver2003/techinfo/overview/ldapcomp.mspx).

If so, you could investigate the LDAP support in jetspeed:
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/services/security/ldap/package-summary.html

Dan

--- lahsen abouenour <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> We have adopted Jetspeed 1.5 as our future portal framework.. But
> there is a big problem: we have already an Active Directory in use
> for authentications with Exchange and we hope users to not have to
> remember other passwords (for portal). So, is there any project that
> used integration between Jetspeed 1.5 and MS Active Directory, any
> links? It's a big problem for us.
> 
> Thanks.
> 
> 


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



Re: Jetspeed using Oracle

2004-12-09 Thread Dan Moore
Hi Jonathan,

I went through some shenanigans to get PSML with Oracle working.  Check
out this thread for more information:

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&by=thread&from=902500

Dan

--- Jonathan Hawkins <[EMAIL PROTECTED]> wrote:

> I've managed to get Jetspeed using Oracle for the security stuff. I'm
> now
> trying to get it to use Oracle for the psml registry, to no avail. I
> have
> followed the instructions in
> http://portals.apache.org/jetspeed-1/psml_db.html . When performing
> maven
> import it always reports no profiles to export. When attempting a
> build I
> never get target/classes/sql/security-schema.sql.   What am I doing
> wrong,
> does anyone have a sql script to populate a default db-psml.
> 
> Many thanks
> 
> Jon Hawkins
> 
> 
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity to 
> whom they are addressed. Any unauthorised distribution or 
> copying is strictly prohibited. Whilst Cedar Software Ltd 
> takes steps to prevent the transmission of viruses via e-mail, 
> we cannot guarantee that any email or attachment is free from 
> computer viruses and you are strongly advised to undertake your 
> own anti-virus precautions. Cedar Software Ltd grants no 
> warranties regarding performance, use or quality of any e-mail 
> or attachment and undertakes no liability for loss or damage, 
> howsoever caused.  
> 
> 
> For more information on Cedar Software and our products, 
> please visit our web site at http://www.cedar.com/Home.asp
> 
> 
> -
> 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: Exception while integrating with sqlserver ...help needed

2004-12-07 Thread Dan Moore
Hello,

I get this exception whenever I can't connect to my database (Oracle,
but that doesn't matter).

I'd check your Torque.properties to make sure that the connection
information is correct and that your database is running.

Dan

--- Srinivasarao Sri <[EMAIL PROTECTED]> wrote:

> Team,
> I am tring to integrate jetspeed with sqlserver and getting the
> following exception while starting serever. Can you please tell me
> what I have to do.
>  
>  
> Reason: 
> org.apache.jetspeed.om.profile.ProfileException:
> java.lang.NullPointerException
>   
>  
> 
> Get/Post Data:
> template  = /html/ShowError.vm 
>  
> 
> Stacktrace:
>   
>   org.apache.jetspeed.om.profile.ProfileException:
> java.lang.NullPointerException
>  at
>
org.apache.jetspeed.services.profiler.JetspeedProfilerService.fallbackProfile(JetspeedProfilerService.java:502)
>  at

...snip...

>  
> Thanks in advance,
> Srinivas
>  
>  
> 
>   
> -
> Do you Yahoo!?
>  Yahoo! Mail - Easier than ever with enhanced search. Learn more.


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



Re: Fw: SQLException thrown while trying to get Connection from Datasource (java:comp/env/jdbc/jetspeed)

2004-12-02 Thread Dan Moore
This may be a silly question, but have you verified that you have mysql
running on localhost:3306?

Dan

--- Mads Pedersen <[EMAIL PROTECTED]> wrote:

> Hi
> 
> I am getting this strange error when i start tomcat. Can anyone help
> ? 
> 
> MySql 5/mysql-connector-java-3.0.8-stable-bin.jar
> WinXP
> Tomcat 4.1
> Macen 1.0
> 
> Dec 2, 2004 12:13:06 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.31
> Dec 2, 2004 12:13:07 PM
> org.apache.struts.util.PropertyMessageResources 
> 
> INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
> returnNull=true
> Dec 2, 2004 12:13:07 PM
> org.apache.struts.util.PropertyMessageResources 
> 
> INFO: Initializing,
> config='org.apache.struts.action.ActionResources', 
> returnNull=true
> Dec 2, 2004 12:13:08 PM
> org.apache.struts.util.PropertyMessageResources 
> 
> INFO: Initializing,
> config='org.apache.webapp.admin.ApplicationResources', 
> returnNull=true
> log4j:WARN No appenders could be found for logger (console).
> log4j:WARN Please initialize the log4j system properly.
> JNDI System Property flag null
>  INFO: Deployment server port: 8080
>  INFO: Deployment server: localhost
> [org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl]
> ERROR: 
> SQLException thrown while trying to get Connection from Datasource 
> (java:comp/env/jdbc/jetspeed)
> Cannot create PoolableConnectionFactory (Communication failure during
> 
> handshake. Is there a server running on localhost:3306?)
> org.apache.commons.dbcp.SQLNestedException: Cannot create 
> PoolableConnectionFactory (Communication failure during handshake. Is
> 
> there a server running on localhost:3306?)
> at 
>
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at 
>
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at 
>
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectionFromDataSource(ConnectionFactoryAbstractImpl.java:204)
> at 
>
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnection(ConnectionFactoryAbstractImpl.java:112)
> at 
>
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:105)
> at 
>
org.springframework.orm.ojb.PersistenceBrokerTransactionManager.doBegin(PersistenceBrokerTransactionManager.java:187)
> at 
>
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:269)
> at 
>
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:201)
> at 
>
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
> at 
>
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
> at 
>
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
> at $Proxy7.createNode(Unknown Source)
> at 
>
org.apache.jetspeed.prefs.impl.PreferencesImpl.(PreferencesImpl.java:96)
> at 
>
org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactoryImpl.java:64)
> 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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1087)
> at 
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1061)
> at 
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:287)
> at 
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:205)
> at 
>
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
> at 
>
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136)
> at 
>
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:236)
> at 
>
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:284)
> at 
>
org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:114)
> at 
>
org.springframework.context

Re: Tutorial Jetspeed 1.5

2004-12-01 Thread Dan Moore
Hi Marco,

Did you search the mailing list?  That's available here:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]

I searched the mailing list for this exception, and found this message,
which seems to address your problem.
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=13325

Dan

--- Marco Wallbaum <[EMAIL PROTECTED]> wrote:

> hello!
> I have got a problem installing Jetspeed 1.5. I have downloaded the
> source-files and than I have followed these steps:
> 1. Install a Java compiler (1.3 or greater) 
> 2. Install Ant (1.5 or greater) 
> 3. Install Maven 
> 4. Install Tomcat 4 (4.1.12 or higher (last tested on 4.1.30)) or
> Tomcat 5 
> 5. Install Jetspeed (1.5 release or higher). Release 1.5 includes the
> tutorial and examples. You can also checkout Jetspeed from the CVS
> head
> to get the tutorial. 
> 6. Build Jetspeed. From the root jetspeed directory, type maven
> dist:install
> 
> But the result of step 6 is the following error message:
> 
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> 
> Tag library requested that is not present: 'maven' in plugin: 'null'
> build:start:
> 
> dist:build-setup:
> [mkdir] Created dir:
> H:\java\Testumgebung\jetspeed-1.5\target\distributions
> 
> dist:prepare-bin-filesystem:
> [mkdir] Created dir:
>
H:\java\Testumgebung\jetspeed-1.5\target\jetspeed-1.5\bin\jetspeed-1.5
> [echo] 
>
++
> | C R E A T I N G  J E T S P E E D  B I N A R Y  D I S T R I B U T I
> O
> N |
>
++
>   
> [copy] Copying 7 files to
>
H:\java\Testumgebung\jetspeed-1.5\target\jetspeed-1.5\bin\jetspeed-1.5
> Tag library requested that is not present: 'maven' in plugin: 'null'
> war:init:
> 
> war:war-resources:
> [mkdir] Created dir:
> H:\java\Testumgebung\jetspeed-1.5\target\jetspeed
> [mkdir] Created dir:
> H:\java\Testumgebung\jetspeed-1.5\target\jetspeed\WEB-INF
> [copy] Copying 457 files to
> H:\java\Testumgebung\jetspeed-1.5\target\jetspeed
> [copy] Copied 1 empty directory to
> H:\java\Testumgebung\jetspeed-1.5\target\jetspeed
> [copy] Copying 1 file to
> H:\java\Testumgebung\jetspeed-1.5\target\jetspeed\WEB-INF
> 
> java:prepare-filesystem:
> [mkdir] Created dir:
> H:\java\Testumgebung\jetspeed-1.5\target\classes
> Tag library requested that is not present: 'maven' in plugin: 'null'
> 
> java:compile:
> prepare.apis:
> [echo] Generating Jetspeed XML bindings
> [java] -- Suppressing non fatal warnings.
> 
> torque:init:
> 
> torque:om-check:
> 
> torque:om:
> torque:init:
> Overriding previous definition of reference to torque-classpath
> 
> torque:om-generate:
> [torque-data-model] Using classpath
> [torque-data-model] Generating to file
>
H:[EMAIL PROTECTED]
> 
> 
> BUILD FAILED
> File.. C:\Dokumente und
> Einstellungen\WallM\.maven\cache\maven-torqu
> -3.2\plugin.jelly
> Element... torque-data-model
> Line.. 228
> Column 49
> org.apache.torque.engine.EngineException: Connection timed out:
> connect
> 
> Please I really need a helping hand!!!
> So if you just only have an idea, please let me know!
> Thank's!
> 
> marco
> 
> 
> --
> 
> VERTRAULICHKEITSHINWEIS:
>  Der Inhalt dieser E-Mail ist vertraulich und fuer den Nutzer der
> E-Mail Adresse bestimmt, an den die Nachricht geschickt wurde; sie
> kann darueber hinaus durch besondere Bestimmungen geschuetzt sein.
> Wenn Sie nicht der Adressat dieser E-Mail sind, duerfen Sie diese
> nicht kopieren, weiterleiten, weitergeben oder sie ganz oder
> teilweise in irgendeiner Weise nutzen. Wenn Sie diese E-Mail
> faelschlicherweise erhalten haben, benachrichtigen Sie bitte den
> Absender, indem Sie auf diese Nachricht antworten.
> 
>  CONFIDENTIALITY NOTICE
>  The contents of this e-mail are confidential to the ordinary
> user of the e-mail address to which it was addressed and may also be
> privileged. If you are not the addressee of this e-mail you may not
> copy, forward, disclose or otherwise use it or any part of it in any
> form whatsoever. If you have received this e-mail in error please
> e-mail the sender by replying to this message.
> 
> 
> 
> -
> 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]



solution to Re: how do I link to a localized page with no header and footer

2004-11-30 Thread Dan Moore
Here's the answer, for future reference.

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1587488

Thanks,
Dan

--- Dan Moore <[EMAIL PROTECTED]> wrote:

> Hi folks,
> 
> I'm working on a site that needs a pop up window with localized text.
> 
> I found some stuff on popup windows, but it became too complex, so
> right now, I'm just trying to create a link to a page that has no
> text
> other than what I put in it, but that text can be localized. 
> 
> I looked at the jslink documentation here:
>
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/util/template/JetspeedLink.html
> and here:
> http://portals.apache.org/jetspeed-1/portlet_config_Velocity.html
> and at the jslink example portlet too.
> 
> But didn't really see anything that applied.
> 
> I'd like to avoid creating a new PSML page with a single new portlet
> because:
> 1. It seems like overkill for a simple text message.
> 2. I don't want the top and bottom to show up in the help popup menu.
> 
> This page seems to be talking about what I want:
>
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=15199,
> but I created a page in templates/vm/html/ called foo.vm and linked
> to
> it via $jslink.getTempate("foo").
> 
> When I view the link, I see the text I want, but it has the header
> and
> footer on it. 
> 
> Can I pass parameters to jslink (looked in javadoc, it is not
> immediately obvious to me if this is the case)?  Or do I need a new
> layout?  
> 
> Thanks,
> Dan
> 
> -
> 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]



how do I link to a localized page with no header and footer

2004-11-30 Thread Dan Moore
Hi folks,

I'm working on a site that needs a pop up window with localized text.

I found some stuff on popup windows, but it became too complex, so
right now, I'm just trying to create a link to a page that has no text
other than what I put in it, but that text can be localized. 

I looked at the jslink documentation here:
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/util/template/JetspeedLink.html
and here:
http://portals.apache.org/jetspeed-1/portlet_config_Velocity.html
and at the jslink example portlet too.

But didn't really see anything that applied.

I'd like to avoid creating a new PSML page with a single new portlet
because:
1. It seems like overkill for a simple text message.
2. I don't want the top and bottom to show up in the help popup menu.

This page seems to be talking about what I want:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=15199,
but I created a page in templates/vm/html/ called foo.vm and linked to
it via $jslink.getTempate("foo").

When I view the link, I see the text I want, but it has the header and
footer on it. 

Can I pass parameters to jslink (looked in javadoc, it is not
immediately obvious to me if this is the case)?  Or do I need a new
layout?  

Thanks,
Dan

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



Re: LDAP exsting user problem

2004-11-18 Thread Dan Moore
Hi Amit,

Can you create a new user/password combo, take the crypted version
(that you know the cleartext of) and put that in the ldif file?  Then
reload that ldif file and you have the password for the admin.

The other alternative is to use jetspeed's change password function. 
Have you tried that?  What happened?  (I'm totally unfamiliar with it,
and don't even know if it exists, but the interfaces seem to be there:
http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/services/security/CredentialsManagement.html).

Dan

--- Amit Soni <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> 
>   Here i success fully configured jetspeed-1.5 with LDAP but here i
> face
> one problem.
> 
>   In jetspeed.ldif three users are exist that is admin,turbine,anon.
> so
> when i login using these three users then it gives me password not
> found. So it is not authenticate these three users. But after this
> authentication i have created on more user for that it works fine.
> 
>  so my question is how can i identify the password of admin,turbine
> and
> anon user from the ldap. Because in ldif file the password is in
> crypted
> format. so any one of u have solution the i will be very much
> thankful
> to u.
> 
> write now i uses password for LDAP is ::
> 
> 
> USERNAME  PASSWORD
> 
> admin jetspeed
> anon  anon
> turbine   turbine
> 
> 
> for all these three user it is not working but when i create new user
> from fornt end(jetspeed) for that user it is working.
> 
> 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]
> 
> 


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



localized titles (was Re: getting user object in velocityportlet subclass to build localized title)

2004-11-18 Thread Dan Moore
Thank you Peter.  This was exactly the correct solution and a lot
simpler than what I was contemplating.  Works like a charm.

Thanks,
Dan

--- "Peter F." <[EMAIL PROTECTED]> wrote:

> Hello Dan,
> 
> I solved this problem in another way.
> I just changed a bit of code in
> templates\vm\controls\html\jetspeed.vm
> 
> In the place, where Portlet title is output, I placed this code:
> 
>#if($l10n.get($portlet_instance.Title))
>  $l10n.get($portlet_instance.Title)
>#else
>  $portlet_instance.Title
>#end
> 
> Portlet's title is a key for Localization resources file. If resource
> isn't found, than just portlet's title is shown as is.
> 
>
> 
> 
> Wednesday, November 17, 2004, 11:52:12 PM, you wrote:
> 
> DM> Hi folks,
> 
> DM> I'm interested in having localized titles for the portlets, but
> not
> DM> really interested in maintaining different psml files, since the
> layout
> DM> for each locale the same.
> 
> DM> I saw some pointers in this thread:
> DM>
>
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&by=thread&from=305498
> 
> DM> And have been sucessful in overriding the getTitle() method on
> the
> DM> VelocityPortlet.  However, Kim asks the $64000 question:
> 
> DM> "Any pointers on how to get [the locale] inside the getTitle()
> method?"
> 
> DM> I was looking through some of the other Jetspeed source code and
> saw
> DM> this kind of call:
> 
> DM>this.runDataService =
> DM>(JetspeedRunDataService)TurbineServices.getInstance()
> DM>.getService(RunDataService.SERVICE_NAME);
> DM> rundata = this.runDataService.getCurrentRunData();
> 
> DM> This seemed like it would work, since if the rundata can give me
> the
> DM> user object.  However, when I put this code in my subclass of
> DM> VelocityPortlet, I don't get a JetspeedRunDataService back from 
> DM>
> TurbineServices.getInstance().getService(RunDataService.SERVICE_NAME)
> 
> DM> Instead, I get an instance of
> DM> org.apache.jetspeed.services.resources.JetspeedResourceService,
> even
> DM> though RunDataService.SERVICE_NAME is "RunDataService".
> 
> DM> I tried just instantiating JetspeedRunDataService and calling
> init on
> DM> it, but that give me a null pointer exception (and the Turbine
> services
> DM> webpage implies that that is not what I should be doing, since
> services
> DM> are singletons:
> DM>
>
http://jakarta.apache.org/turbine/turbine/development/turbine-2.3/services/index.html).
> 
> DM> What's the proper way to get the User object from a
> VelocityPortlet?
> DM> I'm overriding getTitle(), so I need to get the User object in
> there.
> 
> DM> Thanks,
> DM> Dan
> 
> DM>
> -
> DM> To unsubscribe, e-mail:
> DM> [EMAIL PROTECTED]
> DM> For additional commands, e-mail:
> DM> [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> Best regards,
>  Peter   
> mailto:[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]



getting user object in velocityportlet subclass to build localized title

2004-11-17 Thread Dan Moore
Hi folks,

I'm interested in having localized titles for the portlets, but not
really interested in maintaining different psml files, since the layout
for each locale the same.

I saw some pointers in this thread:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&by=thread&from=305498

And have been sucessful in overriding the getTitle() method on the
VelocityPortlet.  However, Kim asks the $64000 question:

"Any pointers on how to get [the locale] inside the getTitle() method?"

I was looking through some of the other Jetspeed source code and saw
this kind of call:

   this.runDataService =
   (JetspeedRunDataService)TurbineServices.getInstance()
   .getService(RunDataService.SERVICE_NAME);
rundata = this.runDataService.getCurrentRunData();

This seemed like it would work, since if the rundata can give me the
user object.  However, when I put this code in my subclass of
VelocityPortlet, I don't get a JetspeedRunDataService back from 
TurbineServices.getInstance().getService(RunDataService.SERVICE_NAME)

Instead, I get an instance of
org.apache.jetspeed.services.resources.JetspeedResourceService, even
though RunDataService.SERVICE_NAME is "RunDataService".

I tried just instantiating JetspeedRunDataService and calling init on
it, but that give me a null pointer exception (and the Turbine services
webpage implies that that is not what I should be doing, since services
are singletons:
http://jakarta.apache.org/turbine/turbine/development/turbine-2.3/services/index.html).

What's the proper way to get the User object from a VelocityPortlet? 
I'm overriding getTitle(), so I need to get the User object in there.

Thanks,
Dan

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



RE: Refreshing a psml reference

2004-11-17 Thread Dan Moore
I'd think bypassing the cache would be a bad thing in the future.  You
might want to look at the 'refresh' method on the PSMLManager service
interface:

http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/services/psmlmanager/PsmlManagerService.html#refresh(org.apache.jetspeed.om.profile.ProfileLocator)

I'd dig into that class to gain a better understanding of how caching
of psml documents actually happens.  What you're experiencing implies
that it happens on a user by user basis, which does not make a whole
lot of sense to me, at least for group and role based psml documents.

Dan

--- [EMAIL PROTECTED] wrote:

> After a little more research, we discovered one more way to get
> around this
> issue. There is a setting in JetspeedResource.properties file,
> services.PsmlManager.cacheSize. It is default to 100, meaning maximum
> 100
> psml pages will be cached. We change that to 0 and it fixed this psml
> reference refresh issue.
> Is this change recommended? It is obviously for a performance reason
> (probably save time on File I/O). With only limited users(<500)using
> the
> site now, we didn't notice a obvious impact. However, we will have
> more
> users in the future and the psml cache will be a good thing to have.
> Without
> turning it off, is there a setting to control the expiration of the
> psml
> cache? 
> Andy 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 17, 2004 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: Refreshing a psml reference
> 
> 
> We just implemented a Jetspeed 1.5 portal site with tomcat 4.1.18.
> The psml
> reference is used so that different users can share a group or role
> psml
> file. When we make a change to the group psml (e.g. adding a portlet
> to the
> page), the users who have previously login to the site won't see the
> change
> if they login again (even after a while). However, if the user login
> as the
> first time, they could see the change. Of course, the change will be
> visible
> to everyone after bouncing the tomcat. The sequence is like this.
> -login as user1 then logout
> -change the group psml that is referenced by user1's psml
> -login as user2 to verify the referenced psml is changed.
> -if yes from pervious step, login as user1
> -too bad, the user1 still don't see the change.
> It seems that there is caching happened for user1. However we are not
> sure
> which setting could affect this. We also waited overnight expecting
> the
> cache will expire. That did not happen either. 
> Has anyone actively using reference? Any experience with this issue?
> Thanks!
> Andy
> 
> -
> 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: performance slowdown for 100,000 users, all with same PSML

2004-11-17 Thread Dan Moore
Well folks, we found the issue with the 100,000 users problem.  

I used p6spy to grab all the SQL statements going to the database, and
we saw this:

1099788107943|13|1|statement||SELECT TURBINE_USER.USER_ID,
TURBINE_USER.LOGIN_NA
ME, TURBINE_USER.PASSWORD_VALUE, TURBINE_USER.FIRST_NAME,
TURBINE_USER.LAST_NAME
, TURBINE_USER.EMAIL, TURBINE_USER.CONFIRM_VALUE,
TURBINE_USER.MODIFIED, TURBINE
_USER.CREATED, TURBINE_USER.LAST_LOGIN, TURBINE_USER.DISABLED,
TURBINE_USER.OBJE
CTDATA, TURBINE_USER.PASSWORD_CHANGED FROM TURBINE_USER WHERE
TURBINE_USER.LOGIN
_NAME='17215'
1099788107976|15|1|statement||SELECT TURBINE_USER_GROUP_ROLE.USER_ID,
TURBINE_US
ER_GROUP_ROLE.GROUP_ID, TURBINE_USER_GROUP_ROLE.ROLE_ID FROM
TURBINE_USER_GROUP_
ROLE WHERE TURBINE_USER_GROUP_ROLE.USER_ID='17215'
1099788108002|10|1|statement||SELECT TURBINE_ROLE.ROLE_ID,
TURBINE_ROLE.ROLE_NAM
E, TURBINE_ROLE.OBJECTDATA FROM TURBINE_ROLE WHERE
TURBINE_ROLE.ROLE_ID=1
1099788108032|10|1|statement||SELECT TURBINE_GROUP.GROUP_ID,
TURBINE_GROUP.GROUP
_NAME, TURBINE_GROUP.OBJECTDATA FROM TURBINE_GROUP WHERE
TURBINE_GROUP.GROUP_ID=1

Many many times.  In fact, these four statements were repeated around
60 times for one page load with 9 portlets.  I don't know why, since
this property was set in JetspeedSecurity.properties:

services.JetspeedSecurity.caching.enable=true

This obviously slowed portlet rendering down quite a bit.  Since we are
not using any of Jetspeed's authorization capabilities, we turned it
off by setting this property:

services.PortalAccessController.classname=org.apache.jetspeed.services.security.
nosecurity.NoSecurityAccessController

This helped a lot.  We saw no more of the statements mentioned above,
and page load times go down dramatically.  

Thanks for all your help.

Dan



--- David Sean Taylor <[EMAIL PROTECTED]> wrote:

> Youssef Mohammed wrote:
> > I think it has nothing to do with the portlets since the only
> changes
> > he (Dan) made was the number of users.
> > I suggest to do some profiling (both IBM and Oracle stuff can help
> )
> > to the jetspped instance to see what is going on.
> > I used to work on J1 last year and I did found some scalability
> issues on it. 
> > I donno if they still exist on not. 
> > 
> 
> If our resident performance expert doesn't mind, could I also
> recommend 
> trying the delay rendering feature, which allows for J1 to render 
> portlets in parallel.
> By default, J1 will render portlet sequentially, meaning that portlet
> 2 
> doesnt start rendering until portet 1 completes and so on.
> 
> 
> -- 
> 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]



Re: Static content

2004-11-17 Thread Dan Moore
http://portals.apache.org/jetspeed-1/portlet_config_HTML.html?

Not sure what you mean by 'presentation of company'.

Dan

--- lahsen abouenour <[EMAIL PROTECTED]> wrote:

> Hi,
> What is the best way to display static content (presentation of
> company, ...) ?
> Thanks.
> 
> 
> -
> 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: Default/Anon Screen ?

2004-11-16 Thread Dan Moore
I do something similar.  In
WEB-INF/templates/vm/layouts/html/default.vm, the very first line is:

#if ($data.user.userName == 'anon')
 $data.response.sendRedirect($config.getString("nologin.cookie.url"))
#end

The other option (probably better) is to edit the PSML of the anon user
to have no portlets.  Of course, then you're limited in terms of what
you have there, since the header and footer are common to all users. 
(But, you could wrap if statements similar to what I have above to only
show some content to the anon user.)

Dan

--- "Hampton, Thomas" <[EMAIL PROTECTED]> wrote:

> Jetspeed seems to come up for the Anon user to a screen that is some
> kind of "portlet container".  Is it possible to change that default
> screen to not be the a "portlet container" but some other screen ?
> 
> What I'd like to do is have a regular screen be the default, and use
> the
> portal container when a user has logged in and selected some
> portlets.
> 
> Tom Hampton
> Sr. Software Engineer / Architect
> SRA International, Inc.
> [EMAIL PROTECTED]
> Phone 240-221-2012
> Fax 240-221-2001
> 
> 
> 


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



performance slowdown for 100,000 users, all with same PSML

2004-11-15 Thread Dan Moore
Hi folks,

I have an application I'm building on top of Jetspeed 1.5--I just
grabbed the WAR from portals.apache.org.  The back end is an Oracle
database.

I end up having around 100,000 users in the turbine_user table.  All of
these users have the same PSML and they all have the same role; we're
using the role fallback mechanism.  The PSML is stored on the
filesystem, under role/user//; right now I'm only
using English and the US.

I was seeing a massive slowdown in our application when we went from
the 3 sample users to the full 100,000, so I'm trouble shooting that. 
The average page draw went from 4 seconds to 18 seconds (this is with 4
simulated users hitting the home page at once).  I was able to get
response times of around 4 seconds on my box (it's old and slow) with
the default jetspeed setup (just as downloaded from the site:
hypersonic db, only logging in as an anonymous user).

I modified the JetspeedSessionValidator to log folks in with a cookie,
but that's the only code change I've made to the vanilla jetspeed war
I'm benchmarking (I profiled it and that method only adds 300
milliseconds or so).  I did make two configuration changes:

automatic.logon.enable=true

database.default.maxConnections=20

I took a look at this page:
http://nagoya.apache.org/wiki/apachewiki.cgi?JetspeedPerformanceTips
but didn't really notice any huge gains (I did up the number of
connections allowed in TurbineResources.properties and
Torque.properties).  In addition, it seems that many of the suggestions
have been incorporated into the defaults.

The turbine_user and turbine_user_group_role tables have their standard
indices.

I'm trying to figure out where the extra 15 seconds comes from.  I
guess I'm not so concerned about the absolute time it takes (we're
going to deploy on much faster hardware), but I do want to get the
ratio down. 

>From just watching the page draw, it seems that the top gets drawn
quickly, then the actual portlets themselves are slow.  I see warnings
in the logs about the specific psml files not being found for a given
user--are these a significant slowdown?  Should I change
services.Profiler.fallback.country
and 
services.Profiler.fallback.language 
to be false?

For one PSML file, is db based PSML a better choice?  Is there some
caching that I can turn on that isn't on by default?  Is simpler PSML
going to cause any kind of speed up?

I also searched the mailing list for performance related issues.  I saw
this
(http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1640251)
which I plan to try tomorrow morning, but didn't see any other things I
should be doing. 

Any help would be most appreciated.

Thanks,
Dan

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



Re: Jetspeed 1.5 with WebSphere 4.06 cannot support Chinese input

2004-11-12 Thread Dan Moore
Hi Eric,

I'm running Jetspeed 1.5 in Tomcat with Oracle 9 as the backend, and
have no troubles inputting and outputting Korean characters, so Asian
character set storage is definitely possible.  (I know next to nothing
about UTF-8 character storage, so if Korean is not a good substitute
for Chinese, I'm sorry.)

Perhaps it's the database backend that's not set up correctly?  Or
websphere?  Can you write a simple servlet which attempts to store
Chinese characters in your database to eliminate that as the cause?

Dan

--- eric zhu <[EMAIL PROTECTED]> wrote:

> Hello Jetspeed users,
>  
> I'm developing portlet based on Jetspeed 1.5 with WebSphere 4.06,
> Chinese can be showed correctly, but cannot be inputed correctly. I
> set the properties as following.
> 1. JetspeedResources.properties: content.defaultencoding=UTF-8
> 2. media.xreg: UTF-8
> 3. WebSphere JVM: client.encoding.override=UTF-8, file.encoding=UTF-8
>  
> Thanks for your help in advance.
> 
> 
> 
> Eric Zhu 
> 
> 
> 
> 
> -
> Do You Yahoo!?
> ÏÓÓÊÏä̫С£¿ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡


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



Re: Extending Jetspeed User

2004-11-10 Thread Dan Moore

--- Ruy Diaz Jara <[EMAIL PROTECTED]> wrote:

> A couple of things happened after I followed the procedure. 
> 
> The JAR was succesfully built, but there seems to be no target/sql/
> directory,
> anyway this is no big problem, I'll just add the column manually to
> my
> TURBINE_USER table. 

OK.  If you ran maven torque:sql it should have generated the sql
directory, but it doesn't sound like a huge issue.

> The strange part is that I was looking over the jetspeed-1.5.jar, and
> I noticed
> that BaseJetspeedUserPeer has no accessors for the new field.
> However,
> BaseTurbineUserPeer does. Does this mean that I should extend
> TurbineUser and
> not Jetspeed user?

I'm pretty sure you still want to extend BaseJetspeedUser, which
extends BaseTurbineUser.  The behavior you saw seems normal: since
you're modifying the turbine users schema definition, the Turbine
classes should be the ones that are modified.

Let me know how it works out.

Dan

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



Re: Extending Jetspeed User

2004-11-10 Thread Dan Moore

--- Ruy Diaz Jara <[EMAIL PROTECTED]> wrote:

> Hi everyone,
> 
> I am trying extend my Jetspeed user in order to add a field
> containing a title.
> However, I am having A LOT of trouble. I first tried following the
> Turbine
> Extend User How-To with no luck. Now I have been trying the
> instructions from
> the Jetspeed site with basically the same result. I think the problem
> is with
> where I am doing the changes. 
> 
> I have downloaded the jetspeed source, but according to the
> instructions there
> should be a build/torque directory which I don't seem to find. 

Are you downloading the src from CVS, or the 1.5 release?  I don't see
a build/torque directory in the 1.5 release.

> Do I
> have to do
> some building before this directory appears (maven dist:install)? or
> is this
> just a typo from the instructions and what I actually have to modify
> is in the
> src/torque-schema directory? 

I believe you modify src/torque-schema/security-schema.xml

> The same would apply to the
> build.properties. I
> can't seem to find them! The only build.properties are in
> C:\java\jetspeed-1.5\scratchpad\jetspeed-cms

I think you're supposed to change project.properties to point to your
correct database. 

In order to get the new sql and the new torque classes, I had to use
this maven line:
maven clean torque:sql dist -Dmaven.test.skip=true

This generates a jetspeed.jar file with the new torque classes and puts
the sql in target/sql/

> I will greatly appreciate any pointers as to where I'm not
> understanding the
> instrucions (I have no experience with Maven whatsoever).

I agree.  I ended up not using maven and just writing ant scripts to do
what I wanted to do.  Maven confused the heck out of me.

Dan

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



velocity portlet without action class?

2004-11-08 Thread Dan Moore
Hi folks,

I'm interested in a simple portlet that will just have one velocity
template.  I looked at the VelocityPortlet, but that has a backing
action class that I just don't need (everything is available in message
bundles via l10n).  I looked at the portlet catalog and in the
demo-portlets registry entry, but didn't find anything that looked
applicable.

I'm using jetspeed 1.5.

Thanks,
Dan

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



Re: Bulk importing users

2004-11-08 Thread Dan Moore
Hi Chris,

I've got an existing system with about 100,000 users.  In order to
enable them to login and use Jetspeed, I just added a view over the
existing schema with the same column names Jetspeed was expecting.  The
only alteration I had to make was adding a long column to the existing
user table for Jetspeed to use.

This worked, but for some reason the portlet draw process became very
very slow.  I'm looking at alternatives right now.

Dan

--- chris holt <[EMAIL PROTECTED]> wrote:

> Does anybody have any experience with trying to import users from
> another system into Jetspeed?
> I'm interested in any gotchas.
>  
> Thanks,
>  
> Chris
> 



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



gridsphere help (was Re: help needed)

2004-11-01 Thread Dan Moore
Hi,

This is a mailing list for the jetspeed portal system
(http://portals.apache.org/jetspeed-1/ and
http://portals.apache.org/jetspeed-2/).  If you want help with the
Gridsphere Portal Server, I'd start at the Gridsphere website:

http://www.gridsphere.org/gridsphere/gridsphere

Good luck.
Dan

--- Srinivasarao Sri <[EMAIL PROTECTED]> wrote:

> Hi ,
> I am getting problem while installing gridsphere portal server.
>  
> [style] : Fatal Error! org.apache.xml.dtm.DTMException: No more DTM
> IDs are available Cause: org.apache.xml.dtm.DTMException: No more DTM
> IDs are available
> The error I got while executing >ant install 
>  
> Can any one help me on this.
> Regards,
> Sri
> 
>   
> -
> Do you Yahoo!?
>  Check out the new Yahoo! Front Page.  www.yahoo.com/a


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



Re: Question about layout of two portlets at the same place

2004-10-29 Thread Dan Moore
Hi Peter,

I didn't do this with two portlets.  I did this with one
VelocityPortlet, with a set of forms on the page.  In the template, I
had blocks of html surrounded with if statements.  Then, when someone
clicked the 'Add' button, I had a setup method that turned the add
parameter on, which then showed the full add form.

Hope this helps,
Dan

--- "Peter F." <[EMAIL PROTECTED]> wrote:

> Hello All,
> 
> I want to have two portlets on the same place.
> One of them is the list of the items and the other is form for new
> item creating. By default I want the only first portlet being shown.
> When user clicks on link 'Add item' I want the second portlet being
> shown on that place instead of the first one.
> 
> 
> That's just like UserBrowser and UserForm in Admin interface, but I
> don't want to use Menu control. So, how can I describe the layout for
> that?
> 
> Thanks.
> 
> -- 
> Best regards,
>  Peter  mailto:[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: problem to call Bean in jsp page

2004-10-25 Thread Dan Moore
Hi,

I'm not all that familiar with JSP and beans, but I thought there were
two things you should look at:

1. importing the bean (using <[EMAIL PROTECTED] import=... syntax) into the jsp

2. having the bean class in the default package.  couldn't find
anything solid about this, but I thought I remembered reading somewhere
that this was an issue.

Dan

--- Amit Soni <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
>Here i have already added one simple jsp page in jetspeed portlet
> using admin-->portlet browser tool which contain simple output. But i
> have problem when i call the simple bean in this page. so if i want
> call
> the Java Bean with this jsp file then it gives me error.
> 
> The content of my jsp file is :: 
> 
> 
> <%
> out.println("From Bean " + bean.getMessage());
> %>
> 
> The content of MyClass.java is ::
> public class MyClass {
>  public String getMessage() {
>   return "Hello World";
>  }
> }
> 
> then in portlet that i have added it gives me error like this ::
> 
> Error encountered processing a template:
> /portlets/html/HelloWorlds.jsporg.apache.jasper.JasperException:
> /WEB-INF/templates/jsp/portlets/html/HelloWorlds.jsp(1,1) The value
> for
> the useBean class attribute MyClass is invalid. at
>
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
> at
> 
> so any one of u have idea reagarding 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]
> 
> 


-
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: 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: [SPAM] Error retrieving Portal Page: Profile not found.

2004-10-20 Thread Dan Moore
Hi,

The correct sequence for me (with oracle) was:

1.  use src/sql/*.sql for everything but psml DDL, including populate
script which populates turbine tables, etc.

2.  use targets/sql/ psml script for psml DDL.

3.  use maven import for psml data, from filesystem.

Dan

--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:

> 
> Dan Moore wrote:
> 
> >Did you do this after running the sql scripts in target/classes/sql?
> >  
> >
> Yes.
> 
> >I received a message like this when I ran the sql scripts in
> >src/external/sql and then tried to import psml files.  The database
> was
> >not set up correctly, nor were the Torque classes.
> >
> >  
> >
> Noted.
> 
> >After I ran the sql scripts in target/classes/sql (the psml script)
> I
> >was able to successfully import.
> >
> >  
> >
> So, what's the right sequence ? src/external/sql --
> target/classes/sql 
> -- maven import ?
> 
> Thanks
> 
> Lukman
> 
> >Dan
> >
> >--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>Dan,
> >>
> >>I tried this step too before. I thought it might look at the
> default 
> >>files and export to database, but it shows 0 profiles instead.
> >>
> >>I really don't know what's missing now.
> >>
> >>Thanks
> >>
> >>Lukman
> >>
> >>
> >>import:
> >>[java] * PSML Importer *
> >>[java] log4j:WARN No appenders could be found for logger 
> >>(org.apache.stratum.component.ComponentLoader).
> >>[java] log4j:WARN Please initialize the log4j system properly.
> >>[java] NOTICE: Finished initializing all services!
> >>    [ava] Running with Importer Service: class 
> >>
> >>
> >>
>
>org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService
> >  
> >
> >>[java] Running with Exporter Service: class 
> >>org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService
> >>[java] PSMLImporter completed. Exported 0 profiles
> >>[java]  PSML Importer - completed
> >>
> >>
> >>Dan Moore wrote:
> >>
> >>
> >>
> >>>The normal way to populate the jetspeed profile tables is to write
> >>>  
> >>>
> >>psml
> >>
> >>
> >>>files and then run the maven import task.
> >>>
> >>>See "Converting from PSML files to a PSML Database" here
> >>>http://portals.apache.org/jetspeed-1/psml_db.html
> >>>
> >>>Dan
> >>>
> >>>--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:
> >>>
> >>> 
> >>>
> >>>  
> >>>
> >>>>One more thing, Peter. I observe populate-mysql.sql doesn't have
> >>>>
> >>>>
> >>any 
> >>
> >>
> >>>>record insert to jetspeed's related profile tables
> (JETSPEED_).
> >>>>Is this normal?
> >>>>
> >>>>Thanks
> >>>>
> >>>>Lukman
> >>>>
> >>>>Peter F. wrote:
> >>>>
> >>>>   
> >>>>
> >>>>
> >>>>
> >>>>>Hello Lukman,
> >>>>>
> >>>>>Probably that's not exactly concerned your problem, but also
> keep
> >>>>>  
> >>>>>
> >>in
> >>
> >>
> >>>>>mind that you need to get latest SQL-scripts turbine-mysql.sql
> and
> >>>>>populate-mysql.sql from CVS.
> >>>>>
> >>>>>I could not run Jetspeed on MySQL with scripts from downloaded
> >>>>>Jetspeed package.
> >>>>>
> >>>>>
> >>>>>
> >>>>>Wednesday, October 20, 2004, 4:53:10 PM, you wrote:
> >>>>>
> >>>>>LWK> Hi,
> >>>>>
> >>>>>LWK> I am installed Jetspeed 1.5 with jakarta-tomcat-5.0.28 and
> >>>>>  
> >>>>>
> >>got
> >>
> >>
> >>>>> 
> >>>>>
> >>>>>  
> >>>>>
> >>>>it
> >>>>   
> >>>>
> >>>>
> >>>>
> >>>>>LWK> working with standard procedure. Pretty interface.
> >>>>>LWK> As I need to use MySQL and followed the following steps
> >>>>>
> >>>>>LWK> * http://portals.apache.org/jetspeed-1/install.html
> >>>>> 
> >>>>>
> >>>>>  
> >>>>>
> >>>>guideline.
> >>>>   
> >>>>
> >>>>
> >>>>
> >>>>>LWK> * run all the mysql related ..sql file src/sql/external
> >>>>>LWK>   (turbine-mysql.sql, and populate-mysql.sql)
> >>>>>LWK> * I modified the project.properties, Torque.properties
> >>>>> 
> >>>>>
> >>>>>  
> >>>>>
> >>>>(both to
> >>>>   
> >>>>
> >>>>
> >>>>
> >>>>>LWK>   relfect the mysql config), and
> >>>>>LWK> JetspeedResources.properties as
> >>>>>LWK>   specified in the guideline page :
> >>>>>LWK>   http://portals.apache.org/jetspeed-1/psml_db.html
> >>>>>LWK>   o However, I am not able to get 
> >>>>>LWK> *target/classes/sql/dbpsml-schema.sql *and 
> >>>>>LWK> *target/classes/sql/security-schema.sql *as
> >>>>> 
> >>>>>
> >>>>>  
> >>>>>
> >>>>specified in
> >>>>   
> >>>>
> >>>>
> >>>>
> >>>>>LWK>
> >>>>>LWK>
> >>>>> 
> >>>>>
> >>>>>  
> >>>>>
>
>>http://portals.apache.org/jetspeed-1/psml_db.html#Creating_PSML_Database
> >>
> >>
> >>> 
> >>>
> 
=== message truncated ===


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



Re: Group based PSML

2004-10-20 Thread Dan Moore
Hi Chris,

>From the looks of it, there's no support for doing 'groupmerge' which
is what I think you want, based on the phrase 'assign new users their
PSML file based on groups instead of roles.'  You could probably hack
something together; look at the mergeRoleProfiles method of
org.apache.jetspeed.services.profiler.JetspeedProfilerService.

Is that type of behavior what you're looking for?  Or do you just want
users to be able to see things based on groups?  In that case, I think
you might want to look at references
(http://portals.apache.org/jetspeed-1/psml.html, under PSML References)
and forwards (http://portals.apache.org/jetspeed-1/forwards.html).

Dan

--- chris holt <[EMAIL PROTECTED]> wrote:

> By the looks of how PSML's can be assigned to new users it appears
> that
> you could have group based PSML as well as role based.
> How would you configure jetspeed to assign new users their PSML file
> based on groups instead of roles?
>  
> Thanks,
>  
> Chris
> 


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



Re: customizing the customizer

2004-10-20 Thread Dan Moore
Hi Raphael,

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

> Dan Moore wrote:
> 
> > Hi folks,
> > 
> > I'm interested in changing the customizer.  In particular, some of
> the
> > UI requirements are
> > 1.  moving portlets (which will always be done within one column)
> takes
> > place in a select box.
> > 2.  removing portlets needs to be checkboxes
> > 3.  Adding portlets needs to happen in one step.  (Well, two steps,
> > actually--go to a page with a set of portlets, select them, and
> have
> > them added.)
> > 
> > I've done #1 by modifying
> >
>
org.apache.jetspeed.modules.actions.controllers.MultiColumnControllerAction.doSave(),
> > and I feel like #2 is possible via the same means.
> > 
> > Two questions:
> > 1. Is hacking the source code the best way to implement these
> changes? 
> > I looked on the mailing list and in the config files and didn't see
> any
> > alternative.
> > 
> 
> 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)?  

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.

Or are you referring to the PortletSetCustomizer in admin.xreg? 
Doesn't that refer to portlet specific customization, not the
customizer?  Or am I missing something?

> Even if you describe it, I assume you have updated the relevant
> Velocity
> templates in webapp/WEB-INF/templates to show your select boxes.

Yes, I modified
WEB-INF/templates/vm/controllers/html/multicolumn-customize.vm to show
the select boxes. 

> I'm not exactly sure why you had to modify the action class since #1
> and 
> #2 look to me as only simplification of the UI (ie the templates) 
> without major impact on the backend code.

Unfortunately, I couldn't figure out how to do it easily.  It looks
like the templates and java classes have a common data structure, the
customize-columns attribute of the SessionState.  I'm not sure how to
modify that in velocity--I couldn't find a reference to that attribute
in any of the velocity templates.

> > 2. Is #3 possible?   Any hints on thois?  From the behavior and
> > glancing at the source, it looks like the add page modifies a
> variable
> > in PageSessionState, which is then saved in the doSave() method.
> > 
> 
> I don't understand the difference with the current process.
> So I'll say it's pretty simple to implement but you may need to
> explain
> in more details what you're trying to achieve and how it differs from
> 
> the default behavior if you want more information on this.

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.

Thanks for your time.
Dan

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



Re: [SPAM] Error retrieving Portal Page: Profile not found.

2004-10-20 Thread Dan Moore
Did you do this after running the sql scripts in target/classes/sql?

I received a message like this when I ran the sql scripts in
src/external/sql and then tried to import psml files.  The database was
not set up correctly, nor were the Torque classes.

After I ran the sql scripts in target/classes/sql (the psml script) I
was able to successfully import.

Dan

--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:

> Dan,
> 
> I tried this step too before. I thought it might look at the default 
> files and export to database, but it shows 0 profiles instead.
> 
> I really don't know what's missing now.
> 
> Thanks
> 
> Lukman
> 
> 
> import:
> [java] * PSML Importer *
> [java] log4j:WARN No appenders could be found for logger 
> (org.apache.stratum.component.ComponentLoader).
> [java] log4j:WARN Please initialize the log4j system properly.
> [java] NOTICE: Finished initializing all services!
> [java] Running with Importer Service: class 
>
org.apache.jetspeed.services.psmlmanager.db.DatabasePsmlManagerService
> [java] Running with Exporter Service: class 
> org.apache.jetspeed.services.psmlmanager.CastorPsmlManagerService
> [java] PSMLImporter completed. Exported 0 profiles
> [java]  PSML Importer - completed
> 
> 
> Dan Moore wrote:
> 
> >The normal way to populate the jetspeed profile tables is to write
> psml
> >files and then run the maven import task.
> >
> >See "Converting from PSML files to a PSML Database" here
> >http://portals.apache.org/jetspeed-1/psml_db.html
> >
> >Dan
> >
> >--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>One more thing, Peter. I observe populate-mysql.sql doesn't have
> any 
> >>record insert to jetspeed's related profile tables (JETSPEED_).
> >>Is this normal?
> >>
> >>Thanks
> >>
> >>Lukman
> >>
> >>Peter F. wrote:
> >>
> >>
> >>
> >>>Hello Lukman,
> >>>
> >>>Probably that's not exactly concerned your problem, but also keep
> in
> >>>mind that you need to get latest SQL-scripts turbine-mysql.sql and
> >>>populate-mysql.sql from CVS.
> >>>
> >>>I could not run Jetspeed on MySQL with scripts from downloaded
> >>>Jetspeed package.
> >>>
> >>>
> >>>
> >>>Wednesday, October 20, 2004, 4:53:10 PM, you wrote:
> >>>
> >>>LWK> Hi,
> >>>
> >>>LWK> I am installed Jetspeed 1.5 with jakarta-tomcat-5.0.28 and
> got
> >>>  
> >>>
> >>it
> >>
> >>
> >>>LWK> working with standard procedure. Pretty interface.
> >>>LWK> As I need to use MySQL and followed the following steps
> >>>
> >>>LWK> * http://portals.apache.org/jetspeed-1/install.html
> >>>  
> >>>
> >>guideline.
> >>
> >>
> >>>LWK> * run all the mysql related ..sql file src/sql/external
> >>>LWK>   (turbine-mysql.sql, and populate-mysql.sql)
> >>>LWK> * I modified the project.properties, Torque.properties
> >>>  
> >>>
> >>(both to
> >>
> >>
> >>>LWK>   relfect the mysql config), and
> >>>LWK> JetspeedResources.properties as
> >>>LWK>   specified in the guideline page :
> >>>LWK>   http://portals.apache.org/jetspeed-1/psml_db.html
> >>>LWK>   o However, I am not able to get 
> >>>LWK> *target/classes/sql/dbpsml-schema.sql *and 
> >>>LWK> *target/classes/sql/security-schema.sql *as
> >>>  
> >>>
> >>specified in
> >>
> >>
> >>>LWK>
> >>>LWK>
> >>>  
> >>>
>
>http://portals.apache.org/jetspeed-1/psml_db.html#Creating_PSML_Database
> >  
> >
> >>>LWK> * mysql connection is okay, because I must login with the
> >>>  
> >>>
> >>right
> >>
> >>
> >>>LWK>   username / password, and also tested it with mysql
> >>>  
> >>>
> >>shutdown (got
> >>
> >>
> >>>LWK>   different errors)
> >>>
> >>>LWK> After following those steps, I am 

Re: [SPAM] Error retrieving Portal Page: Profile not found.

2004-10-20 Thread Dan Moore
The normal way to populate the jetspeed profile tables is to write psml
files and then run the maven import task.

See "Converting from PSML files to a PSML Database" here
http://portals.apache.org/jetspeed-1/psml_db.html

Dan

--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:

> One more thing, Peter. I observe populate-mysql.sql doesn't have any 
> record insert to jetspeed's related profile tables (JETSPEED_).
> Is this normal?
> 
> Thanks
> 
> Lukman
> 
> Peter F. wrote:
> 
> >Hello Lukman,
> >
> >Probably that's not exactly concerned your problem, but also keep in
> >mind that you need to get latest SQL-scripts turbine-mysql.sql and
> >populate-mysql.sql from CVS.
> >
> >I could not run Jetspeed on MySQL with scripts from downloaded
> >Jetspeed package.
> >
> >
> >
> >Wednesday, October 20, 2004, 4:53:10 PM, you wrote:
> >
> >LWK> Hi,
> >
> >LWK> I am installed Jetspeed 1.5 with jakarta-tomcat-5.0.28 and got
> it
> >LWK> working with standard procedure. Pretty interface.
> >LWK> As I need to use MySQL and followed the following steps
> >
> >LWK> * http://portals.apache.org/jetspeed-1/install.html
> guideline.
> >LWK> * run all the mysql related ..sql file src/sql/external
> >LWK>   (turbine-mysql.sql, and populate-mysql.sql)
> >LWK> * I modified the project.properties, Torque.properties
> (both to
> >LWK>   relfect the mysql config), and
> >LWK> JetspeedResources.properties as
> >LWK>   specified in the guideline page :
> >LWK>   http://portals.apache.org/jetspeed-1/psml_db.html
> >LWK>   o However, I am not able to get 
> >LWK> *target/classes/sql/dbpsml-schema.sql *and 
> >LWK> *target/classes/sql/security-schema.sql *as
> specified in
> >LWK>
> >LWK>
>
http://portals.apache.org/jetspeed-1/psml_db.html#Creating_PSML_Database
> >
> >LWK> * mysql connection is okay, because I must login with the
> right
> >LWK>   username / password, and also tested it with mysql
> shutdown (got
> >LWK>   different errors)
> >
> >LWK> After following those steps, I am getting : "Error retrieving
> Portal
> >LWK> Page: Profile not found" at the main page.
> >LWK> Seems that jetspeed couldn't find the default profile from
> mysql 
> >LWK> database, but I also found the jetspeed's profile related
> tables are
> >LWK> still empty.
> >
> >LWK> I am doing a proof of concept with jetspeed as the main portal 
> >LWK> framework.  I feel the 3rd step above is the key point, but I
> can't get
> >LWK> the .sql generated.
> >LWK> Can anyone assist me if I missed anything here ?
> >
> >LWK> Thanks
> >
> >LWK> Lukman
> >
> >LWK>
> -
> >LWK> To unsubscribe, e-mail:
> >LWK> [EMAIL PROTECTED]
> >LWK> For additional commands, e-mail:
> >LWK> [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: Error retrieving Portal Page: Profile not found.

2004-10-20 Thread Dan Moore
ina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>   at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>   at
>
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>   at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>   at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>   at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>   at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>   at java.lang.Thread.run(Thread.java:534)
> 
> 
> 
> 
> 
> Dan Moore wrote:
> 
> >Hi Lukman,
> >
> >I think you need to regenerate your Torque classes.  I had to do
> this
> >
> >maven clean torque:sql dist -Dmaven.test.skip=true
> >
> >where the torque:sql target generated the sql and dist generated the
> >appropriate classes (and put them in a jar file).  
> >
> >For more, check out
>
>http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=14886
> >
> >HTH.
> >Dan
> >
> >--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>Hi,
> >>
> >>I am installed Jetspeed 1.5 with jakarta-tomcat-5.0.28 and got it 
> >>working with standard procedure. Pretty interface.
> >>As I need to use MySQL and followed the following steps
> >>
> >>* http://portals.apache.org/jetspeed-1/install.html guideline.
> >>* run all the mysql related ..sql file src/sql/external
> >>  (turbine-mysql.sql, and populate-mysql.sql)
> >>* I modified the project.properties, Torque.properties (both to
> >>  relfect the mysql config), and JetspeedResources.properties
> as
> >>  specified in the guideline page :
> >>  http://portals.apache.org/jetspeed-1/psml_db.html
> >>  o However, I am not able to get 
> >>*target/classes/sql/dbpsml-schema.sql *and 
> >>*target/classes/sql/security-schema.sql *as specified
> in
> >>   
> >>
> >>
> >>
>
>http://portals.apache.org/jetspeed-1/psml_db.html#Creating_PSML_Database
> >  
> >
> >>* mysql connection is okay, because I must login with the right
> >>  username / password, and also tested it with mysql shutdown
> >>(got
> >>  different errors)
> >>
> >>After following those steps, I am getting : "Error retrieving
> Portal 
> >>Page: Profile not found" at the main page.
> >>Seems that jetspeed couldn't find the default profile from mysql 
> >>database, but I also found the jetspeed's profile related tables
> are 
> >>still empty.
> >>
> >>I am doing a proof of concept with jetspeed as the main portal 
> >>framework.  I feel the 3rd step above is the key point, but I can't
> >>get 
> >>the .sql generated.
> >>Can anyone assist me if I missed anything here ?
> >>
> >>Thanks
> >>
> >>Lukman
> >>
>
>>-
> >>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]
> 
=== message truncated ===


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



Re: Error retrieving Portal Page: Profile not found.

2004-10-20 Thread Dan Moore
Hi Lukman,

I think you need to regenerate your Torque classes.  I had to do this

maven clean torque:sql dist -Dmaven.test.skip=true

where the torque:sql target generated the sql and dist generated the
appropriate classes (and put them in a jar file).  

For more, check out
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=14886

HTH.
Dan

--- "Lukman W. Kusuma" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am installed Jetspeed 1.5 with jakarta-tomcat-5.0.28 and got it 
> working with standard procedure. Pretty interface.
> As I need to use MySQL and followed the following steps
> 
> * http://portals.apache.org/jetspeed-1/install.html guideline.
> * run all the mysql related ..sql file src/sql/external
>   (turbine-mysql.sql, and populate-mysql.sql)
> * I modified the project.properties, Torque.properties (both to
>   relfect the mysql config), and JetspeedResources.properties as
>   specified in the guideline page :
>   http://portals.apache.org/jetspeed-1/psml_db.html
>   o However, I am not able to get 
> *target/classes/sql/dbpsml-schema.sql *and 
> *target/classes/sql/security-schema.sql *as specified in
>
>
http://portals.apache.org/jetspeed-1/psml_db.html#Creating_PSML_Database
> 
> * mysql connection is okay, because I must login with the right
>   username / password, and also tested it with mysql shutdown
> (got
>   different errors)
> 
> After following those steps, I am getting : "Error retrieving Portal 
> Page: Profile not found" at the main page.
> Seems that jetspeed couldn't find the default profile from mysql 
> database, but I also found the jetspeed's profile related tables are 
> still empty.
> 
> I am doing a proof of concept with jetspeed as the main portal 
> framework.  I feel the 3rd step above is the key point, but I can't
> get 
> the .sql generated.
> Can anyone assist me if I missed anything here ?
> 
> Thanks
> 
> Lukman
> 
> -
> 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: Do Roles work ?

2004-10-20 Thread Dan Moore
Hi Jonathan,

--- Jonathan Hawkins <[EMAIL PROTECTED]> wrote:

> I created a role with every permission except close permission.
> Created a
> new user and gave him the new role and no others. Logged in as the
> new user
> and he can still use the close button on the portlets. Shouldn't the
> close
> button either be disabled or invisible ?

This procedure has workd for me.  Did you follow the directions under
the RoleMerge heading here:
http://portals.apache.org/jetspeed-1/config_guide.html

That's required before you get roles copied, otherwise, I believe a new
user is given psml copied from the turbine user.  (Just so you know,
rolemerging doesn't work out of the box for any page except
default.psml, see
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=14891
for more).

Also, I'm not sure where you see the close box.  Is it on the home page
or in the customizer?  Even when I didn't give folks the close
permission, when they're in the customizer, they have the ability to
close portlets.  My solution was to not allow them to customize certain
groups of portlets.

Dan

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



customizing the customizer

2004-10-19 Thread Dan Moore
Hi folks,

I'm interested in changing the customizer.  In particular, some of the
UI requirements are
1.  moving portlets (which will always be done within one column) takes
place in a select box.
2.  removing portlets needs to be checkboxes
3.  Adding portlets needs to happen in one step.  (Well, two steps,
actually--go to a page with a set of portlets, select them, and have
them added.)

I've done #1 by modifying
org.apache.jetspeed.modules.actions.controllers.MultiColumnControllerAction.doSave(),
and I feel like #2 is possible via the same means.

Two questions:
1. Is hacking the source code the best way to implement these changes? 
I looked on the mailing list and in the config files and didn't see any
alternative.

2. Is #3 possible?   Any hints on thois?  From the behavior and
glancing at the source, it looks like the add page modifies a variable
in PageSessionState, which is then saved in the doSave() method.

Thanks for your help,
Dan

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



Re: customizing non default.psml page when using rolemerge modifies default.psml

2004-10-18 Thread Dan Moore
Hi folks,

I was able to track this down to a few lines in the
JetspeedProfilerService class.  Apparently, this only supports role
merging for the default.psml page.

Here is the change I made, which allows role merging for pages other
than default.psml.  I'm not sure how to go about submitting this, or
even whether the jetspeed 1.5 codebase is still under development.

$ diff JetspeedProfilerService.java
jetspeed-1.5/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java
381,386c381
< String page = data.getParameters().getString(
Profiler.PARAM_PAGE );
< //String page = rundata.getParameters.get("page");
< if (page == null || "".equals(page) ) {
<   page = this.resourceDefault + this.resourceExt;
<   }
< locator.setName(page);
---
> locator.setName(this.resourceDefault +
this.resourceExt);

Also, please not that I tested this, but might have missed some larger
ramification of this change.

Dan

PS To answer my own question below, the 
services.Profiler.newuser.template isn't checked when a new user is
added via the db and logs in.  Not sure when it is.

--- Dan Moore <[EMAIL PROTECTED]> wrote:

> Hi folks,
> 
> I have a portal which has two pages.
> default.psml
> and 
> instruments.psml
> 
> I have two requirements of these pages.
> 1.  They have to start off from a common template
> and
> 2.  They must be customizable.
> 
> I've thought about using the services.Profiler.newuser.template
> property, but we're not goint to be adding users via Jetspeed's
> interface (too many of them).  Will this property work without using
> the user admin piece of jetspeed?  Looking at the code, I'm not sure.
> 
> Anyway, I think I have #1 taken care of--I'm setting
> 
> services.Profiler.rolemerge=true
> services.Profiler.rolefallback=true
> 
> and using the OneColumn controller and ClearPortletControl control
> (since I can guarentee that users will only have one role).  If
> there's
> a better way to do this, I'd love to hear it.  
> 
> So for a first time user, neither of these pages exist under
> WEB-INF/psml/user.  When I customize the default.psml page, it gets
> written to that directory.  However, the instrument.psml page does
> not.
>  There are two scenarios.  When I navigate to the instrument.psml
> page
> via a forward like this:
> 
> 
> 
> I end up editing the role page for the user role; thus, changes to
> this
> psml get propagated to other users.  Not what I want.
> 
> When I navigate via this forward:
> 
> 
> 
> I end up editing default.psml for the turbine user, not
> instruments.psml.
> Even when I edit the url to be 
> teleportal/portal/media-type/html/page/instruments.psml/user/turbine
> when I look at the URL for the customizer, I see default.psml as the
> page.
> 
> I've looked at
> http://portals.apache.org/jetspeed-1/config_guide.html
> and
> http://portals.apache.org/jetspeed-1/forwards.html
> but couldn't see anything helpful.
> 
> Also, I've looked through the mailing list.  This message
>
(http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1854321)
>  seems to help a bit.  But no one seems to have the problem I'm
> having.
> 
> I'm using Jetspeed 1.5 with the file based PSML service.  Nothing
> really of interest in the WEB-INF/log directory that I can see.
> 
> Thanks for your time.
> Dan
> 
> -
> 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]



customizing non default.psml page when using rolemerge modifies default.psml

2004-10-18 Thread Dan Moore
Hi folks,

I have a portal which has two pages.
default.psml
and 
instruments.psml

I have two requirements of these pages.
1.  They have to start off from a common template
and
2.  They must be customizable.

I've thought about using the services.Profiler.newuser.template
property, but we're not goint to be adding users via Jetspeed's
interface (too many of them).  Will this property work without using
the user admin piece of jetspeed?  Looking at the code, I'm not sure.

Anyway, I think I have #1 taken care of--I'm setting

services.Profiler.rolemerge=true
services.Profiler.rolefallback=true

and using the OneColumn controller and ClearPortletControl control
(since I can guarentee that users will only have one role).  If there's
a better way to do this, I'd love to hear it.  

So for a first time user, neither of these pages exist under
WEB-INF/psml/user.  When I customize the default.psml page, it gets
written to that directory.  However, the instrument.psml page does not.
 There are two scenarios.  When I navigate to the instrument.psml page
via a forward like this:



I end up editing the role page for the user role; thus, changes to this
psml get propagated to other users.  Not what I want.

When I navigate via this forward:



I end up editing default.psml for the turbine user, not
instruments.psml.
Even when I edit the url to be 
teleportal/portal/media-type/html/page/instruments.psml/user/turbine
when I look at the URL for the customizer, I see default.psml as the
page.

I've looked at
http://portals.apache.org/jetspeed-1/config_guide.html
and
http://portals.apache.org/jetspeed-1/forwards.html
but couldn't see anything helpful.

Also, I've looked through the mailing list.  This message
(http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1854321)
 seems to help a bit.  But no one seems to have the problem I'm having.

I'm using Jetspeed 1.5 with the file based PSML service.  Nothing
really of interest in the WEB-INF/log directory that I can see.

Thanks for your time.
Dan

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



torque targets not called in dist (was Re: working oracle psml in jetspeed 1.5)

2004-10-15 Thread Dan Moore

--- David Sean Taylor <[EMAIL PROTECTED]> wrote:

> Dan Moore wrote:
> 
> > Hi David.
> > 
> > It's all working now.  I don't think I was changing my
> > project.properties.  
> > 
> cool
> 
> > Thanks for your help.
> > 
> > For posterity, what I did to generate working oracle Torque classes
> and
> > sql was:
> > rm -rf jetspeed-1.5/
> > jar -xf jetspeed-current-src.zip
> > cd jetspeed-1.5/
> > vi project.properties
> > changed 'database' property to 'oracle'
> > vi webapp/WEB-INF/conf/Torque.properties
> > changed 'torque.database.default.adapter' to 'oracle'
> > maven clean dist -Dmaven.test.skip=true
> > cp target/jetspeed-1.5.jar ~/save
> > maven torque:sql
> > cp target/classes/sql/*.sql ~/save
> > 
> calling
> 
> maven clean dist -Dmaven.test.skip=true
> 
> should automatically call both torque:sql and torque:om

Hrrm...

Well, when I called that, nothing was created in target/classes/sql. 
In fact, after a 'maven clean dist -Dmaven.test.skip=true' these are
the only sql files with psml in their name:

./src/sql/external/psml-db-oracle.sql
./target/jetspeed-1.5/src/jetspeed-1.5/src/sql/external/psml-db-oracle.sql

And neither of these have the correct sql in them.

Dan


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



Re: working oracle psml in jetspeed 1.5

2004-10-15 Thread Dan Moore

Hi David.

It's all working now.  I don't think I was changing my
project.properties.  

Thanks for your help.

For posterity, what I did to generate working oracle Torque classes and
sql was:
rm -rf jetspeed-1.5/
jar -xf jetspeed-current-src.zip
cd jetspeed-1.5/
vi project.properties
changed 'database' property to 'oracle'
vi webapp/WEB-INF/conf/Torque.properties
changed 'torque.database.default.adapter' to 'oracle'
maven clean dist -Dmaven.test.skip=true
cp target/jetspeed-1.5.jar ~/save
maven torque:sql
cp target/classes/sql/*.sql ~/save

I think you need to run both targets, the first to generate the
classes, the second to generate the sql.

Thanks again for your help.

Dan



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



RE: Running Jetspeed 1.5 on JRun4

2004-10-15 Thread Dan Moore
Hi George,

I entirely misread your problem.  Twice.

If the wrong version of the log4j classes are being picked up, it
sounds like you've found the solution.  

Sorry for the confusion.

Dan

--- "Stathis, George" <[EMAIL PROTECTED]> wrote:

> I'm pretty sure this is not a Jetspeed issue. I think it's JRun not
> prioritizing properly where each web application should be loading
> its'
> classes from (i.e. jars in WEB-INF/lib should take priority over JRun
> jars).
> Tomcat for example has 5 loaders that take care of this
> prioritization.
> 
> Dan, you want me to try putting log4j.properties in WEB-INF/classes
> or did
> you mean the log4j jar?
> 
> 
> -Original Message-
> From: Dan Moore [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 15, 2004 10:13 AM
> To: Jetspeed Users List
> Subject: RE: Running Jetspeed 1.5 on JRun4
> 
> 
> Hi George,
> 
> This isn't a Jetspeed issue, I don't think.
> 
> I'm pretty sure that WEB-INF/lib is not itself added to any webapp's
> classpath.  Each jar inside WEB-INF/lib is, but WEB-INF/lib itself is
> not.
> 
> Did you try putting log4j.properties in WEB-INF/classes?  This
> directory is
> in the classpath.
> 
> Dan
> 
> PS  A typical webapp classpath will look like:
> WEB-INF/classes:WEB-INF/lib/a.jar:WEB-INF/lib/b.jar:WEB-INF/lib/c.jar
> 
> Section SRV.9.5 of the servlet 2.3 spec says
> "The web application classloader must load classes from the WEB-INF/
> classes
> directory first, and then from library JARs in the WEB-INF/lib
> directory."
> 
> --- "Stathis, George" <[EMAIL PROTECTED]> wrote:
> 
> > Figured out the problem. It was indeed a conflict between the log4j
> 
> > versions, but somehow, the Jetspeed application was not picking up
> the 
> > log4j jar in its own WEB-INF\lib directory, but rather, the log4j 
> > classes in the
> > JRUN_HOME\lib\oem-xdoclet.jar. 
> > 
> > The problem was rectified by taking the Jetspeed log4j jar out of
> the 
> > jetspeed WEB-INF\lib and putting it in JRUN_HOME\servers\lib. This
> is 
> > a bit unorthodox though. Shouldn't the application specific jars in
> > WEB-INF\lib be
> > overriding the other classpaths? 
> > 
> > Anyway, thanks to Scott for taking the time to help out!
> > 
> > 
> > -Original Message-
> > From: Stathis, George [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 14, 2004 10:47 AM
> > To: 'Jetspeed Users List'
> > Subject: RE: Running Jetspeed 1.5 on JRun4
> > 
> > 
> > Thank you for the prompt reply. I'm running J1.5 by the way. I just
> 
> > tried your suggestion and the problem persists in the exact same
> way 
> > (same messages).
> > 
> > Looking at the classpath available to the JRun JVM, I see that
> there 
> > are two versions of log4j *in addition* to the one in Jetspeed
> itself. 
> > They both
> > come built-in JRun. One is in:
> > 
> >
>
%JRUN_HOME%\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\log4
> > j.jar
> > 
> > The other in:
> > 
> > %JRUN_HOME%\lib\oem-xdoclet.jar
> > 
> > which contains open source libraries, one of which is log4j. Both 
> > directories above are in the JVM classpath. For a test, I put back
> the 
> > log4j jar in jetspeed/WEB-INF/lib and *removed* the two directories
> 
> > above from the
> > class path. Same error.
> > 
> > Then, I removed the log4j jar from jetspeed/WEB-INF/lib again, and 
> > also left out the two directories above from the classpath.
> Different 
> > error:
> > 
> > (!) NOTICE: Turbine: init() failed: java.lang.NoClassDefFoundError:
> 
> > org/apache/log4j/LogManager
> > 
> > Ahaa! "NoClassDefFoundError" Now I know that log4j is completely
> out 
> > of the classpath.
> > 
> > I re-tested now by putting back into the classpath each jar one by 
> > one.
> > Results:
> > 
> > The
> >
>
%JRUN_HOME%\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\log4
> > j.jar is not being picked up. If it's the only one in the
> classpath, I 
> > still get a "NoClassDefFoundError" error. But both the
> > %JRUN_HOME%\lib\oem-xdoclet.jar and the Jetspeed log4j.jar cause
> the
> > exact
> > same error:
> > 
> > (!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class: 
> > org/apache/log4j/LogManager, method:  signature: ()V) 
> > Incompatible argument to function
> > 
> > Either there is

RE: Running Jetspeed 1.5 on JRun4

2004-10-15 Thread Dan Moore
Hi George,

This isn't a Jetspeed issue, I don't think.

I'm pretty sure that WEB-INF/lib is not itself added to any webapp's
classpath.  Each jar inside WEB-INF/lib is, but WEB-INF/lib itself is
not.

Did you try putting log4j.properties in WEB-INF/classes?  This
directory is in the classpath.

Dan

PS  A typical webapp classpath will look like:
WEB-INF/classes:WEB-INF/lib/a.jar:WEB-INF/lib/b.jar:WEB-INF/lib/c.jar

Section SRV.9.5 of the servlet 2.3 spec says
"The web application classloader must load classes from the WEB-INF/
classes directory first, and then from library JARs in the WEB-INF/lib
directory."

--- "Stathis, George" <[EMAIL PROTECTED]> wrote:

> Figured out the problem. It was indeed a conflict between the log4j
> versions, but somehow, the Jetspeed application was not picking up
> the log4j
> jar in its own WEB-INF\lib directory, but rather, the log4j classes
> in the
> JRUN_HOME\lib\oem-xdoclet.jar. 
> 
> The problem was rectified by taking the Jetspeed log4j jar out of the
> jetspeed WEB-INF\lib and putting it in JRUN_HOME\servers\lib. This is
> a bit
> unorthodox though. Shouldn't the application specific jars in
> WEB-INF\lib be
> overriding the other classpaths? 
> 
> Anyway, thanks to Scott for taking the time to help out!
> 
> 
> -Original Message-
> From: Stathis, George [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 14, 2004 10:47 AM
> To: 'Jetspeed Users List'
> Subject: RE: Running Jetspeed 1.5 on JRun4
> 
> 
> Thank you for the prompt reply. I'm running J1.5 by the way. I just
> tried
> your suggestion and the problem persists in the exact same way (same
> messages).
> 
> Looking at the classpath available to the JRun JVM, I see that there
> are two
> versions of log4j *in addition* to the one in Jetspeed itself. They
> both
> come built-in JRun. One is in:
> 
>
%JRUN_HOME%\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\log4
> j.jar
> 
> The other in:
> 
> %JRUN_HOME%\lib\oem-xdoclet.jar
> 
> which contains open source libraries, one of which is log4j. Both
> directories above are in the JVM classpath. For a test, I put back
> the log4j
> jar in jetspeed/WEB-INF/lib and *removed* the two directories above
> from the
> class path. Same error.
> 
> Then, I removed the log4j jar from jetspeed/WEB-INF/lib again, and
> also left
> out the two directories above from the classpath. Different error:
> 
> (!) NOTICE: Turbine: init() failed: java.lang.NoClassDefFoundError:
> org/apache/log4j/LogManager
> 
> Ahaa! "NoClassDefFoundError" Now I know that log4j is completely out
> of the
> classpath. 
> 
> I re-tested now by putting back into the classpath each jar one by
> one.
> Results:
> 
> The
>
%JRUN_HOME%\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\log4
> j.jar is not being picked up. If it's the only one in the classpath,
> I still
> get a "NoClassDefFoundError" error. But both the
> %JRUN_HOME%\lib\oem-xdoclet.jar and the Jetspeed log4j.jar cause the
> exact
> same error:
> 
> (!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class:
> org/apache/log4j/LogManager, method:  signature: ()V)
> Incompatible
> argument to function
> 
> Either there is yet another log4j jar somewhere (not likely since I
> get a
> "NoClassDefFoundError" already), or the problem is somewhere else.
> 
> I will keep experimenting. If there are any other ideas or I'm
> missing
> something, please, someone let me know.
> 
> 
> 
> -Original Message-
> From: Scott T. Weaver
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 14, 2004 10:00 AM
> To: Jetspeed Users List
> Subject: Re: Running Jetspeed 1.5 on JRun4
> 
> 
> Hi George,
> 
> Looks like a version conflict in the version of log4j included with
> J2 
> and the one JRun appears to be using.  Try removing the log4j jar
> from 
> the jetspeed/WEB-INF/lib directory.
> 
> Stathis, George wrote:
> 
> >A few more details:
> >
> >1) Our JRun installation came with ColdFusion MX 6.1, so a bunch of
> >ColdFusion classes are in the classpath.
> >
> >2) When starting the server that houses the Jetspeed 1.5
> application,
> >the following JetspeedLoggingService related error appears in the
> JRun 
> >Launcher
> >log:
> >
> >Starting Apache Jetspeed Portal/1.5
> >
> >(!) NOTICE: init
> >(!) NOTICE: ServiceBroker: LoggingService enabled.
> >(!) NOTICE: Turbine: init() failed: java.lang.VerifyError: (class:
> >org/apache/log4j/LogManager, method:  signature: ()V) 
> >Incompatible argument to function
> >at 
>
>org.apache.jetspeed.services.logging.JetspeedLogFactoryService.getLogge
> >r(Jet
> >speedLogFactoryService.java:168)
> >at
>
>org.apache.jetspeed.services.logging.JetspeedLoggingService.(Jetspe
> e
> >dLoggingService.java:59)
> >at java.lang.Class.forName0(Native Method)
> >at java.lang.Class.forName(Class.java:141)
> >at 
>
>org.apache.turbine.services.BaseInitableBroker.getInitableInstance(Base
> >Init
> a
> >bleBroker.java:257)rethrown as
> >org.apache.turbine.

Re: working oracle psml in jetspeed 1.5

2004-10-14 Thread Dan Moore
Hi David,

--- David Sean Taylor <[EMAIL PROTECTED]> wrote:

> Dan Moore wrote:
> 
> > In order to get the PSML working in Oracle, from the 1.5 binary
> > distribution of Jetspeed, in addition to following the instructions
> > here regarding importing,
> > http://portals.apache.org/jetspeed-1/psml_db.html, I also had to
> make
> > some changes to class files and sql files.
> > 
> > You need both the src and binary distributions.  There's a diff of
> the
> > relevant files below.
> > 
> > Modify the java files:
> > Add _SEQ onto the value in setPrimaryKeyMethodInfo in each of the
> > org/apache/jetspeed/om/dbpsml/map/Jetspeed* files.
> > 
> The files that are you recommended for patching are not in the CVS.
> They 
> are Torque generated files.
> 
> To use Oracle, or any other database besides Hypersonic with
> Jetspeed-1, 
> follow the steps here:
> 
> http://portals.apache.org/jetspeed-1/database.html

I'm certainly no Torque expert.  Thanks for the link.  I followed the
instructions on that page.

I changed Torque.properties:
torque.database.default.adapter=oracle

I didn't change the other config in Torque.properties yet--my database
is down at the moment.  Does Torque need to connect to the db to
generate the sql?  (I hope not.)

Anyway, maven dist did generate new sql files here:
jetspeed-1.5/target/jetspeed-1.5/src/jetspeed-1.5/src/sql/external

I couldn't find any others.  Unfortunately, these sql files do not use
the correct primary key.  Perhaps the torque-schema is incorrect?  I
don't know.  When I look at 
jetspeed-1.5/src/torque-schema/dbpsml-schema.xml, it certainly looks
like the columns are named correctly.

> I believe that the Jetspeed team has made things unnecessarily 
> complicated for end users to change their databsae. Asking people to
> dl 
> the source and recompile just to change the database is not user 
> friendly and a pain in the ass. Look at all the hell we've caused
> Dan.
> 
> Proposed solution:
> 
> Move the Torque generation into a separate sub-project of J1. Create
> a 
> jar for the OM-mapping for each database. Put each of these jars on
> the 
> distribution site with the release:
> 
> jetspeed-om-1.6-oracle.jar
> jetspeed-om-1.6-mysl.jar
> ...

This sounds like a fantastic idea!  

Thanks,
Dan

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



working oracle psml in jetspeed 1.5

2004-10-14 Thread Dan Moore
In order to get the PSML working in Oracle, from the 1.5 binary
distribution of Jetspeed, in addition to following the instructions
here regarding importing,
http://portals.apache.org/jetspeed-1/psml_db.html, I also had to make
some changes to class files and sql files.

You need both the src and binary distributions.  There's a diff of the
relevant files below.

Modify the java files:
Add _SEQ onto the value in setPrimaryKeyMethodInfo in each of the
org/apache/jetspeed/om/dbpsml/map/Jetspeed* files.

Modify the psml-db-oracle.sql file (from the src distribution):
Change each of the id columns to PSML_ID, in both places.
Change LOGIN_NAME to USER_NAME.
Remove each of the unique constraints on _NAME columns (login, role,
group).  (I'm not entirely certain about this, but I think if you need
to support multiple languages, you don't want that constraint.)

I tried following the directions to generate the sql files outlined in
http://portals.apache.org/jetspeed-1/psml_db.html to see if the
torque-schema fixed these issues, but didn't see any sql files
generated.

After making these changes, and putting the classes in the classpath, I
was able to able to import profiles and login successfully.

Have a nice day.
Dan

diff---
diff change/JetspeedGroupProfileMapBuilder.java
orig/JetspeedGroupProfileMapBuilder.java
67c67
< tMap.setPrimaryKeyMethodInfo("JETSPEED_GROUP_PROFILE_SEQ");
---
> tMap.setPrimaryKeyMethodInfo("JETSPEED_GROUP_PROFILE");
diff change/JetspeedRoleProfileMapBuilder.java
orig/JetspeedRoleProfileMapBuilder.java
67c67
< tMap.setPrimaryKeyMethodInfo("JETSPEED_ROLE_PROFILE_SEQ");
---
> tMap.setPrimaryKeyMethodInfo("JETSPEED_ROLE_PROFILE");
diff change/JetspeedUserProfileMapBuilder.java
orig/JetspeedUserProfileMapBuilder.java
67c67
< tMap.setPrimaryKeyMethodInfo("JETSPEED_USER_PROFILE_SEQ");
---
> tMap.setPrimaryKeyMethodInfo("JETSPEED_USER_PROFILE");
Only in orig/: orig
diff change/psml-db-oracle.sql orig/psml-db-oracle.sql
25,26c25,26
<  PSML_ID INT NOT NULL,
<  USER_NAME VARCHAR2 (32) NOT NULL,
---
>  USER_ID INT NOT NULL,
>  LOGIN_NAME VARCHAR2 (32) NOT NULL,
31c31,32
<  PROFILE LONG RAW
---
>  PROFILE LONG RAW,
>  UNIQUE (LOGIN_NAME)
36c37
< PRIMARY KEY (PSML_ID);
---
> PRIMARY KEY (USER_ID);
48c49
<  PSML_ID INT NOT NULL,
---
>  GROUP_ID INT NOT NULL,
54c55,56
<  PROFILE LONG RAW
---
>  PROFILE LONG RAW,
>  UNIQUE (GROUP_NAME)
59c61
< PRIMARY KEY (PSML_ID);
---
> PRIMARY KEY (GROUP_ID);
71c73
<  PSML_ID INT NOT NULL,
---
>  ROLE_ID INT NOT NULL,
77c79,80
<  PROFILE LONG RAW
---
>  PROFILE LONG RAW,
>  UNIQUE (ROLE_NAME)
82c85
< PRIMARY KEY (PSML_ID);
---
> PRIMARY KEY (ROLE_ID);



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



Re: How to get localized string in VelocityPortletAction

2004-10-14 Thread Dan Moore
Hi Peter.

--- "Peter F." <[EMAIL PROTECTED]> wrote:

> Hello ,
> 
> My question is:
> how to get localized string from buildNormalContext(VelocityPortlet
> portlet, Context context, RunData rundata)
> method in VelocityPortletAction.

I was able to do this via this code, in my buildNormalContext method:

   Object ltojb = context.get("l10n");
   CustomLocalizationTool lt = (CustomLocalizationTool) ltojb;
   context.put("test", lt.get("HELLO"));
  
In the template, you just reference $test as normal.

Take it easy,
Dan



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



Re: dynamic title in portlet, solution

2004-10-13 Thread Dan Moore
Hi folks,

What I ended up doing to get a dynamic title in my Jetspeed 1.5
portlets was:
1.  Setting any portlet with a dynamic title to have no titlebar.
2.  Hacking the controls/html/jetspeed.vm file into a top.vm and
bottom.vm
3.  Using #parse to include the top and bottom chunks into my template.
4.  Jetspeed calls getContent, and everything comes out of there,
including a title bar, but now we can affect that title bar's content.

This precludes certain functionality, like being able to close the
portlet or minimize it.  But we're disallowing that behaviour anyway. 

Sure, it's going to cause problems with the same information in both
places, but this was the easiest, cleanest way I could think of to fix
the issue.

Dan

--- Dan Moore <[EMAIL PROTECTED]> wrote:

> More info below.
> 
> --- Dan Moore <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > I'm running Jetspeed 1.5.  Like some other folks, I have a need to
> > dynamically change the title of a portlet, based on information
> > passed
> > in to it.  I'm trying to write Velocity portlets, so all of the
> > information needed to set the title is obtained in the Action
> class,
> > in
> > the buildNormalContext() method.  I did some looking around on the
> > mailing list, and it appears that, due to the lifecycle of Jetspeed
> 1
> > portlets, this is not easy to do.
> > 
> > I found one post that seemed to help:
> >
>
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=1113
> > But, when implementing the proposed solution, it became clear to me
> > that VelocityPortlet.getContent() writes to output rather than
> > returning a String that can be stored as suggested in the above
> mail.
> > 
> > So, as I see it, the only way I can change the title, via the
> Action
> > class, is by:
> > 
> > 1.  Calling getContent twice in jetspeed.vm (which, will, if I
> don't
> > have a cached portlet, call buildNormalContent twice).  Surround
> the
> > first call with HTML comment characters so the user doesn't see it.
> 
> And this method doesn't work for me, because it breaks the
> Customizer. 
> (The Customizer apparently outputs HTML comment characters, which
> close
> the comment around the first call.)
> 
> Dan
> 


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



Re: dynamic title in portlet

2004-10-12 Thread Dan Moore
More info below.

--- Dan Moore <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm running Jetspeed 1.5.  Like some other folks, I have a need to
> dynamically change the title of a portlet, based on information
> passed
> in to it.  I'm trying to write Velocity portlets, so all of the
> information needed to set the title is obtained in the Action class,
> in
> the buildNormalContext() method.  I did some looking around on the
> mailing list, and it appears that, due to the lifecycle of Jetspeed 1
> portlets, this is not easy to do.
> 
> I found one post that seemed to help:
>
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=1113
> But, when implementing the proposed solution, it became clear to me
> that VelocityPortlet.getContent() writes to output rather than
> returning a String that can be stored as suggested in the above mail.
> 
> So, as I see it, the only way I can change the title, via the Action
> class, is by:
> 
> 1.  Calling getContent twice in jetspeed.vm (which, will, if I don't
> have a cached portlet, call buildNormalContent twice).  Surround the
> first call with HTML comment characters so the user doesn't see it.

And this method doesn't work for me, because it breaks the Customizer. 
(The Customizer apparently outputs HTML comment characters, which close
the comment around the first call.)

Dan

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



dynamic title in portlet

2004-10-12 Thread Dan Moore
Hi,

I'm running Jetspeed 1.5.  Like some other folks, I have a need to
dynamically change the title of a portlet, based on information passed
in to it.  I'm trying to write Velocity portlets, so all of the
information needed to set the title is obtained in the Action class, in
the buildNormalContext() method.  I did some looking around on the
mailing list, and it appears that, due to the lifecycle of Jetspeed 1
portlets, this is not easy to do.

I found one post that seemed to help:
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=1113
But, when implementing the proposed solution, it became clear to me
that VelocityPortlet.getContent() writes to output rather than
returning a String that can be stored as suggested in the above mail.

So, as I see it, the only way I can change the title, via the Action
class, is by:

1.  Calling getContent twice in jetspeed.vm (which, will, if I don't
have a cached portlet, call buildNormalContent twice).  Surround the
first call with HTML comment characters so the user doesn't see it.

2.  Hack VelocityPortlet so that you can get to some part of the Action
class via the jetspeed.vm template.

Am I missing anything obvious?  Is there an easier way to have a
dynamic title?

Dan

PS  Thanks much for putting Jetspeed together.  I'm really digging how
configurable and well documented it is.

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



number of users supportable

2004-10-08 Thread Dan Moore
Hi folks,

I was wondering if anyone could share numbers of users running on
jetspeed.  We're looking at jetspeed 1.5 with user preferences kept in
Oracle, and wanted to get an idea of numbers of supportable users.  I
googled for this, and also searched the mailing list, but didn't see
anything relevant.  

Thanks for any information you can provide.
Dan

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



Re: creating new plugins using maven

2004-10-07 Thread Dan Moore
Hi Amit,

I have no idea how to work with maven plugins.  I've abandoned using
maven, and am using ant to
1. unjar the binary war file
2. copy my config and class files over
3. rejar the war file

Maven's too complex for what I need.  And I found discrepancies between
the jportal.war that I've built and the jetspeed.war that I've
downloaded.  (For one, users cannot move portlets around in the
jportal.war I've built.)

Dan

PS  I'm cc:ing my response to the group, so that anyone who has this
issue in the future can find it in the mail list archives.

--- Amit Soni <[EMAIL PROTECTED]> wrote:

> Hi,
> 
>I am a new user of maven and already gone through the maven in
> jetspeed and using maven -Dtutorial but i want to know that how can i
> make my new plugin for my own project i have already try the command
> given below but it gives me an error like ::
> 
> /usr/local/netcore/maven -Dpackage=com.netcore.bpm netcor
> 
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> BUILD FAILED
> Goal "netcore" does not exist in this project.
> Total time: 5 seconds
> Finished at: Thu Oct 07 18:51:54 IST 2004
> 
> Thanks,
> Amit
> 
> 
> 
> --
> Netcore's New Website
> http://www.netcore.co.in
> --
> 


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



Re: error in maven -Dtutorial=5 jetspeed:deploy

2004-10-06 Thread Dan Moore
Hi Amit,

--- Amit Soni <[EMAIL PROTECTED]> wrote:

> Hi dan,
> 
>   Here i have downloaded jetspeed-1.5-src.zip and
> jetspeed-1.5-war.zip
> and then i have deploy the war in Tomcat 4.1.30 and after that i have
> tried the command :: maven -Dtutorial=5 jetspeed:deploy at that time
> it
> gives me this error.

What directory where you in when you issued 'maven -Dtutorial=5
jetspeed:deploy'?  You should be in $BASE_DIR/jetspeed-1.5/tutorial
(where BASE_DIR is where you unzipped jetspeed-1.5-src.zip).

The directions I found at
http://portals.apache.org/jetspeed-1/tutorial/ indicate you don't need
to download the jetspeed-1.5-war.zip file--you'll build a war from the
src directory.

>   I have one more query also that i have built my own portlet and i
> want
> to deploy this portlet in to Jetspeed 1.5 for that i have already
> refer
> one document but i think this document is for the old version (1.3)
> so
> in that they told that to configure this portlet put this entry in
> file
> $TOMCAT_HOME/webapps/jetspeed/WEB-INF/conf/jetspeed-config.jcfg but
> in
> this folder all the files are of .xreg and .properties so u pls help
> to
> give the appropriate step to deploy any user defined portlet in
> jetspeed
> or u have any link of document that describe this thing.

I built a sample portlet, following the directions here:
http://portals.apache.org/jetspeed-1/tutorial/5/index.html and had no
trouble deploying to jetspeed 1.5.

Dan

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



Re: error in maven -Dtutorial=5 jetspeed:deploy

2004-10-06 Thread Dan Moore
Hi Amit,

What directory are you in when you're running this target?

Are you in the tutorial directory?  Did you download the
jetspeed-current-src.zip or the jetspeed-current.zip?  (You need the
former for the tutorial.)

Dan

--- Amit Soni <[EMAIL PROTECTED]> wrote:

> Hello,
> 
>   I am installing jetspeed 1.5 and maven 1.0 and configure using the
> tutorial given in apache site. But when i run 
> 
> maven -Dtutorial=5 jetspeed:deploy
> 
> 
> then it gives error like below..
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> BUILD FAILED
> Goal "jetspeed:deploy" does not exist in this project.
> Total time: 22 seconds
> Finished at: Wed Oct 06 16:55:54 IST 2004
> 
> 
> 
> 
> 
> --
> Netcore's New Website
> http://www.netcore.co.in
> --
> 
> -
> 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]



moving portlets within columns, difference between src and binary jetspeed

2004-10-05 Thread Dan Moore
Hi folks,

I'm taking a look at jetspeed.  It's important for my users to be able
to move portlets up and down within columns, without editing PSML
files.  (We plan to have the PSML in the database.)  I've looked at the
customizer, but can't seem to figure out how to do this with the
TwoColumn controller (or the enhanced two column controller).  The UI
just doesn't seem to be there.

I'm running Jetspeed 1.5 that I built from the source, on Tomcat
4.1.30, and I'm looking at the Jportal application that I built
following the tutorial directions.

Now, if I install Jetspeed 1.5 binary war file, I see that once I
login, I can move things around in columns.  But if I have the same
psml file for the turbine user, I just don't get the same 'Customize
Pane' interface, even if I specify in my project.properties (in the
tutorial directory) the jetspeed war binary that I downloaded (as
opposed to the jetspeed binary that I built).  I've done a diff on the
two WEB-INF/conf (jetspeed, from the binary, jportal from the built
tutorial section) directories, and don't see anything obviously
different.  I searched on the mailing list, and didn't see anything
obviously relevant.  

(Is it the classes that are different?  I looked at this, but wasn't
sure what classes are in jetspeed/WEB-INF/classes and how they differ
from the jetspeed/WEB-INF/lib/jetspeed-1.5.jar or 
jportal/WEB-INF/lib/jetspeed-1.5.jar [which, incidentally, aren't the
same size].)

I guess my question is, I like the maven build process, or I like the
fact that I can keep my project separate from jetspeed, and just merge
my classes with jetspeed.  But I need to functionality that only the
binary jetspeed war has (moving portlets around).  Is there any way to
have both, or should I just give up on the maven plugin and develop in
the binary jetspeed tree?

Thanks for your time,
Dan


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



Re: ojb related exception leads to blank page on jetspeed2 install

2004-10-01 Thread Dan Moore
Hi Ate Douma,

Thanks for this.  I did not have this property in my build.properties
file.  I added it, and cleaned and built again.  I get a different
error message now:

-
2004-10-01 10:36:45,911 [http-8080-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID 17 attempting to
auto-generate...
2004-10-01 10:36:45,931 [http-8080-Processor25] ERROR
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl - Failed to
render portlet "17":
org.apache.jetspeed.aggregator.FailedToRenderFragmentException: Unable
to render fragment because:
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow:
org.apache.jetspeed.container.window.FailedToCreateWindowException:
Error generating new PortletEntity:
org.apache.jetspeed.components.portletentity.PortletEntityNotGeneratedException:
Failed to retrieve Portlet Definition for HW_App::UserInfoTest
2004-10-01 10:36:45,931 [http-8080-Processor25] DEBUG
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl - Rendering
portlet fragment: [[name, HW_App::RoleSecurityTest], [id, 16]]
...
--

It can't seem to find any of the portlets: 17, 16, 9, 5, 12, 3.

I googled on this and saw this posting:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg13244.html

Robin seems to suggest that the problem was fixed when Jetspeed was
deployed to Tomcat 4.x, rather that 5.x.  I switched up to Tomcat
4.1.30, updating everything in my build.properties, and rebuilt
(twice).  That seemed to take care of the problem, and I have jetspeed
up and running.

Thanks for the help.
Dan

--- Ate Douma <[EMAIL PROTECTED]> wrote:

> Did you set the (new required) maven property
> org.apache.jetspeed.project.home?
> See: http://portals.apache.org/jetspeed-2/getting-started.html.
> 
> I encountered the same problem yesterday while I *have* this property
> set but 
> because I've currently 4 different J2 projects on my machine, it was
> pointing to 
> the wrong one (a somewhat older version).
> Could be that not having this property defined leads to the same
> error (didn't 
> check that one out though).
> 
> Regards,
> 
> Ate
> 
> Dan Moore wrote:
> 
> > Hi folks.
> > 
> > I'm trying to install jetspeed2.  I've downloaded the latest
> version
> > from CVS today.
> > 
> > I'm having an issue when I visit http://localhost:8080/jetspeed:
> the
> > dreaded 'blank page'.
> > 
> > My setup:
> > Tomcat 5.0.28
> > Java 1.4.2_03
> > using default hsqldb setup
> > Windows XPSP2 w/cygwin
> > 
> > I've run the allClean allBuild targets twice, and they succeed.  I
> use
> > 'maven quickStart' to deploy (along with 'maven
> > start.production.server' for the hsqldb).  I also checked out
> >
>
http://wiki.apache.org/portals/Jetspeed2/OkayItBuildsWhyTheHeckWontItRun
> > removed all pluto references, and removed all the jar files from
> the
> > shared/lib directory.
> > 
> > On searching the maillist archives, I see there are folks getting
> the
> > 'Failed to initialize prefs api' error message, but no one seems to
> be
> > getting the 'org.apache.jetspeed.prefs.om.impl.NodeImpl not found
> in
> > OJB Repository' error message.  I looked in my jre/lib/ext
> directory,
> > and I don't have OJB in there.  I do have a version of OJB
> installed,
> > but it's in an entirely different Tomcat tree (4.1.30).
> > 
> > Would love to hear any suggestions.
> > 
> > Thanks,
> > Dan
> > 
> > 
> > PS Here's the full text of the error logs:
> > 
> > 
> > 2004-09-30 16:53:37,064 [main] FATAL
> > org.apache.jetspeed.engine.JetspeedServlet - Jetspeed: init()
> failed: 
> > org.apache.jetspeed.exception.JetspeedException: Unable to create
> > Engine
> > at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:76)
> > at
> >
>
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:137)
> > at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
> > at
> >
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
> > at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
> > at
> >
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
> > at
> >
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
> > at
> >
>
org.apache.catalina.core.ContainerBase

ojb related exception leads to blank page on jetspeed2 install

2004-09-30 Thread Dan Moore
Hi folks.

I'm trying to install jetspeed2.  I've downloaded the latest version
from CVS today.

I'm having an issue when I visit http://localhost:8080/jetspeed: the
dreaded 'blank page'.

My setup:
Tomcat 5.0.28
Java 1.4.2_03
using default hsqldb setup
Windows XPSP2 w/cygwin

I've run the allClean allBuild targets twice, and they succeed.  I use
'maven quickStart' to deploy (along with 'maven
start.production.server' for the hsqldb).  I also checked out
http://wiki.apache.org/portals/Jetspeed2/OkayItBuildsWhyTheHeckWontItRun
removed all pluto references, and removed all the jar files from the
shared/lib directory.

On searching the maillist archives, I see there are folks getting the
'Failed to initialize prefs api' error message, but no one seems to be
getting the 'org.apache.jetspeed.prefs.om.impl.NodeImpl not found in
OJB Repository' error message.  I looked in my jre/lib/ext directory,
and I don't have OJB in there.  I do have a version of OJB installed,
but it's in an entirely different Tomcat tree (4.1.30).

Would love to hear any suggestions.

Thanks,
Dan


PS Here's the full text of the error logs:


2004-09-30 16:53:37,064 [main] FATAL
org.apache.jetspeed.engine.JetspeedServlet - Jetspeed: init() failed: 
org.apache.jetspeed.exception.JetspeedException: Unable to create
Engine
at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:76)
at
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:137)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)