wsprovide.sh is not able to load classes from current directory in EAP6
Issue
- If we write a WebService class as
"Echo.java"
as following:
package echo;
@javax.jws.WebService
public class Echo
{
public String echo(String input)
{
return input;
}
}
- After compiling it successfully when we try to run the
"$JBOSS_HOME/bin/wsprovide.sh"
in order to generate the WebService artifacts on it then it throws the following error:
[userone@localhost WSProvideDemo]$ javac -d . Echo.java
[userone@localhost WSProvideDemo]$ $JBOSS_HOME/bin/wsprovide.sh -w echo.Echo
Error: Could not load class [echo.Echo]. Did you specify a valid --classpath?
- Why JBoss EAP6 provided
"wsprovide.sh"
script is not able to find the classes present in the current directory?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.