Re: Problem with starting web-app during startup

2011-10-27 Thread akuhtz
Hi JB,

Yes, I can see the following line before the line with the error in the
logfile:
2011-10-27 12:51:50,912 INFO 
[org.apache.karaf.features.internal.FeaturesServiceImpl] (Thread-6)
Installing feature war 2.2.4

In Karaf-2.2.3 I haven't seen this error but my web-application was not
started during startup, too.

If I install the web-application bundle manually and restart karaf it is
started correctly, so maybe there is a problem with installing during
startup.

Regards
Andi


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


Re: Problem with starting web-app during startup

2011-10-27 Thread Ioannis Canellos
Hi Andi,

You can have war feature and a bundle using the war protocol inside the same
feature. The reason is that the war protocol is made available to the
container once it is installed and will not be available at the time of the
resolution.

What you can do is to add the war feature in the boot features before your
own feature. I think that this will work.

-- 
*Ioannis Canellos*
*
FuseSource http://fusesource.com

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf http://karaf.apache.org/ Committer  PMC
Apache ServiceMix http://servicemix.apache.org/  Committer
Apache Gora http://incubator.apache.org/gora/ Committer
*


Re: Problem with starting web-app during startup

2011-10-27 Thread akuhtz
Hi Ioannis,

Ok, I removed the war from the feature of my web-app and added it to boot
features, but the problem still exists.
I guess it is because I've added the feature of my web-app to the boot
features as well ... so I think I've to remove my web-app from boot features
and have it deployed at a later stage. But I'm not sure what would be the
best for that? Do I have to create a kar and put it into the deploy folder?
Would this solve my problem?

Regards,
Andi

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


Re: Problem with starting web-app during startup

2011-10-27 Thread Raul Kripalani
Andi,

Can you send us relevant line from the output of the la command showing
the war protocol? Let's see what the bundle runlevel is...

I experienced a similar issue installing the classpath: protocol and later
realised that I needed to decrease the bundle's runlevel so that it's made
available in the container at an earlier stage during startup.

Regards,
Raúl.

On 27 October 2011 12:43, akuhtz andreas.ku...@siemens.com wrote:

 Hi Ioannis,

 Ok, I removed the war from the feature of my web-app and added it to boot
 features, but the problem still exists.
 I guess it is because I've added the feature of my web-app to the boot
 features as well ... so I think I've to remove my web-app from boot
 features
 and have it deployed at a later stage. But I'm not sure what would be the
 best for that? Do I have to create a kar and put it into the deploy folder?
 Would this solve my problem?

 Regards,
 Andi

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



Re: Error Karaf 2.0 - No feature named 'spring' with version '[3,4)' available

2011-10-27 Thread Matt Madhavan
Hi Johan,
I'm stuck with Karaf 2.0 due to the limitation of IBM WAS 7.1 (my client's
target platform - please refer to my previous posting in Karaf).

Can I move back to an older version of Camel?

Also can you please let me know what is latest version of KARFA I can use
for Apache Aries 0.1 please? (Once again limitation caused by IBM WAS)

Thanks
Matt


--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Karaf-2-0-No-feature-named-spring-with-version-3-4-available-tp3456296p3458769.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Error Karaf 2.0 - No feature named 'spring' with version '[3,4)' available

2011-10-27 Thread Jamie G.
Just out of curiosity, what is the limitation that WAS 7.1 is placing
on the version of Karaf being deployed?

On Thu, Oct 27, 2011 at 4:41 PM, Matt Madhavan mattmadha...@gmail.com wrote:
 Hi Johan,
 I'm stuck with Karaf 2.0 due to the limitation of IBM WAS 7.1 (my client's
 target platform - please refer to my previous posting in Karaf).

 Can I move back to an older version of Camel?

 Also can you please let me know what is latest version of KARFA I can use
 for Apache Aries 0.1 please? (Once again limitation caused by IBM WAS)

 Thanks
 Matt


 --
 View this message in context: 
 http://karaf.922171.n3.nabble.com/Error-Karaf-2-0-No-feature-named-spring-with-version-3-4-available-tp3456296p3458769.html
 Sent from the Karaf - User mailing list archive at Nabble.com.



Re: Error Karaf 2.0 - No feature named 'spring' with version '[3,4)' available

