User development, A new message was posted in the thread "JBoss 5.0.1 for jdk 1.6 web services configuration":
http://community.jboss.org/message/519004#519004 Author : Gorkem Turan Profile : http://community.jboss.org/people/[email protected] Message: -------------------------------------------------------------- Saaj.jar file comes with jboss 5.x. That is under jboss->lib->endorsed . In some forms I saw addinglines to jboss launch config; -Djava.endorsed.dirs=$JBOSS_HOME_5/lib/endorsed -Dsun.lang.ClassLoader.allowArraySyntax=true Which did not help. I changed jboss 5.0.1 jdk to 5.1.0 jdk also did not help. The file I try calling the service is below. (and the amazon web service jar file is under the WEB-INF->lib of the project folder.) import java.util.List; import javax.xml.ws.Holder; import javax.xml.ws.WebServiceRef; import com.corejsf.amazon.AWSECommerceService; import com.corejsf.amazon.AWSECommerceServicePortType; import com.corejsf.amazon.Item; import com.corejsf.amazon.ItemSearchRequest; import com.corejsf.amazon.Items; public class AuthorSearchBean { @WebServiceRef(wsdlLocation ="http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl") private AWSECommerceService service; private String name; private List<Item> response; private String accessKey; public String getName() { return name; } public void setName(String newValue) { name = newValue; } public void setAccessKey(String newValue) { accessKey = newValue; } public String search() { try { AWSECommerceServicePortType port = service.getAWSECommerceServicePort(); ItemSearchRequest request = new ItemSearchRequest(); request.getResponseGroup().add("ItemAttributes"); request.setSearchIndex("Books"); request.setAuthor(name); Holder<List<Items>> responseHolder = new Holder<List<Items>>(); port.itemSearch("", accessKey, "", "", "", "", request, null, null, responseHolder); response=responseHolder.value.get(0).getItem(); return "success"; } catch(Exception e) { e.printStackTrace(); return "failure"; } } public List<Item> getResponse() { return response; } } Actually this is web service demo application I got from http://horstmann.com/corejsf/ Under source code ch10->amazon is what I am trying to run. Thanks for the reply. -------------------------------------------------------------- To reply to this message visit the message page: http://community.jboss.org/message/519004#519004
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
