Geoportal can't connect to ArcGIS Server

2924
0
04-11-2012 06:53 AM
BryanM
by
New Contributor III
We currently have GeoServer set up, but are looking at implementing Geoportal as a way to serve up our data to our municipal partners. I currently have Geoportal set up on a VM server running Server 2008 R2. I have implemented the setup using the installation guide for version 1.2 found on sourceforge.net (http://sourceforge.net/projects/geoportal/files/Documents/Geoportal/1.2/GeoportalServer_Installation...). Everything appears to be working fine; I was able to manually create a metadata document and was able to register an ArcGIS Server by connecting to services.arcgisonline.com. Our issue is that we cannot connect to our own internal ArcGIS Server. When I try to register our Server as a resource, I get a 'HTTP status code {401 - Unauthorized} received from server' message. When I check the gtp.xxx.log file, I see the following:[INDENT]

11-Apr-2012 10:22:00 AM com.esri.gpt.framework.sql.DatabaseReference openConnection
FINE: Connection opened for gpt, jndiName: jdbc/gpt, productName: PostgreSQL, driver: PostgreSQL Native Driver PostgreSQL 9.1 JDBC4 (build 901)
11-Apr-2012 10:22:01 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
11-Apr-2012 10:22:01 AM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: No credentials available for NTLM <any realm>@gisserver2k8:80
11-Apr-2012 10:22:01 AM com.esri.gpt.framework.jsf.BaseActionListener handleException
SEVERE: Exception raised.
com.esri.arcgisws.runtime.exception.ArcGISWebServiceException: HTTP status code {401 - Unauthorized} received from server
[/INDENT]
[INDENT=2]at com.esri.arcgisws.runtime.WebServiceProxyImpl.dispatchRequest(Unknown Source)
at com.esri.arcgisws.runtime.WebServiceProxyImpl.dispatchRequest(Unknown Source)
at com.esri.arcgisws.ServiceCatalogBindingStub.getServiceDescriptions(ServiceCatalogBindingStub.java:22)
at com.esri.gpt.catalog.arcgis.metadata.AGSProcessor.createResourceFolders(Unknown Source)
at com.esri.gpt.catalog.arcgis.metadata.AGSProcessor.getNativeResource(Unknown Source)
at com.esri.gpt.control.webharvest.client.arcgis.ArcGISQueryBuilder.getNativeResource(Unknown Source)
at com.esri.gpt.catalog.harvest.repository.HrCompleteUpdateRequest.createNativeResource(Unknown Source)
at com.esri.gpt.catalog.harvest.repository.HrCompleteUpdateRequest.execute(Unknown Source)
at com.esri.gpt.control.harvest.HarvestController.handleUpdateRepository(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method).DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.el.parser.AstValue.invoke(AstValue.java:262)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:70)
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:144)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:84)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:773)
at javax.faces.component.UICommand.broadcast(UICommand.java:296)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:781)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1246)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.esri.gpt.control.filter.EncodingFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)[/INDENT]
[INDENT]Caused by: com.esri.arcgisws.runtime.exception.ArcGISWebServiceException: HTTP status code {401 - Unauthorized} received from server[/INDENT]
[INDENT=2]at com.esri.arcgisws.runtime.transport.http.HttpClientConnectionChannelImpl.a(Unknown Source)
at com.esri.arcgisws.runtime.transport.http.HttpClientConnectionChannelImpl.sendRequest(Unknown Source)
... 45 more


[/INDENT]
Originally I thought that the gptadmin account needed to be added to the agsadmin role for AGServer, but now I'm suspecting that Apache needs to be authorized to connect to the server hosting AGServer. I'm wondering if Geoportal should be installed on the same server as AGServer. Has anyone successfully connected to their own ArcGIS Server? Any words of wisdom would be greatly appreciated!!:)

Thanks,
Bryan
0 Kudos
0 Replies