You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Petersen, Eric" <EP...@ctic-inc.com> on 2010/04/07 20:56:32 UTC
Contribution not loading when running from executatble JAR
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
Re: Contribution not loading when running from executatble JAR
Posted by Raymond Feng <en...@gmail.com>.
Hi,
Does ea.jar contain com.chesapeaketechnology.ewsa.ea.XYZServiceProvider? Or ea.jar has Class-Path header in the META-INF/MANIFEST.MF that points to other jars?
Thanks,
Raymond
From: Petersen, Eric
Sent: Wednesday, April 07, 2010 11:56 AM
To: user@tuscany.apache.org
Subject: Contribution not loading when running from executatble JAR
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.JavaImplementationProcessor
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:614)
at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:381)
at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFactoryImpl.java:47)
at com.chesapeaketechnology.ewsa.ea.StartEAServices.main(StartEAServices.java: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