home list archives users mailing list

Subject: Re: problem when creating my own OGSA_DAI resource

Date view Thread view Subject view Author view Attachment view

From: Mike Jackson (michaelj@epcc.ed.ac.uk)
Date: Aug 11, 2008 14:18

Hi Carlos,

On Mon, 11 Aug 2008, Carlos Buil Aranda wrote:

> Hello all,
>
> I'm new to OGSA-DAI and I have a problem when creating my own resource. This
> resource wants to access an OWL ontology as a resource. The problem I have
> is when I try to deploy it in a Globus container because I get an exception
> like the one that is at the end of the email. I've been looking at Section
> 17 of the OGSA-Dai's user manual
> (http://www.ogsadai.org.uk/documentation/ogsadai3.0/ogsadai3.0-gt/ServerConf
> igFilesCH.html) and I think I've configured everything properly. I also
> attach the resource file I created.
>
> R2OResource file
> id=R2OResource
> type=uk.org.ogsadai.DATA_RESOURCE
> creationTime=null
> terminationTime=null
> PROPERTIES
> mapster.resource.driver=com.mysql.jdbc.Driver
> mapster.resource.databaseurl=jdbc:mysql:///partsdb
> mapster.resource.user=root
> mapster.resource.pwd=root
> mapster.resource.outputpath=d:/tmp/mapstertest/output.rdf
> mapster.resource.r2ofilepath=d:/tmp/mapstertest/carsr2o.xml
> mapster.resource.queryfilepath=d:/tmp/mapstertest/carquery.xml
> mapster.resource.ontofilepath=d:/tmp/mapstertest/onto.owl
> END
> CONFIG
> END

OK I'd have expected to see the following after thie CONFIG-END block:

ACTIVITIES
END
dataResourceClass=DATA-RESOURCE-CLASS

where DATA-RESOURCE-CLASS is the name of the OGSA-DAI data resource
plugin class that you have written that handles communications with your
OWL resource.

(see 17.2.4.2 and 17.2.4.4 - and, yes, sorry, these sections could be
clearer in their explanations.

On a separate note all the entries in the PROPERTIES-END block are exposed
to clients as resource properties so you'd be better declaring these in
the CONFIG-END block as resource configuration properties.

Cheers,

mike

> D:\Tools\ws-core-4.0.7\bin>globus-start-container -nosec
>
> Listening for transport dt_socket at address: 5005
>
> 2008-08-11 13:52:55,541 ERROR resource.GTResourceAdapterHome
> [main,errorExceptionAndChildren:?] #121
>
> 8455575525:3# There is a problem with the content of persistence file
> D:\Tools\ws-core-4.0.7\etc\dai
>
> \resources\R2OResource.
>
> 2008-08-11 13:52:55,544 ERROR resource.GTResourceAdapterHome
> [main,errorExceptionAndChildren:?] #121
>
> 8455575525:3# Expected ACTIVITIES but found ENGINE-CONFIG.
>
> 2008-08-11 13:52:55,545 ERROR resource.GTResourceAdapterHome
> [main,logStackTraceError:?] uk.org.ogsa
>
> dai.persistence.file.PersistenceFileContentException: There is a problem
> with the content of persist
>
> ence file D:\Tools\ws-core-4.0.7\etc\dai\resources\R2OResource.
>
> at
> uk.org.ogsadai.persistence.file.resource.SimpleFileResourceStateDAO.getResou
> rceState(Unkn
>
> own Source)
>
> at
> uk.org.ogsadai.persistence.file.resource.SimpleFileResourceStateDAO.getResou
> rceState(Unkn
>
> own Source)
>
> at uk.org.ogsadai.resource.SimpleResourceManager.getResource(Unknown
> Source)
>
> at
> uk.org.ogsadai.service.gt.resource.GTResourceAdapterHome.initialize(Unknown
> Source)
>
> at
> uk.org.ogsadai.service.gt.request.resource.GTRequestResourceHome.initialize(
> Unknown Sourc
>
> e)
>
> at
> org.globus.wsrf.jndi.BasicBeanFactory.getObjectInstance(BasicBeanFactory.jav
> a:38)
>
> at
> org.globus.wsrf.jndi.BeanFactory.getInstance(BeanFactory.java:113)
>
> at
> org.globus.wsrf.jndi.BeanFactory.getObjectInstance(BeanFactory.java:79)
>
> at
> org.apache.naming.factory.ResourceFactory.getObjectInstance(Unknown Source)
>
> at
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.SynchronizedContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.SynchronizedContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.SynchronizedContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.SynchronizedContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.SynchronizedContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.NamingContext.lookup(Unknown Source)
>
> at org.apache.naming.SynchronizedContext.lookup(Unknown Source)
>
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
>
> at org.apache.naming.SelectorContext.lookup(Unknown Source)
>
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
>
> at
> org.globus.wsrf.impl.ResourceContextImpl.getResourceHome(ResourceContextImpl
> .java:124)
>
> at
> org.globus.wsrf.container.ServiceManager$InitPrivilegedAction.initialize(Ser
> viceManager.j
>
> ava:265)
>
> at
> org.globus.wsrf.container.ServiceManager.initializeService(ServiceManager.ja
> va:215)
>
> at
> org.globus.wsrf.container.ServiceManager.start(ServiceManager.java:148)
>
> at
> org.globus.wsrf.container.ServiceDispatcher.init(ServiceDispatcher.java:127)
>
> at
> org.globus.wsrf.container.ServiceContainer.start(ServiceContainer.java:242)
>
> at
> org.globus.wsrf.container.ServiceContainer.<init>(ServiceContainer.java:197)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
> sorImpl.java:
>
> 39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
> torAccessorIm
>
> pl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>
> at
> org.globus.wsrf.container.ServiceContainer.createContainer(ServiceContainer.
> java:138)
>
> at
> org.globus.wsrf.container.ServiceContainer.main(ServiceContainer.java:411)
>
> 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:585)
>
> at org.globus.bootstrap.BootstrapBase.launch(BootstrapBase.java:95)
>
> at org.globus.bootstrap.Bootstrap.main(Bootstrap.java:37)
>
> Caused by: uk.org.ogsadai.config.ConfigurationValueMissingException:
> Expected ACTIVITIES but found E
>
> NGINE-CONFIG.
>
> at uk.org.ogsadai.persistence.file.FileDAOUtils.getLine(Unknown
> Source)
>
> at
> uk.org.ogsadai.persistence.file.resource.SimpleFileResourceStateDAO.stringsT
> oResourceStat
>
> e(Unknown Source)
>
> at
> uk.org.ogsadai.persistence.file.resource.SimpleFileResourceStateDAO.stringsT
> oDataResource
>
> State(Unknown Source)
>
> ... 50 more
>
>
>
> Failed to start container: Failed to initialize
> 'dai/RequestManagementService' service [Caused by: ;
>
> nested exception is:
>
> javax.naming.NamingException: Bean initialization failed [Root
> exception is uk.org.ogsadai.p
>
> ersistence.file.PersistenceFileContentException: There is a problem with the
> content of persistence
>
> file D:\Tools\ws-core-4.0.7\etc\dai\resources\R2OResource.]]
>
> D:\Tools\ws-core-4.0.7\bin>
>
>

-------------------------------------------------------------------
Dr. Michael (Mike) Jackson Tel: +(44)-0131-650-5141
E-mail: m.jackson@epcc.ed.ac.uk Fax: +(44)-0131-650-6555
EPCC OGSA-DAI Project
WWW: http://www.epcc.ed.ac.uk WWW: http://www.ogsadai.org.uk

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


Date view Thread view Subject view Author view Attachment view