2011-10-27 Thread Matt Madhavan
Johan,
Before I started here my client's  development tool of choice was IBM RAD
tooling and the target platform is WAS 7.1 which has Equinox 3.5.x and Aries
0.1 (built around Oct 2010)

I cannot do anything about WAS. My aim is to create a robust development
process for OSGi applications that will be deployed to WAS. The process must
have :
* Fast turn around
* Hot deploy
* Debugging
* Mavanized with Apache Maven Felix plugin
* ITest with PAX
 etc

Its almost impossible to develop OSGi apps in RAD using the RAD's OSGi
tooling. Hot deploy is almost non existent. Deploying an EBA as an Asset and
then starting the BLA in WAS takes almost 15 minutes. This is just not
acceptable.

So I went with the above tools with pax;provision and runner. 

But after my discussions with Andreas I chose Karaf and everyone here loves
it.

So I need to create a KAraf based development env which is as close as
possible to IBM WAS. So I'm stuck with Aries 0.1 which IBM WAS has.

Hence my problem. Any help regarding this willl be greatly appreciated.

Thanks
Matt



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Error-Karaf-2-0-No-feature-named-spring-with-version-3-4-available-tp3456296p3458849.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Aries 0.1 - Latest Karaf version I can use

2011-10-27 Thread Guillaume Nodet
You could try with karaf 2.0.0, as 2.1.0 is using Aries 0.2.  Though I don't
really remember if 2.1 could work with aries 0.1.
You try, you could download a karaf version, launch it and update the aries
bundles with the 0.1 version to see if it still works.

On Thu, Oct 27, 2011 at 21:23, Matt Madhavan mattmadha...@gmail.com wrote:

 Hello,
 Due to my client's target OSgG environment (IBM WAS 7.1) I;m stuck with
 Aries 0.1.

 I'm now trying to create a target environment with KARAF and Aries 0.1
 bundles from IBM!

 Can some one let me know whats the latest Karaf version I can use that will
 work with Aries 0.1? Also I would like to have Camel installed as well.

 Thanks in Advance!

 Matt Madhavan


 --
 View this message in context:
 http://karaf.922171.n3.nabble.com/Aries-0-1-Latest-Karaf-version-I-can-use-tp3458809p3458809.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




-- 

Guillaume Nodet

Blog: http://gnodet.blogspot.com/

Open Source SOA
http://fusesource.com


Re: Aries 0.1 - Latest Karaf version I can use

2011-10-27 Thread Matt Madhavan
Hi Guillaume,
I could make it work with 2.0.0 but now Camel does not like Karaf 2.0.0. 

Any idea which version of Camel will work with Karaf 2.0.0?

Man IBM!

Thanks
Matt


--
View this message in context: 
http://karaf.922171.n3.nabble.com/Aries-0-1-Latest-Karaf-version-I-can-use-tp3458809p3459051.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Aries 0.1 - Latest Karaf version I can use

2011-10-27 Thread Guillaume Nodet
Camel is not really dependant on Karaf, so any version should work.
 However, camel-blueprint will have some requirement on aries (so may not be
able to use that part).  The commands that have been added recently will of
course not work either.

On Thu, Oct 27, 2011 at 22:32, Matt Madhavan mattmadha...@gmail.com wrote:

 Hi Guillaume,
 I could make it work with 2.0.0 but now Camel does not like Karaf 2.0.0.

 Any idea which version of Camel will work with Karaf 2.0.0?

 Man IBM!

 Thanks
 Matt


 --
 View this message in context:
 http://karaf.922171.n3.nabble.com/Aries-0-1-Latest-Karaf-version-I-can-use-tp3458809p3459051.html
 Sent from the Karaf - User mailing list archive at Nabble.com.




-- 

Guillaume Nodet

Blog: http://gnodet.blogspot.com/

Open Source SOA
http://fusesource.com


URGENT: Karaf 2.0 features:install problem cannot install ANY feature

2011-10-27 Thread Matt Madhavan
Hello,
I added few URL's to Karaf.

Any feature I try to install I'm getting the following error:

karaf@root features:install camel
Error executing command: Unknown operator:

