Hello, I resolved it!!!
If you want your web application running in Tomcat (5.5+) could connect to a web service of globus (4.0.3) you have to do the following steps: 1. Put in $JAVA_HOME/jre/lib/ext or in $CATALINA_HOME/common/endorsed the following jars: jaxrpc.jar saaj.jar xalan.jar xml-apis.jar wsdl4j.jar xercesImpl.jar In this way, you will overwrite the implementations of the JDK 1.4+. It runs me putting them in the java directory, but it should work else putting them in the tomcat directory. 2. Create a new axis.jar reemplazing the client-config.wsdd for the $GLOBUS_LOCATION/client-config.wsdd 3. Copy al the jars of $GLOBUS_LOCATION/lib in the WEB-INF/lib of your web application excludying: *samples*, *examples*, *tutorial*, namming* and the jars that have conflict with struts. I hope this could help somebody. Sorry for my bad english. Regards, Gracia 2007/10/9, Gracia Fern�ndez L�pez <[EMAIL PROTECTED]>: > > Hello, > > I am trying to query the IndexService of Globus 4.0.3 from an external web > aplication. > When the aplication is running with Tomcat (5.5.23), doesn't work. > > The code in which I query to the IndexService is the following: > > QueryExpressionType query = buildQuery(xpathQuery.toString()); > QueryResourceProperties_Element queryRP = new > QueryResourceProperties_Element(query); > >> QueryResourcePropertiesResponse response = > queryPort.queryResourceProperties(queryRP); > > This code runs when I made the tests (junit). > > When I execute this inside Tomcat, it throws the following exception: > > Failure trying to get the Call object; nested exception is: > java.lang.NoClassDefFoundError > at > org.oasis.wsrf.properties.QueryResourcePropertiesSOAPBindingStub.createCall > (QueryResourcePropertiesSOAPBindingStub.java:395) > at > org.oasis.wsrf.properties.QueryResourcePropertiesSOAPBindingStub.queryResourceProperties > (QueryResourcePropertiesSOAPBindingStub.java:403) > at > es.udc.infgfl00.cimindex.model.xmlquerier.CIMXMLIndexServiceQuerier.getClassInstanceByClass > (CIMXMLIndexServiceQuerier.java:123) > at > es.udc.infgfl00.cimindex.model.cimobject.dao.CIMInstanceXMLDAO.getClassInstances > (CIMInstanceXMLDAO.java:48) > at > es.udc.infgfl00.cimindex.model.searchfacade.plain.actions.GetInstancesBySearchTreeAction.execute > (GetInstancesBySearchTreeAction.java:126) > at es.udc.infgfl00.cimindex.util.sql.PlainActionProcessor.process( > PlainActionProcessor.java:29) > at > es.udc.infgfl00.cimindex.model.searchfacade.plain.PlainSearchFacadeDelegate.getInstancesBySearchTree > (PlainSearchFacadeDelegate.java:72) > at > es.udc.infgfl00.cimindex.http.controller.actions.ExecuteSearchAction.doExecute > (ExecuteSearchAction.java:56) > at > es.udc.infgfl00.cimindex.util.struts.action.DefaultAction.execute( > DefaultAction.java:43) > at org.apache.struts.action.RequestProcessor.processActionPerform( > RequestProcessor.java:425) > at org.apache.struts.action.RequestProcessor.process( > RequestProcessor.java:228) > at org.apache.struts.action.ActionServlet.process( > ActionServlet.java:1913) > at org.apache.struts.action.ActionServlet.doPost( > ActionServlet.java:462) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > at javax.servlet.http.HttpServlet.service (HttpServlet.java:803) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java :269) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:188) > at org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:210) > at org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:174) > at org.apache.catalina.core.StandardHostValve.invoke ( > StandardHostValve.java:127) > at org.apache.catalina.valves.ErrorReportValve.invoke( > ErrorReportValve.java:117) > at org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:108) > at org.apache.catalina.connector.CoyoteAdapter.service( > CoyoteAdapter.java:151) > at org.apache.coyote.http11.Http11Processor.process( > Http11Processor.java:870) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection( > Http11BaseProtocol.java:665) at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > PoolTcpEndpoint.java:528) > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > LeaderFollowerWorkerThread.java:81) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > ThreadPool.java:685) > at java.lang.Thread.run(Thread.java :595) > Caused by: java.lang.NoClassDefFoundError > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at > org.globus.wsrf.encoding.TopicExpressionSerializerFactory.class$( > TopicExpressionSerializerFactory.java:28) > at org.globus.wsrf.encoding.TopicExpressionSerializerFactory > .<init>(TopicExpressionSerializerFactory.java:28) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance( > NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance ( > DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory ( > BaseSerializerFactory.java:301) > at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping( > WSDDDeployment.java :321) > at > org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry( > WSDDDeployment.java:514) > at > org.apache.axis.configuration.FileProvider.getTypeMappingRegistry( > FileProvider.java:262) > at org.apache.axis.AxisEngine.getTypeMappingRegistry( > AxisEngine.java:360) > at org.apache.axis.MessageContext.getTypeMappingRegistry( > MessageContext.java:415) > at org.apache.axis.client.Call.getTypeMapping (Call.java:2187) > at org.apache.axis.client.Call.registerTypeMapping(Call.java:2222) > at org.apache.axis.client.Call.registerTypeMapping(Call.java:2265) > at > org.oasis.wsrf.properties.QueryResourcePropertiesSOAPBindingStub.createCall > (QueryResourcePropertiesSOAPBindingStub.java:380) > ... 28 more > > > The CLASSPATH (about globus): > > /home/globus/globus-4.0.3/ > /home/globus/globus-4.0.3/lib/wsrf_core.jar > /home/globus/globus-4.0.3 /lib/globus_usage_core.jar > /home/globus/globus-4.0.3/lib/wsrf_core.jar > /home/globus/globus-4.0.3/lib/wsrf_core_registry.jar > /home/globus/globus-4.0.3/lib/wsrf_core_registry_stubs.jar > /home/globus/globus-4.0.3 /lib/wsrf_core_samples_authzService.jar > /home/globus/globus-4.0.3/lib/wsrf_core_samples_authzService_stubs.jar > /home/globus/globus-4.0.3/lib/wsrf_core_samples_counter.jar > /home/globus/globus-4.0.3/lib/wsrf_core_samples_counter_stubs.jar > /home/globus/globus- 4.0.3/lib/wsrf_core_samples_mgmt.jar > /home/globus/globus-4.0.3/lib/wsrf_core_samples_mgmt_stubs.jar > /home/globus/globus-4.0.3/lib/wsrf_core_stubs.jar > /home/globus/globus-4.0.3/lib/jaxrpc.jar > /home/globus/globus- 4.0.3/lib/axis.jar > /home/globus/globus-4.0.3/lib/saaj.jar > /home/globus/globus-4.0.3/lib/commons-discovery.jar > /home/globus/globus-4.0.3/lib/addressing-1.0.jar > /home/globus/globus-4.0.3/lib/wsdl4j.jar > /home/globus/globus- 4.0.3/lib/gram-stubs.jar > > I don't know if it is caused for a missing jar or a wrong version. > I hope somebody could help me, because I am lose. > > -- > Regards, > Gracia >
