cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jepse <>
Subject Cayenne using Axis2: Query Exception
Date Tue, 15 Jun 2010 14:02:50 GMT


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.

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) {
	public static String testMethod() {
	// TODO Auto-generated method stub
		SourceConfResponse sourceConfres = new SourceConfResponse(); 
		DataContext context = DataContext.createDataContext();
		Sources source = (Sources) DataObjectUtils.objectForPK(context, "Sources",
		return source.getName(); 


<soapenv:Envelope xmlns:soapenv="">
            <soapenv:Text xml:lang="en-US">[v.3.0 Apr 26 2010 11:58:47]
Query exception.</soapenv:Text>

What is wrong? 
View this message in context:
Sent from the Cayenne - User mailing list archive at

View raw message