You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "l.penet@senat.fr" <l....@senat.fr> on 2012/11/20 19:15:12 UTC

Can start in debug, but not in release

Dear all,

I hope I am in the right forum as a Myfaces/CODI user, it seemed a 
natural entry point to me...

I have a webapp which perfectly works in debug in eclipse, but does not 
start on the same tomcat 7.0.32 container.

The app is build with maven. I am using Eclipse juno with wtp integration.

In eclipse,  tomcat startup parameters are :

-Dcatalina.base="/home/lpenet/workspace_cellule/.metadata/.plugins/org.eclipse.wst.server.core/tmp0" 
-Dcatalina.home="/opt/apache-tomcat-7.0.32" 
-Dwtp.deploy="/home/lpenet/workspace_cellule/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps" 
-Djava.endorsed.dirs="/opt/apache-tomcat-7.0.32/endorsed" 
-XX:MaxPermSize=512M -XX:+CMSClassUnloadingEnabled 
-Dorg.apache.el.parser.COERCE_TO_ZERO=false

(nothing special to me...)

In "bare" tomcat, the following JAVA_OPTS are used :

JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=1024M 
-XX:+CMSClassUnloadingEnabled -Dorg.apache.el.parser.COERCE_TO_ZERO=false"

(nothing special to me too...).

Please find enclosed the corresponding logs.

I also attach my web.xml, beans.xml and faces-context.xml.

Do you have an idea ? Which logs can I turn on to get more info ?

Thanks in advance.

Ludovic Pénet

|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|

Re: Can start in debug, but not in release

Posted by "l.penet@senat.fr" <l....@senat.fr>.
On 21/11/2012 10:24, Gerhard Petracek wrote:
> hi ludovic,
>
> then we would need a link to a package example which illustrates the issue.
Dear Gerhard,

while preparing this package, I constated that Mark was right and that 
the problem was a combination of
an hibernate init failure combined with a deficient logging configuration.

So, everthing works fine and the bug was not OWB/MyFaces/CODI related.

Thank you again to both of you.

Ludovic
|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


Re: Can start in debug, but not in release

Posted by Gerhard Petracek <ge...@gmail.com>.
hi ludovic,

then we would need a link to a package example which illustrates the issue.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/11/21 l.penet@senat.fr <l....@senat.fr>

> On 20/11/2012 20:16, Gerhard Petracek wrote:
>
>> hi ludovic,
>>
>> to get rid of
>>    "... no
>> org.apache.myfaces.extensions.**cdi.core.api.provider.**BeanManagerProvider
>> in
>> place! ..."
>> you have to ensure that all config-files and owb jar-files you are using
>> are packaged correctly.
>>
>> you can compare your war-file e.g. with a war-file of a generated demo
>> generate it e.g. with #4 of:
>> mvn archetype:generate -DarchetypeCatalog=
>> http://people.apache.org/~**gpetracek/myfaces/<http://people.apache.org/~gpetracek/myfaces/>
>>
>> regards,
>> gerhard
>>
> Dear Gerhard,
>
> thank you for this quick reply.
>
> I, in fact, copied my dependencies from a pom.xml generation using your
> artifact. So, they are pretty much the same, excepted on the following
> point. I define MyFaces/OWB/PrimeFaces/other-**JSF-related-stuff in a
> helper package, which I add as a dependency to my project.
>
> So, in the mvn dependency:tree of my project,
>
> [INFO] +- org.apache.geronimo.specs:**geronimo-servlet_2.5_spec:jar:**
> 1.2:provided
> [INFO] +- org.apache.geronimo.specs:**geronimo-el_1.0_spec:jar:1.0.**
> 2:provided
>
> is not listed.
>
> But, as far as I understand, it should not be a problem. And it does not
> seem to be, as adding them in my top level pom.xml does not help.
>
> Thanks again,
>
> Ludovic
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

Re: Can start in debug, but not in release

Posted by "l.penet@senat.fr" <l....@senat.fr>.
On 20/11/2012 20:16, Gerhard Petracek wrote:
> hi ludovic,
>
> to get rid of
>    "... no
> org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider in
> place! ..."
> you have to ensure that all config-files and owb jar-files you are using
> are packaged correctly.
>
> you can compare your war-file e.g. with a war-file of a generated demo
> generate it e.g. with #4 of:
> mvn archetype:generate -DarchetypeCatalog=
> http://people.apache.org/~gpetracek/myfaces/
>
> regards,
> gerhard
Dear Gerhard,

thank you for this quick reply.

I, in fact, copied my dependencies from a pom.xml generation using your 
artifact. So, they are pretty much the same, excepted on the following 
point. I define MyFaces/OWB/PrimeFaces/other-JSF-related-stuff in a 
helper package, which I add as a dependency to my project.

So, in the mvn dependency:tree of my project,

[INFO] +- 
org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2:provided
[INFO] +- org.apache.geronimo.specs:geronimo-el_1.0_spec:jar:1.0.2:provided

