[
https://jira.jboss.org/jira/browse/JBWS-2687?page=com.atlassian.jira.plug...
]
Richard Opalka commented on JBWS-2687:
--------------------------------------
AFAICS it comes from Sun's WSImport we're using.
This tool has precondition there's $SUN_JAVA_HOME/lib/tools.jar on the classpath.
Unfortunately this jar is not available in Open JDK (although this JDK was created from
Sun's JDK).
I'd at least review the source code of this WSImport tool whether it is possible to
pass JAVAC compiler
using some option/property. If it would be possible to propagate the compiler to the
WSImport
then we're done. If it's not possible to propagate javac compiler to wsimport,
then we should investigate
another way how we could compile the artifacts generated from WSImport.
The dependency is only about javac compiler. Maybe we could use Java's exec approach?
JBossWS commandline tools requires Sun JDK to work. This dependency
must be removed
-----------------------------------------------------------------------------------
Key: JBWS-2687
URL:
https://jira.jboss.org/jira/browse/JBWS-2687
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.1.2
Reporter: Richard Opalka
Assignee: Alessio Soldano
Priority: Critical
Fix For: jbossws-native-3.2.0
One of the goals for the next SOA-P CP is to see the whole platform certified with
OpenJDK 1.6
I tried to run JBossWS on OpenJDK 1.6 and found the following dependency in our code:
---
[ERROR] com.sun.tools.javac.Main is not available in the classpath, requires Suns JDK
version 5.0 or latter.
compilation failed, errors should have been reported
Failed to invoke WsImport
java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for
more information
at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:233)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:222)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:80)
---
This dependency causes our command line tools (at least wsconsume) doesn't work on
Open JDK :(
--
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