You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2006/01/10 07:05:09 UTC

Re: Maven JaxMe plugin compiled with 1.5?

Robert,

thanks for the reports, and sorry for the errors on my side.

First of all, of course I didn't want to enforce use of 1.5. It is 
simply my fault, that I didn't configure the compiler properly. I'll 
recompile the plugin and put another version on the Ibiblio server. 
Unfortunately, that will take some days, because only the initial work 
can be done by me.

Second, about the configuration problems: Could you please be so kind to 
use Maven's -X flag (debugging mode) and send the output of what you 
think to be wrong to the JaxMe mailing list (jaxme-dev@ws.apache.org). 
Note, that you must be subscribed for posting.

Jochen


Robert Eric Reeves wrote:
> Jochen,
> 
> I just added the maven-jaxme-plugin to my pom.xml and got an error that makes me think you compiled it with a 1.5 JDK.
> 
> org/apache/ws/jaxme/maven/plugins/JaxMeGoal (Unsupported major.minor version 49.0)
> 
> I was using 1.4.2_09 JDK. When I bumped it to a 1.5, it started to work.
> 
> Did you mean to enforce 1.5 usage?
> 
> Also, my properties aren't being picked up by the plugin. I add the following to my plugin node, but it still looks in src/jaxme for the xsd file:
> 
>  <configuration>
>     <schema>src/xsd/*.xsd</schema>
>  </configuration>
> 
> Also, when I add <packageName>com.foo.bar</packageName>, it complains that the package name isn't set.
> 
> Thanks a ton!
> 
> Robert
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: Maven JaxMe plugin compiled with 1.5?

Posted by Jochen Wiedmann <jo...@gmail.com>.
Hi, Robert,

I have just uploaded new distribution files to the Apache server. 
Hopefully, they'll make it to ibiblio in a couple of days. 
(Unfortunately, there is still no automatic synchronization.)

Robert Eric Reeves wrote:

>           <schema>src/xsd/*.xsd</schema>

This one's wrong, IMO. See the example on

     http://ws.apache.org/jaxme/mp/properties.html

I believe you need to use a <value> element within <schema>. That leaves 
your report with the package name. In your posted POM you didn't use that?


Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: Maven JaxMe plugin compiled with 1.5?

Posted by Robert Eric Reeves <ro...@phurnace.com>.
Thanks! Once it's updated, how do I get the new one?

The output with -X. My pom.xml build node looks like this:

<build>
    <plugins>
      <plugin>
        <groupId>org.apache.ws.jaxme</groupId>
        <artifactId>maven-jaxme-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>jaxme</goal>
            </goals>
          </execution>
        </executions>
 	<configuration>
          <schema>src/xsd/*.xsd</schema>
        </configuration>
      </plugin>
    </plugins>
  </build>



+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\Robert Eric Reeves\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\dev\MAVEN-~1.1\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [clean, compile]
[INFO] ----------------------------------------------------------------------------
[DEBUG] maven-clean-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-clean-plugin:maven-plugin:2.0
[DEBUG] maven-jaxme-plugin: resolved to version 1.0.1 from repository central
[DEBUG] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.0:clean' -->
[DEBUG]   (f) directory = C:\dev\j2install-maven\j2install\target
[DEBUG]   (f) outputDirectory = C:\dev\j2install-maven\j2install\target\classes
[DEBUG]   (f) testOutputDirectory = C:\dev\j2install-maven\j2install\target\test-classes
[DEBUG] -- end configuration --
[INFO] [clean:clean]
[INFO] Deleting directory C:\dev\j2install-maven\j2install\target
[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-resources-plugin:maven-plugin:2.1
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] com.phurnace.j2install:j2install:jar:1.0-SNAPSHOT (selected for null)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG] org.apache.ws.jaxme:maven-jaxme-plugin:maven-plugin:1.0.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-utils:jar:1.0.3
[DEBUG]   plexus:plexus-utils:jar:1.0.3 (selected for runtime)
[DEBUG]   org.apache.ws.jaxme:jaxme2:jar:0.5.1 (selected for runtime)
[DEBUG]     org.apache.ws.jaxme:jaxmeapi:jar:0.5.1 (selected for runtime)
[DEBUG]     org.apache.ws.jaxme:jaxmejs:jar:0.5.1 (selected for runtime)
[DEBUG]     org.apache.ws.jaxme:jaxmexs:jar:0.5.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0
[DEBUG]     org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0
[DEBUG]     org.apache.maven:maven-profile:jar:2.0 (selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG] Configuring mojo 'org.apache.ws.jaxme:maven-jaxme-plugin:1.0.1:jaxme' -->
[DEBUG]   (f) classpathElements = [C:\dev\j2install-maven\j2install\target\classes]
[DEBUG]   (f) extension = false
[DEBUG]   (f) force = false
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@9dc56542
[DEBUG]   (f) readOnly = false
[DEBUG]   (f) removingOldOutput = false
[DEBUG]   (f) resourceTarget = C:\dev\j2install-maven\j2install\target/jaxme/resources
[DEBUG]   (f) srcTarget = C:\dev\j2install-maven\j2install\target/jaxme/java
[DEBUG]   (f) validating = false
[DEBUG] -- end configuration --
[INFO] [jaxme:jaxme {execution: default}]
[DEBUG] Using classpath file:/C:/dev/j2install-maven/j2install/target/classes
[DEBUG] No produced files found, disabling uptodate check.
[DEBUG] Schema reader class: org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader
[DEBUG] org.apache.ws.jaxme.generator.impl.GeneratorImpl.generate(File): ->, C:\dev\j2install-maven\j2install\src\jaxme\j2install.xsd
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.parse: ->, file:/C:/dev/j2install-maven/j2install/src/jaxme/j2install.xsd
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.getSGFactory: ->
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.getSGFactory: Created instance of org.apache.ws.jaxme.generator.sg.impl.JAXBSGFactory
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.getSGFactory: <-, org.apache.ws.jaxme.generator.sg.impl.SGFactoryImpl@7c4c51
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.parse: Parser = org.apache.ws.jaxme.xs.jaxb.impl.JAXBParser@172e449, validating = false
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.parse: Schema = org.apache.ws.jaxme.xs.jaxb.impl.JAXBSchemaImpl@50988
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.init: ->
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.init: Childorg.apache.ws.jaxme.xs.impl.XSAnnotationImpl@453807
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.init: Childorg.apache.ws.jaxme.xs.impl.XSAnnotationImpl@618d26
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.init: Childorg.apache.ws.jaxme.xs.jaxb.impl.JAXBElementImpl@79e304
[DEBUG] org.apache.ws.jaxme.generator.sg.impl.JAXBObjectSG.<init>(XSObject,Context): ->, J2InstallPayloadConfig, null
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] At file:/C:/dev/j2install-maven/j2install/src/jaxme/j2install.xsd, line 20, column 39: Unable to derive package name from an empty namespace URI. Use the schemaBindings to specify a package name.

[INFO] ----------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: At file:/C:/dev/j2install-maven/j2install/src/jaxme/j2install.xsd, line 20, column 39: Unable to derive package name from an empty namespace URI. Use the schemaBindings to specify a package name.
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: At file:/C:/dev/j2install-maven/j2install/src/jaxme/j2install.xsd, line 20, column 39: Unable to derive package name from an empty namespace URI. Use the schemaBindings to specify a package name.
	at org.apache.ws.jaxme.maven.plugins.JaxMeGoal.execute(JaxMeGoal.java:538)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
	... 16 more
Caused by: org.apache.ws.jaxme.xs.parser.impl.LocSAXException: At file:/C:/dev/j2install-maven/j2install/src/jaxme/j2install.xsd, line 20, column 39: Unable to derive package name from an empty namespace URI. Use the schemaBindings to specify a package name.
	at org.apache.ws.jaxme.generator.sg.impl.AbstractContext.getPackageNameFromURI(AbstractContext.java:129)
	at org.apache.ws.jaxme.generator.sg.impl.AbstractContext.getPackageName(AbstractContext.java:85)
	at org.apache.ws.jaxme.generator.sg.impl.GlobalContext.<init>(GlobalContext.java:68)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBObjectSG.<init>(JAXBObjectSG.java:105)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBObjectSG.<init>(JAXBObjectSG.java:70)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBSGFactory.newObjectSG(JAXBSGFactory.java:127)
	at org.apache.ws.jaxme.generator.sg.impl.SGFactoryImpl.newObjectSG(SGFactoryImpl.java:65)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBSGFactory.getObjectSG(JAXBSGFactory.java:133)
	at org.apache.ws.jaxme.generator.sg.impl.SGFactoryImpl.getObjectSG(SGFactoryImpl.java:69)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.getElement(JAXBSchemaSG.java:196)
	at org.apache.ws.jaxme.generator.sg.impl.SchemaSGImpl.getElement(SchemaSGImpl.java:51)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaSG.init(JAXBSchemaSG.java:131)
	at org.apache.ws.jaxme.generator.sg.impl.SchemaSGImpl.init(SchemaSGImpl.java:127)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBSGFactory.getSchemaSG(JAXBSGFactory.java:174)
	at org.apache.ws.jaxme.generator.sg.impl.SGFactoryImpl.getSchemaSG(SGFactoryImpl.java:57)
	at org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader.parse(JAXBSchemaReader.java:137)
	at org.apache.ws.jaxme.generator.impl.GeneratorImpl.generate(GeneratorImpl.java:147)
	at org.apache.ws.jaxme.generator.impl.GeneratorImpl.generate(GeneratorImpl.java:180)
	at org.apache.ws.jaxme.maven.plugins.JaxMeGoal.execute(JaxMeGoal.java:536)
	... 18 more
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jan 10 08:04:41 CST 2006
[INFO] Final Memory: 3M/6M
[INFO] ----------------------------------------------------------------------------


On Tue, Jan 10, 2006 at 07:05:09AM +0100, Jochen Wiedmann wrote:
> 
> Robert,
> 
> thanks for the reports, and sorry for the errors on my side.
> 
> First of all, of course I didn't want to enforce use of 1.5. It is 
> simply my fault, that I didn't configure the compiler properly. I'll 
> recompile the plugin and put another version on the Ibiblio server. 
> Unfortunately, that will take some days, because only the initial work 
> can be done by me.
> 
> Second, about the configuration problems: Could you please be so kind to 
> use Maven's -X flag (debugging mode) and send the output of what you 
> think to be wrong to the JaxMe mailing list (jaxme-dev@ws.apache.org). 
> Note, that you must be subscribed for posting.
> 
> Jochen
> 
> 
> Robert Eric Reeves wrote:
> >Jochen,
> >
> >I just added the maven-jaxme-plugin to my pom.xml and got an error that 
> >makes me think you compiled it with a 1.5 JDK.
> >
> >org/apache/ws/jaxme/maven/plugins/JaxMeGoal (Unsupported major.minor 
> >version 49.0)
> >
> >I was using 1.4.2_09 JDK. When I bumped it to a 1.5, it started to work.
> >
> >Did you mean to enforce 1.5 usage?
> >
> >Also, my properties aren't being picked up by the plugin. I add the 
> >following to my plugin node, but it still looks in src/jaxme for the xsd 
> >file:
> >
> > <configuration>
> >    <schema>src/xsd/*.xsd</schema>
> > </configuration>
> >
> >Also, when I add <packageName>com.foo.bar</packageName>, it complains that 
> >the package name isn't set.
> >
> >Thanks a ton!
> >
> >Robert
> >
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org