You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2021/05/15 15:37:00 UTC

[jira] [Commented] (AXIS2-6000) JDK11 issue with wsdl2java.sh : Error: -classpath requires class path specification

    [ https://issues.apache.org/jira/browse/AXIS2-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17345065#comment-17345065 ] 

Robert Lazarski commented on AXIS2-6000:
----------------------------------------

This should be fixed in the master branch on github ... wsdl2java.sh invokes axis2.sh and that is where the problem was. We are releasing soon. Please test.

git clone [https://github.com/apache/axis-axis2-java-core.git]

Fix:

Date: Mon Nov 9 14:18:09 2020 -0500

AXIS2-5990 fix axis2.sh with JDK 9 and above

diff --git a/modules/tool/script/axis2.sh b/modules/tool/script/axis2.sh
index 733860d704..505673322a 100644
--- a/modules/tool/script/axis2.sh
+++ b/modules/tool/script/axis2.sh
@@ -46,7 +46,9 @@ do
 
 if [ "$prearg"=-classpath ] || [ "$prearg"=-cp ]
 then
- AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
+ if [[ $arg == "*.jar" ]]; then
+ AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
+ fi
 fi

 

 

 

 

 

> JDK11 issue with wsdl2java.sh : Error: -classpath requires class path specification
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-6000
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6000
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.9
>            Reporter: Shruti Chincholkar
>            Assignee: Robert Lazarski
>            Priority: Blocker
>
> JDK11 has issue with wsdl2java.sh - 
> Error: -classpath requires class path specification.
> Is there a solution for this error?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org