Can you apply a patch on xml files? ( was Re: Invalid Column Name error - JS 2 build - SecurityAccessImpl

2005-01-18 Thread Hema Menon
I don't mind answering my own queries, since I hope someone will later
benefit from the reply if they encounter a similar situation:)

Anyway, I find that security_repository.xml and sso_repository.xml
contains the column names in lower-case, whereas the table column
names themselves are defined in upper case. In my case, Sybase throws
exception, other databases(say Oracle) may not. Will it be possible to
update these files to reflect the column names in the upper case?

Thanks,
Hema


On Fri, 14 Jan 2005 14:38:53 -0600, Hema Menon <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I was successful in building Jetspeed 2 from the source checked out
> from CVS today. My database for deployment is Sybase. After deploying
> jetspeed when I try to login I get the SQLException due to invalid
> column name. The error stack trace is provided below.
> 
> I am not why the code is looking for a Column name: creation_date,
> when the column name is indeed CREATION_DATE. It appears that
> getInternalUserPrincipal() method of SecurityAccessImpl is creating
> the query using QueryFactory where this is failing. From what I
> understand it is using SECURITY_PRINCIPAL table where CREATION_DATE
> coulmn is defined. I am not sure failure of the query due to
> case-sensitiveness is specific to Sybase. Can anyone let me know why
> this is happening?
> 
> Stack trace follows:
> org.springframework.jdbc.UncategorizedSQLException: (OJB operation):
> encountered SQLException [Invalid column name 'creation_date'.
> ]; nested exception is com.sybase.jdbc2.jdbc.SybSQLException: Invalid
> column name 'creation_date'.
> 
> 
> org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:94)
> 
> org.springframework.orm.ojb.OjbAccessor.convertJdbcAccessException(OjbAccessor.java:107)
> 
> org.springframework.orm.ojb.OjbAccessor.convertOjbAccessException(OjbAccessor.java:89)
> 
> org.springframework.orm.ojb.PersistenceBrokerTemplate.execute(PersistenceBrokerTemplate.java:155)
> 
> org.springframework.orm.ojb.PersistenceBrokerTemplate.getObjectByQuery(PersistenceBrokerTemplate.java:178)
> org.apache.jetspeed.security.spi.impl.SecurityAccessImpl..
> ..)
> 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
> $Proxy2.getInternalUserPrincipal(Unknown Source)
> 
> org.apache.jetspeed.security.spi.impl.DefaultUserSecurityHandler.getUserPrincipal(DefaultUserSecurityHandler.java:61)
> 
> Thanks,
> Hema
> 
> ~~
> Hema Menon
> 


-- 


~~
Hema Menon

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



Jetspeed2 deploy to non /jetspeed context?

2005-01-18 Thread Chris Custine
I posted this to the dev list with no reply.  Anyone else had luck
with deploying J2 to context other than /jetspeed?

Thanks,
Chris


-- Forwarded message --
From: Chris Custine <[EMAIL PROTECTED]>
Date: Mon, 17 Jan 2005 19:09:08 -0500
Subject: Deploy to non /jetspeed context?
To: Jetspeed Developers List 


I saw some commits a few weeks ago relating to this but a quick
attempt to deploy a Jetspeed2 portal to a context other than /jetspeed
doesn't look to be working.  Is this -supposed- to be working in the
current CVS code?  If there is more work to be done and someone could
give me a nudge in the right direction I would be happy to try to work
on this.

Thanks,
Chris

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



Can I use Jetspeed2 with Turbine ...

2005-01-18 Thread Shah Amit
Also I am kindaa in an evaluation stage of Portal and what framework to use. 
If someone can give me some comparisions, I would really appreciate.

I know that Jetspeed 2 is  based on Spring Framework. Is it easy to use 
Spring Framework as the framework for my portlets with Jetspeed ?? Also some 
of my concerns with using Spring would be how easily are developers with 
expertise in Spring Framework available in market ??

I have worked quite a lot with Turbine Framework and Velocity and I know 
those pretty well, but I dont know if Jetspeed 2 supports Turbine :(

Any helps, opinions very appreciated !!!
Regards,
Amit

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


RE: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread Shah Amit
Attached is the sample Hibernate application that I have written. Like I 
said, it is very simple portlet with a submit button. When you click submit 
button, it selects all the records from "CLUBS" table on HSQL (it comes with 
jetspeed 2) and system.out's the records on console or catalina.out.

I have not attached any of the hibernate libraries for size purpose. But you 
would need those jar files. Go to http://caveatemptor.hibernate.org/ and 
download the sample application and copy all the jar files from their lib to 
WEB-INF/lib of this tar file. Make a war file out of it, and just deploy it 
in the deploy directory of your jetspeed.

Include this in your default.psml so that you can view this portlet.
   
   
   
   
Let me know if any questions !!!
Cheers,
Amit
Original Message Follows
From: "Han, Richard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List" 
Subject: RE: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 15:00:48 -0700
I'm definitely interested to see your codes! (I just asked for the sample
code today). I have some experience using turbine/velocity, a have tried
hibernate briefly. I just need some sample codes to get me started (built &
deployed)
Thanks!
Richard
-Original Message-
From: Shah Amit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 2:56 PM
To: jetspeed-user@jakarta.apache.org
Subject: Re: Can I use Hibernate with Jetspeed 2 ??
I have written a very simple portlet that uses hibernate on the backend to
connect to DB with c3p0 connection pool. The portlet is very very simple.
Just has a submit button on the front and when you click that button, it
selects all records from a "table" and System.out's the records on console
(or catalina.out). (I am working on making it do more as I get time)
The "table" is the "clubs" table of the Database browser application that is
shipped with jetspeed.
Also I have used the "Thread Local Session" pattern at a very simple level
which is sugggested by hibernate.
I would like to share the portlet if anyone is interested. This way I can
share the work and get more suggestions towards my approach.
Please let me know if anyone is interested. I dont know if I can simply mail
the portlet in a zip file attachment on this mailing list under this thread.
Regards,
Amit
Original Message Follows
From: David Sean Taylor <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: Jetspeed Users List 
Subject: Re: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 13:06:18 -0800
Jonathan Hawkins wrote:
>What is the issue with the licences.
>
see:
http://www.apache.org/licenses/GPL-compatibility.html
Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports
from Hibernate.
--
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]
-
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: sample codes

