Re: Why is JDK required for running Karaf?

2012-07-31 Thread Christoph Gritschenberger
I think Andreas covered it pretty well.
In "server"-mode the JVM does more optimizations which increase
startup-times and memory-footprint, and it's default in the
karaf-startup-script.
While on Linux the JRE comes with both "server" and "client"-mode, the
windows-version of JRE does not include the "server"-mode only the JDK does.

While I think it makes sense to use the server-mode by default, there
should be a fallback to client-mode on windows-machines where the
Java-installation does not support "server"-mode.

I already created an issue for that [1]

kind regards,
christoph

[1] https://issues.apache.org/jira/browse/KARAF-1695

On 31/07/12 19:54, Dan Tran wrote:
> any one recall why Karaf requires JDK at the first place?
> 
> Thanks
> 
> -Dan
> 
> On Tue, Jul 31, 2012 at 6:11 AM, Andreas Pieber  wrote:
>> @Christoph: can you create a JIRA for the problem that we don't lost
>> this problem?
>>
>> Kind regards,
>> Andreas
>>
>> On Tue, Jul 31, 2012 at 1:57 PM, Guillaume Nodet  wrote:
>>> Yes, I think if the default windows JRE does not support server, we should
>>> not include this option by default on windows.
>>> Unless we can actually find if it's present or not, which would be even
>>> better.
>>>
>>>
>>> On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger
>>>  wrote:

 Hi,

 With this, I get some syntax-error

 "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
 nicht verarbeitbar.

 (Sorry for the german, but that's my only WinXP I got lying around.)

 I tried with skipping the quotes and jmxremote-part, then everything
 seemed to work.

 set JAVA_OPTS=-Xmx512M
 bin\karaf.bat

 Maybe the karaf.bat-script should detect whether "-server" is supported.
 Or is it required for some feature(s)?

 kind regards,
 christoph


 On 31/07/12 12:35, Guillaume Nodet wrote:
> Could you try running without the -server flags maybe ?
>
> set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
> bin\karaf.bat
>
>
>
> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
> christoph.gritschenber...@gmail.com> wrote:
>
>> Hi,
>>
>> I ran into an Error when I tried to run karaf on a Windows XP with
>> Oracle JRE 7u5 installed.
>>
>> Error: missing `server' JVM at
>> `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>> Please install or use the JRE or JDK that contains these missing
>> components.
>>
>> I then discovered that the karaf-documentation states that a JDK is
>> required to run karaf. I installed JDK 7u5 and everything went fine.
>> But I have some difficulties explaining to certain customers that they
>> need to install a Development Kit to run this thing.
>>
>> So my question is, why exactly is it required to install JDK? Is there
>> no other way?
>>
>> Thanks.
>>
>> kind regards,
>> christoph
>>
>>
>
>


>>>
>>>
>>>
>>> --
>>> 
>>> Guillaume Nodet
>>> 
>>> Blog: http://gnodet.blogspot.com/
>>> 
>>> FuseSource, Integration everywhere
>>> http://fusesource.com




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Dan Tran
any one recall why Karaf requires JDK at the first place?

Thanks

-Dan

On Tue, Jul 31, 2012 at 6:11 AM, Andreas Pieber  wrote:
> @Christoph: can you create a JIRA for the problem that we don't lost
> this problem?
>
> Kind regards,
> Andreas
>
> On Tue, Jul 31, 2012 at 1:57 PM, Guillaume Nodet  wrote:
>> Yes, I think if the default windows JRE does not support server, we should
>> not include this option by default on windows.
>> Unless we can actually find if it's present or not, which would be even
>> better.
>>
>>
>> On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger
>>  wrote:
>>>
>>> Hi,
>>>
>>> With this, I get some syntax-error
>>>
>>> "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
>>> nicht verarbeitbar.
>>>
>>> (Sorry for the german, but that's my only WinXP I got lying around.)
>>>
>>> I tried with skipping the quotes and jmxremote-part, then everything
>>> seemed to work.
>>>
>>> set JAVA_OPTS=-Xmx512M
>>> bin\karaf.bat
>>>
>>> Maybe the karaf.bat-script should detect whether "-server" is supported.
>>> Or is it required for some feature(s)?
>>>
>>> kind regards,
>>> christoph
>>>
>>>
>>> On 31/07/12 12:35, Guillaume Nodet wrote:
>>> > Could you try running without the -server flags maybe ?
>>> >
>>> > set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
>>> > bin\karaf.bat
>>> >
>>> >
>>> >
>>> > On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
>>> > christoph.gritschenber...@gmail.com> wrote:
>>> >
>>> >> Hi,
>>> >>
>>> >> I ran into an Error when I tried to run karaf on a Windows XP with
>>> >> Oracle JRE 7u5 installed.
>>> >>
>>> >> Error: missing `server' JVM at
>>> >> `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>>> >> Please install or use the JRE or JDK that contains these missing
>>> >> components.
>>> >>
>>> >> I then discovered that the karaf-documentation states that a JDK is
>>> >> required to run karaf. I installed JDK 7u5 and everything went fine.
>>> >> But I have some difficulties explaining to certain customers that they
>>> >> need to install a Development Kit to run this thing.
>>> >>
>>> >> So my question is, why exactly is it required to install JDK? Is there
>>> >> no other way?
>>> >>
>>> >> Thanks.
>>> >>
>>> >> kind regards,
>>> >> christoph
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>
>>
>>
>> --
>> 
>> Guillaume Nodet
>> 
>> Blog: http://gnodet.blogspot.com/
>> 
>> FuseSource, Integration everywhere
>> http://fusesource.com


Re: automatic SNAPSHOT-deployment for release-branches

2012-07-31 Thread Christoph Gritschenberger
Hi,

Great thanks

kind regards,
christoph

On 31/07/12 15:11, Jean-Baptiste Onofré wrote:
> I fixed the Jenkins configuration (the SNAPSHOT are now uploaded
> correctly).
> 
> However, the builds are failed due to demo (I think that the demo
> groupId is not correct and so the upload is not allowed). I'm fixing
> that ;)
> 
> Regards
> JB
> 
> On 07/31/2012 11:58 AM, Christoph Gritschenberger wrote:
>> Hi,
>>
>> I noticed that the 2.2.9-SNAPSHOT and 2.3.0-SNAPSHOT in the
>> apache-snapshot-repository [1] are quite outdated, although builds on
>> builds.apache.org were stable.
>> Jamie Goodyear pointed out to me in IRC that auto-deploy was "turned off
>> as there was infra problems at the time".
>> Would it be possible to turn them back on?
>>
>> kind regards,
>> christoph
>>
> 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: automatic SNAPSHOT-deployment for release-branches

2012-07-31 Thread Jean-Baptiste Onofré

I fixed the Jenkins configuration (the SNAPSHOT are now uploaded correctly).

However, the builds are failed due to demo (I think that the demo 
groupId is not correct and so the upload is not allowed). I'm fixing that ;)


Regards
JB

On 07/31/2012 11:58 AM, Christoph Gritschenberger wrote:

Hi,

I noticed that the 2.2.9-SNAPSHOT and 2.3.0-SNAPSHOT in the
apache-snapshot-repository [1] are quite outdated, although builds on
builds.apache.org were stable.
Jamie Goodyear pointed out to me in IRC that auto-deploy was "turned off
as there was infra problems at the time".
Would it be possible to turn them back on?

kind regards,
christoph



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Andreas Pieber
@Christoph: can you create a JIRA for the problem that we don't lost
this problem?

Kind regards,
Andreas

On Tue, Jul 31, 2012 at 1:57 PM, Guillaume Nodet  wrote:
> Yes, I think if the default windows JRE does not support server, we should
> not include this option by default on windows.
> Unless we can actually find if it's present or not, which would be even
> better.
>
>
> On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger
>  wrote:
>>
>> Hi,
>>
>> With this, I get some syntax-error
>>
>> "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
>> nicht verarbeitbar.
>>
>> (Sorry for the german, but that's my only WinXP I got lying around.)
>>
>> I tried with skipping the quotes and jmxremote-part, then everything
>> seemed to work.
>>
>> set JAVA_OPTS=-Xmx512M
>> bin\karaf.bat
>>
>> Maybe the karaf.bat-script should detect whether "-server" is supported.
>> Or is it required for some feature(s)?
>>
>> kind regards,
>> christoph
>>
>>
>> On 31/07/12 12:35, Guillaume Nodet wrote:
>> > Could you try running without the -server flags maybe ?
>> >
>> > set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
>> > bin\karaf.bat
>> >
>> >
>> >
>> > On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
>> > christoph.gritschenber...@gmail.com> wrote:
>> >
>> >> Hi,
>> >>
>> >> I ran into an Error when I tried to run karaf on a Windows XP with
>> >> Oracle JRE 7u5 installed.
>> >>
>> >> Error: missing `server' JVM at
>> >> `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>> >> Please install or use the JRE or JDK that contains these missing
>> >> components.
>> >>
>> >> I then discovered that the karaf-documentation states that a JDK is
>> >> required to run karaf. I installed JDK 7u5 and everything went fine.
>> >> But I have some difficulties explaining to certain customers that they
>> >> need to install a Development Kit to run this thing.
>> >>
>> >> So my question is, why exactly is it required to install JDK? Is there
>> >> no other way?
>> >>
>> >> Thanks.
>> >>
>> >> kind regards,
>> >> christoph
>> >>
>> >>
>> >
>> >
>>
>>
>
>
>
> --
> 
> Guillaume Nodet
> 
> Blog: http://gnodet.blogspot.com/
> 
> FuseSource, Integration everywhere
> http://fusesource.com


Re: automatic SNAPSHOT-deployment for release-branches

2012-07-31 Thread Jean-Baptiste Onofré

The Jenkins build are active but in fail. I'm fixing that.

Regards
JB

On 07/31/2012 11:58 AM, Christoph Gritschenberger wrote:

Hi,

I noticed that the 2.2.9-SNAPSHOT and 2.3.0-SNAPSHOT in the
apache-snapshot-repository [1] are quite outdated, although builds on
builds.apache.org were stable.
Jamie Goodyear pointed out to me in IRC that auto-deploy was "turned off
as there was infra problems at the time".
Would it be possible to turn them back on?

kind regards,
christoph



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: automatic SNAPSHOT-deployment for release-branches

2012-07-31 Thread Jean-Baptiste Onofré

Hi Christoph,

I'm checking the Jenkins config.

Regards
JB

On 07/31/2012 11:58 AM, Christoph Gritschenberger wrote:

Hi,

I noticed that the 2.2.9-SNAPSHOT and 2.3.0-SNAPSHOT in the
apache-snapshot-repository [1] are quite outdated, although builds on
builds.apache.org were stable.
Jamie Goodyear pointed out to me in IRC that auto-deploy was "turned off
as there was infra problems at the time".
Would it be possible to turn them back on?

kind regards,
christoph



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Guillaume Nodet
Yes, I think if the default windows JRE does not support server, we should
not include this option by default on windows.
Unless we can actually find if it's present or not, which would be even
better.

On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger <
christoph.gritschenber...@gmail.com> wrote:

> Hi,
>
> With this, I get some syntax-error
>
> "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
> nicht verarbeitbar.
>
> (Sorry for the german, but that's my only WinXP I got lying around.)
>
> I tried with skipping the quotes and jmxremote-part, then everything
> seemed to work.
>
> set JAVA_OPTS=-Xmx512M
> bin\karaf.bat
>
> Maybe the karaf.bat-script should detect whether "-server" is supported.
> Or is it required for some feature(s)?
>
> kind regards,
> christoph
>
>
> On 31/07/12 12:35, Guillaume Nodet wrote:
> > Could you try running without the -server flags maybe ?
> >
> > set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
> > bin\karaf.bat
> >
> >
> >
> > On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
> > christoph.gritschenber...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I ran into an Error when I tried to run karaf on a Windows XP with
> >> Oracle JRE 7u5 installed.
> >>
> >> Error: missing `server' JVM at
> `C:\Programme\Java\jre7\bin\server\jvm.dll'.
> >> Please install or use the JRE or JDK that contains these missing
> >> components.
> >>
> >> I then discovered that the karaf-documentation states that a JDK is
> >> required to run karaf. I installed JDK 7u5 and everything went fine.
> >> But I have some difficulties explaining to certain customers that they
> >> need to install a Development Kit to run this thing.
> >>
> >> So my question is, why exactly is it required to install JDK? Is there
> >> no other way?
> >>
> >> Thanks.
> >>
> >> kind regards,
> >> christoph
> >>
> >>
> >
> >
>
>
>


-- 

Guillaume Nodet

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

FuseSource, Integration everywhere
http://fusesource.com


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Andreas Pieber
btw ;-)

[1] 
http://stackoverflow.com/questions/198577/real-differences-between-java-server-and-java-client

Kind regards,
Andreas

On Tue, Jul 31, 2012 at 1:14 PM, Andreas Pieber  wrote:
> well, looking at [1] I don't think that there is any difference. Since
> karaf could run as a server BUT also as a client environment we maybe
> should a) make it possible to switch between those with a param and b)
> add a fallback solution for windows
>
> WDYT?
>
> kind regards,
> Andreas
>
> On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger
>  wrote:
>> Hi,
>>
>> With this, I get some syntax-error
>>
>> "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
>> nicht verarbeitbar.
>>
>> (Sorry for the german, but that's my only WinXP I got lying around.)
>>
>> I tried with skipping the quotes and jmxremote-part, then everything
>> seemed to work.
>>
>> set JAVA_OPTS=-Xmx512M
>> bin\karaf.bat
>>
>> Maybe the karaf.bat-script should detect whether "-server" is supported.
>> Or is it required for some feature(s)?
>>
>> kind regards,
>> christoph
>>
>>
>> On 31/07/12 12:35, Guillaume Nodet wrote:
>>> Could you try running without the -server flags maybe ?
>>>
>>> set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
>>> bin\karaf.bat
>>>
>>>
>>>
>>> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
>>> christoph.gritschenber...@gmail.com> wrote:
>>>
 Hi,

 I ran into an Error when I tried to run karaf on a Windows XP with
 Oracle JRE 7u5 installed.

 Error: missing `server' JVM at `C:\Programme\Java\jre7\bin\server\jvm.dll'.
 Please install or use the JRE or JDK that contains these missing
 components.

 I then discovered that the karaf-documentation states that a JDK is
 required to run karaf. I installed JDK 7u5 and everything went fine.
 But I have some difficulties explaining to certain customers that they
 need to install a Development Kit to run this thing.

 So my question is, why exactly is it required to install JDK? Is there
 no other way?

 Thanks.

 kind regards,
 christoph


>>>
>>>
>>
>>


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Andreas Pieber
well, looking at [1] I don't think that there is any difference. Since
karaf could run as a server BUT also as a client environment we maybe
should a) make it possible to switch between those with a param and b)
add a fallback solution for windows

