Class name which was explicitly given in configuration using 'implementation' attribute: 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded

View: New views
3 Messages — Rating Filter:   Alert me  

Class name which was explicitly given in configuration using 'implementation' attribute: 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded

by micjava :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm writing a small web service in java with Maven.
Today, suddenly is no longer 'build the project and it returns this error:


Maven encountered an error while configuring one of the mojos for your build.

Mojo:
Group-Id: org.mortbay.jetty
Artifact-Id: jetty-maven-plugin
Version: 7.0.0.pre5
Mojo: run
brought in via: Direct invocation

While building project:
Group-Id: my.id.group
Artifact-Id: test-jaxws
Version: 0.0.1-SNAPSHOT
From file: F:\xxxxx\xxxxx\xxxxx\pom.xml


Here is the configuration it attempted to apply to the mojo:<configuration>
  <classesDirectory>${project.build.outputDirectory}</classesDirectory>

  <connectors>
    <connector>
      <port>9090</port>

      <maxIdleTime>60000</maxIdleTime>
    </connector>
  </connectors>

  <contextPath>/${project.artifactId}</contextPath>

  <daemon>${jetty.daemon}</daemon>

  <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>

  <project>${executedProject}</project>

  <reload>${jetty.reload}</reload>

  <scanIntervalSeconds>10</scanIntervalSeconds>

  <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>

  <tmpDirectory>${project.build.directory}/work</tmpDirectory>

  <useTestClasspath></useTestClasspath>

  <webAppSourceDirectory>${basedir}/src/main/webapp</webAppSourceDirectory>

  <webXml>${maven.war.webxml}</webXml>
</configuration>


Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: ClassNotFoundException: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded

[INFO] ------------------------------------------------------------------------


