You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pazmiño, Iván Andrés <ia...@sri.ad> on 2010/12/28 14:30:12 UTC

JSF Web project + xdoclet

Hello,

I'm trying to prepare a JSF project. To do so I've set the packaging to
war. This is an existing project, but the former project used xdoclet to
produce the faces configuration and the web.xml descriptor.

So far I have added to the xdoclet plugin configuration the subtasks
related to generate these files and saving the compilation and packaging
tasks for the maven lifecycle plugins.

My plan is to override the directory where the war plugin looks for
these files so after files generation has taken place in the resources
phase, the xdoclet subtask will release control to the regular war maven
lifecycle plugins. But this isn't working and is turning unnecessary
difficult, so I believe somebody has solved this problem in a simpler
way.

Any guides are welcome.
Thanks,
IP

"Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida 
exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se 
responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la 
información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de 
Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si 
usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia 
del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La 
transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error, 
por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al 
SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a 
la Ley y demás normas vigentes."

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


Re: JSF Web project + xdoclet

Posted by Pazmiño, Iván Andrés <ia...@sri.ad>.
Thanks, indeed the solution was similar to as if it was a ClassNotFound
exception.

-----Original Message-----
From: Wayne Fay <wa...@gmail.com>
Reply-to: "Maven Users List" <us...@maven.apache.org>
To: Maven Users List <us...@maven.apache.org>
Subject: Re: JSF Web project + xdoclet
Date: Tue, 28 Dec 2010 15:59:43 -0600

> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> An exception has occurred in the compiler (1.6.0_22). Please file a bug
> at the Java Developer Connection (http://java.sun.com/webapps/bugreport)
> after checking the Bug Parade for duplicates. Include your program and
> the following diagnostic in your report.  Thank you.
> com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
> javax.persistence.TemporalType not found

Probably you are using some JPA classes in your project but do not
have the <dependency> set properly in your pom.

Otherwise, this is just a Sun/Oracle Javac bug that your code has
triggered, and nothing to do with Maven. I've seen people post issues
like this a couple times a year on this list -- in fact someone posted
a very similar issue just a week or two ago that concerned JPA
classes.

You can get more information out of Javac by compiling the code
directly (not via Maven, but via javac on the command line), setting
the classpath with -cp, and use -verbose so you get all the available
information out of the compiler.

Wayne

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


"Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida 
exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se 
responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la 
información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de 
Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si 
usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia 
del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La 
transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error, 
por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al 
SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a 
la Ley y demás normas vigentes."

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


Re: JSF Web project + xdoclet

Posted by Wayne Fay <wa...@gmail.com>.
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> An exception has occurred in the compiler (1.6.0_22). Please file a bug
> at the Java Developer Connection (http://java.sun.com/webapps/bugreport)
> after checking the Bug Parade for duplicates. Include your program and
> the following diagnostic in your report.  Thank you.
> com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
> javax.persistence.TemporalType not found

Probably you are using some JPA classes in your project but do not
have the <dependency> set properly in your pom.

Otherwise, this is just a Sun/Oracle Javac bug that your code has
triggered, and nothing to do with Maven. I've seen people post issues
like this a couple times a year on this list -- in fact someone posted
a very similar issue just a week or two ago that concerned JPA
classes.

You can get more information out of Javac by compiling the code
directly (not via Maven, but via javac on the command line), setting
the classpath with -cp, and use -verbose so you get all the available
information out of the compiler.

Wayne

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


Re: JSF Web project + xdoclet

Posted by Pazmiño, Iván Andrés <ia...@sri.ad>.
So far I'm generating all config files and descriptors with a webdoclet
and facesconfigxml tasks, but got a really a bigger problem while
compiling:

[INFO] Compilation failure
Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.6.0_22). Please file a bug
at the Java Developer Connection (http://java.sun.com/webapps/bugreport)
after checking the Bug Parade for duplicates. Include your program and
the following diagnostic in your report.  Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
javax.persistence.TemporalType not found


-----Original Message-----
From: Pazmiño Mazón, Iván Andrés <ia...@sri.ad>
Reply-to: iapazmino@sri.gob.ec
To: users@maven.apache.org
Subject: JSF Web project + xdoclet
Date: Tue, 28 Dec 2010 08:30:12 -0500

Hello,

I'm trying to prepare a JSF project. To do so I've set the packaging to
war. This is an existing project, but the former project used xdoclet to
produce the faces configuration and the web.xml descriptor.

So far I have added to the xdoclet plugin configuration the subtasks
related to generate these files and saving the compilation and packaging
tasks for the maven lifecycle plugins.

My plan is to override the directory where the war plugin looks for
these files so after files generation has taken place in the resources
phase, the xdoclet subtask will release control to the regular war maven
lifecycle plugins. But this isn't working and is turning unnecessary
difficult, so I believe somebody has solved this problem in a simpler
way.

Any guides are welcome.
Thanks,
IP

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


"Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida 
exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se 
responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la 
información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de 
Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si 
usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia 
del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La 
transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error, 
por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al 
SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a 
la Ley y demás normas vigentes."

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