WDYT?

kind regards,
Andreas

On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger
 wrote:
> Hi,
>
> With this, I get some syntax-error
>
> "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
> nicht verarbeitbar.
>
> (Sorry for the german, but that's my only WinXP I got lying around.)
>
> I tried with skipping the quotes and jmxremote-part, then everything
> seemed to work.
>
> set JAVA_OPTS=-Xmx512M
> bin\karaf.bat
>
> Maybe the karaf.bat-script should detect whether "-server" is supported.
> Or is it required for some feature(s)?
>
> kind regards,
> christoph
>
>
> On 31/07/12 12:35, Guillaume Nodet wrote:
>> Could you try running without the -server flags maybe ?
>>
>> set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
>> bin\karaf.bat
>>
>>
>>
>> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
>> christoph.gritschenber...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I ran into an Error when I tried to run karaf on a Windows XP with
>>> Oracle JRE 7u5 installed.
>>>
>>> Error: missing `server' JVM at `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>>> Please install or use the JRE or JDK that contains these missing
>>> components.
>>>
>>> I then discovered that the karaf-documentation states that a JDK is
>>> required to run karaf. I installed JDK 7u5 and everything went fine.
>>> But I have some difficulties explaining to certain customers that they
>>> need to install a Development Kit to run this thing.
>>>
>>> So my question is, why exactly is it required to install JDK? Is there
>>> no other way?
>>>
>>> Thanks.
>>>
>>> kind regards,
>>> christoph
>>>
>>>
>>
>>
>
>


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Christoph Gritschenberger
Hi,

With this, I get some syntax-error

"-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle
nicht verarbeitbar.

(Sorry for the german, but that's my only WinXP I got lying around.)

I tried with skipping the quotes and jmxremote-part, then everything
seemed to work.

set JAVA_OPTS=-Xmx512M
bin\karaf.bat

Maybe the karaf.bat-script should detect whether "-server" is supported.
Or is it required for some feature(s)?

kind regards,
christoph


On 31/07/12 12:35, Guillaume Nodet wrote:
> Could you try running without the -server flags maybe ?
> 
> set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
> bin\karaf.bat
> 
> 
> 
> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
> christoph.gritschenber...@gmail.com> wrote:
> 
>> Hi,
>>
>> I ran into an Error when I tried to run karaf on a Windows XP with
>> Oracle JRE 7u5 installed.
>>
>> Error: missing `server' JVM at `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>> Please install or use the JRE or JDK that contains these missing
>> components.
>>
>> I then discovered that the karaf-documentation states that a JDK is
>> required to run karaf. I installed JDK 7u5 and everything went fine.
>> But I have some difficulties explaining to certain customers that they
>> need to install a Development Kit to run this thing.
>>
>> So my question is, why exactly is it required to install JDK? Is there
>> no other way?
>>
>> Thanks.
>>
>> kind regards,
>> christoph
>>
>>
> 
> 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Andreas Pieber
argl.. sorry for the mistake; we provide a JRE copy over the bin dir
from the JDK :-)

so, no it's correct.

Kind regards,
Andreas

On Tue, Jul 31, 2012 at 12:47 PM, Andreas Pieber  wrote:
> btw, another option to workaround this problem is to provide a
> "custom" jre; we typically deliver a JDK with our container, BUT for
> windows we copy over the bin directory from the JDK over the JRE, this
> is all required to fix that problem. Just to offer an additional
> option.
>
> Kind regards,
> Andreas
>
> On Tue, Jul 31, 2012 at 12:44 PM, Hervé BARRAULT
>  wrote:
>> Hi,
>> the java environment can be defined as "server" or "client"
>> (http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types).
>>
>> Using a JRE under linux provide both "server" and "client" option.
>> Using a JRE under windows provides only a "client". (the "server" part is
>> only provided with JDK)
>>
>> When using karaf, the option is set to server so when running under windows,
>> you need the JDK.
>>
>> As users, we noticed that for previous versions.
>>
>> I don't know if current versions need more than this option.
>>
>> Regards
>> Hervé
>>
>>
>> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger
>>  wrote:
>>>
>>> Hi,
>>>
>>> I ran into an Error when I tried to run karaf on a Windows XP with
>>> Oracle JRE 7u5 installed.
>>>
>>> Error: missing `server' JVM at
>>> `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>>> Please install or use the JRE or JDK that contains these missing
>>> components.
>>>
>>> I then discovered that the karaf-documentation states that a JDK is
>>> required to run karaf. I installed JDK 7u5 and everything went fine.
>>> But I have some difficulties explaining to certain customers that they
>>> need to install a Development Kit to run this thing.
>>>
>>> So my question is, why exactly is it required to install JDK? Is there
>>> no other way?
>>>
>>> Thanks.
>>>
>>> kind regards,
>>> christoph
>>>
>>


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Andreas Pieber
btw, another option to workaround this problem is to provide a
"custom" jre; we typically deliver a JDK with our container, BUT for
windows we copy over the bin directory from the JDK over the JRE, this
is all required to fix that problem. Just to offer an additional
option.

Kind regards,
Andreas

On Tue, Jul 31, 2012 at 12:44 PM, Hervé BARRAULT
 wrote:
> Hi,
> the java environment can be defined as "server" or "client"
> (http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types).
>
> Using a JRE under linux provide both "server" and "client" option.
> Using a JRE under windows provides only a "client". (the "server" part is
> only provided with JDK)
>
> When using karaf, the option is set to server so when running under windows,
> you need the JDK.
>
> As users, we noticed that for previous versions.
>
> I don't know if current versions need more than this option.
>
> Regards
> Hervé
>
>
> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger
>  wrote:
>>
>> Hi,
>>
>> I ran into an Error when I tried to run karaf on a Windows XP with
>> Oracle JRE 7u5 installed.
>>
>> Error: missing `server' JVM at
>> `C:\Programme\Java\jre7\bin\server\jvm.dll'.
>> Please install or use the JRE or JDK that contains these missing
>> components.
>>
>> I then discovered that the karaf-documentation states that a JDK is
>> required to run karaf. I installed JDK 7u5 and everything went fine.
>> But I have some difficulties explaining to certain customers that they
>> need to install a Development Kit to run this thing.
>>
>> So my question is, why exactly is it required to install JDK? Is there
>> no other way?
>>
>> Thanks.
>>
>> kind regards,
>> christoph
>>
>


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Hervé BARRAULT
Hi,
the java environment can be defined as "server" or "client" (
http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types
).

Using a JRE under linux provide both "server" and "client" option.
Using a JRE under windows provides only a "client". (the "server" part is
only provided with JDK)

When using karaf, the option is set to server so when running under
windows, you need the JDK.

As users, we noticed that for previous versions.

I don't know if current versions need more than this option.

Regards
Hervé


On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
christoph.gritschenber...@gmail.com> wrote:

> Hi,
>
> I ran into an Error when I tried to run karaf on a Windows XP with
> Oracle JRE 7u5 installed.
>
> Error: missing `server' JVM at `C:\Programme\Java\jre7\bin\server\jvm.dll'.
> Please install or use the JRE or JDK that contains these missing
> components.
>
> I then discovered that the karaf-documentation states that a JDK is
> required to run karaf. I installed JDK 7u5 and everything went fine.
> But I have some difficulties explaining to certain customers that they
> need to install a Development Kit to run this thing.
>
> So my question is, why exactly is it required to install JDK? Is there
> no other way?
>
> Thanks.
>
> kind regards,
> christoph
>
>


Re: Why is JDK required for running Karaf?

2012-07-31 Thread Guillaume Nodet
Could you try running without the -server flags maybe ?

set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote"
bin\karaf.bat



On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger <
christoph.gritschenber...@gmail.com> wrote:

> Hi,
>
> I ran into an Error when I tried to run karaf on a Windows XP with
> Oracle JRE 7u5 installed.
>
> Error: missing `server' JVM at `C:\Programme\Java\jre7\bin\server\jvm.dll'.
> Please install or use the JRE or JDK that contains these missing
> components.
>
> I then discovered that the karaf-documentation states that a JDK is
> required to run karaf. I installed JDK 7u5 and everything went fine.
> But I have some difficulties explaining to certain customers that they
> need to install a Development Kit to run this thing.
>
> So my question is, why exactly is it required to install JDK? Is there
> no other way?
>
> Thanks.
>
> kind regards,
> christoph
>
>


-- 

Guillaume Nodet

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

FuseSource, Integration everywhere
http://fusesource.com


Why is JDK required for running Karaf?

2012-07-31 Thread Christoph Gritschenberger
Hi,

I ran into an Error when I tried to run karaf on a Windows XP with
Oracle JRE 7u5 installed.

Error: missing `server' JVM at `C:\Programme\Java\jre7\bin\server\jvm.dll'.
Please install or use the JRE or JDK that contains these missing components.

I then discovered that the karaf-documentation states that a JDK is
required to run karaf. I installed JDK 7u5 and everything went fine.
But I have some difficulties explaining to certain customers that they
need to install a Development Kit to run this thing.

So my question is, why exactly is it required to install JDK? Is there
no other way?

Thanks.

kind regards,
christoph



smime.p7s
Description: S/MIME Cryptographic Signature


automatic SNAPSHOT-deployment for release-branches

2012-07-31 Thread Christoph Gritschenberger
Hi,

I noticed that the 2.2.9-SNAPSHOT and 2.3.0-SNAPSHOT in the
apache-snapshot-repository [1] are quite outdated, although builds on
builds.apache.org were stable.
Jamie Goodyear pointed out to me in IRC that auto-deploy was "turned off
as there was infra problems at the time".
Would it be possible to turn them back on?

kind regards,
christoph



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Web application development using unpacked WAR

2012-07-31 Thread Achim Nierbeck
Hi Lars,

thanks for clarifying,
the setup looks ok, the installed feature war is sufficient.
I'd take a look asap. From the provided log I can tell the
on the fly manifest building does fail. I have to take a look at it.

regards, Achim

2012/7/31 helander :
> Michael,
>
> I am using karaf 2.2.8.
>
> My file path was long, but not exceptionally long ;), and it did not contain
> any white-spaces (which sometimes creates problems).
>
> I did the test with karaf installed directly under C:\, and the behaviour
> was identical (same exception).
> I did also create a new webapp according to your instructions, and I still
> get the same behaviour using that web application.
>
> Before moving the war directory to the deploy folder, I install the "war"
> and "http" features. Maybe there are other features that I have to install
> to get the deployment to work ?
>
> Lars
>
>
> Michael Prieß wrote
>>
>> Hi Lars,
>>
>> with the command "headers yourBundleId" you can display the OSGi
>> manifest.If no manifest is provided inside your war the manifest will
>> be generated during the deployment.To generate a own manifest during
>> the maven build you can use the felix bundle plugin to generate a
>> WAB(WAR with OSGi manifest). But I think this doesn't matter in this
>> case.
>>
>> Try the following:
>> - Tell us which karaf version is in use.
>> - Your filepath looks strange. Try to run karaf under C:/karaf/deploy.
>> Does it work?
>> - Check if you can reproduce the behavior with this maven-archetype.
>> mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes
>> -DarchetypeArtifactId=maven-archetype-webapp
>> -DarchetypeVersion=RELEASE -DgroupId=org.apache.karaf.webapp
>> -DartifactId=webapp -DinteractiveMode=false
>>
>> @Achim
>> If I use a exploded war based on the "maven-archetype-webapp" pax-web
>> can't find the Web-ContextPath inside the manifest header. (Karaf
>> 2.2.8)
>>
>> Regards,
>>
>> Michael
>>
>>
>> 2012/7/30 helander :
>>> Michael,
>>>
>>> there is no OSGI manifest (it's a "standard" WAR ).
>>> What do you mean by the "command headers ID"?
>>> Which Felix plugin?
>>>
>>> /Lars
>>>
>>>
>>>
>>> Michael Prieß wrote

 Seems like there is a problem with the symbolic name. Could you please
 attach the exploded OSGi manifest, the output of the command headers
 ID and the configuration of the felix plugin?

 Cheers,

 Michael


 2012/7/30 helander :
> I have created a Jira:
>
> https://issues.apache.org/jira/browse/KARAF-1692
>
> /Lars
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Web-application-development-using-unpacked-WAR-tp4025360p4025372.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/Web-application-development-using-unpacked-WAR-tp4025360p4025381.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
>
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Web-application-development-using-unpacked-WAR-tp4025360p4025388.html
> Sent from the Karaf - User mailing list archive at Nabble.com.



-- 

Apache Karaf  Committer & PMC
OPS4J Pax Web 
Committer & Project Lead
OPS4J Pax for Vaadin
 Commiter & Project
Lead
blog 


Re: Web application development using unpacked WAR

2012-07-31 Thread helander
Michael,

I am using karaf 2.2.8.

My file path was long, but not exceptionally long ;), and it did not contain
any white-spaces (which sometimes creates problems).

