• tyweed
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 3
    Replies

So, here is my structure in Apex Explorer 8.0 to help get an idea of what im trying to query

 

Case

   - Site__c reference

       -  Attribute

       -  label

       -  Site_r

           -

           - bunch of stuff i need 

       - type - reference

 

 Query

     Select Site__c.Site__r from case

 

   or Select Site__r from case

 

  select Site__c.Site__r.Name from case

 

 None are valid and even look close to correct. How do i tell it to grab the Site__c -> Site__r which has all the info i need?

 

Message Edited by tyweed on 03-09-2009 09:04 PM
  • March 10, 2009
  • Like
  • 0

I'm very frustrated just recently I got a new computer and loaded eclipse and added axis1.4 jars to the build path and tried to run my application. I now receive this error below and i'm not sure what would be different? The only thing i can think of is that i installed java to this computer .Its a jre 6 and jdk1.6.0_12. I have no clue what is causing this anything i look at here mentions getting a updated jvm higher that 1.4. My version should be fine. It when i try to login it throws a remote exception?

 

Please help!

 

 

 

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
    at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
    at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.enterprise.SoapBindingStub.login(SoapBindingStub.java:2977)
    at SalesForce.login(SalesForce.java:306)
    at SalesForce.getQuery(SalesForce.java:486)
    at SalesForce.setId(SalesForce.java:209)
    at SalesForce.<init>(SalesForce.java:222)
    at SalesForce.main(SalesForce.java:968)
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
    at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
    at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
    at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at sun.security.validator.Validator.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    ... 27 more
Caused by: java.security.cert.CertPathValidatorException: timestamp check failed
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source)
    at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source)
    at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source)
    at java.security.cert.CertPathValidator.validate(Unknown Source)
    ... 34 more
Caused by: java.security.cert.CertificateNotYetValidException: NotBefore: Thu Jul 19 17:00:00 PDT 2007
    at sun.security.x509.CertificateValidity.valid(Unknown Source)
    at sun.security.x509.X509CertImpl.checkValidity(Unknown Source)
    at sun.security.provider.certpath.BasicChecker.verifyTimestamp(Unknown Source)
    at sun.security.provider.certpath.BasicChecker.check(Unknown Source)
    ... 38 more

    {http://xml.apache.org/axis/}hostname:steve-7f10c43c3

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83); nested exception is:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.enterprise.SoapBindingStub.login(SoapBindingStub.java:2977)
    at SalesForce.login(SalesForce.java:306)
    at SalesForce.getQuery(SalesForce.java:486)
    at SalesForce.setId(SalesForce.java:209)
    at SalesForce.<init>(SalesForce.java:222)
    at SalesForce.main(SalesForce.java:968)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
    at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
    at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    ... 15 more
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
    at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
    at sun.security.validator.PKIXValidator.doValidate(Unknown Source)
    at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at sun.security.validator.Validator.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    ... 27 more
Caused by: java.security.cert.CertPathValidatorException: timestamp check failed
    at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source)
    at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source)
    at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source)
    at java.security.cert.CertPathValidator.validate(Unknown Source)
    ... 34 more
Caused by: java.security.cert.CertificateNotYetValidException: NotBefore: Thu Jul 19 17:00:00 PDT 2007
    at sun.security.x509.CertificateValidity.valid(Unknown Source)
    at sun.security.x509.X509CertImpl.checkValidity(Unknown Source)
    at sun.security.provider.certpath.BasicChecker.verifyTimestamp(Unknown Source)
    at sun.security.provider.certpath.BasicChecker.check(Unknown Source)
    ... 38 more

  • March 01, 2009
  • Like
  • 0

So, I have an sobject we call time that keeps track of time spent doing tasks thru the day. I have one field in the object that sets the relationship to the particular account we are timing

 

        Time__c newTime = new Time__c();
        newTime.setStart_Date_and_Time__c(startTime);
        newTime.setStop_Date_and_Time__c(stopTime);
        newTime.setTime_Description__c(timeDescription);
        newTime.setVulnClass__c(vulnClass);
        newTime.setAccount__r(account.getAccount__r());  <=========== error here this method takes an sobject.account

 

 /**
     * Sets the account__r value for this Time__c.
     *
     * @param account__r
     */
    public void setAccount__r(com.sforce.soap.enterprise.sobject.Account account__r) {
        this.account__r = account__r;
    }

 

 

This is the error i get when i try to update:

 

The error reported was: Field name provided, Name is not an External ID or indexed field for Account

 

This is my query to get the info:

 

Select Name,Account__r.Name,Site__r.Name from  Site_Workflow__c where OwnerId ='000000000000000' and Account__r.Name= 'account name string' and Site__r.Name ='site string here'

 

  • February 04, 2009
  • Like
  • 0

