On Tue, Mar 15, 2011 at 12:55 PM, Anuj Bhatia <[email protected]> wrote: > Oops, hit the send button too fast. Forgot to update the subject line. > Resending with updated subject. > > -----Original Message----- > From: Anuj Bhatia > Sent: Tuesday, March 15, 2011 6:23 PM > To: '[email protected]' > Subject: RE: WELCOME to [email protected] > > Hello, > > I'm not able to get the BPEL implementation sample to work from the SCA Java > 2.0-Beta2 distribution. Can somebody please help tell me what's going wrong? > > I'm trying to run the sample using maven 3.0.2, java 1.6.0_20 on windows XP. > > Here's what I do: > 1. Download > http://www.apache.org/dyn/closer.cgi/tuscany/java/sca/2.0-Beta2/apache-tuscany-sca-all-2.0-Beta2.zip > 2. Unzip > 3. cd into samples\learning-more\implementation-bpel\helloworld-bpel-webapp > 4. run mvn > > I get the following errors, during Jetty startup: > [INFO] Starting jetty 6.1.18 ... > 2011-03-15 17:20:05.453::INFO: jetty-6.1.18 > 2011-03-15 17:20:07.828::INFO: No Transaction manager found - if your webapp > requires one, please configure one. > Mar 15, 2011 5:20:08 PM org.apache.tuscany.sca.host.webapp.WebAppServletHost > initContextPath > INFO: ContextPath: /helloworld-bpel > Mar 15, 2011 5:20:08 PM org.apache.tuscany.sca.node.impl.NodeImpl start > INFO: Starting node: webapp domain: default Mar 15, 2011 5:20:08 PM > org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions > INFO: Loading contribution: > file:/C:/installed/tuscany-sca-2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/ > Mar 15, 2011 5:20:13 PM > org.apache.tuscany.sca.implementation.bpel.xml.BPELImplementationProcessor > [Contribution: > file:/C:/installed/tuscany-sca-2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/, > Composite: {http://sample}helloworld-bpel] (BPELProcessNotFound) > SEVERE: Cant find BPEL Process : {0} > Mar 15, 2011 5:20:13 PM > org.apache.tuscany.sca.implementation.bpel.xml.BPELImplementationProcessor > [Contribution: > file:/C:/installed/tuscany-sca-2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/, > Composite: {http://sample}helloworld-bpel] (BPELProcessNotFound) > SEVERE: Cant find BPEL Process : {0} > Mar 15, 2011 5:20:13 PM > org.apache.tuscany.sca.builder.impl.ComponentBuilderImpl [Composite: > {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: > HelloworldComponent] (UnresolvedComponentImplementation) > SEVERE: [ASM60030,JCI50004,JCI80001] Component implementation not resolved: > Component = HelloworldComponent Uri = HelloworldComponent Mar 15, 2011 > 5:20:13 PM > org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl [] > (ComponentReferenceTargetNotFound) > WARNING: Component reference target not found at deployment time, it might be > a remote service elsewhere in the SCA Domain so well try and resolve it again > at runtime: {1} Mar 15, 2011 5:20:13 PM > org.apache.tuscany.sca.host.webapp.TuscanyServletFilter init > SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Contribution: > file:/C:/installed/tuscany-sca-2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/, > Composite: {http://sample}helloworld-bpel] - Cant find BPEL Process : {0} > java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException: > [Contribution: > file:/C:/installed/tuscany-sca-2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/, > Composite: {http://sample}helloworld-bpel] - Cant find BPEL Process : {0} > at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169) > at > org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272) > at > org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226) > at > org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:653) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466) > at > org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > > > Appreciate any help > Thanks > Anuj > >
I need to investigate more to understand why it doesn't work as-is now but if you try moving the files helloworld.bpel and helloworld.wsdl from the src\main\resources folder to be in the src\main\webapp\WEB-INF folder then it should fix that problem. Sorry for the inconvenience, some of the samples are a little rough in the previous releases, if you follow the dev@ list you'll see we're in the middle of an exercise to clean them all up so the next release they should be much better. ...ant
