You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by shashidhar velagandula <sh...@gmail.com> on 2009/03/11 12:12:42 UTC

unkown protocol "httpg" - using apache-tomcat-6.0.18

HI ,


    I am using apache-tomcat-6.0.18 , I want to access a  SRM(storage
resource manager) service endpoint which uses httpg protocol
eg: service endpoint - httpg://srmserver.host:8444/ , by deploying a web
service application using apache-tomcat server

when a client tries to invoke the service , it is giving error as  Exception
java.net.MalformedURLException: unknown protocol: httpg

After searching in the google , I tried adding the following in the apache
server.xml file

1)

 <Connector className="org.apache.catalina.connector.http.HttpConnector"
                 port="8444" minProcessors="5" maxProcessors="75"
                 enableLookups="true" authenticate="true"
                 acceptCount="10" debug="1" scheme="httpg" secure="true">
        <Factory
className="org.globus.tomcat.catalina.net.GSIServerSocketFactory"
                 cacertdir="/etc/grid-security/certificates"
                 proxy="/etc/grid-security/hostproxy.pem"
                 gridMap="/etc/grid-security/grid-mapfile"
                debug="3"/>
      </Connector>

 <Valve className="org.globus.tomcat.coyote.valves.HTTPSValve55" />

2)  In tomcat_dir/bin/catalina.sh file

CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar

CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/cog-jglobus.jar":"$CATALINA_HOME/common/lib/log4j-1.2.8.jar":"$CATALINA_HOME/common/lib/ogsa.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/xercesImpl.jar":"$CATALINA_HOME/common/endorsed/xmlsec.jar":"$CATALINA_HOME/common/lib/xalan.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/puretls.jar":"$CATALINA_HOME/common/lib/jce-jdk13-120.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/cryptix32.jar":"$CATALINA_HOME/common/lib/cryptix-asn1.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/cryptix.jar":"$CATALINA_HOME/common/lib/saag.jar":"$CATALINA_HOME/common/lib/wsdl4j.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/Berkeley.StorageResourceManager-client-api.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/Berkeley.StorageResourceManager-client-stub.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/Berkeley.StorageResourceManager-client-samples.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/cryptix.jar":"$CATALINA_HOME/common/lib/axis.jar":"$CATALINA_HOME/common/lib/cog-axis.jar"
CLASSPATH="$CLASSPATH":"$CATALINA_HOME/common/lib/commons-discovery.jar":"$CATALINA_HOME/common/lib/commons-logging.jar":"$CATALINA_HOME/common/lib/jaxrpc.jar"

3) In tomcat_dir/bin/setclasspath.sh file
appended the line :
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/common/lib/cog-url.jar

4) Even I have copied all the globus-4.0.7 lib  jar files to
tomcat_dir/common/lib directory also


I was not clear about this configuration with tomcat ( I am new to tomcat
server usage ), what are the changes to be done on the server and client
side of the deployed service , Please help me to configure the tomcat server
to support httpg protocol ?


Thanks & Regards,
shashidhar

RE: unkown protocol "httpg" - using apache-tomcat-6.0.18

Posted by Peter Crowther <Pe...@melandra.com>.
> From: shashidhar velagandula
>     I am using apache-tomcat-6.0.18 , I want to access a  SRM(storage
> resource manager) service endpoint which uses httpg protocol
> eg: service endpoint - httpg://srmserver.host:8444/ , by
> deploying a web
> service application using apache-tomcat server
>
> when a client tries to invoke the service , it is giving
> error as  Exception
> java.net.MalformedURLException: unknown protocol: httpg

That's not surprising - most browsers don't understand httpg:... as a prefix.

Just to check, which of the following do you want to do?

1) Client (browser?) uses http to access a web application running inside Tomcat.  Web application redirects client to a httpg: resource.  Browser uses httpg to access that resource.

2) Client (browser?) uses http to access a web application running inside Tomcat.  Web application accesses the httpg: resource internally, forms a response to the browser, and replies to the browser using http.

3) Client (browser?) uses httpg to access a web application running inside Tomcat.

4) Something else - in which case please tell us what!


1 and 2 require no changes to Tomcat's configuration files.  3 does, but Tomcat doesn't support a httpg connector so you'd have to write your own.  1 and 3 require the client to understand httpg, which browsers don't.

I *think* you're trying to do 2, in which case you need to write/buy the appropriate web application to deploy, and make sure its configuration files are set up so that it knows to contact httpg://srmserver.host:8444/ to reach the SRM endpoint.  If you're writing it, http://www.mail-archive.com/users@tomcat.apache.org/msg34996.html may be relevant - the webapp will have to be quite careful in how it registers the protocol handler.

If you're trying to do something else, post more details to the list and we may be able to help!

                - Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org