I'm developing a java app that will automate tasks for our company. However, i'm concerned that if each individual who uses this app will need to do what i did in order to get the wsdl2java file working it will never be used. That installation was far to complex for others to do. I'm hoping once I have generated the classes/bindings with wsdl2java that will be the it. I need some clarification o the necessity of axis once my application is coimplete. Will i be able to jar everything up and users can just launch my application? or will they need tomcat installed,axis in the folder setting up classpaths for the jars,etc.........

 

If they will need to to install tomcat and axis as i needed to are there any other options available? This just does not seem practical for the averrage user install....

  • January 25, 2009
  • Like
  • 0

Ok. where to start. I have tomcat 4.1 installed at c:\tomcat4.1.

 

I have axis in C:\Tomcat4.1\webapps\axis. I have added this to my classpath

 

set CLASSPATH="C:\Tomcat4.1\webapps\axis\WEB-INF\lib\*"

 

lib has following jars:

 

axis

axis-ant

commons-logging-1.0.4

commons-discovery-0.2

jaxrpc

log4j-1.2.8

saaj

wsdl4j-1.5.1

 

I have read mail & activation must also be there however they were not in axis-bin_1.4 i downloaded. I'm thinking about taking those two from an axis2 i downloaded and moving them into lib but seems kinda strange to be mixig jars from different versions.

 

So I start tomcat and go to  http://localhost:8080/axis/happyaxis.jsp and everything is ok except for an optional element:

 

Warning: could not find class org.apache.xml.security.Init from file xmlsec.jar
XML Security is not supported.
See http://xml.apache.org/security/

 

 

I'm assuming this is not my problem.

 

Now i try to go to the command line and enter:

 

C:\Documents and Settings\steve>java org.apache.axis.wsdl.WSDL2Java -a "C:\Tomca
t4.1\webapps\axis\enterprise.wsdl"
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/
WSDL2Java
Caused by: java.lang.ClassNotFoundException: org.apache.axis.wsdl.WSDL2Java
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.apache.axis.wsdl.WSDL2Java.  Program will exi
t.

 

Then from reading around i have seen it is the setting up the classpath that is the most common issue so i try to explicitly enter in the class path:

 

java –classpath c:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;  org.apache.axis.wsdl.WSDL2Java -a C:\Tomcat4.1\webapps\axis\enterprise.wsdl


C:\Documents and Settings\steve>java -classpath c:\Tomcat4.1\webapps\axis\WEB-IN
F\lib\axis.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Tomcat4.1\w
ebapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Tomcat4.1\webapps\axis\WEB-
INF\lib\commons-logging-1.0.4.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\jaxrpc.j
ar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat4.1\webapps\ax
is\WEB-INF\lib\saaj.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C
:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;  org.apache.axis.wsdl.WSD
L2Java -a C:\Tomcat4.1\webapps\axis\enterprise.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: ûclasspath
Caused by: java.lang.ClassNotFoundException: ûclasspath
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: GÇôclasspath.  Program will exit.

 

 

 

I'm confused when you enter in java org.apache.axis.wsdl.WSDL2Java  where exactly is "org.apache.axis.wsdl.WSDL2Java"  it was not in the axis1.4 bin from what i could see the onlything close was wsdl4j?  I'm not seeing that in java as well. I thought wsdl2java was part of the axis package? I go into axis2-1.4.1 and there does exist wdsl2java ? Do i have the wrong axis? I was told not to use axis2 instead axis1.4.

 

Please i'm so frustrated and have tried everything i can possibly think of.

I need help!

 

  • January 24, 2009
  • Like
  • 0
I'm so frustrated! I'm trying to simple convert the wsdl file to java code. However, this is a surprisingly big pain in the but. I'm a programmer so I can handle some technical stuff, but everything seems to be going wrong for me. Please help!

I have tried to install the axis/wsdl plugin for eclipse:

dragged the folders to eclipse plugin folder restarted eclipse........nothing shows up in the wizard

tried command line :

C:\Program Files\Java\jdk1.6.0_11\bin\axis2\axis2\bin>wsdl2java
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK/JRE

C:\Program Files\Java\jdk1.6.0_11\bin\axis2\axis2\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_11\bin

C:\Program Files\Java\jdk1.6.0_11\bin\axis2\axis2\bin>wsdl2java -o Enterprise.w
dl
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK/JRE

I have java_home setup i think correctly but keep getting those errors?



tried netbean plugin with no luck!



Please i'm out of options. How can i get this wsdl2java complete. I'm stuck at this process and would like to move forward.


  • January 21, 2009
  • Like
  • 0

