You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by LuisLo <he...@gmail.com> on 2019/12/17 22:48:39 UTC

jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Hi.
We have a web application running in karaf (using pax-jsf-support feature):

karaf 4.2.7
primefaces 6.1
myfaces 2.2.12

We have updated from version 4.0.X to 4.2.7
After the update to 4.2.7, everything works fine except the file upload that
shows the following error in the firefox console:

<partial-response><error><error-name>java.lang.NoClassDefFoundError</error-name><error-message></error-message></error></partial-response>

Any suggestions?



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by jb...@nanthrax.net.
No problem, let me create the Jira.

  

For a workaround, let me check what we can do. Maybe adding a dynamic import
would help but I have to check.

  

Give me sometime for that. I will get back to you. First I have to reproduce
the issue.

  

Regards

JB

  

Le 18 déc. 2019 08:40, LuisLo <he...@gmail.com> a écrit :  

> Could you create the JIRA please? I've never done it and I think it will be  
>  faster if you do it.  
>  
>  Can you think of a workaround?  
>  
>  
>  
>  \--  
>  Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html  
>

  


Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by LuisLo <he...@gmail.com>.
Could you create the JIRA please? I've never done it and I think it will be
faster if you do it.

Can you think of a workaround?



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by jb...@nanthrax.net.
Yup, I just saw that as well. I'm fixing in pax web and prepare
release/update.

  

Regards

JB

  

Le 18 déc. 2019 15:52, ffang <fr...@gmail.com> a écrit :  

> Hi,  
>  
>  Yes, it's caused that in jetty 9.4.20, MultiPartInputStreamParser was
removed from OSGi header  
>  
>  
>  headers org.eclipse.jetty.util  
>  
>  Jetty :: Utilities (276)  
>  
>  .....  
>  
>  Export-Package =  
>  org.eclipse.jetty.util;  
>  exclude:=MultiPartInputStreamParser;  
>  uses:="org.eclipse.jetty.util.annotation,  
>  org.eclipse.jetty.util.component,  
>  org.eclipse.jetty.util.log,  
>  org.eclipse.jetty.util.resource,  
>  org.eclipse.jetty.util.thread";  
>  
>  And I think the fix should be in pax-web, similarly as we did in camel,
using new fast/safe MultiPartFormInputStream instead by using Servlet 3 API.  
>  
>  Best Regards  
>  Freeman  
>  
>  > On Dec 18, 2019, at 5:55 AM, LuisLo <he...@gmail.com>
wrote:  
>  >  
>  > Can it be related to this bug?  
>  >  
>  > https://issues.apache.org/jira/browse/CAMEL-14105  
>  >  
>  >  
>  >  
>  > \--  
>  > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html  
>  
>

  


Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by ffang <fr...@gmail.com>.
Hi, 

Yes, it’s caused that in jetty 9.4.20, MultiPartInputStreamParser was removed from OSGi header


headers org.eclipse.jetty.util

Jetty :: Utilities (276)

.....

Export-Package = 
	org.eclipse.jetty.util;
		exclude:=MultiPartInputStreamParser;
		uses:="org.eclipse.jetty.util.annotation,
			org.eclipse.jetty.util.component,
			org.eclipse.jetty.util.log,
			org.eclipse.jetty.util.resource,
			org.eclipse.jetty.util.thread”;

And I think the fix should be in pax-web, similarly as we did in camel, using new fast/safe MultiPartFormInputStream instead by using Servlet 3 API.

Best Regards
Freeman

> On Dec 18, 2019, at 5:55 AM, LuisLo <he...@gmail.com> wrote:
> 
> Can it be related to this bug?
> 
> https://issues.apache.org/jira/browse/CAMEL-14105
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by LuisLo <he...@gmail.com>.
Can it be related to this bug?

https://issues.apache.org/jira/browse/CAMEL-14105



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

the class is still in Jetty util package.

If we have a NoClassDefFound, I'm more suspecting a classloading issue
(ClassNotFoundException is different one).

Let me try to reproduce (in Pax Web).

Do you mind to create a Jira about that ? Else I will do it.

Regards
JB

On 18/12/2019 08:03, LuisLo wrote:
> We don't have entries in the log.
> We have discovered the error that I discovered in the Firefox console (see
> attached image)
> 
> 
> <http://karaf.922171.n3.nabble.com/file/t498086/log.png> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

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

Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by LuisLo <he...@gmail.com>.
We don't have entries in the log.
We have discovered the error that I discovered in the Firefox console (see
attached image)


<http://karaf.922171.n3.nabble.com/file/t498086/log.png> 



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: jsf: NoClassDefFoundError org/eclipse/jetty/util/MultiPartInputStreamParser

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Do you have the full trace ? It's MultiPartInputStreamParser class which
is not found ?

Let me check if the class package (or class itself) didn't change in
Jetty (we upgrade to Jetty 9.2.24 in Karaf 4.2.x).

Regards
JB

On 17/12/2019 23:48, LuisLo wrote:
> Hi.
> We have a web application running in karaf (using pax-jsf-support feature):
> 
> karaf 4.2.7
> primefaces 6.1
> myfaces 2.2.12
> 
> We have updated from version 4.0.X to 4.2.7
> After the update to 4.2.7, everything works fine except the file upload that
> shows the following error in the firefox console:
> 
> <partial-response><error><error-name>java.lang.NoClassDefFoundError</error-name><error-message></error-message></error></partial-response>
> 
> Any suggestions?
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

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