2005-01-18 Thread Shah Amit
you can look into 
jakarta-jetspeed-2\applications\demo\src\java\org\apache\jetspeed\demo 
directory.

in applications directory they have many good example to start with.
Thanks
Amit
Original Message Follows
From: "Han, Richard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: "Jetspeed Users List (E-mail)" 
Subject: sample codes
Date: Tue, 18 Jan 2005 14:12:34 -0700
Greeting,
I'm new to jetspeed, just wondering is there any sample codes (sample
project) that could =
get me started?
Thanks!

Richard Han
Developer - Solution Development
Bell
2100, 111 - 5th Avenue SW
Calgary, Alberta T2P 3Y6
Ph: (403) 410-4596
[EMAIL PROTECTED]

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


Re: J2 JAAS

2005-01-18 Thread Shah Amit
Thanks for your reply. Can you please tell me where is that example and 
whats the name of file

Thanks again
Original Message Follows
From: David Sean Taylor <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: Jetspeed Users List 
Subject: Re: J2 JAAS
Date: Tue, 18 Jan 2005 10:46:28 -0800
Shah Amit wrote:
Hi All,
I am trying to use JAAS provided by J2. Is there any documentation on how 
to use that ? I tried reading all the test examples they have and read all 
the code for security.

Ive started documenting it. SLOW process, but you can watch the snail pace 
here:

http://portals.apache.org/jetspeed-2/security-overview.html
I know its just an empty shell but its a start.
As they say, better than nothing. Well maybe...
here is my problem, when I follow JAAS client-side specification and try to 
use J2's JAAS. I get NULLPointer exception. this is because i dont 
instantiate userManager. Do i need to initialize this ? Is any one has 
example how to authenticate username and password with J2 JAAS.

We just have the one example, the default implementation which does use a 
Java security login module.

--
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: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread Han, Richard
I'm definitely interested to see your codes! (I just asked for the sample
code today). I have some experience using turbine/velocity, a have tried
hibernate briefly. I just need some sample codes to get me started (built &
deployed)
Thanks!

Richard

-Original Message-
From: Shah Amit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 2:56 PM
To: jetspeed-user@jakarta.apache.org
Subject: Re: Can I use Hibernate with Jetspeed 2 ??


I have written a very simple portlet that uses hibernate on the backend to 
connect to DB with c3p0 connection pool. The portlet is very very simple. 
Just has a submit button on the front and when you click that button, it 
selects all records from a "table" and System.out's the records on console 
(or catalina.out). (I am working on making it do more as I get time)

The "table" is the "clubs" table of the Database browser application that is 
shipped with jetspeed.

Also I have used the "Thread Local Session" pattern at a very simple level 
which is sugggested by hibernate.

I would like to share the portlet if anyone is interested. This way I can 
share the work and get more suggestions towards my approach.

Please let me know if anyone is interested. I dont know if I can simply mail 
the portlet in a zip file attachment on this mailing list under this thread.

Regards,
Amit

Original Message Follows
From: David Sean Taylor <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: Jetspeed Users List 
Subject: Re: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 13:06:18 -0800

Jonathan Hawkins wrote:
>What is the issue with the licences.
>
see:

http://www.apache.org/licenses/GPL-compatibility.html

Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports 
from Hibernate.


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


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



Re: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread Shah Amit
I have written a very simple portlet that uses hibernate on the backend to 
connect to DB with c3p0 connection pool. The portlet is very very simple. 
Just has a submit button on the front and when you click that button, it 
selects all records from a "table" and System.out's the records on console 
(or catalina.out). (I am working on making it do more as I get time)

The "table" is the "clubs" table of the Database browser application that is 
shipped with jetspeed.

Also I have used the "Thread Local Session" pattern at a very simple level 
which is sugggested by hibernate.

I would like to share the portlet if anyone is interested. This way I can 
share the work and get more suggestions towards my approach.

Please let me know if anyone is interested. I dont know if I can simply mail 
the portlet in a zip file attachment on this mailing list under this thread.

Regards,
Amit
Original Message Follows
From: David Sean Taylor <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: Jetspeed Users List 
Subject: Re: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 13:06:18 -0800
Jonathan Hawkins wrote:
What is the issue with the licences.
see:
http://www.apache.org/licenses/GPL-compatibility.html
Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports 
from Hibernate.

--
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: Fusion Controls

2005-01-18 Thread Jeff Sheets
The issue of displaying the correct buttons seems to be fixed now. 
Thanks for the hard work!

We still have a problem, that the Edit button only works on the first
View page.  When we goto a second view page, or even then go back to
the first, then clicking on Edit will not goto the EditPage.  The
pencil icon disappears, so it appears that the portal thinks it is in
Edit Mode, but the EditPage is not displayed.

This could be an issue with the Struts Portals Bridge, since we are
using that to display our View and Edit pages.

