Hi,

when i try to deploy the following Test Class as a Service i just get a Axis
Fault with "Query Exception". The same class works fine as a Java App.

Java-App
package webServTest;

import org.apache.cayenne.DataObjectUtils;
import org.apache.cayenne.access.DataContext;


import comp.Sources;

public class TestWsInterface {

        /**
         * @param args
         */
        public static void main(String[] args) {
                System.out.println(testMethod());
        }
        public static String testMethod() {
        // TODO Auto-generated method stub
                SourceConfResponse sourceConfres = new SourceConfResponse(); 
                
                DataContext context = DataContext.createDataContext();
                
                Sources source = (Sources) DataObjectUtils.objectForPK(context, 
"Sources",
580); 
                return source.getName(); 
        }

}


Axis-Response:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Receiver</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text xml:lang="en-US">[v.3.0 Apr 26 2010 11:58:47]
Query exception.</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


What is wrong? 
-- 
View this message in context: 
http://cayenne.195.n3.nabble.com/Cayenne-using-Axis2-Query-Exception-tp897207p897207.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Reply via email to