Thanks Simon, I got the hello world servlet sample going, so I
progressed to trying my own app and am currently pondering over the
following log message ....


INFO: Deploying web application archive sample-jagg-webapp.war
24-Feb-2010 11:25:09
org.apache.tuscany.sca.tomcat.TuscanyStandardContext isSCAApplication
INFO: Tuscany SCA ignoring webapp with embedded Tuscany runtime:
/sample-jagg-webapp
24-Feb-2010 11:25:11 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: 
validateJarFile(C:\Dev\downloads\apache-tomcat-6.0.24-windows-x86\apache-tomcat-6.0.24\webapps\sample-jagg-webapp\WEB-INF\lib\servlet-api-2.5.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
24-Feb-2010 11:25:11 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
24-Feb-2010 11:25:11 org.apache.catalina.core.StandardContext start
SEVERE: Context [/sample-jagg-webapp] startup failed due to previous errors

I can't immediatley see how to relate this error to my code, so any
clues to help me along would be great.  For reference, my code is in
...
http://svn.apache.org/viewvc/tuscany/sandbox/kgoodson/jagg-webapp/

Kelvin.


On Wed, Feb 24, 2010 at 11:21 AM, Simon Laws <[email protected]> wrote:
> I'm not convinced you are actually supposed to be able to point your
> browser at these webapps. Not sure why that's the case but they don't
> appear the be configured with bindings/resources that the browser can
> exercise. Helloworld does though have an composite scoped component
> with and eager init configuration which causes the component to do
> something when the webapp starts. When I deploy helloworld.war from
> the trunk code (built this morning) I see the following output from
> Tomcat.
>
> INFO: Starting service Catalina
> 24-Feb-2010 11:11:24 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> 24-Feb-2010 11:11:24 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive helloworld.war
> 24-Feb-2010 11:11:24 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: helloworld domain: default
> 24-Feb-2010 11:11:24 org.apache.tuscany.sca.node.impl.NodeFactoryImpl 
> loadContri
> butions
> INFO: Loading contribution: 
> file:/C:/simon/apps/apache-tomcat-6.0.18/webapps/hel
> loworld/
> 24-Feb-2010 11:11:26 
> org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryI
> mpl addEndpoint
> INFO: Add endpoint - (@1133335)Endpoint:  URI = 
> HelloworldComponent#service-bind
> ing(HelloworldServiceImpl/HelloworldServiceImpl)
> Hello world
> 24-Feb-2010 11:11:26 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
> initCo
> ntextPath
> INFO: ContextPath: /helloworld
> 24-Feb-2010 11:11:27 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 24-Feb-2010 11:11:27 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 24-Feb-2010 11:11:27 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/47  config=null
> 24-Feb-2010 11:11:27 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3201 ms
>
> The important line here is "Hello world" which is being printed by the
> component that gets started.  This is not very obvious.
>
> The other sames do include technologies that the browser can exercise
> so I guess that helloworld is just a baseline that doesn't do very
> much.
>
> helloworld-rest isn't in the build (and should be excluded from the distro)
>
> Simon
>

Reply via email to