Thanks for comment about 1, it solves my problem. In my eclipse
"persistence-xml" project was closed so "Open Resource" couldn't find
"ProducerPersistentFactoryImpl" and it was fooling me that
"ProducerPersistentFactoryImpl" doesn't exist at all !!...!

On 12/12/06, Diego Louzán <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Diego Louzán escribió:
> Ali Sakebi escribió:
>>> 1.
>>> There is no "ProducerPersistentFactoryImpl" as referenced in
>>> "wsrp4j-config.properties":
>>>
>>> wsrp4j.producer.persistent.factory=\
>>>    org.apache.wsrp4j.persistence.xml.driver.ProducerPersistentFactoryImpl
>>>
>>> but it's accessed by "PersistentAccess":
>>>
>>> private static String PRODUCER_PERSISTENT_FACTORY =
>>>            "wsrp4j.producer.persistent.factory";
>>> ...
>>> public static ProducerPersistentFactory getProducerPersistentFactory()
>>>    throws WSRPException {
>>>
>>>        if (producerPersistentFactory == null) {
>>>            producerPersistentFactory =
>>>                    (ProducerPersistentFactory)
>>>                    getFactory(PRODUCER_PERSISTENT_FACTORY);
>>>        }
>>>
>>> and in ConsumerRegistryImpl
>>>
>>>     private ConsumerRegistryImpl(Provider provider)
>>>     ...
>>>            ProducerPersistentFactory persistentFactory =
>>>                    PersistentAccess.getProducerPersistentFactory();
>>>            persistentHandler = persistentFactory.getPersistentHandler();
>>>            persistentDataObject = persistentFactory.getRegistrationList();
>>>
>>>            restore();
>>> A workaround is to commented restore() !!!
>>>
>>> 2.
>>> In "WSFactoryFinder"
>>>
>>>    private final static String FACTORY_CLASS_NAME_PARAMETER =
>>>            "wsrp4j.ws.factory";
>>> ...
>>>            String factoryClassName =
>>>                    ConfigurationParametersManager.getParameter(
>>>                        FACTORY_CLASS_NAME_PARAMETER);
>>> So I add
>>> wsrp4j.ws.factory=org.apache.wsrp4j.commons.ws.impl.WSAxisFactory
>>> to wsrp4j-config.properties
>>>
>>> 3.
>>> There is missing file "WSRPServices.properties" file referenced few
>>> times and seems that is the old name of "wsrp4j-config.properties".
>>> I have made a copy of wsrp4j-config.properties with the name
>>> "WSRPServices.properties" and it solves the problem.
>>>
>>>
>>> 4.
>>> I'm not sure about this one but I think if producer set
>>> "requiresInitCookie" to "none" consumer doesn't need to provide
>>> cookies but
>>> WSRPEngine > getMarkup > this.checkCookie();
>>> requires the consumer to provide cookie without considering
>>> "requiresInitCookie" value.
>
> Thanks for the info, I'm starting to fix it right now. I hope it will be
> functional again in a few days.
>
> Regards.
> Diego.

I have it almost working fully again. The problem you mention on point
1. is probably due to your tomcat installation lacking the xerces xml
parser, so the restore() (which uses an xml-based castor mapping) fails.

Just download xerces from http://www.apache.org/dist/xml/xerces-j/,
unpack it and copy the following files to $TOMCAT_HOME/common/endorsed:

resolver.jar
xercesImpl.jar
xercesSamples.jar
xml-apis.jar

Regards.
Diego.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFfn4kgyzZYflJelERAq+vAJiSUK82YEDv+d6steu+bLvHi2JTAJ9iDRZY
SCgH5HquDkp8+NiIuMLNXg==
=mr/p
-----END PGP SIGNATURE-----

Reply via email to