This is my pom.xml file:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>my.id.group</groupId>
        <artifactId>test-jaxws</artifactId>
        <packaging>war</packaging>
        <version>0.0.1-SNAPSHOT</version>
        <properties>
                <cxf.version>2.1.4</cxf.version>
        </properties>
        <dependencies>
                <dependency>
                        <groupId>javax.xml.ws</groupId>
                        <artifactId>jaxws-api</artifactId>
                        <version>2.1</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-rt-ws-security</artifactId>
                        <version>${cxf.version}</version>
                </dependency>
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>servlet-api</artifactId>
                        <version>2.5</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-rt-core</artifactId>
                        <version>${cxf.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-rt-frontend-jaxws</artifactId>
                        <version>${cxf.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-rt-transports-http</artifactId>
                        <version>${cxf.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
                        <version>2.0.8</version>
                </dependency>
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.0.5</version>
                </dependency>
        </dependencies>
                <repositories>
                <repository>
                        <name>Java Net</name>
                        <id>dev-java-net</id>
                        <layout>legacy</layout>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                        <url>http://download.java.net/maven/1/</url>
                </repository>
        </repositories>
        <build>
                <plugins>
                   <plugin>
                     <groupId>org.mortbay.jetty</groupId>
                       <artifactId>jetty-maven-plugin</artifactId>
                         <configuration>
                    <connectors>
                            <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
                                <port>9090</port>
                                <maxIdleTime>60000</maxIdleTime>
                                                </connector>
                                        </connectors>
                                        <scanIntervalSeconds>10</scanIntervalSeconds>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>

Can anyone help me?
Thanks a lot.

Re: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded

by Igor Fedorenko-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you see the problem when running the build from m2e only or it is the
same both in m2e and on cli?

--
Regards,
Igor

>
> Hi,
> I'm writing a small web service in java with Maven.
> Today, suddenly is no longer 'build the project and it returns this error:
>
>
> Maven encountered an error while configuring one of the mojos for your
> build.
>
> Mojo:
> Group-Id: org.mortbay.jetty
> Artifact-Id: jetty-maven-plugin
> Version: 7.0.0.pre5
> Mojo: run
> brought in via: Direct invocation
>
> While building project:
> Group-Id: my.id.group
> Artifact-Id: test-jaxws
> Version: 0.0.1-SNAPSHOT
> From file: F:\xxxxx\xxxxx\xxxxx\pom.xml
>
>
> Here is the configuration it attempted to apply to the
> mojo:<configuration>
>   <classesDirectory>${project.build.outputDirectory}</classesDirectory>
>
>   <connectors>
>     <connector>
>       <port>9090</port>
>
>       <maxIdleTime>60000</maxIdleTime>
>     </connector>
>   </connectors>
>
>   <contextPath>/${project.artifactId}</contextPath>
>
>   <daemon>${jetty.daemon}</daemon>
>
>   <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
>
>   <project>${executedProject}</project>
>
>   <reload>${jetty.reload}</reload>
>
>   <scanIntervalSeconds>10</scanIntervalSeconds>
>
>
> <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
>
>   <tmpDirectory>${project.build.directory}/work</tmpDirectory>
>
>   <useTestClasspath></useTestClasspath>
>
>   <webAppSourceDirectory>${basedir}/src/main/webapp</webAppSourceDirectory>
>
>   <webXml>${maven.war.webxml}</webXml>
> </configuration>
>
>
> Error
> message:org.codehaus.plexus.component.configurator.ComponentConfigurationException:
> ClassNotFoundException: Class name which was explicitly given in
> configuration using 'implementation' attribute:
> 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> This is my pom file:
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>my.id.group</groupId>
> <artifactId>test-jaxws</artifactId>
> <packaging>war</packaging>
> <version>0.0.1-SNAPSHOT</version>
> <properties>
> <cxf.version>2.1.4</cxf.version>
> </properties>
> <dependencies>
> <dependency>
> <groupId>javax.xml.ws</groupId>
> <artifactId>jaxws-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-ws-security</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-core</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxws</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-transports-http</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-core</artifactId>
> <version>2.0.8</version>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.0.5</version>
> </dependency>
> </dependencies>
> <repositories>
> <repository>
> <name>Java Net</name>
> <id>dev-java-net</id>
> <layout>legacy</layout>
> <releases>
> <enabled>true</enabled>
> </releases>
> <url>http://download.java.net/maven/1/</url>
> </repository>
> </repositories>
> <build>
> <plugins>
>   <plugin>
>     <groupId>org.mortbay.jetty</groupId>
>       <artifactId>jetty-maven-plugin</artifactId>
>         <configuration>
>     <connectors>
>    <connector
> implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
> <port>9090</port>
>         <maxIdleTime>60000</maxIdleTime>
> </connector>
> </connectors>
> <scanIntervalSeconds>10</scanIntervalSeconds>
> </configuration>
> </plugin>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
> Can anyone help me?
> Thanks a lot.
> --
> View this message in context:
> http://www.nabble.com/Class-name-which-was-explicitly-given-in-configuration-using-%27implementation%27-attribute%3A-%27org.eclipse.jetty.server.nio.SelectChannelConnector%27-cannot-be-loaded-tp25946769p25946769.html
> Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded

by micjava :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
the problem is in Eclipse.
I solved by replacing these lines in pom.xml:

<plugin>
                                <groupId>org.mortbay.jetty</groupId>
                                <artifactId>jetty-maven-plugin</artifactId>
                                <configuration>
                                        <connectors>
                                                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                                                        <port>9090</port>
                                                        <maxIdleTime>60000</maxIdleTime>
                                                </connector>
                                        </connectors>
                                        <scanIntervalSeconds>10</scanIntervalSeconds>
                                </configuration>
                        </plugin>

I have changed the implementation.
       
It's strange because this implementation did not work long ago.

Thanks a lot.

Igor Fedorenko-4 wrote:
Do you see the problem when running the build from m2e only or it is the
same both in m2e and on cli?

--
Regards,
Igor

>
> Hi,
> I'm writing a small web service in java with Maven.
> Today, suddenly is no longer 'build the project and it returns this error:
>
>
> Maven encountered an error while configuring one of the mojos for your
> build.
>
> Mojo:
> Group-Id: org.mortbay.jetty
> Artifact-Id: jetty-maven-plugin
> Version: 7.0.0.pre5
> Mojo: run
> brought in via: Direct invocation
>
> While building project:
> Group-Id: my.id.group
> Artifact-Id: test-jaxws
> Version: 0.0.1-SNAPSHOT
> From file: F:\xxxxx\xxxxx\xxxxx\pom.xml
>
>
> Here is the configuration it attempted to apply to the
> mojo:<configuration>
>   <classesDirectory>${project.build.outputDirectory}</classesDirectory>
>
>   <connectors>
>     <connector>
>       <port>9090</port>
>
>       <maxIdleTime>60000</maxIdleTime>
>     </connector>
>   </connectors>
>
>   <contextPath>/${project.artifactId}</contextPath>
>
>   <daemon>${jetty.daemon}</daemon>
>
>   <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
>
>   <project>${executedProject}</project>
>
>   <reload>${jetty.reload}</reload>
>
>   <scanIntervalSeconds>10</scanIntervalSeconds>
>
>
> <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
>
>   <tmpDirectory>${project.build.directory}/work</tmpDirectory>
>
>   <useTestClasspath></useTestClasspath>
>
>   <webAppSourceDirectory>${basedir}/src/main/webapp</webAppSourceDirectory>
>
>   <webXml>${maven.war.webxml}</webXml>
> </configuration>
>
>
> Error
> message:org.codehaus.plexus.component.configurator.ComponentConfigurationException:
> ClassNotFoundException: Class name which was explicitly given in
> configuration using 'implementation' attribute:
> 'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> This is my pom file:
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>my.id.group</groupId>
> <artifactId>test-jaxws</artifactId>
> <packaging>war</packaging>
> <version>0.0.1-SNAPSHOT</version>
> <properties>
> <cxf.version>2.1.4</cxf.version>
> </properties>
> <dependencies>
> <dependency>
> <groupId>javax.xml.ws</groupId>
> <artifactId>jaxws-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-ws-security</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-core</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxws</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-transports-http</artifactId>
> <version>${cxf.version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-core</artifactId>
> <version>2.0.8</version>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.0.5</version>
> </dependency>
> </dependencies>
> <repositories>
> <repository>
> <name>Java Net</name>
> <id>dev-java-net</id>
> <layout>legacy</layout>
> <releases>
> <enabled>true</enabled>
> </releases>
> <url>http://download.java.net/maven/1/</url>
> </repository>
> </repositories>
> <build>
> <plugins>
>   <plugin>
>     <groupId>org.mortbay.jetty</groupId>
>       <artifactId>jetty-maven-plugin</artifactId>
>         <configuration>
>     <connectors>
>    <connector
> implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
> <port>9090</port>
>         <maxIdleTime>60000</maxIdleTime>
> </connector>
> </connectors>
> <scanIntervalSeconds>10</scanIntervalSeconds>
> </configuration>
> </plugin>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
> Can anyone help me?
> Thanks a lot.
> --
> View this message in context:
> http://www.nabble.com/Class-name-which-was-explicitly-given-in-configuration-using-%27implementation%27-attribute%3A-%27org.eclipse.jetty.server.nio.SelectChannelConnector%27-cannot-be-loaded-tp25946769p25946769.html
> Sent from the Maven Eclipse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email