/The exception Trace is:/
17:28:18,593 | INFO  | l Console Thread | Console  |
araf.shell.console.jline.Console  198 | 9 - org.apache.karaf.shell.console -
2.0.0 | Exception caught while executing command
org.osgi.framework.InvalidSyntaxException: Unknown operator: 
at
org.apache.felix.framework.FilterImpl.init(FilterImpl.java:48)[org.apache.felix.framework-3.0.1.jar:]
at
org.osgi.framework.FrameworkUtil.createFilter(FrameworkUtil.java:76)[org.apache.felix.framework-3.0.1.jar:]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:416)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:400)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:383)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:383)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:246)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:235)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:231)[29:org.apache.karaf.features.core:2.0.0]
at
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:51)[30:org.apache.karaf.features.command:2.0.0]
at
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)[30:org.apache.karaf.features.command:2.0.0]
at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)[9:org.apache.karaf.shell.console:2.0.0]
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[9:org.apache.karaf.shell.console:2.0.0]
at
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[15:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[15:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[15:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[15:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[15:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[15:org.apache.felix.gogo.runtime:0.4.0]
at
org.apache.karaf.shell.console.jline.Console.run(Console.java:180)[9:org.apache.karaf.shell.console:2.0.0]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]


Any ideas please? 

I'm really stuck now! Any help will be appreciated!

Thanks
Matt



--
View this message in context: 
http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459384.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature

2011-10-27 Thread Raul Kripalani
Hi Matt,

I know that in previous versions of Karaf, there was an issue installing
features whose dependencies were declared using version ranges, e.g. spring
[3.0.0, 4.0.0). Not sure if you're hitting the same issue here.

Can you send the output of the features:listurl command?

Thanks,
*
*
*
*
*Raúl Kripalani*
Principal Consultant | FuseSource Corp.
r...@fusesource.com | skype: raul.fuse
fusesource.com http://www.fusesource.com/ | twitter:
@fusenewshttp://twitter.com/fusenews

The experts in open source integration and messaging.

On 27 October 2011 23:32, Matt Madhavan mattmadha...@gmail.com wrote:

 Hello,
 I added few URL's to Karaf.

 Any feature I try to install I'm getting the following error:

 karaf@root features:install camel
 Error executing command: Unknown operator:

 /The exception Trace is:/
 17:28:18,593 | INFO  | l Console Thread | Console
  |
 araf.shell.console.jline.Console  198 | 9 - org.apache.karaf.shell.console
 -
 2.0.0 | Exception caught while executing command
 org.osgi.framework.InvalidSyntaxException: Unknown operator:
at

 org.apache.felix.framework.FilterImpl.init(FilterImpl.java:48)[org.apache.felix.framework-3.0.1.jar:]
at

 org.osgi.framework.FrameworkUtil.createFilter(FrameworkUtil.java:76)[org.apache.felix.framework-3.0.1.jar:]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:416)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:400)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:383)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:383)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:246)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:235)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:231)[29:org.apache.karaf.features.core:2.0.0]
at

 org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:51)[30:org.apache.karaf.features.command:2.0.0]
at

 org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)[30:org.apache.karaf.features.command:2.0.0]
at

 org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)[9:org.apache.karaf.shell.console:2.0.0]
at

 org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[9:org.apache.karaf.shell.console:2.0.0]
at

 org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[15:org.apache.felix.gogo.runtime:0.4.0]
at

 org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[15:org.apache.felix.gogo.runtime:0.4.0]
at

 org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[15:org.apache.felix.gogo.runtime:0.4.0]
at

 org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[15:org.apache.felix.gogo.runtime:0.4.0]
at

 org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[15:org.apache.felix.gogo.runtime:0.4.0]
at

 org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[15:org.apache.felix.gogo.runtime:0.4.0]
at

 org.apache.karaf.shell.console.jline.Console.run(Console.java:180)[9:org.apache.karaf.shell.console:2.0.0]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]


 Any ideas please?

 I'm really stuck now! Any help will be appreciated!

 Thanks
 Matt



 --
 View this message in context:
 http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459384.html
 Sent from the Karaf - User mailing list archive at Nabble.com.



Re: Problem with starting web-app during startup

2011-10-27 Thread Raul Kripalani
Hi Andi,

Try the following sequence, i.e. basically starting from scratch to make
sure you have no funny leftovers:

1) Shutdown Karaf
2) Deleting your data directory
3) Start Karaf, making sure that your custom features descriptor is *not* on
the bootstrap list.
4) Install the http, web and war features
5) Install your custom feature