I did the test with karaf installed directly under C:\, and the behaviour
was identical (same exception).
I did also create a new webapp according to your instructions, and I still
get the same behaviour using that web application.

Before moving the war directory to the deploy folder, I install the "war"
and "http" features. Maybe there are other features that I have to install
to get the deployment to work ?

Lars


Michael Prieß wrote
> 
> Hi Lars,
> 
> with the command "headers yourBundleId" you can display the OSGi
> manifest.If no manifest is provided inside your war the manifest will
> be generated during the deployment.To generate a own manifest during
> the maven build you can use the felix bundle plugin to generate a
> WAB(WAR with OSGi manifest). But I think this doesn't matter in this
> case.
> 
> Try the following:
> - Tell us which karaf version is in use.
> - Your filepath looks strange. Try to run karaf under C:/karaf/deploy.
> Does it work?
> - Check if you can reproduce the behavior with this maven-archetype.
> mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes
> -DarchetypeArtifactId=maven-archetype-webapp
> -DarchetypeVersion=RELEASE -DgroupId=org.apache.karaf.webapp
> -DartifactId=webapp -DinteractiveMode=false
> 
> @Achim
> If I use a exploded war based on the "maven-archetype-webapp" pax-web
> can't find the Web-ContextPath inside the manifest header. (Karaf
> 2.2.8)
> 
> Regards,
> 
> Michael
> 
> 
> 2012/7/30 helander :
>> Michael,
>>
>> there is no OSGI manifest (it's a "standard" WAR ).
>> What do you mean by the "command headers ID"?
>> Which Felix plugin?
>>
>> /Lars
>>
>>
>>
>> Michael Prieß wrote
>>>
>>> Seems like there is a problem with the symbolic name. Could you please
>>> attach the exploded OSGi manifest, the output of the command headers
>>> ID and the configuration of the felix plugin?
>>>
>>> Cheers,
>>>
>>> Michael
>>>
>>>
>>> 2012/7/30 helander :
 I have created a Jira:

 https://issues.apache.org/jira/browse/KARAF-1692

 /Lars



 --
 View this message in context:
 http://karaf.922171.n3.nabble.com/Web-application-development-using-unpacked-WAR-tp4025360p4025372.html
 Sent from the Karaf - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Web-application-development-using-unpacked-WAR-tp4025360p4025381.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
> 




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Web-application-development-using-unpacked-WAR-tp4025360p4025388.html
Sent from the Karaf - User mailing list archive at Nabble.com.