In main(),  getImplementationVersion() is returning null.  Should that
happen?  Is something ill-configured?

public static void main(String args[]) {
        try {
            String version = "";
            Package p = Package.getPackage("org.apache.servicemix");
            if (p != null) {
                version = ": " + p.getImplementationVersion();
            }
            System.out.println("Starting Apache ServiceMix ESB" + version);
            System.out.println();


John Ruffin wrote:
> 
> I just used Maven to download and build the ServiceMix source - no
> problem.  
> Followed the instructions to enable the ServiceMix projects in Eclipse -
> no problem.
> 
> When trying to run/debug any of the examples from main() method in
> Main.java an error (see logging below). The logging below is from trying
> to run FilePoller.  The execution gets to line 67 ( SpringJBIContainer
> container = (SpringJBIContainer) context.getBean("jbi");) and fails.
> 
> I not sure what's causing this hiccup.
> ...
> DEBUG -
> BeanWrapperImorg.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jbi' defined in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
> Cannot create inner bean '(inner bean)' while setting bean property
> 'activationSpecs' with key [1]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)#1' defined in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
> Cannot create inner bean
> 'org.apache.servicemix.components.file.FilePoller' while setting
> constructor argument with index 0; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.servicemix.components.file.FilePoller' defined
> in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
> Cannot resolve reference to bean 'workManager' while setting bean property
> 'workManager'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'workManager' defined in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
> Invocation of init method failed; nested exception is
> org.springframework.beans.FatalBeanException: Geronimo transaction manager
> was not set
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)#1' defined in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
> Cannot create inner bean
> 'org.apache.servicemix.components.file.FilePoller' while setting
> constructor argument with index 0; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.servicemix.components.file.FilePoller' defined
> in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
> Cannot resolve reference to bean 'workManager' while setting bean property
> 'workManager'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'workManager' defined in file
> [C:\tools\serviceMix\trunk\distributions\apache-servicemix\src\main\release\examples\file-binding\servicemix.xml]:
>  
> ...
> 

-- 
View this message in context: 
http://www.nabble.com/-Examples--Geronimo-transaction-manager-was-not-set-tf2679734s12049.html#a7474663
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to