is not listed.

But, as far as I understand, it should not be a problem. And it does not 
seem to be, as adding them in my top level pom.xml does not help.

Thanks again,

Ludovic
|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|


Re: Can start in debug, but not in release

Posted by Mark Struberg <st...@yahoo.de>.

The Hibernate serialisation issues look weird. What is your exact situation? Do you have an example of your app to share?

LieGrue,
strub





>________________________________
> From: Gerhard Petracek <ge...@gmail.com>
>To: MyFaces Discussion <us...@myfaces.apache.org> 
>Sent: Tuesday, November 20, 2012 8:16 PM
>Subject: Re: Can start in debug, but not in release
> 
>hi ludovic,
>
>to get rid of
>  "... no
>org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider in
>place! ..."
>you have to ensure that all config-files and owb jar-files you are using
>are packaged correctly.
>
>you can compare your war-file e.g. with a war-file of a generated demo
>generate it e.g. with #4 of:
>mvn archetype:generate -DarchetypeCatalog=
>http://people.apache.org/~gpetracek/myfaces/
>
>regards,
>gerhard
>
>
>
>2012/11/20 l.penet@senat.fr <l....@senat.fr>
>
>> Dear all,
>>
>> I hope I am in the right forum as a Myfaces/CODI user, it seemed a natural
>> entry point to me...
>>
>> I have a webapp which perfectly works in debug in eclipse, but does not
>> start on the same tomcat 7.0.32 container.
>>
>> The app is build with maven. I am using Eclipse juno with wtp integration.
>>
>> In eclipse,  tomcat startup parameters are :
>>
>> -Dcatalina.base="/home/lpenet/**workspace_cellule/.metadata/.**
>> plugins/org.eclipse.wst.**server.core/tmp0" -Dcatalina.home="/opt/apache-*
>> *tomcat-7.0.32" -Dwtp.deploy="/home/lpenet/**workspace_cellule/.metadata/.
>> **plugins/org.eclipse.wst.**server.core/tmp0/wtpwebapps"
>> -Djava.endorsed.dirs="/opt/**apache-tomcat-7.0.32/endorsed"
>> -XX:MaxPermSize=512M -XX:+CMSClassUnloadingEnabled
>> -Dorg.apache.el.parser.COERCE_**TO_ZERO=false
>>
>> (nothing special to me...)
>>
>> In "bare" tomcat, the following JAVA_OPTS are used :
>>
>> JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled
>> -Dorg.apache.el.parser.COERCE_**TO_ZERO=false"
>>
>> (nothing special to me too...).
>>
>> Please find enclosed the corresponding logs.
>>
>> I also attach my web.xml, beans.xml and faces-context.xml.
>>
>> Do you have an idea ? Which logs can I turn on to get more info ?
>>
>> Thanks in advance.
>>
>> Ludovic Pénet
>>
>> |
>> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
>> |
>>
>
>
>

Re: Can start in debug, but not in release

Posted by Gerhard Petracek <ge...@gmail.com>.
hi ludovic,

to get rid of
  "... no
org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider in
place! ..."
you have to ensure that all config-files and owb jar-files you are using
are packaged correctly.

you can compare your war-file e.g. with a war-file of a generated demo
generate it e.g. with #4 of:
mvn archetype:generate -DarchetypeCatalog=
http://people.apache.org/~gpetracek/myfaces/

regards,
gerhard



2012/11/20 l.penet@senat.fr <l....@senat.fr>

> Dear all,
>
> I hope I am in the right forum as a Myfaces/CODI user, it seemed a natural
> entry point to me...
>
> I have a webapp which perfectly works in debug in eclipse, but does not
> start on the same tomcat 7.0.32 container.
>
> The app is build with maven. I am using Eclipse juno with wtp integration.
>
> In eclipse,  tomcat startup parameters are :
>
> -Dcatalina.base="/home/lpenet/**workspace_cellule/.metadata/.**
> plugins/org.eclipse.wst.**server.core/tmp0" -Dcatalina.home="/opt/apache-*
> *tomcat-7.0.32" -Dwtp.deploy="/home/lpenet/**workspace_cellule/.metadata/.
> **plugins/org.eclipse.wst.**server.core/tmp0/wtpwebapps"
> -Djava.endorsed.dirs="/opt/**apache-tomcat-7.0.32/endorsed"
> -XX:MaxPermSize=512M -XX:+CMSClassUnloadingEnabled
> -Dorg.apache.el.parser.COERCE_**TO_ZERO=false
>
> (nothing special to me...)
>
> In "bare" tomcat, the following JAVA_OPTS are used :
>
> JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled
> -Dorg.apache.el.parser.COERCE_**TO_ZERO=false"
>
> (nothing special to me too...).
>
> Please find enclosed the corresponding logs.
>
> I also attach my web.xml, beans.xml and faces-context.xml.
>
> Do you have an idea ? Which logs can I turn on to get more info ?
>
> Thanks in advance.
>
> Ludovic Pénet
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>