Frascati studio feedback
- Basic service template : redoing in FraSCAti Studio the Fibonacci sample, with a WS or JAXRS binding, first as Java and then as JavaScript. 21/09/2012 : it is not possible to create a basic service with javascript implementation (only java is displayed in list) ; JAXRS fails (FRASCATI-100)
Java Interface source :
package org.ow2.frascati.api;
public interface MyFibo2 {
public int computeFibo(int i);
}
Java Implementation souce :
package org.ow2.frascati.impl;
import java.util.HashMap;
import java.util.Map;
import org.ow2.frascati.api.MyFibo2;
public class MyFibo2Impl implements MyFibo2 {
private static Map<Integer, Integer> map = new HashMap<Integer, Integer>();
public int computeFibo(int param0){
if (param0 == 1 || param0 == 2) {
return 1;
}
Integer valeur = map.get(param0);
if (valeur != null) {
return valeur;
}
valeur = computeFibo(param0 - 1) + computeFibo(param0 - 2);
map.put(param0, valeur);
return valeur;
}
}
- creating WS proxies for WSDLs provided by EasySOA samples : PureAirFlowers & SmartTravel WSDLs (if possible also its Currency & Weather WSDLs), see https://github.com/easysoa/EasySOA/blob/master/samples
Pure air flowers WSDL address : http://localhost:9010/PureAirFlowers/?wsdl
Smart travel currency WSDL address : http://localhost:9020/CurrencyServerWebService?wsdl
Smart travel weather WSDL address : http://localhost:9020/WeatherService?wsdl
- redoing in FraSCAti Studio the Glue sample : https://github.com/easysoa/EasySOA/blob/master/samples/easysoa-samples-events/src/test/resources/eventPafSample.composite
- TODO spec WSDL (or even JAXWS/RS) lookup in EasySOA,
- TODO spec register app in EasySOA,
- TODO spec on-demand proxies
Checkouted the source from SVN, create MySQL, database & filled it, compiled & run.
-
add to README
- to create & fill database in command line :
create database easysoasimplified
in mysql -u root -p then in command line :mysql -u root -p < *.sql
- to debug : export MAVEN_OPTS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 $MAVEN_OPTS"
- how to package & deploy in production / standalone / without maven
- The Frascati studio service is deployed at http://localhost:8095/easySoa/
- To deploy localy, the cloud simulation service must be launched in a separated process with this command :
mvn -Pexplorer -Pweb
executed infrascati-studio\src\test\resources\Helloworld
folder
- to create & fill database in command line :
-
add to README FAQ
- to avoid error "java.lang.OutOfMemoryError: PermGen space" : export MAVEN_OPTS="-XX:MaxPermSize=128m $MAVEN_OPTS" (happens ex. when proxying http://www.w3schools.com/webservices/tempconvert.asmx?WSDL )
- [frascati studio home]/lib is not created automatically, therefore SCACompiler.getClassPath() fails ("not found") until it exists
http://jira.ow2.org/browse/FRASCATI-90 More complete application generation
-
composite templates come with a script implementation, but loading / saving its script source does not work. We've had to patch ServiceManagerImpl.isFileInApplication() by adding :
if (file.endsWith(".js")) { file = file.substring(0, file.length() -3); file = file.replace(File.separator, "."); }
- we've succeeded in creating a account without home directory => better check or rollback ?
- local deployment didnt work, despite our best efforts. Here's what we got (though zip looks OK, see it in attachement) :
Hibernate: select filetype0_.location as col_0_0_ from FileType filetype0_ where filetype0_.name=? limit ?
2073256 [qtp5708429-53] INFO org.mortbay.log - build directory for file /tmp/deploy3276767921318141444
2073256 [qtp5708429-53] INFO org.mortbay.log - build parent directory for zip entry lib/FiboApp1.jar
2073256 [qtp5708429-53] INFO org.mortbay.log - build parent directory for zip entry META-INF/sca-contribution.xml
Grave: <sca:include name='jar:file:/tmp/deploy629101444211734674/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy629101444211734674/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy136258849464379125/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy136258849464379125/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3882207166334975251/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3882207166334975251/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy5941527464667850806/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy5941527464667850806/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy4103995376727934487/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy4103995376727934487/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3222487439684469389/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3222487439684469389/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3426354164700090924/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3426354164700090924/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: Error when loading the composite {http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite
org.ow2.frascati.assembly.factory.api.ManagerException: Error when loading the composite {http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.processContribution(AssemblyFactoryManager.java:340)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCALCb56bb98SCACCIntent.processContribution(CompositeManagerInterceptorSCALCb56bb98SCACCIntent.java:436)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCAIntent.processContribution(CompositeManagerInterceptorSCAIntent.java:165)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCAIntent.processContribution(CompositeManagerInterceptorSCAIntent.java:165)
at org.ow2.frascati.assembly.factory.api.CompositeManagerFcInItf.processContribution(CompositeManagerFcInItf.java:77)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCAIntent.processContribution(CompositeManagerInterceptorSCAIntent.java:165)
at org.ow2.frascati.assembly.factory.api.CompositeManagerFcInItf.processContribution(CompositeManagerFcInItf.java:77)
at org.ow2.frascati.assembly.factory.api.CompositeManagerFcSR.processContribution(CompositeManagerFcSR.java:26)
at org.ow2.frascati.remote.introspection.RemoteScaDomainImpl.deployContribution(RemoteScaDomainImpl.java:927)
at org.ow2.frascati.remote.introspection.DeploymentInterceptorSCALCb56bb98SCACCIntent.deployContribution(DeploymentInterceptorSCALCb56bb98SCACCIntent.java:125)
at org.ow2.frascati.remote.introspection.DeploymentInterceptorSCAIntent.deployContribution(DeploymentInterceptorSCAIntent.java:86)
at org.ow2.frascati.remote.introspection.DeploymentFcInItf.deployContribution(DeploymentFcInItf.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:164)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:915)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.ow2.frascati.assembly.factory.api.ManagerException: Error when parsing the composite file '{http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite'
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.internalProcessComposite(AssemblyFactoryManager.java:418)
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.processComposite(AssemblyFactoryManager.java:568)
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.processContribution(AssemblyFactoryManager.java:337)
... 45 more
Caused by: org.ow2.frascati.parser.api.ParserException: 18 errors found in {http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite
at org.ow2.frascati.parser.core.ScaCompositeParser.parse(ScaCompositeParser.java:173)
at org.ow2.frascati.parser.core.AbstractCompositeParser.parse(AbstractCompositeParser.java:1)
at org.ow2.frascati.parser.api.ParserInterceptorSCALCb56bb98SCACCIntent.parse(ParserInterceptorSCALCb56bb98SCACCIntent.java:65)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserFcInItf.parse(ParserFcInItf.java:25)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserFcInItf.parse(ParserFcInItf.java:25)
at org.ow2.frascati.parser.api.ParserFcSR.parse(ParserFcSR.java:22)
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.internalProcessComposite(AssemblyFactoryManager.java:416)
... 47 more
Grave: Error 400 ManagerException : Error while trying to deploy the zip
2073302 [qtp5708429-53] INFO org.mortbay.log - delete file /tmp/deploy3276767921318141444/lib/FiboApp1.jar
2073302 [qtp5708429-53] INFO org.mortbay.log - delete file /tmp/deploy3276767921318141444/META-INF/sca-contribution.xml
2073302 [qtp5708429-53] INFO org.mortbay.log - delete file /tmp/deploy3276767921318141444/META-INF/FiboApp1.contrib
Grave: Exception trying to deploy contribution in: http://localhost:8095/deploymessage: Error while trying to deploy the zip
java.lang.Exception: Exception trying to deploy contribution in: http://localhost:8095/deploymessage: Error while trying to deploy the zip
at org.easysoa.deploy.DeployProcessor.deploy(DeployProcessor.java:191)
at org.easysoa.deploy.DeployProcessor.deploy(DeployProcessor.java:156)
at org.easysoa.api.DeployProcessorItfInterceptorSCALCb56bb98SCACCIntent.deploy(DeployProcessorItfInterceptorSCALCb56bb98SCACCIntent.java:189)
at org.easysoa.api.DeployProcessorItfFcInItf.deploy(DeployProcessorItfFcInItf.java:52)
at org.easysoa.api.DeployProcessorItfInterceptorSCAIntent.deploy(DeployProcessorItfInterceptorSCAIntent.java:89)
at org.easysoa.api.DeployProcessorItfFcInItf.deploy(DeployProcessorItfFcInItf.java:52)
at org.easysoa.api.DeployProcessorItfFcSR.deploy(DeployProcessorItfFcSR.java:32)
at org.easysoa.impl.DeploymentRestImpl.deploy(DeploymentRestImpl.java:83)
at org.easysoa.api.DeploymentRestInterceptorSCALCb56bb98SCACCIntent.deploy(DeploymentRestInterceptorSCALCb56bb98SCACCIntent.java:185)
at org.easysoa.api.DeploymentRestFcInItf.deploy(DeploymentRestFcInItf.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:164)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:722)
Hibernate: select filetype0_.location as col_0_0_ from FileType filetype0_ where filetype0_.name=? limit ?
2193488 [qtp5708429-52] INFO org.mortbay.log - build directory for file /tmp/deploy9221841575347850308
2193488 [qtp5708429-52] INFO org.mortbay.log - build parent directory for zip entry lib/FiboApp1.jar
2193489 [qtp5708429-52] INFO org.mortbay.log - build parent directory for zip entry META-INF/sca-contribution.xml
Grave: <sca:include name='jar:file:/tmp/deploy629101444211734674/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy629101444211734674/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy136258849464379125/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy136258849464379125/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3882207166334975251/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3882207166334975251/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy5941527464667850806/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy5941527464667850806/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy4103995376727934487/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy4103995376727934487/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3222487439684469389/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3222487439684469389/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3426354164700090924/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3426354164700090924/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: <sca:include name='jar:file:/tmp/deploy3276767921318141444/lib/FiboApp1.jar!/FiboApp1.composite'/> composite 'jar:file:/tmp/deploy3276767921318141444/lib/FiboApp1.jar!/FiboApp1.composite' not found
Grave: Error when loading the composite {http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite
org.ow2.frascati.assembly.factory.api.ManagerException: Error when loading the composite {http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.processContribution(AssemblyFactoryManager.java:340)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCALCb56bb98SCACCIntent.processContribution(CompositeManagerInterceptorSCALCb56bb98SCACCIntent.java:436)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCAIntent.processContribution(CompositeManagerInterceptorSCAIntent.java:165)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCAIntent.processContribution(CompositeManagerInterceptorSCAIntent.java:165)
at org.ow2.frascati.assembly.factory.api.CompositeManagerFcInItf.processContribution(CompositeManagerFcInItf.java:77)
at org.ow2.frascati.assembly.factory.api.CompositeManagerInterceptorSCAIntent.processContribution(CompositeManagerInterceptorSCAIntent.java:165)
at org.ow2.frascati.assembly.factory.api.CompositeManagerFcInItf.processContribution(CompositeManagerFcInItf.java:77)
at org.ow2.frascati.assembly.factory.api.CompositeManagerFcSR.processContribution(CompositeManagerFcSR.java:26)
at org.ow2.frascati.remote.introspection.RemoteScaDomainImpl.deployContribution(RemoteScaDomainImpl.java:927)
at org.ow2.frascati.remote.introspection.DeploymentInterceptorSCALCb56bb98SCACCIntent.deployContribution(DeploymentInterceptorSCALCb56bb98SCACCIntent.java:125)
at org.ow2.frascati.remote.introspection.DeploymentInterceptorSCAIntent.deployContribution(DeploymentInterceptorSCAIntent.java:86)
at org.ow2.frascati.remote.introspection.DeploymentFcInItf.deployContribution(DeploymentFcInItf.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:164)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:939)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:915)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.ow2.frascati.assembly.factory.api.ManagerException: Error when parsing the composite file '{http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite'
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.internalProcessComposite(AssemblyFactoryManager.java:418)
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.processComposite(AssemblyFactoryManager.java:568)
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.processContribution(AssemblyFactoryManager.java:337)
... 45 more
Caused by: org.ow2.frascati.parser.api.ParserException: 26 errors found in {http://www.osoa.org/xmlns/sca/1.0}FiboApp1.composite
at org.ow2.frascati.parser.core.ScaCompositeParser.parse(ScaCompositeParser.java:173)
at org.ow2.frascati.parser.core.AbstractCompositeParser.parse(AbstractCompositeParser.java:1)
at org.ow2.frascati.parser.api.ParserInterceptorSCALCb56bb98SCACCIntent.parse(ParserInterceptorSCALCb56bb98SCACCIntent.java:65)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserFcInItf.parse(ParserFcInItf.java:25)
at org.ow2.frascati.parser.api.ParserInterceptorSCAIntent.parse(ParserInterceptorSCAIntent.java:37)
at org.ow2.frascati.parser.api.ParserFcInItf.parse(ParserFcInItf.java:25)
at org.ow2.frascati.parser.api.ParserFcSR.parse(ParserFcSR.java:22)
at org.ow2.frascati.assembly.factory.manager.AssemblyFactoryManager.internalProcessComposite(AssemblyFactoryManager.java:416)
... 47 more
Grave: Error 400 ManagerException : Error while trying to deploy the zip
2193540 [qtp5708429-52] INFO org.mortbay.log - delete file /tmp/deploy9221841575347850308/lib/FiboApp1.jar
2193540 [qtp5708429-52] INFO org.mortbay.log - delete file /tmp/deploy9221841575347850308/META-INF/sca-contribution.xml
2193540 [qtp5708429-52] INFO org.mortbay.log - delete file /tmp/deploy9221841575347850308/META-INF/FiboApp1.contrib
Grave: Exception trying to deploy contribution in: http://localhost:8095/deploymessage: Error while trying to deploy the zip
java.lang.Exception: Exception trying to deploy contribution in: http://localhost:8095/deploymessage: Error while trying to deploy the zip
at org.easysoa.deploy.DeployProcessor.deploy(DeployProcessor.java:191)
at org.easysoa.deploy.DeployProcessor.deploy(DeployProcessor.java:156)
at org.easysoa.api.DeployProcessorItfInterceptorSCALCb56bb98SCACCIntent.deploy(DeployProcessorItfInterceptorSCALCb56bb98SCACCIntent.java:189)
at org.easysoa.api.DeployProcessorItfFcInItf.deploy(DeployProcessorItfFcInItf.java:52)
at org.easysoa.api.DeployProcessorItfInterceptorSCAIntent.deploy(DeployProcessorItfInterceptorSCAIntent.java:89)
at org.easysoa.api.DeployProcessorItfFcInItf.deploy(DeployProcessorItfFcInItf.java:52)
at org.easysoa.api.DeployProcessorItfFcSR.deploy(DeployProcessorItfFcSR.java:32)
at org.easysoa.impl.DeploymentRestImpl.deploy(DeploymentRestImpl.java:83)
at org.easysoa.api.DeploymentRestInterceptorSCALCb56bb98SCACCIntent.deploy(DeploymentRestInterceptorSCALCb56bb98SCACCIntent.java:185)
at org.easysoa.api.DeploymentRestFcInItf.deploy(DeploymentRestFcInItf.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:164)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:319)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:287)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:722)
OK Created at app init in ServiceManagerImpl.createApplication() (seen line 164 of rev 5481 by mdutoo 20120921)
When we try to set a value to a reference's wsdlLocation in frascati studio. We save correctly but the value is always 'null'.
Fixed by dirix in commit 5402!(svn) - OK checked by jguillemotte 20120920
Add a FraSCAti CXF intent in a FraSCAti studio App.
-
First test with Logging intent. Make a Proxy WS app implemented in javascript (for instance named ProxyWsWeatherService) with Easysoa smart travel Weather service (http://localhost:9020/WeatherService?wsdl). To add the intent, go to your personnal directory (eg : /home/your/name/documents) and find the frascati-studio folder. Then open it and go to the ProxyWsWeatherService folder and go in the src/main/ressources folder. Open the composite file with a text editor and find the client binding WS (the sca:binding.ws tag is included in a sca:reference tag). Then just add the following attribute in the client binding WS tag :
requires="Logging"
. Save the modification and redeploy the app. -
Second test with Proxy WS intent. Make a Proxy WS app implemented in javascript (for instance named ProxyWsWeatherService) with Easysoa smart travel Weather service (http://localhost:9020/WeatherService?wsdl). To add the intent, go to your personnal directory (eg : /home/your/name/documents) and find the frascati-studio folder. Then open it and go to the ProxyWsWeatherService folder and go in the src/main/ressources folder. Open the composite file named ProxyWsWeatherService.composite with a text editor and find the client binding WS (the sca:binding.ws tag is included in a sca:reference tag). Then just add the following attribute in the client binding WS tag :
requires="cxfProxyIntentConf"
. Add a new file named 'cxfProxyIntentConf.composite' containing the following code :
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="cxfProxyIntentConf">
<include name="ProxyServerIntent"/>
<property name="ProxyServer">localhost</property>
<property name="ProxyServerPort" type="xsd:int">8082</property>
</composite>
Save the modification and redeploy the app.
In my case (Jeremie) : Make a try with the online FraSCAti studio.
- Account creation : No problem to report.
- Application creation : Using the w3schools temperature converter example available at http://www.w3schools.com/webservices/tempconvert.asmx. No problem to report.
- Application deployment on jelastic : no problem to report during the first try (24/04/2012). On the second try today (26/04/2012), the undeployment works but when i tried to deploy the application again, got an error (Exception trying to deploy contribution in: http://frascati-deployment.jelastic.com/deploymessage: Error while trying to deploy the zip)
- FraSCAti explorer : get the proxied form to send a request to the temparature converter service : it works.
The goal is to add a new app template in the FraSCAti studio. This new will be a discovery proxy as the first one developped for FraSCAti. See here
Things to do :
- Add a class in the package org.easysoa.frascatiModel named TemplateActionDiscoveryProxy.java
- Add a Velocity file in src/resources/templates named discoveryProxyComposite.vm
- Modification of easysoa.composite : add 2 blocks to wire the new app template and templateAction components.
- Modification of pom.xml to include easysoa dependencies. If the easysoa dependencies are not added in the pom.xml, the composite compilation generates an error and the project cannot be created.
- Add a class named HttpBindingProcessor in org.easysoa.processor for http binding.
To be completed
- Minor: When using the ProxyWSDL template to create an app, got a stacktrace when clicking 'load' when the URL is empty (see screenshot)
- While on the application editor:
-
Minor: JS error on service.html during startup: l. 138 >
$("#edit").cluetip is not a function
(error has no apparent effect on the app) - Minor: I can create several components with the same name, which leads to some minor issues
- To reproduce: The browser froze (infinite JS loop?) while clicking around some buttons (no clear report, sorry)
-
Minor: JS error on service.html during startup: l. 138 >
- Blocking: The 'friends services' page don't work (see screenshot)
- Major: Unclear error while deploying a test app (see screenshot). For example, see the "temp" app. by user "Marwane KalamAlami", generated from a WSDL. (Maybe the cloud service is broken?)
- Medium: Tried to create app with the ProxyWSDL template. It threw an unclear error message (see screenshot) when I clicked Create application, because I didn't get I had to click the "load" button to choose a service before to create the app.
- Minor: On account creation, errors should be displayed in red (it took me some time to figure out Studio didn't want to create my account because I used a dash in the name)
- Minor: Each time a page loads, some raw text (black on white Times New Roman) is displayed for a short time (User name + My space/Logout links), which is not very aesthetic.
- Minor: The "Mail" button redirect on a 400 error page.
- Medium: When an application is deployed, a new page with FraSCAti explorer is opened. How to retrieve/reopen this page once this one has been closed. There is no button or I don't find it.
- Minor: In the "Modify my informations" page, the town is not correctly displayed (eg : org.easysoa.model.Town@37350d59).
- Medium: In the "Find application" page : When entering a keyword in the search field, the returned result is correct but it is not possible to do anything with the result. I think a good idea will be to return a link to open the application.
- Minor: In the 'Friend request' page, there is a problem with the display of town and country (Town : org.easysoa.model.Town@37350d59, Country : $friendRequest.getOriginUser().getCountry()).
- On the welcome page: "Connection" -> Rather "Log in" or "Sign in"?