[jbosstools-issues] [JBoss JIRA] (JBIDE-12690) No JAX-RS problems when importing a project that contains errors

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Wed Jun 26 14:08:21 EDT 2013


     [ https://issues.jboss.org/browse/JBIDE-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov reassigned JBIDE-12690:
--------------------------------------

    Assignee: Xavier Coulon  (was: Alexey Kazakov)


[~xcoulon] here is the problem:

{code}
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>webserv</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.common.project.facet.core.builder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.jboss.tools.ws.jaxrs.metamodelBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.jboss.tools.ws.jaxrs.nature</nature>
		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
	</natures>
</projectDescription>
{code}

This is a .project file from the project. org.eclipse.wst.validation.validationbuilder is declared *before* org.jboss.tools.ws.jaxrs.metamodelBuilder. So the validation builder is run before jaxrs builder.
You can use our util method WebModelPlugin.addNatureToProjectWithValidationSupport(IProject project, String builderId, String natureId) to make sure you add jaxrs builder in a proper order. 
                
> No JAX-RS problems when importing a project that contains errors
> ----------------------------------------------------------------
>
>                 Key: JBIDE-12690
>                 URL: https://issues.jboss.org/browse/JBIDE-12690
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 4.0.0.Alpha1
>            Reporter: Jaroslav Jankovič
>            Assignee: Xavier Coulon
>             Fix For: 4.1.x
>
>         Attachments: JBIDE-12690.ogv
>
>
> Supposing you have created project with JAX-RS support and validation error in it (e.g. HTTPMethod annotation without Target or Retention). If you open a fresh workspace, import the project and build the project, there is no errors found. It is a bug.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list