[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4257) cannot create top down java bean web service
Denny Xu (JIRA)
jira-events at lists.jboss.org
Mon Oct 12 06:43:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBIDE-4257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12489351#action_12489351 ]
Denny Xu commented on JBIDE-4257:
---------------------------------
"I can't see how setting the proper VM is a problem of JBossWS and not the tools ? "
The JAVA_HOME is required by jbossws commands, it calculate the "java" command location, and then execute something like "%JAVA_HOME%\bin\java -classpath .....",
generally, if the user doesn't set JAVA_HOME the command should use "java -classpath..." instead, but there are three commands don't go like that and
still execute the "java" command like "bin\java -classapath ....",
for now, tools can avoid this issue by passing the JAVA_HOME environment variable is the JAVA_HOME is not set to OS, and get the JAVA_HOME point to the location of java runtime which eclipse used.
Another issue: the wsconsume commands can not be executed completely if the user only install JRE instead of JDK or use openjdk1.6
the "wsconsume" command of JbossWS does two steps:
1. generate java files
2. compile the java files
if one of the step is failed, then the execution will return a error code, then web service creation the wizard of jbosstools check the return code to see
if the execution is fail or not, so if the step 1 is succeed and the step 2 is failed, the wizard can not go to next page.
what changes I have done is adding some additional checking like:
#
if (exitValue != 0) {
JBossWSCreationCore.getDefault().logError(
errorResult.toString());
JBossWSCreationCore.getDefault().logError(
inputResult.toString());
if (resultInput != null
&& resultInput.indexOf("compiling code...") >= 0) {//$NON-NLS-1$
return StatusUtils
.warningStatus(errorResult.toString());
}
return StatusUtils.errorStatus(errorResult.toString());
}
it checks if the output string contains "javac" string, if contains the string, means code generating is complete.
after the two changes, the jboss tools can work without setting JAVA_HOME and can work with JRE and any kind of JDK .
> cannot create top down java bean web service
> --------------------------------------------
>
> Key: JBIDE-4257
> URL: https://jira.jboss.org/jira/browse/JBIDE-4257
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Webservices
> Environment: Windows XP, Eclipse 3.4.1, JBoss 4.2.3, JBossWS 3.1.0, JDK 1.5
> Reporter: Gina Kim
> Assignee: Denny Xu
> Fix For: 3.1.0.M4
>
>
> I get this error when I try to create a top down web service using a valid wsdl:
> Error: Could not import. (use --verbose to see full traces) Error: WsImport invocation failed. Try the verbose switch for more information
> To reproduce the error, I navigated to File > New > Other > Web Service. I selected JBossWS for Web service runtime.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list