Hello,

 

I am using Tuscany 1.6 and am having an issue where I cannot run my app
from an executable JAR.  

 

I start my nodes with the following code:

 

            SCANodeFactory factory = SCANodeFactory.newInstance();

            eaNode = factory.createSCANode(eaCompositeURI.toString(), 

                        new SCAContribution("EAServices",
"file:/C:/root_path/ea.jar"));

 

Everything works fine when I run the App from within eclipse, and I see
the following output:

 

Apr 7, 2010 11:46:14 AM org.apache.tuscany.sca.node.impl.NodeImpl <init>

INFO: Creating node: file:/C:/root_path/conf/eaServices.composite

Apr 7, 2010 11:46:14 AM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading contribution: file:/C:/root_path/ea.jar

Apr 7, 2010 11:46:14 AM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading composite: file:/C:/root_path/conf/eaServices.composite

...

Apr 7, 2010 11:47:53 AM org.apache.tuscany.sca.node.impl.NodeImpl start

INFO: Starting node: file:/C:/root_path/conf/eaServices.composite

Apr 7, 2010 11:47:54 AM org.apache.tuscany.sca.http.jetty.JettyServer
addServletMapping

INFO: Added Servlet mapping: http://iocp:8088/XYZServiceProvider

 

When I generate a runnable JAR from eclipse and execute it, I get the
following output

 

Apr 7, 2010 11:10:16 AM org.apache.tuscany.sca.node.impl.NodeImpl <init>

INFO: Creating node: file:/C:/root_path/conf/saServices.composite

Apr 7, 2010 11:10:18 AM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading contribution: file:/C:/root_path/sa.jar

Apr 7, 2010 11:10:18 AM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading composite: file:/C:/root_path/conf/saServices.composite

Apr 7, 2010 11:10:23 AM org.apache.tuscany.sca.node.impl.NodeImpl <init>

INFO: Creating node: file:/C:/root_path/conf/eaServices.composite

Apr 7, 2010 11:10:23 AM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading contribution: file:/C:/root_path/ea.jar

Apr 7, 2010 11:10:23 AM org.apache.tuscany.sca.node.impl.NodeImpl
configureNode

INFO: Loading composite: file:/C:/root_path/conf/eaServices.composite

Apr 7, 2010 11:10:24 AM
org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcess
or

SEVERE: Class Not Found Exception:
com.chesapeaketechnology.ewsa.ea.XYZServiceProvider

Exception in thread "main" org.osoa.sca.ServiceRuntimeException:
org.apache.tuscany.sca.monitor.MonitorRuntimeException: Class Not Found
Exception: com.chesapeaketechnology.ewsa.ea.XYZServiceProvider

        at
org.apache.tuscany.sca.node.impl.NodeImpl.analyzeProblems(NodeImpl.java:
713)

        at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:61
4)

        at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:381)

        at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFacto
ryImpl.java:47)

        at
com.chesapeaketechnology.ewsa.ea.StartEAServices.main(StartEAServices.ja
va:131)

Caused by: org.apache.tuscany.sca.monitor.MonitorRuntimeException: Class
Not Found Exception: com.chesapeaketechnology.ewsa.ea.XYZServiceProvider

        ... 5 more

 

I have been banging my head against this for a couple of days now.  Any
ideas why this would be different for the two scenarios?

 

Thanks in advance,

Eric 

 

 

Reply via email to