Antwort: Re: Incorrect assembly created with Maven 3.0.3

2011-09-20 Thread Thorsten Heit
Hi,

 Thorsten Heit wrote:
  
  ...snip ...
  
  But what puzzles me is that the archives created by Maven 2.2.1 and 
Maven
  3.0.3 are different, and I don't see a reason why...
  
  ...snip...
  
 
 Hi there,
 
 Did you ever get anywhere with this? I'm seeing the same problem: Maven
 3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.
 
 Though I am not positive, I believe this is the cause of an exception I 
see
 at runtime, the stack trace of which starts like this:
 
 java.lang.IllegalAccessError:
 org/apache/xml/serializer/ExtendedContentHandler
at
 org.apache.xalan.transformer.TransformerImpl.createSerializationHandler
 (TransformerImpl.java:1233)
 ...

I get a ClassNotFoundException at runtime. I don't know exactly which 
class, but it was one from the serializer jar...

Unfortunately the only solution I have so far is to directly add a 
dependency to the serializer jar in the pom although no class in the 
project uses it - it is used transitively by xerces or xalan I guess...


Regards

Thorsten

Re: Re: Incorrect assembly created with Maven 3.0.3

2011-09-20 Thread Thorsten Heit
Hi,

 Just a wild guess, do you have a dependencyManagament handling these
 artifacts where the scope is defined? I've seen different behavior
 between Maven 2.x and 3.0.x due to this (MJBOSSPACK-40 [1]).

No, I haven't used dependency management. I simply referenced xerces 
and/or xalan (don't remember it exactly because I changed the project in 
the meantime...)


Regards

Thorsten

Re: Incorrect assembly created with Maven 3.0.3

2011-09-17 Thread Anders Hammar
Just a wild guess, do you have a dependencyManagament handling these
artifacts where the scope is defined? I've seen different behavior
between Maven 2.x and 3.0.x due to this (MJBOSSPACK-40 [1]).

/Anders

[1] http://jira.codehaus.org/browse/MJBOSSPACK-40

On Fri, Sep 16, 2011 at 22:43, WhiteMarlin wes_mun...@cytoanalytics.com wrote:

 Thorsten Heit wrote:

 ...snip ...

 But what puzzles me is that the archives created by Maven 2.2.1 and Maven
 3.0.3 are different, and I don't see a reason why...

 ...snip...


 Hi there,

 Did you ever get anywhere with this? I'm seeing the same problem: Maven
 3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.

 Though I am not positive, I believe this is the cause of an exception I see
 at runtime, the stack trace of which starts like this:

 java.lang.IllegalAccessError:
 org/apache/xml/serializer/ExtendedContentHandler
        at
 org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1233)
        ...

 Thanks!


 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Incorrect-assembly-created-with-Maven-3-0-3-tp4393328p4811951.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Incorrect assembly created with Maven 3.0.3

2011-09-16 Thread WhiteMarlin

Thorsten Heit wrote:
 
 ...snip ...
 
 But what puzzles me is that the archives created by Maven 2.2.1 and Maven
 3.0.3 are different, and I don't see a reason why...
 
 ...snip...
 

Hi there,

Did you ever get anywhere with this? I'm seeing the same problem: Maven
3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.

Though I am not positive, I believe this is the cause of an exception I see
at runtime, the stack trace of which starts like this:

java.lang.IllegalAccessError:
org/apache/xml/serializer/ExtendedContentHandler
at
org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1233)
...

Thanks!


--
View this message in context: 
http://maven.40175.n5.nabble.com/Incorrect-assembly-created-with-Maven-3-0-3-tp4393328p4811951.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Incorrect assembly created with Maven 3.0.3

2011-05-14 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 finally got ClassNotFoundException because of a missing dependency Jar in
 the lib folder; more precisely xalan:serializer:2.7.1
 
 PS: I tested it with Maven 3.0.3 using Java 1.6.0_24, first on Solaris 11
 Express and then on Mac OS X 10.6.7.
 
 Xalan and Xerces are special since they have been absorbed into the
 JVM as of 1.4. In 1.5 they were basically shaded so now they are under
 com.sun.* instead of directly under org.apache.* which was causing
 problems.

Xalan and Xerces are actually included because the versions in 1.4 / 1.5 are 
older than those available at apache.org. As far as I know they are needed by 
some legacy code for (de-)serialization of objects.

I don't know if it is feasible to replace that code in short or mid term to 
make (better) usage of the capabilities provided directly by Java 6.


 What class specifically is giving you the CNFE?

I'm at home so I can't tell what class was causing this error. I'll see Monday 
when I'm at work, but I guess it was something like 
org/apache/xml/serializer/Serializer


 Are you building and
 then running your code with the same version etc of the JVM?

Yes.
But what puzzles me is that the archives created by Maven 2.2.1 and Maven 3.0.3 
are different, and I don't see a reason why...


 This may
 be a situation where a jdk-specific profile is kicking in and
 including (or not) a dependency during your build... or something else
 of course.

I don't use any profile, and the in-house dependencies I'm using also don't 
make usage of profiles.


Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)

iQIcBAEBAgAGBQJNzlPbAAoJEFpUu7h4Il4IQ+cP/0Hg0YYDc4Uu3eVTGMqPYWd9
GeKmiUNw/mZHcR56aAUG1xgCjxfvtX1Ub3SGGNn8TKF4fNMboQv+YE41Ze8ALVC7
uX1TBu8LeWO3gq3qP7McsTxZ/+aVjYqv3RigEWEs/gOv9Z+oei3hYl8/c+9sr/sq
c1TU+A6dZqjsBeEnp0/lNoGvPV6fe/Dg+GuO9XVBZsPf7f8trL16vUPmAuyFaEoy
awN0+ZneWbMi3Ye/bTw6cCqePXIJW9UasP4uN/+QuEHokNbLixyXjd5AQ9dQhOKm
Ov3Nf2xaFa99XGi8lIqiX0ds548hC/Ub8B04/5yyv2bKcyxKcuoIa9oxYb1LlyBB
PV8VOQuVhz++mjdYVe7g70NklXI4uLo7kCxnOsfd8XgFnoxUjjj646AKpbiOwzHH
ACn1DVN2ijBDfmGmfracJo7nwkdbuEKGNIqivTg87S3EzZNATErTbSlBM4Y1Fj7+
tJb0J7SUcQBxWt4jiJBqOva0/S7l+tveQGezpIrdsv4/OglTy3vLvGNL9+J+GQlm
nlBRxsFcCVJkmhViBhNjuFAx1M6+g7pEjjxETl7OaZKtWJ0lDcoxUxQ/POfC5RKS
grhykOtrW1xU4qAJCzI4OJ72Qv9z9p/ORwGy5DAFaGAvTUK8ClzzZJRwznkilcBo
kV7bX6nN+bDhTzp//8P9
=Yfmg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Incorrect assembly created with Maven 3.0.3

2011-05-13 Thread Wayne Fay
 finally got ClassNotFoundException because of a missing dependency Jar in
 the lib folder; more precisely xalan:serializer:2.7.1

 PS: I tested it with Maven 3.0.3 using Java 1.6.0_24, first on Solaris 11
 Express and then on Mac OS X 10.6.7.

Xalan and Xerces are special since they have been absorbed into the
JVM as of 1.4. In 1.5 they were basically shaded so now they are under
com.sun.* instead of directly under org.apache.* which was causing
problems.

What class specifically is giving you the CNFE? Are you building and
then running your code with the same version etc of the JVM? This may
be a situation where a jdk-specific profile is kicking in and
including (or not) a dependency during your build... or something else
of course.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org