Referencing CONVERSATION-scoped component from COMPOSITE-scoped
Hi, Is that possible to refer to the CONVERSATION-scoped component from COMPOSITE-scoped? What I want to achieve, is to make singleton component (COMPOSITE-scoped) retrieve some session data (which I want to model as a CONVERSATION-scoped component) during the request processing. -- WBR, Ivan S. Dubrov signature.asc Description: OpenPGP digital signature
Tuscany SCA and Spring problems
Hi all, I'm new in SCA and Tuscany. I spend days of trying to solve my problems and I can't move forward :-( I hope someone of you have an idea where my problems are. I'm fascinated by SCA and Tuscany (up to now only in theory, because I have these problems :-) ). My intention is to migrate my Spring application to Tuscany. I read a lot of SCA stuff like the Spring Component Implementation Specification and some Tuscany examples. Regarding the Spring Component Implementation Specification each application context should be an own composite. Each bean is a component in this composite. (In my case: ContextSerivceComposite, UserManagementServiceComponent and UsermanagementDaoComponent). Each component must include a service attribute. The name of this service is identical to the bean name. The reference attribute is the same as the reference at a bean property. My application context: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:sca=http://www.springframework.org/schema/sca; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/sca http://www.springframework.org/schema/sca/spring-sca.xsd; bean id=userManagementService class=eu.esdihumboldt.mediator.usermanagement.UserManagementServiceImpl property name=dao ref=usermanagementDao / /bean bean id=usermanagementDao class=eu.esdihumboldt.mediator.usermanagement.hibernate.UserManagementD AOImpl /bean /beans My SCDL file: ?xml version=1.0 encoding=UTF-8? composite xmlns=http://www.osoa.org/xmlns/sca/1.0; name=ContextSerivceComposite component name=UserManagementServiceComponent implementation.spring location=application_context.xml/ service name=userManagementService/ reference name=usermanagementDao target=UsermanagementDaoComponent / /component component name=UsermanagementDaoComponent implementation.spring location=application.xml/ service name=usermanagementDao/ /component /composite If I start this, I will get anytime these errors: Apr 23, 2008 12:31:44 PM org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem WARNING: [WARNING] Service not found for component service: UserManagementServiceComponent/userManagementService null ... Apr 23, 2008 12:31:44 PM org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl activate WARNING: Skipping component service not defined in the component type: UsermanagementDaoComponent#usermanagementDao How to solve these errors? Maybe there is something I'm totally misunderstanding... I'm using: tuscany-sca-1.1-incubating and Spring 2.0.5 Many thanks, Bernd This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Re: Referencing CONVERSATION-scoped component from COMPOSITE-scoped
Ivan Dubrov wrote: Hi, Is that possible to refer to the CONVERSATION-scoped component from COMPOSITE-scoped? What I want to achieve, is to make singleton component (COMPOSITE-scoped) retrieve some session data (which I want to model as a CONVERSATION-scoped component) during the request processing. Ivan, Yes, this should work fine. I assume that your conversation scoped component has a conversational interface of some kind? If this is the case, then when the composite scoped component calls it, a new conversation will be started with the comversation scoped component and the composite scoped component can continue to use this until the conversation session is explicitly ended (eg by calling an @EndsConversation method.) Yours, Mike.
RE: svn checkout problem
Raymond, Well I am almost there... To make it work I had to add the following line my mvn.bat file: set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m Full mvn.bat context for reference: @REM Start MAVEN2 :runm2 set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% -Dclassworlds.conf=%M2_HOME%\bin\m2.conf -Dmaven.home=%M2_HOME% org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error goto end I believe the above info should help other ursers to build tuscany sca for the first time. Can I contribute to the developer user guide wiki? The other question I have is why are all testcases are executed despite your recommendaiton - -Dmaven.test.skip=true? They take a lot of time... Once I build the whole sca for the first time - what mvn commands should I use? Thanks, Radu Marian CRM Services Architecture Team Bank of America, Charlotte NC (980) 387-6233 [EMAIL PROTECTED] -Original Message- From: Raymond Feng [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 1:32 PM To: Marian, Radu Cc: tuscany-user@ws.apache.org Subject: Re: svn checkout problem Hi, We should have published the SNAPSHOT versions more frequently. Anyway, can you try to build the modules folder first and then tutorial? The other option is to build the whole tree under sca using mvn clean install -fn -Dmaven.test.skip=true. Thanks, Raymond From: Marian, Radu Sent: Tuesday, April 22, 2008 10:19 AM To: Raymond Feng Subject: RE: svn checkout problem Thanks Raymond, That helped a bit. Here is my next tutorial build error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.tuscany.sca:tuscany-workspace-admin:jar:2.0-incubating-SNAPSH OT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tuscany.sca -DartifactId=tuscany-workspace-admin -Dversion=2.0-incubating-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.tuscany.sca -DartifactId=tuscany-workspace-admin - Dversion=2.0-incubating-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id ] Path to dependency: 1) org.apache.tuscany.sca:tutorial-domain:jar:2.0-incubating-SNAPSHOT 2) org.apache.tuscany.sca:tuscany-workspace-admin:jar:2.0-incubating-SNAPSH OT -- 1 required artifact is missing. for artifact: org.apache.tuscany.sca:tutorial-domain:jar:2.0-incubating-SNAPSHOT from the specified remote repositories: repo1.maven.org (http://repo1.maven.org/maven2), apache.incubator (http://people.apache.org/repo/m2-incubating-repository), apache.ws.zone (http://ws.zones.apache.org/repository2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) Any idea? Thanks, Radu Marian CRM Services Architecture Team Bank of America, Charlotte NC (980) 387-6233 [EMAIL PROTECTED] From: Raymond Feng [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 12:54 PM To: Marian, Radu Subject: Re: svn checkout problem I think you need to build the tools folder first. Thanks, Raymond From: Marian, Radu Sent: Tuesday, April 22, 2008 9:34 AM To: Raymond Feng Subject: RE: svn checkout problem Raymond, Thanks for your reply. I did fix the svn by updating the web proxy info. In order to use NodeLuncher - I thought I need to build the tutorial - please let me know if I am wrong. I am getting the following error when building tutorial: Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/ sca/tuscany-mav en-ant-generator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0 -incubating-SNAPSHOT.pom Downloading: http://snapshots.repository.codehaus.org/org/apache/tuscany/sca/tuscany- maven-ant-gener ator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0-incubating- SNAPSHOT.pom Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/tuscan y/sca/tuscany-m aven-ant-generator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2 .0-incubating-SNAPSHOT.pom Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/ sca/tuscany-mav en-ant-generator/2.0-incubating-SNAPSHOT/tuscany-maven-ant-generator-2.0 -incubating-SNAPSHOT.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.tuscany.sca ArtifactId:
Re: svn checkout problem
On Wed, Apr 23, 2008 at 8:18 AM, Marian, Radu [EMAIL PROTECTED] wrote: Raymond, Well I am almost there... To make it work I had to add the following line my mvn.bat file: set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m Full mvn.bat context for reference: @REM Start MAVEN2 :runm2 set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% -Dclassworlds.conf=%M2_HOME%\bin\m2.conf -Dmaven.home=%M2_HOME% org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error goto end I believe the above info should help other ursers to build tuscany sca for the first time. Can I contribute to the developer user guide wiki? Thanks, I'll update the developer guide with the info you are proposing. The other question I have is why are all testcases are executed despite your recommendaiton - -Dmaven.test.skip=true? They take a lot of time... How do you tell if tests are being executed ? Regular maven command should give you some output like : --- T E S T S --- Running org.apache.tuscany.sca.policy.PolicyFactoryTestCase Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec Results : Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 When using the -Dmaven.test.skip=true, you should not see any output like this. All this said, the build takes a little while to complete even without the tests (4 mins in my machine). Once I build the whole sca for the first time - what mvn commands should I use? What do you want to do next ? mvn -Peclipse eclipse:eclipse would generate the eclipse project files for you, and then you could add the projects to eclipse for further investigation, debuging, development. Thanks, Radu Marian CRM Services Architecture Team Bank of America, Charlotte NC (980) 387-6233 [EMAIL PROTECTED] -Original Message- From: Raymond Feng [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 1:32 PM To: Marian, Radu Cc: tuscany-user@ws.apache.org Subject: Re: svn checkout problem Hi, We should have published the SNAPSHOT versions more frequently. Anyway, can you try to build the modules folder first and then tutorial? The other option is to build the whole tree under sca using mvn clean install -fn -Dmaven.test.skip=true. Thanks, Raymond From: Marian, Radu Sent: Tuesday, April 22, 2008 10:19 AM To: Raymond Feng Subject: RE: svn checkout problem Thanks Raymond, That helped a bit. Here is my next tutorial build error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.tuscany.sca:tuscany-workspace-admin:jar:2.0-incubating-SNAPSH OT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tuscany.sca -DartifactId=tuscany-workspace-admin -Dversion=2.0-incubating-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.tuscany.sca -DartifactId=tuscany-workspace-admin - Dversion=2.0-incubating-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id ] Path to dependency: 1) org.apache.tuscany.sca:tutorial-domain:jar:2.0-incubating-SNAPSHOT 2) org.apache.tuscany.sca:tuscany-workspace-admin:jar:2.0-incubating-SNAPSH OT -- 1 required artifact is missing. for artifact: org.apache.tuscany.sca:tutorial-domain:jar:2.0-incubating-SNAPSHOT from the specified remote repositories: repo1.maven.org (http://repo1.maven.org/maven2), apache.incubator (http://people.apache.org/repo/m2-incubating-repository), apache.ws.zone (http://ws.zones.apache.org/repository2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) Any idea? Thanks, Radu Marian CRM Services Architecture Team Bank of America, Charlotte NC (980) 387-6233 [EMAIL PROTECTED] From: Raymond Feng [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 22, 2008 12:54 PM To: Marian, Radu Subject: Re: svn checkout problem I think you need to build the tools folder first. Thanks, Raymond From: Marian, Radu Sent: Tuesday, April 22, 2008 9:34 AM To: Raymond Feng Subject: RE: svn checkout problem Raymond, Thanks for your reply. I did fix the svn by updating the web proxy info. In order to use NodeLuncher - I thought I need to build the tutorial - please let me know if I am
RE: svn checkout problem
Luciano, Thanks for your help. Yes I did see the following: --- T E S T S --- Running org.apache.tuscany.sca.policy.PolicyFactoryTestCase Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec The command I used to run was: mvn clean install -fn -Dmanven.test.skip=true BTW - I am getting an error when running: C:\apache-tuscany\svnmvn -Peclipse eclipse:eclipse [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown Reason: Could not find the model file 'C:\apache-tuscany\svn\tools\eclipse'. for project unknown [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Could not find the model file 'C:\apache-tuscany vn\tools\eclipse'. for project unknown at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Could not find the model file 'C:\ap he-tuscany\svn\tools\eclipse'. for project unknown at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav enProjectBuilde java:1557) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileI nternal(Default venProjectBuilder.java:504) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr ojectBuilder.ja :198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more Caused by: java.io.FileNotFoundException: C:\apache-tuscany\svn\tools\eclipse (The system cannot f d the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at hidden.org.codehaus.plexus.util.xml.XmlReader.init(XmlReader.java:123) at hidden.org.codehaus.plexus.util.xml.XmlStreamReader.init(XmlStreamRead er.java:67) at hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory .java:113) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav enProjectBuilde java:1552) ... 18 more [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Wed Apr 23 11:44:21 EDT 2008 [INFO] Final Memory: 6M/508M [INFO] Radu Marian CRM Services Architecture Team Bank of America, Charlotte NC (980) 387-6233 [EMAIL PROTECTED] -Original Message- From: Luciano Resende [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 23, 2008 11:36 AM To: tuscany-user@ws.apache.org Subject: Re: svn checkout problem On Wed, Apr 23, 2008 at 8:18 AM, Marian, Radu [EMAIL PROTECTED] wrote: Raymond, Well I am almost there... To make it work I had to add the following line my mvn.bat file: set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m Full mvn.bat context for reference: @REM Start MAVEN2 :runm2 set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% -Dclassworlds.conf=%M2_HOME%\bin\m2.conf -Dmaven.home=%M2_HOME% org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error goto end I believe the above info should help other ursers to build tuscany sca for the first time. Can I contribute to the developer user guide wiki? Thanks, I'll update the developer guide with the info you are proposing. The other question I have is why are all testcases
Re: svn checkout problem
There is a typo in your command. It should be: mvn clean install -fn -Dmaven.test.skip=true (NOT manven) Thanks, Raymond -- From: Marian, Radu [EMAIL PROTECTED] Sent: Wednesday, April 23, 2008 8:47 AM To: tuscany-user@ws.apache.org Subject: RE: svn checkout problem Luciano, Thanks for your help. Yes I did see the following: --- T E S T S --- Running org.apache.tuscany.sca.policy.PolicyFactoryTestCase Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec The command I used to run was: mvn clean install -fn -Dmanven.test.skip=true BTW - I am getting an error when running: C:\apache-tuscany\svnmvn -Peclipse eclipse:eclipse [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown Reason: Could not find the model file 'C:\apache-tuscany\svn\tools\eclipse'. for project unknown [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Could not find the model file 'C:\apache-tuscany vn\tools\eclipse'. for project unknown at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Could not find the model file 'C:\ap he-tuscany\svn\tools\eclipse'. for project unknown at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav enProjectBuilde java:1557) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileI nternal(Default venProjectBuilder.java:504) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr ojectBuilder.ja :198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more Caused by: java.io.FileNotFoundException: C:\apache-tuscany\svn\tools\eclipse (The system cannot f d the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at hidden.org.codehaus.plexus.util.xml.XmlReader.init(XmlReader.java:123) at hidden.org.codehaus.plexus.util.xml.XmlStreamReader.init(XmlStreamRead er.java:67) at hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory .java:113) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMav enProjectBuilde java:1552) ... 18 more [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Wed Apr 23 11:44:21 EDT 2008 [INFO] Final Memory: 6M/508M [INFO] Radu Marian CRM Services Architecture Team Bank of America, Charlotte NC (980) 387-6233 [EMAIL PROTECTED] -Original Message- From: Luciano Resende [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 23, 2008 11:36 AM To: tuscany-user@ws.apache.org Subject: Re: svn checkout problem On Wed, Apr 23, 2008 at 8:18 AM, Marian, Radu [EMAIL PROTECTED] wrote: Raymond, Well I am almost there... To make it work I had to add the following line my mvn.bat file: set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m Full mvn.bat context for reference: @REM Start MAVEN2 :runm2 set MAVEN_OPTS=-Xms512m -Xmx1024m -XX:MaxPermSize=256m %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% -Dclassworlds.conf=%M2_HOME%\bin\m2.conf -Dmaven.home=%M2_HOME% org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error
Re: jboss deployment
On Wed, Apr 23, 2008 at 6:37 PM, Abraham Washington [EMAIL PROTECTED] wrote: i did more debugging and think i narrowed down the problem. using jboss 4.0.5.ga, the error msg is more verbose. below is the stack trace 11:35:11,536 ERROR [STDERR] Apr 23, 2008 11:35:11 AM org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPat h INFO: initContextPath: /sample-helloworld-ws-sdo-webapp 11:35:12,221 ERROR [[/sample-helloworld-ws-sdo-webapp]] Exception starting filter tuscany org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: java.io.FileNotFoundException: C:\work\jboss -4.0.5.GA\server\default\.\tmp\deploy\tmp48473sample-helloworld-ws-sdo-webapp-exp.war (Access is denied) at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82) at org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:224) at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at
Re: jboss deployment
A few other folks hit this JBoss issue before. Wang Feng points out that it might be a JBoss bug, see http://confluence.atlassian.com/pages/viewpage.action?pageId=104300830. Thanks, Raymond -- From: Abraham Washington [EMAIL PROTECTED] Sent: Wednesday, April 23, 2008 10:37 AM To: tuscany-user@ws.apache.org Subject: Re: jboss deployment i did more debugging and think i narrowed down the problem. using jboss 4.0.5.ga, the error msg is more verbose. below is the stack trace 11:35:11,536 ERROR [STDERR] Apr 23, 2008 11:35:11 AM org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPat h INFO: initContextPath: /sample-helloworld-ws-sdo-webapp 11:35:12,221 ERROR [[/sample-helloworld-ws-sdo-webapp]] Exception starting filter tuscany org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: java.io.FileNotFoundException: C:\work\jboss -4.0.5.GA\server\default\.\tmp\deploy\tmp48473sample-helloworld-ws-sdo-webapp-exp.war (Access is denied) at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82) at org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:224) at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Re: jboss deployment
hi raymond/simon...thanks for taking the time. yeah, i think it's a jboss issue. sorry for the inconvience, hope you didn't spend too much time on it... thx - abe - Original Message From: Raymond Feng [EMAIL PROTECTED] To: tuscany-user@ws.apache.org Sent: Wednesday, April 23, 2008 11:56:10 AM Subject: Re: jboss deployment A few other folks hit this JBoss issue before. Wang Feng points out that it might be a JBoss bug, see http://confluence.atlassian.com/pages/viewpage.action?pageId=104300830. Thanks, Raymond -- From: Abraham Washington [EMAIL PROTECTED] Sent: Wednesday, April 23, 2008 10:37 AM To: tuscany-user@ws.apache.org Subject: Re: jboss deployment i did more debugging and think i narrowed down the problem. using jboss 4.0.5.ga, the error msg is more verbose. below is the stack trace 11:35:11,536 ERROR [STDERR] Apr 23, 2008 11:35:11 AM org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPat h INFO: initContextPath: /sample-helloworld-ws-sdo-webapp 11:35:12,221 ERROR [[/sample-helloworld-ws-sdo-webapp]] Exception starting filter tuscany org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: java.io.FileNotFoundException: C:\work\jboss -4.0.5.GA\server\default\.\tmp\deploy\tmp48473sample-helloworld-ws-sdo-webapp-exp.war (Access is denied) at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82) at org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:224) at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at
Re: transaction question
You can properly set the DAS config file to inform that you are running in a managed environment (managedtx=true), this should give you the single transaction behavior. More details can be found in the DAS Documentation page [1] and in the DAS Transaction Control Guide [2]. [1] http://incubator.apache.org/tuscany/das-java-documentation-menu.html [2] http://incubator.apache.org/tuscany/rdb-das-transaction-control.html On Mon, Apr 21, 2008 at 7:37 PM, Abraham Washington [EMAIL PROTECTED] wrote: how does sca/das handle transactions working together ? if i have 2 das instances, connecting to 2 different databases, and both das instances are within a single component/service operation, is this considered a single transaction ?...if someone can point me to some documentation as well, that would be beneficial. thx - abe Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/