Hi,

I'm using karaf-2.2.4 and want to start a web application (with wicket) when
karaf starts. I've defined a feature that is listed under featureBoot in the
org.apache.karaf.features.cfg.
Unfortunately I get the following WARN during startup and the web app is not
started. However if I start the feature manually from the console it starts
without a problem. What am I missing? Is there anything I've to wait for? If
yes, how can I configure it?

This is my feature:
        <feature name="monitoring-server-web" version="${project.version}">
                <feature version="${apache-karaf-version}">war</feature>
                <feature 
version='${project.version}'>monitoring-server-core</feature>
                <bundle>mvn:org.apache.wicket/wicket/${wicket-version}</bundle>
                
<bundle>mvn:org.apache.wicket/wicket-ioc/${wicket-version}</bundle>
                
<bundle>mvn:org.apache.wicket/wicket-spring/${wicket-version}</bundle>
                
<bundle>mvn:org.apache.wicket/wicket-extensions/${wicket-version}</bundle>
                <bundle
start-level='70'>war:mvn:com.*somepackage*.server/monitoring-server-web/${project.version}/war?Webapp-Context=web-console</bundle>
        </feature>

And this is the log from startup:

2011-10-26 11:05:14,471 DEBUG
[org.apache.karaf.features.internal.FeaturesServiceImpl] (Thread-6) Checking
war:mvn:com.*somepackage*.server/monitoring-server-web/2.0.3-SNAPSHOT/war?Webapp-Context=web-console
2011-10-26 11:05:14,471 WARN 
[org.apache.karaf.features.internal.FeaturesServiceImpl] (Thread-6) Error
when installing feature monitoring-server-web:
java.net.MalformedURLException: unknown protocol: war


Regards,
Andi


--
View this message in context: 
http://karaf.922171.n3.nabble.com/Problem-with-starting-web-app-during-startup-tp3454031p3454031.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to