Thanks again,
-- Jeff


On Thu, 13 Jan 2005 08:34:25 -0800, David Sean Taylor
<[EMAIL PROTECTED]> wrote:
> Jeff Sheets wrote:
> > David,
> >
> > Have you had a chance to look at the issue with the portlet controls?
> > We are having to write our portlets strictly in the "View" mode, which
> > means our "Edit" screens are also in the view mode.  It would be nice
> > to use the portal functionality for this instead.
> > 
> Should be fixed in the CVS head.
> Have you had a chance to retry it?
>

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



sample codes

2005-01-18 Thread Han, Richard
Greeting,

I'm new to jetspeed, just wondering is there any sample codes (sample
project) that could =
get me started?
Thanks!



Richard Han 
Developer - Solution Development
Bell
2100, 111 - 5th Avenue SW
Calgary, Alberta T2P 3Y6
Ph: (403) 410-4596
[EMAIL PROTECTED]




Re: Getting Jetspeed-2 Junit tests to Run using Maven

2005-01-18 Thread David Sean Taylor
mike long wrote:
Dear Jetspeed-2 users:
How do I run the JUnit tests as a Maven goal? I have run the allTests 
goal and no tests get run.

maven -o -Dmaven.test.skip=false allBuild
or permanently override the property in your $HOME/build.properties
then the -D is not necessary
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread David Sean Taylor
Jonathan Hawkins wrote:
What is the issue with the licences.
see:
http://www.apache.org/licenses/GPL-compatibility.html
Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports 
from Hibernate.

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


Getting Jetspeed-2 Junit tests to Run using Maven

2005-01-18 Thread mike long
Dear Jetspeed-2 users:
How do I run the JUnit tests as a Maven goal? I have run the allTests 
goal and no tests get run.

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


Re: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread Jonathan Hawkins
What is the issue with the licences.
Thanks
Jon Hawkins
David Sean Taylor wrote:
Shah Amit wrote:
Hi all,
I tried to look up on google, but only found an article dated back in 
May that J2 will soon have Hibernate support.

I would like to know if I can use Hibernate with J2. I dont know the 
best way to architect this, but if J2 doeesnot provide any inbuilt 
support and I have to write everything in my application, I guess 
that is fine too.

The Apache license is not compatible with Hibernates license.
Thus we cannot use Hibernate in Jetspeed-2.
However you are free to use Hibernate in your portlet applications or 
component implementations.

I downloaded the code from CVS on 17th Jan. and there was a DB 
Browser application in that, but that doesnot work, and it probably 
looks like it is still not finished, and also it doesnot user 
Hibernate I think.

The DB Browser should work fine.
Let me know if it doesn't.
Again, its in an Apache CVS. Can't use Hibernate.


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


Re: JSP decorators in Jetspeed 2?

2005-01-18 Thread David Sean Taylor
Marcel Dullaart wrote:
Hi David,
I am a collegue of Chris, and we have no experience with velocity.
Can you give a simple overview/list of the classes/packages that
implement the velocity templating engine, so we might give it a try to
implement the jsp engine ourselves?
Lets start with overriding a layout.
Layouts are implemented as portlets.
See the layouts-portlets directory, and the base classes for our current 
layouts are:

org.apache.jetspeed.portlets.layout.LayoutPortlet
and
org.apache.jetspeed.portlets.layout.LayoutPortlet.MultiColumnPortlet
Note that LayoutPortlet extends GenericServletPortlet
I think you can start with the same approach.
You will need to create an equivalent of the JetspeedPowerTool with 
perhaps a tag library or request scoped bean.

Im in the process of documenting the JetspeedPowerTool this week.
It would be best if the JSP layouts would make use of the same JPT as 
the velocity layouts.

see the org.apache.jetspeed.velocity package, and specifically:
JetspeedPowerTool
JetspeedVelocityViewServlet
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JSP decorators in Jetspeed 2?

2005-01-18 Thread Marcel Dullaart
Hi David,

I am a collegue of Chris, and we have no experience with velocity.

Can you give a simple overview/list of the classes/packages that
implement the velocity templating engine, so we might give it a try to
implement the jsp engine ourselves?

Thanx,
Marcel

On Tue, 18 Jan 2005 10:40:24 -0800, David Sean Taylor
<[EMAIL PROTECTED]> wrote:
> Christopher Wood wrote:
> > Do decorators based on JSP templates work in Jetspeed 2? I've tried
> > changing the "template.type" property in decorator.properties to "jsp", or
> > variations of that, without success. Regardless of whatever I specify, a
> > velocity template (.vm) is searched for.
> >
> > Can someone tell me how to get this working?
> >
> > Thanks,
> > Chris Wood
> 
> We haven't written support for JSP decorations and layouts yet.
> Since all velocity templates are dispatched, the procedure will be very
> similar for JSP. We only supported one templating engine (velocity) to
> start with and plan to support JSP in future releases.
> 
> --
> 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: Returning binary data through portlet

2005-01-18 Thread David Sean Taylor
Dan Moore wrote:
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.
Recommend using the portlet pipeline
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Documentation

2005-01-18 Thread David Sean Taylor
Adrian Nadeau wrote:
Hello,
We have just currently installed Jetspeed 2 on Tomcat 5.0.30.  We are
wondering if there are any documentation or resources out there to help us
get started on development of JSR 168 Compliant Portlets and deploying them
to Jetspeed 2?  We have added a few test Portlets fine but we would like to
better understand how Tomcat 5 actually deploys the war files and how we can
update Portlets within our testing environment without re-exporting them as
a new .war file every time we make a change.  Any information would be
great, thank you in advance.
Regards,
Adrian Nadeau
VP, Development
Evolving Solutions...Technology for changing
[EMAIL PROTECTED]
www.evolvingsolutions.ca
506.633.2012
Well I've been on a little vacation from the jetspeed user mailing list. 
I've come back to see what I find to be an overwhelming theme. People 
are saying (and I paraphrase) "Jetspeed-2 looks cool man, but where the 
hell are the docs dude!"

