Hi all, one possible approach to handle this would be to make use of App-Schema cache. All schema that App-Schema needs are cache inside App-Schema cache directory, which is created automatically. So you could copy paste the App-Schema cache from the first server to second one and set the location using schema.cache.dir environment property. Hope it helps, Nuno Oliveira On Thu, 2019-07-18 at 03:53 -0700, ljacedo wrote: > Hi Tõnis, > > I have done what you recomend, and I have to add MySrvr to Namespace > and > datastore. after re-starting Tomcat Geoserver and Refreshing > Geoserver. > > Base on log, it seems geoserver is connecting to database, and I want > to > point out that the table PROTECTEDSITE_PS has no data. > > Geoserver Log: > 2019-07-18 10:15:49,876 DEBUG [geotools.jdbc] - Getting information > about > primary keys of PROTECTEDSITE_PS > 2019-07-18 10:15:50,388 DEBUG [geotools.jdbc] - Getting information > about > unique indexes of PROTECTEDSITE_PS > 2019-07-18 10:15:50,435 WARN [geotools.jdbc] - No primary key or > unique > index found for PROTECTEDSITE_PS. > 2019-07-18 10:15:50,435 DEBUG [geotools.jdbc] - CLOSE CONNECTION > 2019-07-18 10:15:50,444 DEBUG [geotools.jdbc] - CREATE CONNECTION > 2019-07-18 10:15:50,455 DEBUG [geotools.jdbc] - Check user can access > user > metadata views: SELECT * FROM MDSYS.USER_SDO_INDEX_METADATA WHERE > ROWNUM < 2 > 2019-07-18 10:15:50,517 DEBUG [geotools.jdbc] - Check user can access > user > metadata views: SELECT * FROM MDSYS.USER_SDO_GEOM_METADATA WHERE > ROWNUM < 2 > 2019-07-18 10:15:50,517 DEBUG [geotools.jdbc] - SELECT * FROM > MDSYS.USER_SDO_GEOM_METADATA WHERE ROWNUM < 2 > 2019-07-18 10:15:50,524 DEBUG [geotools.jdbc] - Geometry type check; > SELECT > META.SDO_LAYER_GTYPE > FROM ALL_INDEXES INFO > INNER JOIN MDSYS.USER_SDO_INDEX_METADATA META > ON INFO.INDEX_NAME = META.SDO_INDEX_NAME > WHERE INFO.TABLE_NAME = 'PROTECTEDSITE_PS' > AND REPLACE(meta.sdo_column_name, '"') = 'SHAPE' > > 2019-07-18 10:15:50,526 DEBUG [geotools.jdbc] - Geometry type check; > SELECT > META.SDO_LAYER_GTYPE > FROM ALL_INDEXES INFO > INNER JOIN MDSYS.ALL_SDO_INDEX_METADATA META > ON INFO.INDEX_NAME = META.SDO_INDEX_NAME > WHERE INFO.TABLE_NAME = 'PROTECTEDSITE_PS' > AND REPLACE(meta.sdo_column_name, '"') = 'SHAPE' > > 2019-07-18 10:15:50,534 DEBUG [geotools.jdbc] - SRID check; SELECT > SRID FROM > MDSYS.USER_SDO_GEOM_METADATA WHERE TABLE_NAME='PROTECTEDSITE_PS' AND > COLUMN_NAME='SHAPE' > 2019-07-18 10:15:50,550 DEBUG [geotools.jdbc] - CLOSE CONNECTION > 2019-07-18 10:15:50,551 DEBUG [complex.config] - found feature source > for > PROTECTEDSITE_PS > 2019-07-18 10:15:50,553 WARN [data.complex] - No top level element > found in > schemas: {http://MySrvr/geoserver/www/schemas/ps/4.0/}ProtectedSite > 2019-07-18 10:15:50,556 WARN [complex.config] - Error creating app- > schema > data store for 'ProtectedSite_STORE', caused by: No top level element > found > in schemas: {http://MySrvr/geoserver/www/schemas/ps/4.0/}ProtectedSit > e > 2019-07-18 10:15:50,567 WARN [org.geoserver] - Error connecting to > 'ProtectedSite'. Disabling. > > Namespace.xml > <namespace> > <id>NamespaceInfoImpl--138ca4e9:1679897f1ee:-7ffd</id> > <prefix>ps</prefix> > http://MySrvr/geoserver/www/schemas/ps/4.0/</uri>; > </namespace> > > Datastore.xml > <dataStore> > <id>DataStoreInfoImpl-2c4aa0ee:16020fa6fe6:-7fff</id> > <name>ProtectedSite</name> > <description>INSPIRE ProtectedSite</description> > <type>Application Schema DataAccess</type> > <enabled>true</enabled> > <workspace> > <id>WorkspaceInfoImpl--138ca4e9:1679897f1ee:-7ffe</id> > </workspace> > <connectionParameters> > <entry key="dbtype">app-schema</entry> > <entry > key="url">file:/serveis/dades/pre/gis/workspaces/ps/ProtectedSite/Pro > tectedSite_appschema.xml > <entry > key="namespace">http://MySrvr/geoserver/www/schemas/ps/4.0/</entry>; > </connectionParameters> > <__default>false</__default> > </dataStore> > > ProtectedSite_appschema.xml > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > http://www.opengis.net/ogc" > xmlns:appschema="http://www.geotools.org/app-schema">; > <namespaces> > > ps > http://MySrvr/geoserver/www/schemas/ps/4.0 > /; > > > gml > http://www.opengis.net/gml/3.2</uri>; > > > base > http://inspire.ec.europa.eu/schemas/base/3 > .3; > > > base2 > http://inspire.ec.europa.eu/schemas/base2/ > 2.0; > > > gmd > http://www.isotc211.org/2005/gmd</uri>; > > > xsi > http://www.w3.org/2001/XMLSchema-instance< > /uri>; > > > xlink > http://www.w3.org/1999/xlink</uri>; > > > gco > http://www.isotc211.org/2005/gco</uri>; > > > gn > http://inspire.ec.europa.eu/schemas/gn/4.0 > ; > > </namespaces> > <includedTypes/> > <sourceDataStores> > > bd_oracle > > > dbtype > Oracle > > > host > MyHost > > > port > MyPort > > > database > MyDDBB > > > user > MyUser > > > passwd > MyPswd > > > > </sourceDataStores> > <targetTypes> > > > > http://MySrvr/geoserver/www/schemas/ps/4.0/ProtectedSites.xsd > </schemaUri> > > </targetTypes> > <typeMappings> > > ProtectedSite_STORE > bd_oracle > PROTECTEDSITE_PS > ps:ProtectedSite > > > > > ps:inspireID/base:Identifier/base:localId > ribute> > true > pty> > > ID_LOCALID > > > > > > -- > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f378639 > 0.html > > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting > to this list: > - Earning your support instead of buying it, but Ian Turton: http://w > ww.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: http://geoserver.org/co > mm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: ht > tps://github.com/geoserver/geoserver/wiki/Successfully-requesting- > and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Regards, Nuno Oliveira == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. ==
Nuno Miguel Carvalho Oliveira @nmcoliveira Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users