You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Ashley Martens <ma...@asconline.com> on 2006/01/02 16:53:07 UTC

Unable to build nt-ns-util

When I try to build the package I get this error.

C:\apache\jackrabbit-contrib\nt-ns-util>maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Attempting to download jackrabbit-1.0-SNAPSHOT.jar.
Artifact /org.apache.jackrabbit/jars/jackrabbit-1.0-SNAPSHOT.jar doesn't exists in remote repository, but it exists locally
Attempting to download jackrabbit-commons-1.0-SNAPSHOT.jar.
Artifact /org.apache.jackrabbit/jars/jackrabbit-commons-1.0-SNAPSHOT.jar doesn't exists in remote repository, but it exists locally
build:start:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\apache\jackrabbit-contrib\nt-ns-util/target/classes
    [javac] Compiling 1 source file to C:\apache\jackrabbit-contrib\nt-ns-util\target\classes
C:\apache\jackrabbit-contrib\nt-ns-util\src\main\java\org\apache\jackrabbit\util\nodetype\SchemaConverter.java:71: cannot resolve symbol
symbol  : method loadURI (java.lang.String)
location: class org.apache.xerces.impl.xs.XMLSchemaLoader
        XSModel xsModel = loader.loadURI(uri);
                                ^
1 error

BUILD FAILED
File...... C:\Documents and Settings\ashleym\.maven\cache\maven-java-plugin-1.5\plugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 8 seconds
Finished at: Mon Jan 02 10:40:47 EST 2006 

E-Mail Confidentiality Notification

-----------------------------------

This e-mail message (and any associated files) contains information from Associated Software Consultants (ASC), Inc. and is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored.

Re: Unable to build nt-ns-util

Posted by Peeter Piegaze <pe...@day.com>.
Hi Ashley,

I was able to build it without a problem using maven-1.1-beta-2 and JDK 1.4.2.

However, it sounds to me like in your case maven has set up its
on-build classpath so that it sees the older xerces-2.4.0.jar before
the new xerxesImpl.-2.6.2.jar. Maven seems to download the old
xerces-2.4.0 into its repository for internal use, while my code uses
the newer xerxesImpl-2.6.2.jar. The old jar overlaps class-wise with
the new one, but the new one implements the additional loadURI method
(among others).

I am not sure exactly why your maven build process is looking in the
wrong jar. But that is what is doing, almost certainly.

Cheers,
Peeter


On 1/3/06, Ashley Martens <ma...@asconline.com> wrote:
> When I try to build the package I get this error.
>
> C:\apache\jackrabbit-contrib\nt-ns-util>maven
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
>
> Attempting to download jackrabbit-1.0-SNAPSHOT.jar.
> Artifact /org.apache.jackrabbit/jars/jackrabbit-1.0-SNAPSHOT.jar doesn't exists in remote repository, but it exists locally
> Attempting to download jackrabbit-commons-1.0-SNAPSHOT.jar.
> Artifact /org.apache.jackrabbit/jars/jackrabbit-commons-1.0-SNAPSHOT.jar doesn't exists in remote repository, but it exists locally
> build:start:
>
> java:prepare-filesystem:
>
> java:compile:
>     [echo] Compiling to C:\apache\jackrabbit-contrib\nt-ns-util/target/classes
>     [javac] Compiling 1 source file to C:\apache\jackrabbit-contrib\nt-ns-util\target\classes
> C:\apache\jackrabbit-contrib\nt-ns-util\src\main\java\org\apache\jackrabbit\util\nodetype\SchemaConverter.java:71: cannot resolve symbol
> symbol  : method loadURI (java.lang.String)
> location: class org.apache.xerces.impl.xs.XMLSchemaLoader
>         XSModel xsModel = loader.loadURI(uri);
>                                 ^
> 1 error
>
> BUILD FAILED
> File...... C:\Documents and Settings\ashleym\.maven\cache\maven-java-plugin-1.5\plugin.jelly
> Element... ant:javac
> Line...... 63
> Column.... 48
> Compile failed; see the compiler error output for details.
> Total time: 8 seconds
> Finished at: Mon Jan 02 10:40:47 EST 2006
>
> E-Mail Confidentiality Notification
>
> -----------------------------------
>
> This e-mail message (and any associated files) contains information from Associated Software Consultants (ASC), Inc. and is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored.
>

Re: Unable to build nt-ns-util

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 1/2/06, Ashley Martens <ma...@asconline.com> wrote:
> C:\apache\jackrabbit-contrib\nt-ns-util\src\main\java\org\apache\jackrabbit\util\nodetype\SchemaConverter.java:71: cannot resolve symbol
> symbol  : method loadURI (java.lang.String)
> location: class org.apache.xerces.impl.xs.XMLSchemaLoader
>         XSModel xsModel = loader.loadURI(uri);

I ran into the same problem after moving the node type utilities into
the Jackrabbit core. As mentioned by Peeter, this is a Maven 1.0.2
specific issue. I was however able to find and commit a workaround fix
(see JCR-334), so the compile error should now be gone. Note however
that the nt-ns-util contrib module no longer exists, as the code was
moved directly to Jackrabbit core.

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development