[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-devs
Subject:    [jibx-devs] [jira] Commented: (JIBX-454) ClassNotFoundException:
From:       "Klaus Claszen (JIRA)" <jira () codehaus ! org>
Date:       2011-09-26 7:44:17
Message-ID: 1084976017.7203.1317023057174.JavaMail.j2ee-jira () codehaus01-new ! managed ! contegix ! com
[Download RAW message or body]


    [ https://jira.codehaus.org/browse/JIBX-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279887#comment-279887 \
] 

Klaus Claszen commented on JIBX-454:
------------------------------------

Hi Don,

here is my Nexus configuration (replaced servernames/login information). Thanks for \
you efforts!

Regards
  Klaus

{code}
<?xml version="1.0" encoding="utf-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 \
http://maven.apache.org/xsd/settings-1.0.0.xsd">  <pluginGroups>
  </pluginGroups>
  <proxies>
    <proxy>
      <active>false</active>
      <protocol>http</protocol>
      <host>www-proxy</host>
      <port>8000</port>
      <nonProxyHosts>localhost|*.foo.bar</nonProxyHosts>
    </proxy>
  </proxies>
  <servers>
    <server>
      <id>nexus</id>
      <username>foo</username>
      <password>bar</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://lorem.ipsum:8080/nexus/content/groups/public</url>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <id>nexus</id>
      <repositories>
        <repository>
          <id>nexus</id>  
          <url>http://central</url>
         <releases>
            <enabled>true</enabled>
             <updatePolicy>daily</updatePolicy>
         </releases>
          <snapshots>
            <enabled>true</enabled>
             <updatePolicy>always</updatePolicy>
         </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
		  <id>nexus</id>
          <url>http://central</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
		</pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
</settings>
{code}

> ClassNotFoundException: org.eclipse.core.runtime.jobs.ISchedulingRule when running \
>                 jibx-maven-plugin:1.2.3 (schema-codegen) with customizations
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> Key: JIBX-454
> URL: https://jira.codehaus.org/browse/JIBX-454
> Project: JiBX
> Issue Type: Bug
> Components: maven plugin
> Affects Versions: JiBX 1.2.3
> Reporter: Klaus Claszen
> Assignee: Don Corley
> Priority: Minor
> Attachments: jibx-customization-test.zip
> 
> 
> We are building sources from a wsdl file using the jibx-maven-plugin:1.2.3.
> The generated classes should implement Serializable, thus we added a customization \
> to the plugin configuration. {code}
> <plugin>
> 	<groupId>org.jibx</groupId>
> 	<artifactId>jibx-maven-plugin</artifactId>
> 	<version>1.2.3</version>
> 	<executions>
> 		<execution>
> 			<id>generate-java-code-from-schema</id>
> 			<phase>generate-sources</phase>
> 			<goals>
> 				<goal>schema-codegen</goal>
> 			</goals>
> 			<configuration>
> 				<schemaLocation>src/main/resources/wsdl</schemaLocation>
> 				<customizations>
> 					<customization>src/main/config/custom-jibx-codegen.xml</customization>
> 				</customizations>
> 				<verbose>true</verbose>
> 				<targetDirectory>target/generated-jibx-sources</targetDirectory>
> 			</configuration>
> 		</execution>
> 		<execution>
> 			<id>compile-binding</id>
> 			<phase>process-classes</phase>
> 			<goals>
> 				<goal>bind</goal>
> 			</goals>
> 			<configuration>
> 				<schemaBindingDirectory>target/generated-jibx-sources</schemaBindingDirectory>
> 				<load>true</load>
> 				<validate>true</validate>
> 				<verify>true</verify>
> 			</configuration>
> 		</execution>
> 	</executions>
> </plugin>
> {code}
> Running this plugin (with -X flag) results in the following error
> {code}
> Caused by: java.lang.ClassNotFoundException: \
> org.eclipse.core.runtime.jobs.ISchedulingRule at \
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>  at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> ... 68 more
> {code}
> We found that - as a workaround - adding the following dependencies to the plugin \
> section resolves the missing class. {code}
> <dependency>
> 	<groupId>org.eclipse.core</groupId>
> 	<artifactId>contenttype</artifactId>
> 	<version>[3.0.0,)</version>
> </dependency>
> <dependency>
> 	<groupId>org.eclipse.core</groupId>
> 	<artifactId>jobs</artifactId>
> 	<version>[3.0.0,)</version>
> </dependency>
> <dependency>
> 	<groupId>org.eclipse.equinox</groupId>
> 	<artifactId>preferences</artifactId>
> 	<version>[3.0.0,)</version>
> </dependency>
> <dependency>
> 	<groupId>org.apache.felix</groupId>
> 	<artifactId>org.osgi.compendium</artifactId>
> 	<version>[1.0.0,)</version>
> </dependency>
> {code}
> We first added 
> {code}
> <dependency>
> <groupId>org.jibx</groupId>
> <artifactId>jibx-run</artifactId>
> <version>1.2.3</version>
> </dependency>
> <dependency>
> <groupId>org.jibx</groupId>
> <artifactId>jibx-extras</artifactId>
> <version>1.2.3</version>
> </dependency>
> {code}
> to our project dependencies but that did not solve the problem.
> The behaviour can be reproduced with the attached test project.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic