Re: jetspeed and castor 0.9.5 hangs

2003-11-13 Thread Jeremy Ford
Was there an attachment?  If you could, put the solution in this log:

http://issues.apache.org/bugzilla/show_bug.cgi?id=24293

Jeremy Ford


From: "Paul Egaru" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: jetspeed and castor 0.9.5 hangs
Date: Thu, 13 Nov 2003 16:39:04 +
Actually I made a slight mistake with the solution to jetspeed with castor 
0.9.5. Got turbine to work but jetspeed was not. This solution gets both 
working alright.

P

_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Is your computer infected with a virus?  Find out with a FREE computer virus 
scan from McAfee.  Take the FreeScan now! 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: jetspeed and castor 0.9.5 hangs

2003-11-13 Thread Paul Egaru
Actually I made a slight mistake with the solution to jetspeed with castor 
0.9.5. Got turbine to work but jetspeed was not. This solution gets both 
working alright.

P

_
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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

Re: jetspeed and castor 0.9.5 hangs

2003-11-13 Thread Jeremy Ford
I believe that this issue has been logged in bugzilla.  The url is 
http://issues.apache.org/bugzilla/show_bug.cgi?id=24293

If you could, please create a patch and attach it to this log.  Thanks.

Jeremy Ford


From: "Paul Egaru" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: jetspeed and castor 0.9.5 hangs  Date: Wed, 12 Nov 2003 
17:06:39 +

I have been trying to get jetspeed to work with castor 0.9.5 as our portlet 
data needs this with no luck. However I have discovered a couple of things 
that cause jetspeed to trip when used with castor 0.9.5 -

if castor is set to validate the unmarshalled objects (the default setting) 
then it trips because it tries to read the bean properties. For Registry 
elements if the classname property is read this makes a call to the 
registry to get the portal parent. If the parent definition is in the 
current registry file or one that has not yet been loaded then this will 
wait for the registry to complete initialisation but this will never happen 
as it is waiting for the castor validation to complete (Deadlock).

Also if you switch validation off then you can still have problems when the 
portlet is being registered if the file in which the parent portlet has not 
yet been processed.

To get arround these problems I have changed the CastorRegistryService as 
follows:



_
MSN Messenger with backgrounds, emoticons and more. 
http://www.msnmessenger-download.com/tracking/cdp_customize

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


Re: jetspeed and castor 0.9.5 hangs

2003-11-12 Thread Paul Egaru
I have been trying to get jetspeed to work with castor 0.9.5 as our portlet 
data needs this with no luck. However I have discovered a couple of things 
that cause jetspeed to trip when used with castor 0.9.5 -

if castor is set to validate the unmarshalled objects (the default setting) 
then it trips because it tries to read the bean properties. For Registry 
elements if the classname property is read this makes a call to the registry 
to get the portal parent. If the parent definition is in the current 
registry file or one that has not yet been loaded then this will wait for 
the registry to complete initialisation but this will never happen as it is 
waiting for the castor validation to complete (Deadlock).

Also if you switch validation off then you can still have problems when the 
portlet is being registered if the file in which the parent portlet has not 
yet been processed.

To get arround these problems I have changed the CastorRegistryService as 
follows:

/* 
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2001 The Apache Software Foundation.  All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
*notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
*notice, this list of conditions and the following disclaimer in
*the documentation and/or other materials provided with the
*distribution.
*
* 3. The end-user documentation included with the redistribution,
*if any, must include the following acknowledgment:
*   "This product includes software developed by the
*Apache Software Foundation (http://www.apache.org/)."
*Alternately, this acknowledgment may appear in the software itself,
*if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation" and
* "Apache Jetspeed" must not be used to endorse or promote products
*derived from this software without prior written permission. For
*written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache" or
*"Apache Jetspeed", nor may "Apache" appear in their name, without
*prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* 
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation.  For more
* information on the Apache Software Foundation, please see
* .
*/
package org.apache.jetspeed.services.registry;

