-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enunciate 2.13.2 issue with java 8 #1084
Comments
What's the source code on which the compile is failing? |
Which version do you recomned for java 8 |
The latest version ( |
i have modified the xml as below and see below error
java.lang.RuntimeException: com.webcohesion.enunciate.EnunciateException: freemarker.core._TemplateModelException: An error has occurred when reading existing sub-variable "resourceGroups"; see cause exception! The type of the containing value was: extended_hash+string (com.webcohesion.enunciate.modules.jaxrs.api.impl.JaxrsResourceApi wrapped into f.e.b.StringModel) |
I'm afraid I still don't have enough visibility into the issue to be helpful. I'm going to need to have some way to reproduce the problem so I can see deeper into what's going on. My best guess is that the classpath is messed up. |
i have verified and class path is actually having the Enunciate jars . i see this Enabled modules: [docs, gwt-json-overlay, idl, jackson1, java-json-client, java-xml-client, javascript-client, jaxrs, spring-web, swagger] Can you please clarify me
|
|
earlier i was using 1.26.2 with java 7 and i defined the task as <taskdef name="enunciate" classname="org.codehaus.enunciate.main.EnunciateTask"> Now i am using 2.13.2 with java 8 and i defined the task as <taskdef name="enunciate" classname="com.webcohesion.enunciate.EnunciateTask"> any issue |
please confirm if it is fine i will try with 2.13.3. |
That's the correct Ant task. |
i tried with 2.13.3 and getting below error java.lang.RuntimeException: com.webcohesion.enunciate.EnunciateException: Compile failed of Java client-side classes. |
Please include the output of the compile failure. What's the source code failing to compile? |
[ENUNCIATE] Using enunciate configuration at /home/enu1.3/core/wls/management/build/enunciate_config.xml Both Jackson 1 and Jackson 2 Enunciate modules are enabled. Some source files were not found for the Java classes that define the Web service API. |
Request you to help me with this issue. |
The compile failure seems to be caused because Enunciate is attempting to document the You can do this by looking through the output of
Exclude any classes that shouldn't be part of your API. The |
Looks like you're making progress. Now it's down to Enunciate generating bad client-side code, but I can't tell why. What does the |
It is all having @XmlAccessorType ,@xmlType,@xmlelement |
Can you share the source code for it? |
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "repo", propOrder = {
"id",
"url",
"proxy"
})
public class repo{
//some setters and getters
} |
Hmmm... still not enough for me to see what's going on. Isn't there a class named |
Yes there is a class Wsapi and wsapiImpl in which all these methods are referred @WebMethod
@WebResult(name = "job")
Job repo(@WebParam(name = "repositoryId") @XmlElement(required = true) Id<Repository> repositoryId,
@WebParam(name = "url") @XmlElement(required = true) String url,
@WebParam(name = "proxy") String proxy) throws WsException; |
Okay, I see now. Tracking the bug at #1085. Current workaround is to rename the parameter. (I.e. don't have a parameter named proxy). |
ok. Can you just brief me about the issue little and let me know when it can be fixed |
I don't have a schedule for when it will get fixed. You're welcome to watch the issue to get updates. |
I tried with the rename and it worked fine . |
You can't. It's hard-coded for now.
Yeah, because you disabled the |
no i have not disabled
|
Your previous comment had it disabled. When you run with debug output, you should see messages like "Added [classname] as a JAX-WS endpoint interface." Can you confirm? |
i am using 2.13.2 and getting below issue
It's recommended that you customize the name of one of these types using the @XmlType annotation
java.lang.RuntimeException: com.webcohesion.enunciate.EnunciateException: Compile failed of Java client-side classes.
below is my enunciate.xml
The text was updated successfully, but these errors were encountered: