[JBoss Portal] - Re: Quick Start - Quick Fail
by PeterJ
anonymous wrote : maybe I already have some conflicting libraries in my classpath
I hope that you have not set the CLASSPATH environment variable. That is a sure way to get into trouble. The run script will set everything you need. On my machines, the only Java-related env vars I have set are JAVA_HOME and various other "home" directories (e.g. ANT_HOME).
Another thing to check is that you do not any endorsed directories - JAR files therein could also cause issues.
One way to track down unwanted JAR files is to set the -verbose:class JVM option in the run script. This option will list each class loaded and the JAR file containing that class. The only JAR files you should see are rt.jar and those within JBOSS_HOME; if you see any others they are suspect.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179406#4179406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179406
15 years, 8 months
[JBossWS] - Re: Not getting instance of Service object from a WSDL file.
by PeterJ
Are you using wsrunclient to run your client? I have found that the wsrunclient script does not include all of the JARs needed to run a web services client. Here is how I set the classpath (this is for JBoss AS 5.0.0.CR2, the actual list might be different for 4.2.2):
## Initialize the environment:
| CLASSPATH=myclient.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossall-client.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-native-jaxws.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-native-core.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-native-jaxws-ext.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-spi.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-common.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/wsdl4j.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jboss-xml-binding.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-native-jaxrpc.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/activation.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jbossws-native-saaj.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/mail.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/policy.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jaxb-api.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/javassist.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/jaxb-impl.jar
| CLASSPATH=$CLASSPATH:$JBOSS_HOME/client/stax-api.jar
|
| ## Invoke the application, letting the user know what is being run:
| APP="$JBOSS_HOME/bin/wsrunclient.sh -classpath $CLASSPATH my.package.name.Client $*"
| echo $APP
| $APP
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179404#4179404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179404
15 years, 8 months