So, I have an sobject we call time that keeps track of time spent doing tasks thru the day. I have one field in the object that sets the relationship to the particular account we are timing

 

        Time__c newTime = new Time__c();
        newTime.setStart_Date_and_Time__c(startTime);
        newTime.setStop_Date_and_Time__c(stopTime);
        newTime.setTime_Description__c(timeDescription);
        newTime.setVulnClass__c(vulnClass);
        newTime.setAccount__r(account.getAccount__r());  <=========== error here this method takes an sobject.account

 

 /**
     * Sets the account__r value for this Time__c.
     *
     * @param account__r
     */
    public void setAccount__r(com.sforce.soap.enterprise.sobject.Account account__r) {
        this.account__r = account__r;
    }

 

 

This is the error i get when i try to update:

 

The error reported was: Field name provided, Name is not an External ID or indexed field for Account

 

This is my query to get the info:

 

Select Name,Account__r.Name,Site__r.Name from  Site_Workflow__c where OwnerId ='000000000000000' and Account__r.Name= 'account name string' and Site__r.Name ='site string here'

 

  • February 04, 2009
  • Like
  • 0

Ok. where to start. I have tomcat 4.1 installed at c:\tomcat4.1.

 

I have axis in C:\Tomcat4.1\webapps\axis. I have added this to my classpath

 

set CLASSPATH="C:\Tomcat4.1\webapps\axis\WEB-INF\lib\*"

 

lib has following jars:

 

axis

axis-ant

commons-logging-1.0.4

commons-discovery-0.2

jaxrpc

log4j-1.2.8

saaj

wsdl4j-1.5.1

 

I have read mail & activation must also be there however they were not in axis-bin_1.4 i downloaded. I'm thinking about taking those two from an axis2 i downloaded and moving them into lib but seems kinda strange to be mixig jars from different versions.

 

So I start tomcat and go to  http://localhost:8080/axis/happyaxis.jsp and everything is ok except for an optional element:

 

Warning: could not find class org.apache.xml.security.Init from file xmlsec.jar
XML Security is not supported.
See http://xml.apache.org/security/

 

 

I'm assuming this is not my problem.

 

Now i try to go to the command line and enter:

 

C:\Documents and Settings\steve>java org.apache.axis.wsdl.WSDL2Java -a "C:\Tomca
t4.1\webapps\axis\enterprise.wsdl"
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/
WSDL2Java
Caused by: java.lang.ClassNotFoundException: org.apache.axis.wsdl.WSDL2Java
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.apache.axis.wsdl.WSDL2Java.  Program will exi
t.

 

Then from reading around i have seen it is the setting up the classpath that is the most common issue so i try to explicitly enter in the class path:

 

java –classpath c:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\saaj.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;  org.apache.axis.wsdl.WSDL2Java -a C:\Tomcat4.1\webapps\axis\enterprise.wsdl


C:\Documents and Settings\steve>java -classpath c:\Tomcat4.1\webapps\axis\WEB-IN
F\lib\axis.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Tomcat4.1\w
ebapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Tomcat4.1\webapps\axis\WEB-
INF\lib\commons-logging-1.0.4.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\jaxrpc.j
ar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Tomcat4.1\webapps\ax
is\WEB-INF\lib\saaj.jar;C:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C
:\Tomcat4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;  org.apache.axis.wsdl.WSD
L2Java -a C:\Tomcat4.1\webapps\axis\enterprise.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError: ûclasspath
Caused by: java.lang.ClassNotFoundException: ûclasspath
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: GÇôclasspath.  Program will exit.

 

 

 

I'm confused when you enter in java org.apache.axis.wsdl.WSDL2Java  where exactly is "org.apache.axis.wsdl.WSDL2Java"  it was not in the axis1.4 bin from what i could see the onlything close was wsdl4j?  I'm not seeing that in java as well. I thought wsdl2java was part of the axis package? I go into axis2-1.4.1 and there does exist wdsl2java ? Do i have the wrong axis? I was told not to use axis2 instead axis1.4.

 

Please i'm so frustrated and have tried everything i can possibly think of.

I need help!

 

  • January 24, 2009
  • Like
  • 0
I'm so frustrated! I'm trying to simple convert the wsdl file to java code. However, this is a surprisingly big pain in the but. I'm a programmer so I can handle some technical stuff, but everything seems to be going wrong for me. Please help!

I have tried to install the axis/wsdl plugin for eclipse:

dragged the folders to eclipse plugin folder restarted eclipse........nothing shows up in the wizard

tried command line :

C:\Program Files\Java\jdk1.6.0_11\bin\axis2\axis2\bin>wsdl2java
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK/JRE

C:\Program Files\Java\jdk1.6.0_11\bin\axis2\axis2\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_11\bin

C:\Program Files\Java\jdk1.6.0_11\bin\axis2\axis2\bin>wsdl2java -o Enterprise.w
dl
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK/JRE

I have java_home setup i think correctly but keep getting those errors?



tried netbean plugin with no luck!



Please i'm out of options. How can i get this wsdl2java complete. I'm stuck at this process and would like to move forward.


  • January 21, 2009
  • Like
  • 0