Hello again,
unfortunately, I still couldn't solve the problem. I've changed the sources according to your advice (no more "url" param names in there).
The debug logs of GeoServer when I enter a _file_ (not a URL) source is:
2007-11-13 11:42:39,614 DEBUG [data.property] - can't process parameters java.io.IOException: Parameter directory is required:Directory containting property files
at org.geotools.data.DataStoreFactorySpi$Param.lookUp(DataStoreFactorySpi.java:392)
at org.geotools.data.property.PropertyDataStoreFactory.directoryLookup(PropertyDataStoreFactory.java:187)
at org.geotools.data.property.PropertyDataStoreFactory.canProcess(PropertyDataStoreFactory.java:156)
....
If I enter a _URL_ source, no debug error is shown. The param contents are "sosURL=java.net.URL REQUIRED URL offering O&M structure". However, the error message stays the same:
"Could not find file:
http:\ispacesrv001.researchstudio.at\GetObservation\SOSObservation.xml. Perhaps location was entered wrong?"
Could you imagine any other error sources for the fact that GeoServer does not accept my parameter as URL, but always wants to interpret it as a file. One hint could be that the canProcess() function returns false because:
"params.get("sosURL") instanceof URL" is false.
"params.get("sosURL") instanceof Param" would be true
Enclosed, i send you the updated .jar and sources.
Thanks _again_,
Bernd.
Andrea Aime wrote:
> Bernd Resch ha scritto:
>> Andrea,
>>
>> thanks for your fast answer!!
>>
>> Unfortunately, the error remains after having changed the parameter
>> name in the OMDataStoreFactory (find the .jar file enclosed).
>>
>> 1.) if I enter
>> "http://ispacesrv001.researchstudio.at/GetObservation/SOSObservation.xml",
>> the error message stays the same. Can it be that GeoServer tries to
>> interpret my sosURL as a file path (as it shows backslashes in the
>> message)?
>
> I tried your jar and I get "connection parameters are invalid" in both
> cases. If you havent' changed your sources I see the datastore factory
> is using "url" in one place and "sosUrl" in another... you should be
> using the same parameter name everywhere.
>
> May that be the source of your problem? Have you tried putting debugger
> breakpoints in your datastore factory and see what happens?
> Cheers
> Andrea