The answer is, not much there. But we're working on it.
I see Ate wrote a nice document on User Attributes:
http://portals.apache.org/jetspeed-2/user-attributes.html
We still have a long way to go with docs
To answer your questions:
I think you can look at the existing portlet applications under 
/applications for examples of how to write JSR 168 compliant portlets.
Also see the Gems project over at java.net. We hope to get Gems moved 
into Apache Portals in the near future.

For deployment, currently you have to redeploy the war file to pick up 
new changes to any Java code unless your application server supports 
'hot deploying'. The Tomcat 5 deployment is a little messy right now and 
we are experiencing some race conditions where both Jetspeed and Tomcat 
try to deploy the same portlet application. Randy is working on getting 
that fixed. Also, there is an open issue to pick up changes to the 
portlet.xml and redeploy:

http://issues.apache.org/jira/browse/JS2-190

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread David Sean Taylor
Shah Amit wrote:
Hi all,
I tried to look up on google, but only found an article dated back in 
May that J2 will soon have Hibernate support.

I would like to know if I can use Hibernate with J2. I dont know the 
best way to architect this, but if J2 doeesnot provide any inbuilt 
support and I have to write everything in my application, I guess that 
is fine too.

The Apache license is not compatible with Hibernates license.
Thus we cannot use Hibernate in Jetspeed-2.
However you are free to use Hibernate in your portlet applications or 
component implementations.

I downloaded the code from CVS on 17th Jan. and there was a DB Browser 
application in that, but that doesnot work, and it probably looks like 
it is still not finished, and also it doesnot user Hibernate I think.

The DB Browser should work fine.
Let me know if it doesn't.
Again, its in an Apache CVS. Can't use Hibernate.
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Single Sign-On in Jetspeed2

2005-01-18 Thread David Sean Taylor
Daniela Innerwinkler wrote:
hi list!
is there any documentation how single sign-on is implemented in jetspeed?
See here:
http://portals.apache.org/jetspeed-2/sso.html
Hope to have more by the end of the week :)
if not, could anyone please give me a short overview about the functionality?
Just login as admin/admin, go to the Jetspeed Administrative Portlets 
folder, SSO Management and try it out.

Also try out My Second Page and there are 2 portlets there SSO enabled.
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: J2 JAAS

2005-01-18 Thread David Sean Taylor
Shah Amit wrote:
Hi All,
I am trying to use JAAS provided by J2. Is there any documentation on 
how to use that ? I tried reading all the test examples they have and 
read all the code for security.

Ive started documenting it. SLOW process, but you can watch the snail 
pace here:

http://portals.apache.org/jetspeed-2/security-overview.html
I know its just an empty shell but its a start.
As they say, better than nothing. Well maybe...
here is my problem, when I follow JAAS client-side specification and try 
to use J2's JAAS. I get NULLPointer exception. this is because i dont 
instantiate userManager. Do i need to initialize this ? Is any one has 
example how to authenticate username and password with J2 JAAS.

We just have the one example, the default implementation which does use 
a Java security login module.

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JSP decorators in Jetspeed 2?

2005-01-18 Thread David Sean Taylor
Christopher Wood wrote:
Do decorators based on JSP templates work in Jetspeed 2? I've tried 
changing the "template.type" property in decorator.properties to "jsp", or 
variations of that, without success. Regardless of whatever I specify, a 
velocity template (.vm) is searched for.

Can someone tell me how to get this working?
Thanks,
Chris Wood
We haven't written support for JSP decorations and layouts yet.
Since all velocity templates are dispatched, the procedure will be very 
similar for JSP. We only supported one templating engine (velocity) to 
start with and plan to support JSP in future releases.

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jetspeed status

2005-01-18 Thread David Sean Taylor
Han, Richard wrote:
Hi everyone,
I'm new on this list. I'm doing an evaluation of java portals. Could someone
give me some ideas of how mature jetspeed is? Is jeetspeed  good at
integrating web applications? 
There are two code bases for Jetspeed:
* Jetspeed-1
* Jetspeed-2
Jetspeed-1 has been around for a while several years and the 1.6 code 
base is stable.

Jetspeed-2 is new and less stable, but IMO has great support for webapp 
integration. We now have portals bridges for JSF, Struts, Velocity, PHP 
and Perl. The Struts bridge is maturing nicely and requires little to no 
modification to your Struts web app.


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Exception starting tomcat

2005-01-18 Thread David Sean Taylor
Jeff Sheets wrote:
I'm in the process of updating my Fusion build, and noticed that I
still get the ojb.properties file not found exception when deploying
from the latest cvs trees for Jetspeed 1 and 2.  Could someone with
commit access modify the jetspeed 2 portal/maven.xml file for this
task:
  






  
I have changed the fileset to correctly copy over the ojb files, and
have to credit Chris Custine with originally finding the fix.
-- Jeff Sheets
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

patch applied
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: login portlet and tomcat-users.xml

2005-01-18 Thread David Sean Taylor
Xavier Lawrence wrote:
Hi,
How could I configure Jetspeed-2 so the login portlet can use login
details given in tomcat-users.xml ???
Thanks in advance for any help.
Regards
Xavier
see login.conf under the security component:
Jetspeed {
   org.apache.jetspeed.security.impl.DefaultLoginModule required 
debug=true;
};

