You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Felipe Jaekel <fk...@gmail.com> on 2014/09/04 19:27:09 UTC

Problem with NoClassDefFoundError: CometProcessor

Hi,

I'm trying to run an existing application in TomEE plus 1.7.0. It uses
atmosphere runtime native 2.1.8.

Unless I copy atmosphere JARs to TomEE lib folder, I get
a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.

The same application run fine in a regular Tomcat 7.0.55 packing atmosphere
JARs in WEB-INF/lib(compat jars pulled by maven).

Any ideas?

Thanks

Re: Problem with NoClassDefFoundError: CometProcessor

Posted by Felipe Jaekel <fk...@gmail.com>.
Thanks for the tip Romain.

Howard, I'm using only websocket. I have atmosphere-runtime-native because
of the problem I mentioned in my other post. I'll give more details there,
thanks.


2014-09-04 19:38 GMT-03:00 Howard W. Smith, Jr. <sm...@gmail.com>:

> Felipe, can you please share why you are using tomee + atmosphere runtime
> native + (tomcat7 native) comet?
>
> does your app require comet, because some of your enduser browsers require
> comet and do not support websocket?
>
> tomee/tomcat7 + atmosphere runtime + websocket works great
>
>
>
> On Thu, Sep 4, 2014 at 1:27 PM, Felipe Jaekel <fk...@gmail.com> wrote:
>
> > Hi,
> >
> > I'm trying to run an existing application in TomEE plus 1.7.0. It uses
> > atmosphere runtime native 2.1.8.
> >
> > Unless I copy atmosphere JARs to TomEE lib folder, I get
> > a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.
> >
> > The same application run fine in a regular Tomcat 7.0.55 packing
> atmosphere
> > JARs in WEB-INF/lib(compat jars pulled by maven).
> >
> > Any ideas?
> >
> > Thanks
> >
>

Re: Problem with NoClassDefFoundError: CometProcessor

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Felipe, can you please share why you are using tomee + atmosphere runtime
native + (tomcat7 native) comet?

does your app require comet, because some of your enduser browsers require
comet and do not support websocket?

tomee/tomcat7 + atmosphere runtime + websocket works great



On Thu, Sep 4, 2014 at 1:27 PM, Felipe Jaekel <fk...@gmail.com> wrote:

> Hi,
>
> I'm trying to run an existing application in TomEE plus 1.7.0. It uses
> atmosphere runtime native 2.1.8.
>
> Unless I copy atmosphere JARs to TomEE lib folder, I get
> a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.
>
> The same application run fine in a regular Tomcat 7.0.55 packing atmosphere
> JARs in WEB-INF/lib(compat jars pulled by maven).
>
> Any ideas?
>
> Thanks
>

Re: Problem with NoClassDefFoundError: CometProcessor

Posted by Romain Manni-Bucau <rm...@gmail.com>.
add openejb.classloader.forced-load=org.apache.tomcat in conf/system.properties

PS: putting this compat module in WEB-INF/lib is weird


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 20:10 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> Yes, but it seems to be ignored.
>
> A hunch that occurred to me now is that since the exception comes from
> myfaces startup context listener, the cause may be that in TomEE I'm using
> myfaces from server lib and in Tomcat from WEB-INF/lib, but I'm unable to
> test because if I remove myfaces from TomEE I get a NoClassDefFoundError:
> FacesServlet.
>
>
> 2014-09-04 14:37 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
>> Hi
>>
>> did you add atmosphere-compat?
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-04 19:27 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
>> > Hi,
>> >
>> > I'm trying to run an existing application in TomEE plus 1.7.0. It uses
>> > atmosphere runtime native 2.1.8.
>> >
>> > Unless I copy atmosphere JARs to TomEE lib folder, I get
>> > a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.
>> >
>> > The same application run fine in a regular Tomcat 7.0.55 packing
>> atmosphere
>> > JARs in WEB-INF/lib(compat jars pulled by maven).
>> >
>> > Any ideas?
>> >
>> > Thanks
>>

Re: Problem with NoClassDefFoundError: CometProcessor

Posted by Felipe Jaekel <fk...@gmail.com>.
Yes, but it seems to be ignored.

A hunch that occurred to me now is that since the exception comes from
myfaces startup context listener, the cause may be that in TomEE I'm using
myfaces from server lib and in Tomcat from WEB-INF/lib, but I'm unable to
test because if I remove myfaces from TomEE I get a NoClassDefFoundError:
FacesServlet.


2014-09-04 14:37 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Hi
>
> did you add atmosphere-compat?
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-04 19:27 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> > Hi,
> >
> > I'm trying to run an existing application in TomEE plus 1.7.0. It uses
> > atmosphere runtime native 2.1.8.
> >
> > Unless I copy atmosphere JARs to TomEE lib folder, I get
> > a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.
> >
> > The same application run fine in a regular Tomcat 7.0.55 packing
> atmosphere
> > JARs in WEB-INF/lib(compat jars pulled by maven).
> >
> > Any ideas?
> >
> > Thanks
>

Re: Problem with NoClassDefFoundError: CometProcessor

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

did you add atmosphere-compat?


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 19:27 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> Hi,
>
> I'm trying to run an existing application in TomEE plus 1.7.0. It uses
> atmosphere runtime native 2.1.8.
>
> Unless I copy atmosphere JARs to TomEE lib folder, I get
> a java.lang.NoClassDefFoundError: org/apache/catalina/CometProcessor.
>
> The same application run fine in a regular Tomcat 7.0.55 packing atmosphere
> JARs in WEB-INF/lib(compat jars pulled by maven).
>
> Any ideas?
>
> Thanks