// Jetspeed stuff
import org.apache.jetspeed.om.registry.Registry;
import org.apache.jetspeed.om.registry.RegistryEntry;
import org.apache.jetspeed.om.registry.RegistryException;
import org.apache.jetspeed.om.registry.base.BaseRegistry;
import org.apache.jetspeed.om.registry.base.LocalRegistry;
//turbine stuff
import org.apache.turbine.util.Log;
import org.apache.turbine.services.InitializationException;
import org.apache.turbine.services.TurbineBaseService;
import org.apache.turbine.services.TurbineServices;
import org.apache.turbine.services.servlet.TurbineServlet;
import org.apache.turbine.services.servlet.ServletService;
import org.apache.turbine.services.resources.ResourceService;
// castor marshalling
import org.exolab.castor.mapping.Mapping;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.Marshaller;
import org.xml.sax.InputSource;
import org.apache.xml.serialize.Serializer;
import org.apache.xml.serialize.XMLSerializer;
import org.apache.xml.serialize.OutputFormat;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
//java stuff
import java.io.File;
import java.io.FileFilter;
import java.io.FileReader;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Hashtable;
import java

AW: jetspeed and castor

2003-08-03 Thread Daniel Freitag
Of course I have tried.
I don't have the luck. (But I'm not sure why.)

1. I have replaced the castor.jar.
2. Generate the sources.
3. A lot of exceptions.

Result: It doesn't work.
Daniel

-Ursprüngliche Nachricht-
Von: Luta, Raphael (VUN) [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 3. August 2003 16:35
An: 'Jetspeed Users List'
Betreff: RE: jetspeed and castor


Have you tried simply replacing the castor bundled with jetspeed
with your newer version ?

I don't think you should encounter any issue and if it *does* work
please report on the list and we will update the dependency in CVS.

--
Raphaël Luta - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/


> -Message d'origine-
> De : Daniel Freitag [mailto:[EMAIL PROTECTED]
> Envoyé : dimanche 3 août 2003 16:39
> À : jetspeed-user-list
> Objet : jetspeed and castor
>

>

> Hi @ll,
>

> It was hard to update to 1.4b4. The problem I was confronted with was
> the old version of castor. Jetspeed needs 0.9.3 and I have used 0.9.5.
>

> Why is jetspeed delivered with such an old version???
>

> Does anyone know a possibility to use two versions of the

> same resources
> at the same time? I don't believe it, but I have still a little hope.
> (The old version is not so good as the new one?)

>

> Daniel
>

>

>

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


**
Vivendi Universal - HTTP://www.vivendiUniversal.com:

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material of Vivendi Universal which is for the exclusive use of the
individual designated above as the recipient. Any review,
retransmission,
dissemination or other use of, or taking of any action in reliance upon,

this information by persons or entities other than the intended
recipient

is prohibited. If you received this in error, please contact immediately

the sender by returning e-mail and delete the material from any
computer.

If you are not the specified recipient, you are hereby notified that all

disclosure, reproduction, distribution or action taken on the basis of
this

message is prohibited.

-
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 and castor

2003-08-03 Thread Luta, Raphael (VUN)

Have you tried simply replacing the castor bundled with jetspeed
with your newer version ?

I don't think you should encounter any issue and if it *does* work
please report on the list and we will update the dependency in CVS.

--
Raphaël Luta - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/


> -Message d'origine-
> De : Daniel Freitag [mailto:[EMAIL PROTECTED]
> Envoyé : dimanche 3 août 2003 16:39
> À : jetspeed-user-list
> Objet : jetspeed and castor
>
>
> Hi @ll,
>
> It was hard to update to 1.4b4. The problem I was confronted with was
> the old version of castor. Jetspeed needs 0.9.3 and I have used 0.9.5.
>
> Why is jetspeed delivered with such an old version???
>
> Does anyone know a possibility to use two versions of the
> same resources
> at the same time? I don't believe it, but I have still a little hope.
> (The old version is not so good as the new one?)
>
> Daniel
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

**
Vivendi Universal - HTTP://www.vivendiUniversal.com:
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material of Vivendi Universal which is for the exclusive use of the
individual designated above as the recipient. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact immediately
the sender by returning e-mail and delete the material from any computer.
If you are not the specified recipient, you are hereby notified that all
disclosure, reproduction, distribution or action taken on the basis of this
message is prohibited.

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



jetspeed and castor

2003-08-03 Thread Daniel Freitag
Hi @ll,

It was hard to update to 1.4b4. The problem I was confronted with was
the old version of castor. Jetspeed needs 0.9.3 and I have used 0.9.5.

Why is jetspeed delivered with such an old version???

Does anyone know a possibility to use two versions of the same resources
at the same time? I don't believe it, but I have still a little hope.
(The old version is not so good as the new one?) 

Daniel



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