and org.apache.jetspeed.security.impl.AuthenticationProviderImpl,
which ultimately does:
System.setProperty("java.security.auth.login.config",loginConfigUrl.toString());
to set the Java Security login module.
To make use of Tomcat's login module, I wanted to suggest simply 
removing the authentication provider from the Spring configuration and 
letting Tomcat handle login via the login portlet calling Tomcat's login 
module (you would need to configure that in Tomcat).

However Im seeing some couplings between the SecurityProvider, 
GroupManager, RoleManager, and UserManager and the authentication 
provider. Thus I recommend writing a new Authentication Provider that 
does not override the login module but simply aggregates the needed 
handlers.

Im also looking into enhancing the authentication provider this week.
See issue http://issues.apache.org/jira/browse/JS2-173
I still haven't come up with a good solution for that one, but I will be 
working in this area,

(note this is probably better discussed on jetspeed-dev)
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Exception starting tomcat

2005-01-18 Thread Jeff Sheets
I'm in the process of updating my Fusion build, and noticed that I
still get the ojb.properties file not found exception when deploying
from the latest cvs trees for Jetspeed 1 and 2.  Could someone with
commit access modify the jetspeed 2 portal/maven.xml file for this
task:
  






  

I have changed the fileset to correctly copy over the ojb files, and
have to credit Chris Custine with originally finding the fix.

-- Jeff Sheets

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



login portlet and tomcat-users.xml

2005-01-18 Thread Xavier Lawrence

Hi,

How could I configure Jetspeed-2 so the login portlet can use login
details given in tomcat-users.xml ???

Thanks in advance for any help.

Regards

Xavier

-- 
-=[ xlawrence at jahia dot com ]=-
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company



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



AW: jetspeed status

2005-01-18 Thread Christopher Wood
Return Receipt
   
   Your   AW: jetspeed status  
   document:   
   
   wasChristopher Wood/EPO 
   received
   by: 
   
   at:18-01-2005 17:13:44  
   





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



AW: jetspeed status

2005-01-18 Thread apache
yeah. i'm running jetspeed to manage our orders, stock and staff :)

