You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ghassen Kahri <gh...@codeonce.fr> on 2023/12/12 15:17:53 UTC

camel-jetty component for camel 4.0.3 : issue while starting app

Hi community,
I'm trying to create a rest controller for my camel project, for this i'm
using jetty component (same version as camel -> 4.0.3).
I'm facing an understandable problem while starting the project :

java.lang.IllegalAccessError: class
org.apache.camel.component.jetty.JettyHttpComponent tried to access
protected method 'void
org.eclipse.jetty.server.Handler$AbstractContainer.<init>()'
(org.apache.camel.component.jetty.JettyHttpComponent and
org.eclipse.jetty.server.Handler$AbstractContainer are in unnamed module of
loader 'app')

*my environment :*
Camel version: 4.0.3
Spring Boot version: 3.2.0
JDK: open JDK 17
Platform: ubuntu 20.04.6 LTS
IDE: IntelliJ IDEA 2023.1.3 (Ultimate Edition)

Re: camel-jetty component for camel 4.0.3 : issue while starting app

Posted by Andrea Cosentino <an...@gmail.com>.
Happy to help!

Il mar 12 dic 2023, 17:23 Ghassen Kahri <gh...@codeonce.fr> ha
scritto:

> That works for me.
> Thanks 👍
>
> On Tue, Dec 12, 2023, 16:30 Andrea Cosentino <an...@gmail.com> wrote:
>
> > Camel supporting spring boot 3.2.0 will be 4.3.0, you need to use the
> > Spring boot version coming with camel 4.0.3 I think it is 3.1.6.
> >
> >
> >
> > Il mar 12 dic 2023, 16:19 Ghassen Kahri <gh...@codeonce.fr> ha
> > scritto:
> >
> > > Hi community,
> > > I'm trying to create a rest controller for my camel project, for this
> i'm
> > > using jetty component (same version as camel -> 4.0.3).
> > > I'm facing an understandable problem while starting the project :
> > >
> > > java.lang.IllegalAccessError: class
> > > org.apache.camel.component.jetty.JettyHttpComponent tried to access
> > > protected method 'void
> > > org.eclipse.jetty.server.Handler$AbstractContainer.<init>()'
> > > (org.apache.camel.component.jetty.JettyHttpComponent and
> > > org.eclipse.jetty.server.Handler$AbstractContainer are in unnamed
> module
> > of
> > > loader 'app')
> > >
> > > *my environment :*
> > > Camel version: 4.0.3
> > > Spring Boot version: 3.2.0
> > > JDK: open JDK 17
> > > Platform: ubuntu 20.04.6 LTS
> > > IDE: IntelliJ IDEA 2023.1.3 (Ultimate Edition)
> > >
> >
>

Re: camel-jetty component for camel 4.0.3 : issue while starting app

Posted by Ghassen Kahri <gh...@codeonce.fr>.
That works for me.
Thanks 👍

On Tue, Dec 12, 2023, 16:30 Andrea Cosentino <an...@gmail.com> wrote:

> Camel supporting spring boot 3.2.0 will be 4.3.0, you need to use the
> Spring boot version coming with camel 4.0.3 I think it is 3.1.6.
>
>
>
> Il mar 12 dic 2023, 16:19 Ghassen Kahri <gh...@codeonce.fr> ha
> scritto:
>
> > Hi community,
> > I'm trying to create a rest controller for my camel project, for this i'm
> > using jetty component (same version as camel -> 4.0.3).
> > I'm facing an understandable problem while starting the project :
> >
> > java.lang.IllegalAccessError: class
> > org.apache.camel.component.jetty.JettyHttpComponent tried to access
> > protected method 'void
> > org.eclipse.jetty.server.Handler$AbstractContainer.<init>()'
> > (org.apache.camel.component.jetty.JettyHttpComponent and
> > org.eclipse.jetty.server.Handler$AbstractContainer are in unnamed module
> of
> > loader 'app')
> >
> > *my environment :*
> > Camel version: 4.0.3
> > Spring Boot version: 3.2.0
> > JDK: open JDK 17
> > Platform: ubuntu 20.04.6 LTS
> > IDE: IntelliJ IDEA 2023.1.3 (Ultimate Edition)
> >
>

Re: camel-jetty component for camel 4.0.3 : issue while starting app

Posted by Andrea Cosentino <an...@gmail.com>.
Camel supporting spring boot 3.2.0 will be 4.3.0, you need to use the
Spring boot version coming with camel 4.0.3 I think it is 3.1.6.



Il mar 12 dic 2023, 16:19 Ghassen Kahri <gh...@codeonce.fr> ha
scritto:

> Hi community,
> I'm trying to create a rest controller for my camel project, for this i'm
> using jetty component (same version as camel -> 4.0.3).
> I'm facing an understandable problem while starting the project :
>
> java.lang.IllegalAccessError: class
> org.apache.camel.component.jetty.JettyHttpComponent tried to access
> protected method 'void
> org.eclipse.jetty.server.Handler$AbstractContainer.<init>()'
> (org.apache.camel.component.jetty.JettyHttpComponent and
> org.eclipse.jetty.server.Handler$AbstractContainer are in unnamed module of
> loader 'app')
>
> *my environment :*
> Camel version: 4.0.3
> Spring Boot version: 3.2.0
> JDK: open JDK 17
> Platform: ubuntu 20.04.6 LTS
> IDE: IntelliJ IDEA 2023.1.3 (Ultimate Edition)
>