Regards,
*
*
*
*
*Raúl Kripalani*
Principal Consultant | FuseSource Corp.
r...@fusesource.com | skype: raul.fuse
fusesource.com http://www.fusesource.com/ | twitter:
@fusenewshttp://twitter.com/fusenews

The experts in open source integration and messaging.



On 27 October 2011 22:17, Achim Nierbeck bcanh...@googlemail.com wrote:

 Hi Andi,

 yeah Raul is right and the relevant information is right here ;)
 the startlevel of the Pax Url war bundle is 60 and probably your bundle
 containing your war is the same,
 that's why it's not possible to run right away from start. You need to make
 sure your own Bundle is of startlevel higher then 60.

 regards, Achim

 2011/10/27 akuhtz andreas.ku...@siemens.com

 Raul,

 Not sure if I get you right  these are the only bundles with 'war' in
 the name. But I don't know which contains the war protocol.

 [  82] [Active ] [] [   ] [   60] OPS4J Pax Web -
 Extender - WAR (1.0.6)
 [  85] [Active ] [] [   ] [   60] OPS4J Pax Url - war
 (1.2.8)

 Regards,
 Andi



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




 --
 --
 *Achim Nierbeck*


 Apache Karaf http://karaf.apache.org/ Committer  PMC
 OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/  Committer 
 Project Lead
 blog http://notizblog.nierbeck.de/



Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature

2011-10-27 Thread Matt Madhavan
Hi Raul,
I'll do the posting tomorrow. Meanwhile I can not install any features
including spring 3.5.2 which I added to the start up. I'mreally stuck on
this. Any help on this would be gtratly appreciated.

Matt

--
View this message in context: 
http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459499.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature

2011-10-27 Thread Matt Madhavan
Hi Raul,
Meant to say spring 3.5.0.RELEASE. Also if a bundle in the feature is
missing package etc it does flag you. Its the final installation step.

Also the spring feature does not have any version range!

Thanks again
Matt

--
View this message in context: 
http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459505.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature

2011-10-27 Thread Willem Jiang

Hi Matt,

I'm afraid you have to install the spring 3.x feature yourself, maybe 
you can add a custom feature and let karaf load it for you.


On Fri Oct 28 07:24:11 2011, Matt Madhavan wrote:

Hi Raul,
Meant to say spring 3.5.0.RELEASE. Also if a bundle in the feature is
missing package etc it does flag you. Its the final installation step.

Also the spring feature does not have any version range!

Thanks again
Matt

--
View this message in context: 
http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459505.html
Sent from the Karaf - User mailing list archive at Nabble.com.





--
Willem
--
FuseSource
Web: http://www.fusesource.com
Blog:http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang 
Weibo: willemjiang 



Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature

2011-10-27 Thread Matt Madhavan
Hi Willem,
Thank you the reply. But it makes me a little sad! None of the features
intall. Looks like I have to install everything manually.

Do still love Karaf though.

Oh Boy, the beauty of IBM!

Matt
On Oct 27, 2011 8:21 PM, Willem [via Karaf] 
ml-node+s922171n3459765...@n3.nabble.com wrote:

 Hi Matt,

 I'm afraid you have to install the spring 3.x feature yourself, maybe
 you can add a custom feature and let karaf load it for you.

 On Fri Oct 28 07:24:11 2011, Matt Madhavan wrote:

  Hi Raul,
  Meant to say spring 3.5.0.RELEASE. Also if a bundle in the feature is
  missing package etc it does flag you. Its the final installation step.
 
  Also the spring feature does not have any version range!
 
  Thanks again
  Matt
 
  --
  View this message in context:
 http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459505.html
  Sent from the Karaf - User mailing list archive at Nabble.com.
 



 --
 Willem
 --
 FuseSource
 Web: http://www.fusesource.com
 Blog:http://willemjiang.blogspot.com (English)
  http://jnn.javaeye.com (Chinese)
 Twitter: willemjiang
 Weibo: willemjiang



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459765.html
  To unsubscribe from URGENT: Karaf 2.0 features:install problem cannot
 install ANY feature, click 
 herehttp://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3459384code=bWF0dG1hZGhhdmFuQGdtYWlsLmNvbXwzNDU5Mzg0fDEwMzM0OTkxMDE=.




--
View this message in context: 
http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459801.html
Sent from the Karaf - User mailing list archive at Nabble.com.