-Ursprüngliche Nachricht-
Von: Han, Richard [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 18. Januar 2005 16:56
An: jetspeed-user@jakarta.apache.org
Betreff: jetspeed status



Hi everyone,

I'm new on this list. I'm doing an evaluation of java portals. Could someone
give me some ideas of how mature jetspeed is? Is jeetspeed  good at
integrating web applications? 
Thanks

Richard Han 
Developer - Solution Development
Bell
2100, 111 - 5th Avenue SW
Calgary, Alberta T2P 3Y6
Ph: (403) 410-4596
[EMAIL PROTECTED]





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



jetspeed status

2005-01-18 Thread Han, Richard

Hi everyone,

I'm new on this list. I'm doing an evaluation of java portals. Could someone
give me some ideas of how mature jetspeed is? Is jeetspeed  good at
integrating web applications? 
Thanks

Richard Han 
Developer - Solution Development
Bell
2100, 111 - 5th Avenue SW
Calgary, Alberta T2P 3Y6
Ph: (403) 410-4596
[EMAIL PROTECTED]




Re: Problem with Redirect when using SSL with Tomcat

2005-01-18 Thread chris holt
Ahh, I see.
The thing is our portal displays very sensitive data and it all needs to
be protected by SSL so that the sensitive data can't be picked up during
transit. I still might be able to use your mechanism to just do a
redirect to the correct page though. I'm wondering however if I'll hit
the same problem since Tomcat is supposed to be just doing a redirect
itself. My problem stems from the fact that it appears Turbine returns
the port the request came in on and not the port the request was
serviced on when calling getServerPort().

Thanks again,

Chris

-Original Message-
From: Hema Menon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 18, 2005 10:04 AM
To: chris holt
Subject: Re: Problem with Redirect when using SSL with Tomcat


Chris, 

We did it like that because we do not always require SSL, we give the
administrator an option to select what type of security they need from
among HTTP, HTTPS, or HTTPS for login only. So we did not want to have
SSL applied to the entire web application.

Hema


On Tue, 18 Jan 2005 09:58:44 -0500, chris holt <[EMAIL PROTECTED]>
wrote:
> Thanks for the reply.
> Did you do it that way because you ran into the same problem I did?
> The default Tomcat way of making a web application secure should work 
> though, don't you agree?
> 
> Chris
> 
> -Original Message-
> From: Hema Menon [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 18, 2005 9:26 AM
> To: Jetspeed Users List
> Subject: Re: Problem with Redirect when using SSL with Tomcat
> 
> Chris,
> 
> I've tried it in a different way. In the Login page, I use javascript
> to detect if the request comes with a scheme of HTTP or HTTPS and 
> based on that would redirect the request to use HTTPS. We use Tomcat 
> 5.0.28 and JS 1.5 SSL Connector is enabled in the Tomcat 
> configuration.
> 
> Hema
> 
> On Tue, 18 Jan 2005 09:08:47 -0500, chris holt <[EMAIL PROTECTED]>
> wrote:
> > I sent the following email with no response so I would like to ask
> > my question in a different way to see if anybody has done what I'm 
> > trying
> 
> > to do.
> >
> > Has anybody successfully setup Tomcat 5.0.28 with Jetspeed 1.5 and
> > forced their users to use a secure connection to their portal?
> >
> > Thanks,
> >
> > Chris
> >
> > -Original Message-
> > From: chris holt [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 11, 2005 10:57 AM
> > To: Jetspeed Users List
> > Subject: RE: Problem with Redirect when using SSL with Tomcat
> >
> > I have been researching this more by debugging and it appears that
> > the
> 
> > HttpServletRequest class that the TurbineRunDataService class uses
> > to populate the ServerData class is returning the wrong port. This 
> > is feeling like a problem with Tomcat. Has anybody else hit a 
> > problem similar to this one.
> >
> > Thanks,
> >
> > Chris
> >
> > -Original Message-
> > From: chris holt [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 10, 2005 6:01 PM
> > To: Jetspeed Users List
> > Subject: Problem with Redirect when using SSL with Tomcat
> >
> > I am using Tomcat 5.0.28 with Jetspeed 1.5 and I am having a problem
> > using SSL. I have set the following in the web.xml file of jetspeed 
> > to
> 
> > force use of SSL when talking to portal.
> >
> > 
> >  
> >   Entire Application
> >   /*
> >  
> >  
> >   Constrain the entire application to force use of
> > HTTPS
> >   CONFIDENTIAL
> >  
> > 
> >
> > When the user goes to http://localhost:8080/jetspeed Tomcat
> > correctly redirects the browser to https://localhost:8443/jetspeed. 
> > However, the
> 
> > anonymous user login page takes forever to come up, and when it does
> > come up the skin isn't working.  There is no borders, tab controls, 
> > or
> 
> > anything.  I believe the problem has to do with the base tag being
> > https://mroadster:8080/jetspeed/";>.  I can see why this 
> > would make things slow because of all the redirects but I don't 
> > understand why the stylesheet isn't working correctly.
> >
> > However, if the user goes to https://localhost:8443/jetspeed/
> > everything works fine.  Is there a why to get the $clink.External 
> > command to store the redirected URL instead.
> >
> > Thanks,
> >
> > Chris
> >
> > 
> > -
> > 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]
> >
> >
> 
> --
> 
> ~~
> Hema Menon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


~~
Hema Menon

-
To unsubscribe, e-mail: [EMAIL PRO

j_security_check and portlets

2005-01-18 Thread Xavier Lawrence
Hello,

What would be the best way to translate the following for a portlet:

  
FORM
@SECURITY-DOMAIN@

  /WEB-INF/jsp/login/login.jsp
  /WEB-INF/jsp/login/error.jsp

  

and then in login.jsp:



Is there a way of doing something similar but for Portlets ???

Note that I have a struts application underneath. I was allready planning
to define a new action to display the login page, but how should I do to
display the error page in case of a wrong login ???

Thanks in advance for any help

Regards

Xavier


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



RE: cannot deploy jetspeed 2 in jboss 3.2.5

2005-01-18 Thread Lim Wei Min,Amos
thank you very much mr jencks for your advice. 
yup, when i checked jetspeed.log, i realised there was some connection problem 
with mysql and i rectified that. however, when i run jboss again, i don see  
"JNDI SystemProperty flag null" message anymore but i encountered these 2 
errors(below) even though jboss could be started successfully in the end. one 
thing to note is that, however, jetspeed.log is not created this time round. i 
would appreciate if mr jencks or anyone out there who knows what is the problem 
would pls help me out cos i am actually doing this for a project and i already 
spent a week plus jus tryin to deploy jetspeed. thank you so much.
 
Regards,
Amos
 
 
Lst error:
 
2005-01-18 22:53:08,596 ERROR [tomcat.localhost./jetspeed.Context] Error 
reading tld listeners javax.servlet.ServletException: Exception processing TLD 
at resource path /WEB-INF/portlet.tld in context /jetspeed
javax.servlet.ServletException: Exception processing TLD at resource path 
/WEB-INF/portlet.tld in context /jetspeed
 at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:548)
 at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4260)
 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 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.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
 at org.apache.catalina.core.StandardContext.init(StandardContext.java:5412)
 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.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
 at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:286)
 at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:70)
 at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
 at org.jboss.web.WebModule.startModule(WebModule.java:62)
 at org.jboss.web.WebModule.startService(WebModule.java:40)
 at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
 at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
 at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
 at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
 at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
 at $Proxy17.start(Unknown Source)
 at org.jboss.system.ServiceController.start(ServiceController.java:367)
 at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
 at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
 at $Proxy45.start(Unknown Source)
 at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer

RE: Problem with Redirect when using SSL with Tomcat

2005-01-18 Thread chris holt
Thanks for the reply.
Did you do it that way because you ran into the same problem I did?
The default Tomcat way of making a web application secure should work
though, don't you agree?

Chris

-Original Message-
From: Hema Menon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 18, 2005 9:26 AM
To: Jetspeed Users List
Subject: Re: Problem with Redirect when using SSL with Tomcat


Chris,

I've tried it in a different way. In the Login page, I use javascript to
detect if the request comes with a scheme of HTTP or HTTPS and based on
that would redirect the request to use HTTPS. We use Tomcat 5.0.28 and
JS 1.5 SSL Connector is enabled in the Tomcat configuration.

Hema



On Tue, 18 Jan 2005 09:08:47 -0500, chris holt <[EMAIL PROTECTED]>
wrote:
> I sent the following email with no response so I would like to ask my 
> question in a different way to see if anybody has done what I'm trying

> to do.
> 
> Has anybody successfully setup Tomcat 5.0.28 with Jetspeed 1.5 and 
> forced their users to use a secure connection to their portal?
> 
> Thanks,
> 
> Chris
> 
> -Original Message-
> From: chris holt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 11, 2005 10:57 AM
> To: Jetspeed Users List
> Subject: RE: Problem with Redirect when using SSL with Tomcat
> 
> I have been researching this more by debugging and it appears that the

> HttpServletRequest class that the TurbineRunDataService class uses to 
> populate the ServerData class is returning the wrong port. This is 
> feeling like a problem with Tomcat. Has anybody else hit a problem 
> similar to this one.
> 
> Thanks,
> 
> Chris
> 
> -Original Message-
> From: chris holt [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 6:01 PM
> To: Jetspeed Users List
> Subject: Problem with Redirect when using SSL with Tomcat
> 
> I am using Tomcat 5.0.28 with Jetspeed 1.5 and I am having a problem 
> using SSL. I have set the following in the web.xml file of jetspeed to

> force use of SSL when talking to portal.
> 
> 
>  
>   Entire Application
>   /*
>  
>  
>   Constrain the entire application to force use of 
> HTTPS
>   CONFIDENTIAL
>  
> 
> 
> When the user goes to http://localhost:8080/jetspeed Tomcat correctly 
> redirects the browser to https://localhost:8443/jetspeed. However, the

> anonymous user login page takes forever to come up, and when it does 
> come up the skin isn't working.  There is no borders, tab controls, or

> anything.  I believe the problem has to do with the base tag being 
> https://mroadster:8080/jetspeed/";>.  I can see why this 
> would make things slow because of all the redirects but I don't 
> understand why the stylesheet isn't working correctly.
> 
> However, if the user goes to https://localhost:8443/jetspeed/ 
> everything works fine.  Is there a why to get the $clink.External 
> command to store the redirected URL instead.
> 
> Thanks,
> 
> Chris
> 
> -
> 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]
> 
> 


-- 


~~
Hema Menon

-
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: CSS and portlets

2005-01-18 Thread Marina
Hi, Xavier,

I'm using CSS in my portlet's JSPs as following:

"/>

and I package all .css styles in the /css/ dir
relative tot he root of the web (portlet) application

Marina

--- Xavier Lawrence <[EMAIL PROTECTED]> wrote:

> 
> Hello,
> 
> I am currently modifying an existing Struts
> application so it generates
> content to a portlet.
> 
> One question that I have is that the existing
> application uses custom
> styles in a CSS file. Is there a way to make the
> portlet use the styles in
> the CSS file without copy-paste them in the JSPs ???
> 
> Is there a way I could customize jetspeed so it
> knows about these styles ?
> 
> Thanks in advance for any help.
> 
> Regards
> 
> Xavier
> 
> -- 
> -=[ xlawrence at jahia dot com ]=-
> Jahia : A collaborative source CMS and Portal Server
> www.jahia.org Community and product web site
> www.jahia.com Commercial services company
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Problem with Redirect when using SSL with Tomcat

2005-01-18 Thread Hema Menon
Chris,

I've tried it in a different way. In the Login page, I use javascript
to detect if the request comes with a scheme of HTTP or HTTPS and
based on that would redirect the request to use HTTPS. We use Tomcat
5.0.28 and JS 1.5 SSL Connector is enabled in the Tomcat
configuration.

Hema



On Tue, 18 Jan 2005 09:08:47 -0500, chris holt <[EMAIL PROTECTED]> wrote:
> I sent the following email with no response so I would like to ask my
> question in a different way to see if anybody has done what I'm trying
> to do.
> 
> Has anybody successfully setup Tomcat 5.0.28 with Jetspeed 1.5 and
> forced their users to use a secure connection to their portal?
> 
> Thanks,
> 
> Chris
> 
> -Original Message-
> From: chris holt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 11, 2005 10:57 AM
> To: Jetspeed Users List
> Subject: RE: Problem with Redirect when using SSL with Tomcat
> 
> I have been researching this more by debugging and it appears that the
> HttpServletRequest class that the TurbineRunDataService class uses to
> populate the ServerData class is returning the wrong port. This is
> feeling like a problem with Tomcat. Has anybody else hit a problem
> similar to this one.
> 
> Thanks,
> 
> Chris
> 
> -Original Message-
> From: chris holt [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 6:01 PM
> To: Jetspeed Users List
> Subject: Problem with Redirect when using SSL with Tomcat
> 
> I am using Tomcat 5.0.28 with Jetspeed 1.5 and I am having a problem
> using SSL. I have set the following in the web.xml file of jetspeed to
> force use of SSL when talking to portal.
> 
> 
>  
>   Entire Application
>   /*
>  
>  
>   Constrain the entire application to force use of
> HTTPS
>   CONFIDENTIAL
>  
> 
> 
> When the user goes to http://localhost:8080/jetspeed Tomcat correctly
> redirects the browser to https://localhost:8443/jetspeed. However, the
> anonymous user login page takes forever to come up, and when it does
> come up the skin isn't working.  There is no borders, tab controls, or
> anything.  I believe the problem has to do with the base tag being  href="https://mroadster:8080/jetspeed/";>.  I can see why this would make
> things slow because of all the redirects but I don't understand why the
> stylesheet isn't working correctly.
> 
> However, if the user goes to https://localhost:8443/jetspeed/ everything
> works fine.  Is there a why to get the $clink.External command to store
> the redirected URL instead.
> 
> Thanks,
> 
> Chris
> 
> -
> 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]
> 
> 


-- 


~~
Hema Menon

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



RE: Problem with Redirect when using SSL with Tomcat

2005-01-18 Thread chris holt
I sent the following email with no response so I would like to ask my
question in a different way to see if anybody has done what I'm trying
to do.

Has anybody successfully setup Tomcat 5.0.28 with Jetspeed 1.5 and
forced their users to use a secure connection to their portal?

Thanks,

Chris

-Original Message-
From: chris holt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 11, 2005 10:57 AM
To: Jetspeed Users List
Subject: RE: Problem with Redirect when using SSL with Tomcat


I have been researching this more by debugging and it appears that the
HttpServletRequest class that the TurbineRunDataService class uses to
populate the ServerData class is returning the wrong port. This is
feeling like a problem with Tomcat. Has anybody else hit a problem
similar to this one.

Thanks,

Chris

-Original Message-
From: chris holt [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 10, 2005 6:01 PM
To: Jetspeed Users List
Subject: Problem with Redirect when using SSL with Tomcat


I am using Tomcat 5.0.28 with Jetspeed 1.5 and I am having a problem
using SSL. I have set the following in the web.xml file of jetspeed to
force use of SSL when talking to portal.
 

  
   Entire Application
   /*
  
  
   Constrain the entire application to force use of
HTTPS
   CONFIDENTIAL
  
 
 
When the user goes to http://localhost:8080/jetspeed Tomcat correctly
redirects the browser to https://localhost:8443/jetspeed. However, the
anonymous user login page takes forever to come up, and when it does
come up the skin isn't working.  There is no borders, tab controls, or
anything.  I believe the problem has to do with the base tag being https://mroadster:8080/jetspeed/";>.  I can see why this would make
things slow because of all the redirects but I don't understand why the
stylesheet isn't working correctly.
 
However, if the user goes to https://localhost:8443/jetspeed/ everything
works fine.  Is there a why to get the $clink.External command to store
the redirected URL instead.
 
Thanks,
 
Chris

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



JSP decorators in Jetspeed 2?

2005-01-18 Thread Christopher Wood
Do decorators based on JSP templates work in Jetspeed 2? I've tried 
changing the "template.type" property in decorator.properties to "jsp", or 
variations of that, without success. Regardless of whatever I specify, a 
velocity template (.vm) is searched for.

Can someone tell me how to get this working?

Thanks,
Chris Wood

How to get Session in portlet

2005-01-18 Thread Amit Soni
Hi all,

Here i have problem to get session which i have set in servlet and want
to get this session in portlet...

here i have made on file call login.jsp which has acton security

then i modify jetspeed's  web.xml lik ::



jetspeed
org.apache.turbine.Turbine

properties
 WEB-INF/conf/TurbineResources.properties


resources
   
org.apache.jetspeed.services.resources.JetspeedResourceService


logging
   
org.apache.jetspeed.services.logging.JetspeedLoggingService

1



 
controller
   
com.netcore.sso.controller.SSOController
 
 
   controller
  /security
  



   jetspeed
   /portal/*


   jetspeed
   /jetspeed/*




now in controller servlet i set my session and give redirection like ::

String url = "/portal?action=JLoginUser&username="+userName+
 "&password="+password;

getServletContext().getRequestDispatcher(res.encodeRedirectURL(url)).include(req,res);


and in my class i write 

session = data.getRequest().getSession();

session.getAttribute("session_name");

But it gives me null;;

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

Regards,
Amit





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

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



Searching the Portal

2005-01-18 Thread Christopher Wood
Return Receipt
   
   Your   Searching the Portal 
   document:   
   
   wasChristopher Wood/EPO 
   received
   by: 
   
   at:18-01-2005 13:26:40  
   





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



Searching the Portal

2005-01-18 Thread Jose
Hi,

I need to add a search engine to a Jetspeed 1.5 Portal and I found a problem
that I don't know how to solve. The links that are stored by the search
engine must be executed from anywhere inside the portal, but, in most cases,
links returned by Jetspeed assumes that we are in a determined menu option.
So, most links returned by Jetspeed can't be executed from outside it was
created.

Anybody knows a solution?

Thanks in advance,



Jose


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



Method not called... why?

2005-01-18 Thread angeloimm
Hi all... i have an action that has a method called doNext; this is method:

  public void doNext(Context contesto, RunData data) {

logger.info( "In doNext method.." );
currentPage++;
fromIndex += toSee;
toIndex = toSee * currentPage;
logger.info("Into doNext method i have this values: currentPage: " +
currentPage + "  fromIndex " + fromIndex + "  toIndex: " +
toIndex);
  }

Logger level is INFO; i have this template:


function $!{js_peid}_submitThis()
{
window.document.$!{js_peid}_post.eventSubmit_doNext.click();
}


#if( $pageNumber > 1 )
  
next
  
#end
#if ($infoBeans.size() > 0)
#foreach ($it in $infoBeans)

#set( $element = $it.getElementAt(1))

#set( $elemento = $it.getElementAt(2))
#if( $element.getClass().getName().indexOf( "Resources" ) > -1 )
Sono risorsa
#else
$element
$elemento
 #end
#end
#end

 




All works except this... if i click on next the method doNext isn't called. 
do you know why?
Thanks




Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega. E poi hai l'Adsl senza limiti 
a meno di 1 euro al giorno. 
Abbonati subito senza costi di attivazione su http://www.libero.it




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



CSS and portlets

2005-01-18 Thread Xavier Lawrence

Hello,

I am currently modifying an existing Struts application so it generates
content to a portlet.

One question that I have is that the existing application uses custom
styles in a CSS file. Is there a way to make the portlet use the styles in
the CSS file without copy-paste them in the JSPs ???

Is there a way I could customize jetspeed so it knows about these styles ?

Thanks in advance for any help.

Regards

Xavier

-- 
-=[ xlawrence at jahia dot com ]=-
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company



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