[
https://issues.jboss.org/browse/TEIIDDES-2137?page=com.atlassian.jira.plu...
]
Ted Jones resolved TEIIDDES-2137.
---------------------------------
Resolution: Done
Changed to allow generated REST war to compile and run using the new runtime client in
8.5.x.
FileUtils.java
- Added new method to find files in a directory based on starting and end values in the
file name.
RestWebArchiveBuilderImpl.java
- Added new required jars (designer.spi, runtime.client, saxon, eclipse.common)
- Added logic to copy minimum required jars when RESTEasy jars are not included in the
war
- Added Teiid version to pass to the template for determining which query parser to use.
WebArchiveBuilderConstants.java
- Added new constant for Teiid Server Version
SPI Manifest, DesignerSPIPlugin
- Added dependency to datatools plugin to allow resolution of the jar for the SPI plugin
for use in the war
webservice .classpath
- Added dependency on SPI to allow for Teiid version check.
TeiidRSProviderPost.java
- Changed Teiid exception to be generic to remove the dependency
- Added logic to determine correct query parser based on Teiid version
rest_war_resources/.
- Removed manifest
- added Eclipse common jar and saxonhe jar
Unable to Generate REST WAR Due to Missing Teiid Class
------------------------------------------------------
Key: TEIIDDES-2137
URL:
https://issues.jboss.org/browse/TEIIDDES-2137
Project: Teiid Designer
Issue Type: Feature Request
Components: Web Services Support
Affects Versions: 8.5
Reporter: Ted Jones
Assignee: Ted Jones
Fix For: 8.5
When attempting to generate a REST war, I received the following exception:
java.lang.Exception:
/Users/tejones/apps/plugins/teiid-designer/plugins/org.teiid.designer.webservice/rest_war_build/work/1398793292649_5538618606854300057/BooksRest/WEB-INF/classes/org/teiid/rest/services/TeiidRSProviderPost.java:34:
cannot find symbol
symbol : class TransformationException
location: package org.teiid.core.types
at
org.teiid.designer.runtime.ui.wizards.webservices.util.RestWebArchiveBuilderImpl.createResourceJavaClasses(RestWebArchiveBuilderImpl.java:557)
at
org.teiid.designer.runtime.ui.wizards.webservices.util.RestWebArchiveBuilderImpl.createWebArchive(RestWebArchiveBuilderImpl.java:222)
at
org.teiid.designer.runtime.ui.wizards.webservices.RestWarDeploymentInfoDialog.execute(RestWarDeploymentInfoDialog.java:210)
at
org.teiid.designer.runtime.ui.wizards.webservices.RestWarDeploymentInfoDialog$1.run(RestWarDeploymentInfoDialog.java:165)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)