Andrea,

I am the component lead of GS Application schema, but I am not the 
default assignee of new issues. Should I be? Can this be changed?

Kind regards,
Ben.


-------- Original Message --------
Subject: [Geoserver-devel] [jira] Created: (GEOS-3805) 
java.lang.IllegalStateException: Subject type not loaded yet
Date: Thu, 11 Feb 2010 14:26:55 +0800
From: Florence Tan (JIRA) <[email protected]>
To: [email protected] 
<[email protected]>

java.lang.IllegalStateException: Subject type not loaded yet
------------------------------------------------------------

                  Key: GEOS-3805
                  URL: http://jira.codehaus.org/browse/GEOS-3805
              Project: GeoServer
           Issue Type: Bug
           Components: Application schema
     Affects Versions: 2.0.x
             Reporter: Florence Tan
             Assignee: Andrea Aime


As GeoServer only allows one FeatureType of same type per instance, in 
order to achieve more than one silimar type, a new schema been created 
to have the similar type with different element name:

1) Created a new schema under a new profiles directory
(profiles/Borehole.xsd)
<schema xmlns="http://www.w3.org/2001/XMLSchema"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0" 
xmlns:sa="http://www.opengis.net/sampling/1.0"; 
xmlns:om="http://www.opengis.net/om/1.0"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
targetNamespace="urn:cgi:xmlns:CGI:GeoSciML:2.0">
        <annotation>
                <documentation>Profile wrapper for Borehole</documentation>
        </annotation>
        <import namespace="http://www.opengis.net/gml"; 
schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>
        <import namespace="http://www.opengis.net/sampling/1.0"; 
schemaLocation="http://schemas.opengis.net/sampling/1.0.0/sampling.xsd"/>
        <include 
schemaLocation="http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd"/>
        <element name="BoreholeHeader" type="gsml:BoreholeType" 
substitutionGroup="sa:SamplingCurve"/>
</schema>


2) Have the geoserver config file pointing to the new schema file :
<targetTypes>
<FeatureType>
<schemaUri>../profiles/Borehole.xsd</schemaUri>
</FeatureType>
</targetTypes>


3) Running the config file will receive the following java exception :
<ows:ExceptionReport version="1.0.0" 
xsi:schemaLocation="http://www.opengis.net/ows 
http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ows="http://www.opengis.net/ows";>
- <ows:Exception exceptionCode="NoApplicableCode">
   <ows:ExceptionText>java.lang.IllegalStateException: Subject type not 
loaded yet Subject type not loaded yet</ows:ExceptionText>
   </ows:Exception>
   </ows:ExceptionReport>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer, CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to