Re: Simple Question Axis
Hello Cyrille I active the log and show me this trace in the console and generate this file too. :'( I see the log and the problem is it when invoke the client-stub of the other web service.. Thanks.. Nicolás G. Rico Hi Nicolas, I advise you to first fix your logging problem. Remember that axis relies on log4j. I attached a log4j.xml that should enable axis debug logs. just drop this file under WEB-INF/classes . We are waiting to see your stacktrace :-) Cyrille On 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Cyrille Le Clerc wrote: Hi Nicolas, We are blind without the stack trace of the exception. You should find it in the server-side logs. Cyrille On 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: > > > Hi Cyrille Le Clerc > > - JDK: 1.4_01 > - Tomcat 5.0:28 > - Axis 1.3 > > With the tcp-mon this is the message: > > "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > soapenv:Server.userException > java.lang.reflect.InvocationTargetException > > "http://xml.apache.org/axis/">avisortech02 > > > > > > In the tomcat console no show me nothing. I have this client for consume the web service secure with the ibm jars > > public class StubClient { > private static String PSEURL = "https://desarrollo.pse.com.co/psewebservices/mainservices.asmx" ; > public StubClient() { > try{ > initProviders(); > } catch(Exception e){ > e.printStackTrace(); > } > } > > private static void initProviders() throws Exception > { > System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db"); > System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen"); > System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); > > Provider[] providers = Security.getProviders(); > for(int i=0;i > System.out.println(i+" - "+providers[i].getClass().toString()); > Object fact = SSLSocketFactory.getDefault(); > System.out.println("Default provider = "+fact.getClass().toString()); > > if(!fact.getClass().toString().equals("class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") ) > throw new Exception("SSL no disponíble"); > } > > public ArrayOfGetBankListResponseType[] getBankList(GetBankListRequestType request) > { > ArrayOfGetBankListResponseType[] bank = null; > try > { > MainServicesImplLocator loc = new MainServicesImplLocator(); > MainServicesImplSoapStub cli = (MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL) ); > MessageHeader header = new MessageHeader(); > header.setTo("to 123"); > header.setFrom("from 123"); > header.setRepresentingParty("repr 123"); > cli.setMessageHeader( header ); > GetbankListInformationType gbl_request=new GetbankListInformationType(); > gbl_request.setEntityCode("98658"); > GetBankListResponseInformationType[] gbl_response=cli.getBankList(gbl_request); > bank = new ArrayOfGetBankListResponseType[gbl_response.length]; > for(int i=0; i > { > bank[i] = new ArrayOfGetBankListResponseType(); > bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode()); > bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName()); > System.out.println(" BankID="+gbl_response[i].getFinancialInstitutionCode()+" BankName="+gbl_response[i].getFinancialInstitutionName()); > } > > header = cli.getMessageHeader(); > System.out.println("GetBankList called"); > return bank; > } > catch (Exception e) > { > System.out.println(e.getMessage()); > return bank; > } > } > } > > In the red line stop when I done the debug with eclipse and in this line show me the message java.lang.reflect.InvocationTargetException and stop teh process..but I run the client as JavaAplication and I can c
Re: Simple Question Axis
Hi Nicolas, I advise you to first fix your logging problem. Remember that axis relies on log4j. I attached a log4j.xml that should enable axis debug logs. just drop this file under WEB-INF/classes . We are waiting to see your stacktrace :-) Cyrille On 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Cyrille Le Clerc wrote: Hi Nicolas, We are blind without the stack trace of the exception. You should find it in the server-side logs. Cyrille On 6/13/06, Nicolas Guaneme<[EMAIL PROTECTED]> wrote: > > > Hi Cyrille Le Clerc > > - JDK: 1.4_01 > - Tomcat 5.0:28 > - Axis 1.3 > > With the tcp-mon this is the message: > > http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > soapenv:Server.userException > java.lang.reflect.InvocationTargetException > > http://xml.apache.org/axis/";>avisortech02 > > > > > > In the tomcat console no show me nothing. I have this client for consume the web service secure with the ibm jars > > public class StubClient { > private static String PSEURL = "https://desarrollo.pse.com.co/psewebservices/mainservices.asmx"; ; > public StubClient() { > try{ > initProviders(); > } catch(Exception e){ > e.printStackTrace(); > } > } > > private static void initProviders() throws Exception > { > System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db"); > System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen"); > System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); > > Provider[] providers = Security.getProviders(); > for(int i=0;i System.out.println(i+" - "+providers[i].getClass().toString()); > Object fact = SSLSocketFactory.getDefault(); > System.out.println("Default provider = "+fact.getClass().toString()); > > if(!fact.getClass().toString().equals("class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") ) > throw new Exception("SSL no disponíble"); > } > > public ArrayOfGetBankListResponseType[] getBankList(GetBankListRequestType request) > { > ArrayOfGetBankListResponseType[] bank = null; > try > { > MainServicesImplLocator loc = new MainServicesImplLocator(); > MainServicesImplSoapStub cli = (MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL) ); > MessageHeader header = new MessageHeader(); > header.setTo("to 123"); > header.setFrom("from 123"); > header.setRepresentingParty("repr 123"); > cli.setMessageHeader( header ); > GetbankListInformationType gbl_request=new GetbankListInformationType(); > gbl_request.setEntityCode("98658"); > GetBankListResponseInformationType[] gbl_response=cli.getBankList(gbl_request); > bank = new ArrayOfGetBankListResponseType[gbl_response.length]; > for(int i=0; i { > bank[i] = new ArrayOfGetBankListResponseType(); > bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode()); > bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName()); > System.out.println(" BankID="+gbl_response[i].getFinancialInstitutionCode()+" BankName="+gbl_response[i].getFinancialInstitutionName()); > } > > header = cli.getMessageHeader(); > System.out.println("GetBankList called"); > return bank; > } > catch (Exception e) > { > System.out.println(e.getMessage()); > return bank; > } > } > } > > In the red line stop when I done the debug with eclipse and in this line show me the message java.lang.reflect.InvocationTargetException and stop teh process..but I run the client as JavaAplication and I can consume the service. > > any idea.. > > Thanks. > > > Nicolás G. Rico > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] +33 6.61.33.69.86 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12/06/2006 Hi Cyrille, this is the problem.ja,ja,ja,ja,ja,ja, I haven't any logs, well alone I've got a tomcat log but no has the trace when happend the exception. is very stranger.. for example th
Re: Simple Question Axis
Cyrille Le Clerc wrote: Hi Nicolas, We are blind without the stack trace of the exception. You should find it in the server-side logs. Cyrille On 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3 With the tcp-mon this is the message: "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> soapenv:Server.userException java.lang.reflect.InvocationTargetException "http://xml.apache.org/axis/">avisortech02 In the tomcat console no show me nothing. I have this client for consume the web service secure with the ibm jars public class StubClient { private static String PSEURL = "https://desarrollo.pse.com.co/psewebservices/mainservices.asmx" ; public StubClient() { try{ initProviders(); } catch(Exception e){ e.printStackTrace(); } } private static void initProviders() throws Exception { System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db"); System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen"); System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); Provider[] providers = Security.getProviders(); for(int i=0;i System.out.println(i+" - "+providers[i].getClass().toString()); Object fact = SSLSocketFactory.getDefault(); System.out.println("Default provider = "+fact.getClass().toString()); if(!fact.getClass().toString().equals("class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") ) throw new Exception("SSL no disponíble"); } public ArrayOfGetBankListResponseType[] getBankList(GetBankListRequestType request) { ArrayOfGetBankListResponseType[] bank = null; try { MainServicesImplLocator loc = new MainServicesImplLocator(); MainServicesImplSoapStub cli = (MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL) ); MessageHeader header = new MessageHeader(); header.setTo("to 123"); header.setFrom("from 123"); header.setRepresentingParty("repr 123"); cli.setMessageHeader( header ); GetbankListInformationType gbl_request=new GetbankListInformationType(); gbl_request.setEntityCode("98658"); GetBankListResponseInformationType[] gbl_response=cli.getBankList(gbl_request); bank = new ArrayOfGetBankListResponseType[gbl_response.length]; for(int i=0; i { bank[i] = new ArrayOfGetBankListResponseType(); bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode()); bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName()); System.out.println(" BankID="+gbl_response[i].getFinancialInstitutionCode()+" BankName="+gbl_response[i].getFinancialInstitutionName()); } header = cli.getMessageHeader(); System.out.println("GetBankList called"); return bank; } catch (Exception e) { System.out.println(e.getMessage()); return bank; } } } In the red line stop when I done the debug with eclipse and in this line show me the message java.lang.reflect.InvocationTargetException and stop teh process..but I run the client as JavaAplication and I can consume the service. any idea.. Thanks. Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] +33 6.61.33.69.86 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 12/06/2006 Hi Cyrille, this is the problem.ja,ja,ja,ja,ja,ja, I haven't any logs, well alone I've got a tomcat log but no has the trace when happend the exception. is very stranger.. for example this is the log of today. 2006-06-13 09:26:20 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rule
Re: Simple Question Axis
Hi Nicolas,We are blind without the stack trace of the exception. You should find it in the server-side logs.CyrilleOn 6/13/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3 With the tcp-mon this is the message: "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> soapenv:Server.userException java.lang.reflect.InvocationTargetException "http://xml.apache.org/axis/">avisortech02 In the tomcat console no show me nothing. I have this client for consume the web service secure with the ibm jars public class StubClient { private static String PSEURL = "https://desarrollo.pse.com.co/psewebservices/mainservices.asmx" ; public StubClient() { try{ initProviders(); } catch(Exception e){ e.printStackTrace(); } } private static void initProviders() throws Exception { System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db"); System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen"); System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); Provider[] providers = Security.getProviders(); for(int i=0;i System.out.println(i+" - "+providers[i].getClass().toString()); Object fact = SSLSocketFactory.getDefault(); System.out.println("Default provider = "+fact.getClass().toString()); if(!fact.getClass().toString().equals("class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") ) throw new Exception("SSL no disponíble"); } public ArrayOfGetBankListResponseType[] getBankList(GetBankListRequestType request) { ArrayOfGetBankListResponseType[] bank = null; try { MainServicesImplLocator loc = new MainServicesImplLocator(); MainServicesImplSoapStub cli = (MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL) ); MessageHeader header = new MessageHeader(); header.setTo("to 123"); header.setFrom("from 123"); header.setRepresentingParty("repr 123"); cli.setMessageHeader( header ); GetbankListInformationType gbl_request=new GetbankListInformationType(); gbl_request.setEntityCode("98658"); GetBankListResponseInformationType[] gbl_response=cli.getBankList(gbl_request); bank = new ArrayOfGetBankListResponseType[gbl_response.length]; for(int i=0; i { bank[i] = new ArrayOfGetBankListResponseType(); bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode()); bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName()); System.out.println(" BankID="+gbl_response[i].getFinancialInstitutionCode()+" BankName="+gbl_response[i].getFinancialInstitutionName()); } header = cli.getMessageHeader(); System.out.println("GetBankList called"); return bank; } catch (Exception e) { System.out.println(e.getMessage()); return bank; } } } In the red line stop when I done the debug with eclipse and in this line show me the message java.lang.reflect.InvocationTargetException and stop teh process..but I run the client as JavaAplication and I can consume the service. any idea.. Thanks. Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cyrille Le Clerc[EMAIL PROTECTED][EMAIL PROTECTED] +33 6.61.33.69.86
Re: Simple Question Axis
Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3 With the tcp-mon this is the message: "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> soapenv:Server.userException java.lang.reflect.InvocationTargetException "http://xml.apache.org/axis/">avisortech02 In the tomcat console no show me nothing. I have this client for consume the web service secure with the ibm jars public class StubClient { private static String PSEURL = "https://desarrollo.pse.com.co/psewebservices/mainservices.asmx"; public StubClient() { try{ initProviders(); } catch(Exception e){ e.printStackTrace(); } } private static void initProviders() throws Exception { System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db"); System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen"); System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); Provider[] providers = Security.getProviders(); for(int i=0;i System.out.println(i+" - "+providers[i].getClass().toString()); Object fact = SSLSocketFactory.getDefault(); System.out.println("Default provider = "+fact.getClass().toString()); if(!fact.getClass().toString().equals("class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") ) throw new Exception("SSL no disponíble"); } public ArrayOfGetBankListResponseType[] getBankList(GetBankListRequestType request) { ArrayOfGetBankListResponseType[] bank = null; try { MainServicesImplLocator loc = new MainServicesImplLocator(); MainServicesImplSoapStub cli = (MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL) ); MessageHeader header = new MessageHeader(); header.setTo("to 123"); header.setFrom("from 123"); header.setRepresentingParty("repr 123"); cli.setMessageHeader( header ); GetbankListInformationType gbl_request=new GetbankListInformationType(); gbl_request.setEntityCode("98658"); GetBankListResponseInformationType[] gbl_response=cli.getBankList(gbl_request); bank = new ArrayOfGetBankListResponseType[gbl_response.length]; for(int i=0; i { bank[i] = new ArrayOfGetBankListResponseType(); bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode()); bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName()); System.out.println(" BankID="+gbl_response[i].getFinancialInstitutionCode()+" BankName="+gbl_response[i].getFinancialInstitutionName()); } header = cli.getMessageHeader(); System.out.println("GetBankList called"); return bank; } catch (Exception e) { System.out.println(e.getMessage()); return bank; } } } In the red line stop when I done the debug with eclipse and in this line show me the message java.lang.reflect.InvocationTargetException and stop teh process..but I run the client as JavaAplication and I can consume the service. any idea.. Thanks. Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Question Axis
Hi Nicolas, Can you send us: - jvm - axis version - full stack trace Thanks in advance, Cyrille On 6/12/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Thanks Cyrille, but really I have a problem. I have a Web Service and work fine, but I need access to other service with digital certificates... I have the client stub but this client used 5 jars of ibm, no problem... but I run my client in console and work fine, but when try to run on axis show me this error: java.lang.reflect.InvocationTargetException , I put the jar on the jdk,axis,tomcat..etc.. path,classpath but no work any idea abaout this exception. Thanks... Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] +33 6.61.33.69.86 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Question Axis
Thanks Cyrille, but really I have a problem. I have a Web Service and work fine, but I need access to other service with digital certificates... I have the client stub but this client used 5 jars of ibm, no problem... but I run my client in console and work fine, but when try to run on axis show me this error: java.lang.reflect.InvocationTargetException , I put the jar on the jdk,axis,tomcat..etc.. path,classpath but no work any idea abaout this exception. Thanks... Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Question Axis
Hello Nicolas, "unknown location" often means that the library is bundled with your JVM. Hope this helps, Cyrille On 6/12/06, Nicolas Guaneme <[EMAIL PROTECTED]> wrote: Hello All, I have a simple question in the axis happuness page (Axis 1.3) show me the jar intalled. but always show this message: Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location I put the jar into the axis/lib. what happend with this. Thanks Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cyrille Le Clerc[EMAIL PROTECTED][EMAIL PROTECTED] +33 6.61.33.69.86
Simple Question Axis
Hello All, I have a simple question in the axis happuness page (Axis 1.3) show me the jar intalled. but always show this message: Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location I put the jar into the axis/lib. what happend with this. Thanks Nicolás G. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]