AW: maven jax-ws and jdk7. help please
I fully support that! I had a nightmare with Axis2-1.6.2 and JDK1.6.0_30 when it comes to use jax-ws and jaxb with "ALLOWED ANNOTATIONS"; Axis-1.6.2 has a jax-ws interface which knows about 4 args to some annotations, so the compiler had absolute no problem. But then JDK 1.6.0_30 RT.jar has only an implementation for 3 args to be set on a annotation class, hence calling through the interface the 4 arg to be set, returnd a class not found exception. The cure was to endorse from JDK 1.7 into JDK1.6.0_30/jre/lib/endorsed the proper jar files; This works now for us very well for Vista and OpenVMS Josef -Ursprüngliche Nachricht- Von: Jörg Schaible [mailto:joerg.schai...@scalaris.com] Gesendet: Montag, 28. Januar 2013 10:37 An: users@maven.apache.org Betreff: Re: maven jax-ws and jdk7. help please laudio.info wrote: > Thanks > > I have seen that, using the same java code and the same configuration, > the problem appears if i use the jdk7. Using the jdk there is not > problem The jaxws plugin does not respect the compiler settings for source/target. On top of it, the exception has additional info since JDK 7, so any code that uses reflection to map an exception class to something else, will be affected by the different Java runtime. AFAICS JAXB is such a tool. Nothing of this has to do with Maven directly though. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven jax-ws and jdk7. help please
laudio.info wrote: > Thanks > > I have seen that, using the same java code and the same configuration, the > problem appears if i use the jdk7. Using the jdk there is not problem The jaxws plugin does not respect the compiler settings for source/target. On top of it, the exception has additional info since JDK 7, so any code that uses reflection to map an exception class to something else, will be affected by the different Java runtime. AFAICS JAXB is such a tool. Nothing of this has to do with Maven directly though. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven jax-ws and jdk7. help please
Most likely due to different version of some framework (jaxb?) being used. /Anders On Mon, Jan 28, 2013 at 8:58 AM, laudio.info wrote: > Thanks > > I have seen that, using the same java code and the same configuration, the > problem appears if i use the jdk7. Using the jdk there is not problem > > > 2013/1/27 Wayne Fay > > > > Caused by: java.security.PrivilegedActionException: > > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of > > > IllegalAnnotationExceptions > > > java.lang.StackTraceElement does not have a no-arg default constructor. > > > > This seems to be the root cause of your problem. I would start > > removing your Webservices one by one until you figure out which one is > > causing this error to be thrown. Then compare it to the others you are > > building with no issues. > > > > Also I'd take this question to a Java Webservices forum or mailing > > list, as this really has nothing to do with Maven. > > > > Wayne > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > >
Re: maven jax-ws and jdk7. help please
Thanks I have seen that, using the same java code and the same configuration, the problem appears if i use the jdk7. Using the jdk there is not problem 2013/1/27 Wayne Fay > > Caused by: java.security.PrivilegedActionException: > > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of > > IllegalAnnotationExceptions > > java.lang.StackTraceElement does not have a no-arg default constructor. > > This seems to be the root cause of your problem. I would start > removing your Webservices one by one until you figure out which one is > causing this error to be thrown. Then compare it to the others you are > building with no issues. > > Also I'd take this question to a Java Webservices forum or mailing > list, as this really has nothing to do with Maven. > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: maven jax-ws and jdk7. help please
> Caused by: java.security.PrivilegedActionException: > com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of > IllegalAnnotationExceptions > java.lang.StackTraceElement does not have a no-arg default constructor. This seems to be the root cause of your problem. I would start removing your Webservices one by one until you figure out which one is causing this error to be thrown. Then compare it to the others you are building with no issues. Also I'd take this question to a Java Webservices forum or mailing list, as this really has nothing to do with Maven. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org