Hi there, 

I am new to ServiceMix 4 and Camel, and I ran the bridge-camel example,
which sends from HTML -> HTTP -> CAMEL -> XSLT -> JMS, and I get the general
idea.

I saw that ServiceMix can act as a webapp container, and thought it must be
possible somehow to both deploy a WAR to ServiceMix, and have it use the ESB
features to route requests based on the content of the request.  

But when I deploy the WAR, it starts up, no log errors, BundleActivator
fires, and I just can't find the URL address to access my WAR file.  

I read Charles' blog
(http://cmoulliard.blogspot.com/2009/03/servicemix-4-as-web-application-server.html)
and this wiki:
(http://hydrogen.informatik.tu-cottbus.de/wiki/index.php/Apache_ServiceMix_4.0_/_JSP_with_Eclipse_Dynamic_Web_Project)

I also typed "features:install webconsole" and managed to see the console at
(http://localhost:8181/system/console)

I followed the blog instructions, and sure enough, when I drop my WAR file
in /deploy, it says 
>> Bundle Test: start
and osgi:list says 
[ 193] [Active     ] [            ] [       ] [   60] HeyWorld (1.0.0.0)
And all the PAX bundles say Active too.

log:display says:
16:34:33,317 | INFO  | mix-4.2.0/deploy | WebXmlObserver                   |
nder.war.internal.WebXmlObserver  128 | Using [HeyWorld] as web application
context name
16:34:33,317 | INFO  | mix-4.2.0/deploy | HttpServiceFactoryImpl           |
.internal.HttpServiceFactoryImpl   33 | Binding bundle: [HeyWorld [193]] to
http service


I have tried http://localhost:8080/HeyWorld   -  but there is no server
running on 8080

I've tried  http://localhost:8181/HeyWorld  but it just says
HTTP ERROR: 404
Problem accessing /HeyWorld. Reason:
    NOT_FOUND
Powered by Jetty://

Does anyone know what might be wrong, or how to even debug this?

Regards,
Daniel 
-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/ServiceMix-4-as-a-Web-Application-Server-tp2840744p2840744.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to