You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Oleg Cohen <ol...@assurebridge.com> on 2017/11/14 11:44:55 UTC
WAB bundle doesn't fully start
Greetings,
I wonder if anybody had the same problem. I have a WAB bundle and according to the log is started successfully. The state in the console is Active.
org.eclipse.jetty.util - 9.3.14.v20161028 | Started HttpServiceContext{httpContext=WebAppHttpContext{empower.platform.reference.app - 25}}
25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform :: Reference :: App
When I check in the Http section of the webconsole I see the following:
Web Contexts
ID BundleState Web Context State
25 undefined /portal/ Deployed
The web context is not available. What does BundleState undefined mean? How can I further diagnose the issue?
Thank you!
Oleg
Re: WAB bundle doesn't fully start
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Oleg,
Nothing special in the log ?
Can you share/reproduce the issue with a test case ?
Thanks.
Regards
JB
On 11/14/2017 12:44 PM, Oleg Cohen wrote:
> Greetings,
>
> I wonder if anybody had the same problem. I have a WAB bundle and according to
> the log is started successfully. The state in the console is Active.
>
> org.eclipse.jetty.util - 9.3.14.v20161028 | Started
> HttpServiceContext{httpContext=WebAppHttpContext{empower.platform.reference.app
> - 25}}
>
> 25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform ::
> Reference :: App
>
> When I check in the Http section of the webconsole I see the following:
>
> Web Contexts
> IDBundleStateWeb ContextState
> 25*undefined*/portal/Deployed
>
> The web context is not available. What does BundleState undefined mean? How can
> I further diagnose the issue?
>
> Thank you!
> Oleg
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: WAB bundle doesn't fully start
Posted by Oleg Cohen <ol...@assurebridge.com>.
A quick update on this one ...
When I moved my index.jsp and the WEB-INF folder to the top of the project
(from the WebContent folder) the problem got resolved. So, I guess I need
something in the project that would tell PDE to grab the contents of the
WebContent folder.
Thank you!
Oleg
On Wed, Nov 15, 2017 at 5:45 AM, Oleg Cohen <ol...@assurebridge.com>
wrote:
> Thank you for the info, JB.
>
> web:list doesn't show the contents of the deployed bundle, only the
> summary info:
>
> ID | State | Web-State | Level | Web-ContextPath | Name
>
> ---+-------------+-------------+-------+-----------------+--
> -------------------------------------------------------
>
> 9 | Active | Deployed | 80 | /webapp | Empower ::
> Platform :: Reference :: Web (1.0.1.SNAPSHOT)
>
> I ran a test, where I deployed a JAR of the same application via the
> deploy folder and all worked great. The JAR layout is like this:
>
> MANIFEST.MF
> index.jsp
> WEB-INF/web.xml
>
>
> My Eclipse project has the following layout:
>
> WebContent/index.jsp
> WebContent/WEB-INF/web.xml
> META-INF/MANIFEST.MF
>
>
> I have the following in my MANIFEST.MF
>
> Web-ContextPath: webapp
> Webapp-Context: webapp
>
> I think the problem is when running/deploying via EIK something is missing
> in the deployed bundle and it prevents from the app properly running. I am
> wondering how to indicate that files from WebContent need to be put at the
> top level of the resulting bundle?
>
> Thank you!
> Oleg
>
>
> On Wed, Nov 15, 2017 at 1:20 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
>> Not in the webconsole, you can use http:list and web:list commands.
>>
>> Anyway, if your MANIFEST contains Web-ContextPath, no need to have
>> WEB-INF.
>>
>> Regards
>> JB
>>
>> On 11/15/2017 04:29 AM, Oleg Cohen wrote:
>>
>>> Hi JB,
>>>
>>> I was able to narrow it down. The issue is how the bundle is deployed. I
>>> am using EIK with Eclipse and I suspect the WEB-INF/ folder is not
>>> deployed. Is there a way to list bundle contents in the Karaf console?
>>>
>>> Thank you!
>>> Oleg
>>>
>>> On Nov 14, 2017, at 7:18 AM, Oleg Cohen <oleg.cohen@assurebridge.com
>>>> <ma...@assurebridge.com>> wrote:
>>>>
>>>> Hi JB,
>>>>
>>>> Nothing that I can see as a problem. Let me try and reproduce on a
>>>> smaller example.
>>>>
>>>> Thank you!
>>>> Oleg
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On Nov 14, 2017, at 7:16 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>>>> <ma...@nanthrax.net>> wrote:
>>>>
>>>> Hi Oleg,
>>>>>
>>>>> Nothing special in the log ?
>>>>>
>>>>> Can you share/reproduce the issue with a test case ?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 11/14/2017 12:44 PM, Oleg Cohen wrote:
>>>>>
>>>>>> Greetings,
>>>>>>
>>>>>> I wonder if anybody had the same problem. I have a WAB bundle and
>>>>>> according to
>>>>>> the log is started successfully. The state in the console is Active.
>>>>>>
>>>>>> org.eclipse.jetty.util - 9.3.14.v20161028 | Started
>>>>>> HttpServiceContext{httpContext=WebAppHttpContext{empower.pla
>>>>>> tform.reference.app
>>>>>> - 25}}
>>>>>>
>>>>>> 25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform ::
>>>>>> Reference :: App
>>>>>>
>>>>>> When I check in the Http section of the webconsole I see the
>>>>>> following:
>>>>>>
>>>>>> Web Contexts
>>>>>> IDBundleStateWeb ContextState
>>>>>> 25*undefined*/portal/Deployed
>>>>>>
>>>>>> The web context is not available. What does BundleState undefined
>>>>>> mean? How can
>>>>>> I further diagnose the issue?
>>>>>>
>>>>>> Thank you!
>>>>>> Oleg
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org <ma...@apache.org>
>>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>>>> Talend - http://www.talend.com <http://www.talend.com/>
>>>>>
>>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
>
> --
> *Oleg Cohen | Principal | **A S S U R E B R I D G E*
> *Office: +1 617 564 0737 | Mobile: +1 617 455 7927 | Fax: +1 888 409
> 6995*
> *Email: Oleg.Cohen@assurebridge.com <Ol...@assurebridge.com> **|
> www.assurebridge.com <http://www.assurebridge.com>*
>
--
*Oleg Cohen | Principal | **A S S U R E B R I D G E*
*Office: +1 617 564 0737 | Mobile: +1 617 455 7927 | Fax: +1 888 409
6995*
*Email: Oleg.Cohen@assurebridge.com <Ol...@assurebridge.com> **|
www.assurebridge.com <http://www.assurebridge.com>*
Re: WAB bundle doesn't fully start
Posted by Oleg Cohen <ol...@assurebridge.com>.
Thank you for the info, JB.
web:list doesn't show the contents of the deployed bundle, only the summary
info:
ID | State | Web-State | Level | Web-ContextPath | Name
---+-------------+-------------+-------+-----------------+---------------------------------------------------------
9 | Active | Deployed | 80 | /webapp | Empower ::
Platform :: Reference :: Web (1.0.1.SNAPSHOT)
I ran a test, where I deployed a JAR of the same application via the deploy
folder and all worked great. The JAR layout is like this:
MANIFEST.MF
index.jsp
WEB-INF/web.xml
My Eclipse project has the following layout:
WebContent/index.jsp
WebContent/WEB-INF/web.xml
META-INF/MANIFEST.MF
I have the following in my MANIFEST.MF
Web-ContextPath: webapp
Webapp-Context: webapp
I think the problem is when running/deploying via EIK something is missing
in the deployed bundle and it prevents from the app properly running. I am
wondering how to indicate that files from WebContent need to be put at the
top level of the resulting bundle?
Thank you!
Oleg
On Wed, Nov 15, 2017 at 1:20 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> Not in the webconsole, you can use http:list and web:list commands.
>
> Anyway, if your MANIFEST contains Web-ContextPath, no need to have WEB-INF.
>
> Regards
> JB
>
> On 11/15/2017 04:29 AM, Oleg Cohen wrote:
>
>> Hi JB,
>>
>> I was able to narrow it down. The issue is how the bundle is deployed. I
>> am using EIK with Eclipse and I suspect the WEB-INF/ folder is not
>> deployed. Is there a way to list bundle contents in the Karaf console?
>>
>> Thank you!
>> Oleg
>>
>> On Nov 14, 2017, at 7:18 AM, Oleg Cohen <oleg.cohen@assurebridge.com
>>> <ma...@assurebridge.com>> wrote:
>>>
>>> Hi JB,
>>>
>>> Nothing that I can see as a problem. Let me try and reproduce on a
>>> smaller example.
>>>
>>> Thank you!
>>> Oleg
>>>
>>> Sent from my iPhone
>>>
>>> On Nov 14, 2017, at 7:16 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>>> <ma...@nanthrax.net>> wrote:
>>>
>>> Hi Oleg,
>>>>
>>>> Nothing special in the log ?
>>>>
>>>> Can you share/reproduce the issue with a test case ?
>>>>
>>>> Thanks.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 11/14/2017 12:44 PM, Oleg Cohen wrote:
>>>>
>>>>> Greetings,
>>>>>
>>>>> I wonder if anybody had the same problem. I have a WAB bundle and
>>>>> according to
>>>>> the log is started successfully. The state in the console is Active.
>>>>>
>>>>> org.eclipse.jetty.util - 9.3.14.v20161028 | Started
>>>>> HttpServiceContext{httpContext=WebAppHttpContext{empower.
>>>>> platform.reference.app
>>>>> - 25}}
>>>>>
>>>>> 25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform ::
>>>>> Reference :: App
>>>>>
>>>>> When I check in the Http section of the webconsole I see the following:
>>>>>
>>>>> Web Contexts
>>>>> IDBundleStateWeb ContextState
>>>>> 25*undefined*/portal/Deployed
>>>>>
>>>>> The web context is not available. What does BundleState undefined
>>>>> mean? How can
>>>>> I further diagnose the issue?
>>>>>
>>>>> Thank you!
>>>>> Oleg
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org <ma...@apache.org>
>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>>> Talend - http://www.talend.com <http://www.talend.com/>
>>>>
>>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
*Oleg Cohen | Principal | **A S S U R E B R I D G E*
*Office: +1 617 564 0737 | Mobile: +1 617 455 7927 | Fax: +1 888 409
6995*
*Email: Oleg.Cohen@assurebridge.com <Ol...@assurebridge.com> **|
www.assurebridge.com <http://www.assurebridge.com>*
Re: WAB bundle doesn't fully start
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Not in the webconsole, you can use http:list and web:list commands.
Anyway, if your MANIFEST contains Web-ContextPath, no need to have WEB-INF.
Regards
JB
On 11/15/2017 04:29 AM, Oleg Cohen wrote:
> Hi JB,
>
> I was able to narrow it down. The issue is how the bundle is deployed. I am
> using EIK with Eclipse and I suspect the WEB-INF/ folder is not deployed. Is
> there a way to list bundle contents in the Karaf console?
>
> Thank you!
> Oleg
>
>> On Nov 14, 2017, at 7:18 AM, Oleg Cohen <oleg.cohen@assurebridge.com
>> <ma...@assurebridge.com>> wrote:
>>
>> Hi JB,
>>
>> Nothing that I can see as a problem. Let me try and reproduce on a smaller
>> example.
>>
>> Thank you!
>> Oleg
>>
>> Sent from my iPhone
>>
>> On Nov 14, 2017, at 7:16 AM, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>>> Hi Oleg,
>>>
>>> Nothing special in the log ?
>>>
>>> Can you share/reproduce the issue with a test case ?
>>>
>>> Thanks.
>>>
>>> Regards
>>> JB
>>>
>>> On 11/14/2017 12:44 PM, Oleg Cohen wrote:
>>>> Greetings,
>>>>
>>>> I wonder if anybody had the same problem. I have a WAB bundle and according to
>>>> the log is started successfully. The state in the console is Active.
>>>>
>>>> org.eclipse.jetty.util - 9.3.14.v20161028 | Started
>>>> HttpServiceContext{httpContext=WebAppHttpContext{empower.platform.reference.app
>>>> - 25}}
>>>>
>>>> 25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform ::
>>>> Reference :: App
>>>>
>>>> When I check in the Http section of the webconsole I see the following:
>>>>
>>>> Web Contexts
>>>> IDBundleStateWeb ContextState
>>>> 25*undefined*/portal/Deployed
>>>>
>>>> The web context is not available. What does BundleState undefined mean? How can
>>>> I further diagnose the issue?
>>>>
>>>> Thank you!
>>>> Oleg
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org <ma...@apache.org>
>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>> Talend - http://www.talend.com <http://www.talend.com/>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: WAB bundle doesn't fully start
Posted by Oleg Cohen <ol...@assurebridge.com>.
Hi JB,
I was able to narrow it down. The issue is how the bundle is deployed. I am using EIK with Eclipse and I suspect the WEB-INF/ folder is not deployed. Is there a way to list bundle contents in the Karaf console?
Thank you!
Oleg
> On Nov 14, 2017, at 7:18 AM, Oleg Cohen <ol...@assurebridge.com> wrote:
>
> Hi JB,
>
> Nothing that I can see as a problem. Let me try and reproduce on a smaller example.
>
> Thank you!
> Oleg
>
> Sent from my iPhone
>
> On Nov 14, 2017, at 7:16 AM, Jean-Baptiste Onofré <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>
>> Hi Oleg,
>>
>> Nothing special in the log ?
>>
>> Can you share/reproduce the issue with a test case ?
>>
>> Thanks.
>>
>> Regards
>> JB
>>
>> On 11/14/2017 12:44 PM, Oleg Cohen wrote:
>>> Greetings,
>>>
>>> I wonder if anybody had the same problem. I have a WAB bundle and according to
>>> the log is started successfully. The state in the console is Active.
>>>
>>> org.eclipse.jetty.util - 9.3.14.v20161028 | Started
>>> HttpServiceContext{httpContext=WebAppHttpContext{empower.platform.reference.app
>>> - 25}}
>>>
>>> 25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform ::
>>> Reference :: App
>>>
>>> When I check in the Http section of the webconsole I see the following:
>>>
>>> Web Contexts
>>> IDBundleStateWeb ContextState
>>> 25*undefined*/portal/Deployed
>>>
>>> The web context is not available. What does BundleState undefined mean? How can
>>> I further diagnose the issue?
>>>
>>> Thank you!
>>> Oleg
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>> Talend - http://www.talend.com <http://www.talend.com/>
Re: WAB bundle doesn't fully start
Posted by Oleg Cohen <ol...@assurebridge.com>.
Hi JB,
Nothing that I can see as a problem. Let me try and reproduce on a smaller
example.
Thank you!
Oleg
Sent from my iPhone
On Nov 14, 2017, at 7:16 AM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
Hi Oleg,
Nothing special in the log ?
Can you share/reproduce the issue with a test case ?
Thanks.
Regards
JB
On 11/14/2017 12:44 PM, Oleg Cohen wrote:
Greetings,
I wonder if anybody had the same problem. I have a WAB bundle and according
to
the log is started successfully. The state in the console is Active.
org.eclipse.jetty.util - 9.3.14.v20161028 | Started
HttpServiceContext{httpContext=WebAppHttpContext{empower.platform.reference.app
- 25}}
25 | Active | 80 | 1.0.1.SNAPSHOT | Empower :: Platform ::
Reference :: App
When I check in the Http section of the webconsole I see the following:
Web Contexts
IDBundleStateWeb ContextState
25*undefined*/portal/Deployed
The web context is not available. What does BundleState undefined mean? How
can
I further diagnose the issue?
Thank you!
Oleg
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com