On Sun, Oct 23, 2011 at 7:56 PM, Gerson Galang <[email protected]> wrote:
> Hi guys,
>
> I just switched to geotools 2.7-SNAPSHOT from http://repo.opengeo.org/ but
> that still didn't fix the problem.

like in you just grabbed that single jar from the repo?
Try updating all of them, like in mvn -U eclipse:eclipse if you're
running from eclipse or grab a latest nightly build.

I've a cascaded wfs 1.1 store on localhost:9090 serving featuretypes
from another geoserver in localhost:8080.
The one at :8080 has a service security rule of wfs.* : ROLE_ADMINISTRATOR

Creating a cascaded wfs store at the :9090 one with the URL
<http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=GetCapabilities>,
user admin, pwd geoserver, lets me add layers from that store, and
both GML and OpenLayers layer preview works.

Can you confirm what happens if you follow all those steps?
Note: I did find the 1.0.0 one produces http 401. I think updating the
1.0.0 one wasn't part of my latest patch as client required 1.1.0, but
I'll look into it to be sure.

>
> I also tried Gabriel's suggestion of using the 1.1.0 version of the WFS
> client but that gave me the same error message. I found it interesting to
> see that the client decided to switch back to WFS 1.0.0 when it ran the
> getFeatures request even if I explicitly asked it to use 1.1.0 in the
> getCapabilities URL.

Can you double check that too? With the 1.1.0 version set on the
client URL I get the following requests logged on the server logs:
Request: getFeature
        handle = GeoTools 8-SNAPSHOT WFS DataStore
        service = WFS
        version = 1.1.0
        baseUrl = http://localhost:8080/geoserver/

do you get version = 1.0.0 on the server logs?

Cheers,
Gabriel
>
> Any other suggestions?
>
> Cheers,
> Gerson
>
> On 20/10/11 5:07 PM, "Andrea Aime" <[email protected]> wrote:
>
>>On Thu, Oct 20, 2011 at 7:52 AM, Gerson Galang <[email protected]>
>>wrote:
>>> Hi,
>>> I've been using the WFS plugin
>>> (http://docs.geotools.org/latest/userguide/library/data/wfs.html) to run
>>> getCapabilities, describeFeatureType and getFeature request against our
>>> local geoserver. It was all working fine until I started talking to a
>>>WFS
>>> that requires authentication. I added the WFSDataStoreFactory:USERNAME
>>>and
>>> WFSDataStoreFactory:PASSWORD to the list of connectionParameters but the
>>> query only worked for getCapabilities and describeFeatureType requests.
>>>Do I
>>> need to do anything special if I am to run a getFeature request
>>>requiring
>>> authentication?
>>
>>Sounds very much like this issue:
>>http://jira.codehaus.org/browse/GEOS-3967
>>It has been fixed only a couple of weeks ago, you might want to checkout
>>out
>>the current sources of GeoTools 2.7.x, or depend on 2.7-SNAPSHOT for the
>>time being.
>>
>>Cheers
>>Andrea
>>
>>--
>>-------------------------------------------------------
>>Ing. Andrea Aime
>>GeoSolutions S.A.S.
>>Tech lead
>>
>>Via Poggio alle Viti 1187
>>55054  Massarosa (LU)
>>Italy
>>
>>phone: +39 0584 962313
>>fax:      +39 0584 962313
>>
>>http://www.geo-solutions.it
>>http://geo-solutions.blogspot.com/
>>http://www.youtube.com/user/GeoSolutionsIT
>>http://www.linkedin.com/in/andreaaime
>>http://twitter.com/geowolf
>>
>>-------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>



-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to