Hi Daniel ... On Thu, Apr 10, 2008 at 10:15 AM, <[EMAIL PROTECTED]> wrote:
> Hi Simon, > > You were right, there were wrong paths in my workspace.xml. > However, after fixing them I still get the same exception if I start > LaunchCalculatorNodeB. Be interested to know what paths you used instead. The idea of the sample is that people can run it without have to change these relative paths but obviously this is not working in your case. It still looks from you output below as if it's not finding the contribution directories successfully. > > > This is the output of LaunchDomain. No errors, but some warnings: These are Catalina warnings. I see them too. I think someone raised a JIRA about adressing this but I can't put my finger on it just at the moment. > > > 10.04.2008 10:45:44 > org.apache.tuscany.sca.node.launcher.DomainManagerLauncher main > INFO: Apache Tuscany SCA Domain Manager starting... > 10.04.2008 10:45:44 > org.apache.tuscany.sca.node.launcher.NodeLauncherUtil collectJARFiles > INFO: Runtime classpath: 148 JARs from > C:\develop\tuscany\tuscany-sca-1.2-incubating-SNAPSHOT\lib > 10.04.2008 10:45:44 > org.apache.tuscany.sca.node.launcher.NodeLauncherUtil collectJARFiles > INFO: Runtime classpath: 93 JARs from > C:\develop\tuscany\tuscany-sca-1.2-incubating-SNAPSHOT\modules > 10.04.2008 10:45:46 org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > 10.04.2008 10:45:47 org.apache.catalina.startup.ContextConfig > defaultWebConfig > INFO: No default web.xml > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for /javax/servlet/jsp/resources/jsp_2_0.xsd > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for /javax/servlet/jsp/resources/jsp_2_1.xsd > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for > /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for > /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for > /javax/servlet/jsp/resources/web-jsptaglibrary_2_0.xsd > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for > /javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd > 10.04.2008 10:45:47 org.apache.catalina.startup.DigesterFactory register > WARNUNG: Could not get url for > /javax/servlet/resources/j2ee_web_services_1_1.xsd > 10.04.2008 10:45:47 org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-9990 > 10.04.2008 10:45:47 org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-9990 > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/ui/home/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/ui/workspace/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/ui/files/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/ui/composite/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/ui/cloud/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/workspace/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/contribution/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/feed/files/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/files/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/composite/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/composite-source/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/deployable/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/composite-resolved/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/cloud/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/cloud-source/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/composite-image/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/node-image/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/quickstart/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/processes/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/node/processes/* > 10.04.2008 10:45:47 org.apache.tuscany.sca.http.tomcat.TomcatServer > addServletMapping > INFO: Added Servlet mapping: http://AFA-19393:9990/ping/* > 10.04.2008 10:45:47 > org.apache.tuscany.sca.node.launcher.DomainManagerLauncher main > INFO: SCA Domain Manager started. > 10.04.2008 10:45:47 > org.apache.tuscany.sca.node.launcher.DomainManagerLauncher main > INFO: Press enter to shutdown. > > > But the workspace admin screens now contain some objects (yesterday > there were all empty): > > Contributions: > Contribution Dependencies Deployable Composites > nodeA > nodeB > nodeC > > Composites: > Composite Contribution > Components > http://sample;CalculatorA nodeA Problem: > Composite not found > http://sample;CalculatorB nodeB Problem: > Composite not found > http://sample;CalculatorC nodeC Problem: > Composite not found > > Cloud: > Node Composite > Contribution > NodeA Problem: Composite not found unknown > NodeB Problem: Composite not found unknown > NodeC Problem: Composite not found unknown > > Files: > - empty It looks like it's successfully readind workspace.xml now but that it's not getting any further. So maybe those paths are still not correct. So in my case I have the sample installed at C:\simon\tuscany\java-head\sca\samples\calculator-distributed I used mvn -Peclipse eclipse:eclipse to create an Eclipse project for this and import it into my workspace (which is located elsewhere on my disk). My workspace.xml file is the default file that comes with the sample. So, for example, <contribution location="file:./src/main/resources/nodeA" uri="nodeA"/> Should, at runtime, start at C:\simon\tuscany\java-head\sca\samples\calculator-distributed\target and then navigate back up and down to the contribution in question. NodeA in this case. > > If I click on any of the links in the admin screens (besides the > navigation) I get HTTP errors (404 or 500). > I wonder why it starts a Tomcat in my environment and not a Jetty. > It depends on whether you have host-tomcat or host-jetty on the classpath. This sample depends on host-tomcat by default. > > Bye, > Daniel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
