• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Environment setup for SCDJWS 5

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

For trying the code examples for SCDJWS 5, I am setting up the environment on desk top.

Currently I have decided to use

Eclipse 3.6.0 (Helios) - IDE
axis2-1.5.2
Apache C 6.0.29 – Application server.

Can someone confirm my approach to try out the example code for SCDJWS 5 is correct, because I have read in many places that Metro will be a better choice that AXIS2 . I took this approach because I got a better support for AXIS2 –ECLIPS- Apache from user forums.

Very much appreciate your comments as I don’t want to spend time on sitting up environment.

Thanks ,
Jay
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I would strongly advise you to use GlassFish when preparing for the certification.
First of all, it has Metro built-in and you do not need to spend any effort to get your server up and running - it works immediately after installation.
Second, Metro is the JAX-WS reference implementation.
Third, all the examples in my study notes were developed with Eclipse and GlassFish.
Eclipse is a good choice and there is a good GlassFish server plugin for it.

However, the choice is, of course, yours. Regardless of what you choose, good luck with your studies!
Best wishes!
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ivan,

I am trying to run the examples given in your study notes.. installed glassfish tool bundle with eclipse ide.

https://jaxb-workshop.dev.java.net/plugins/eclipse/xjc-plugin.html


to create java bean classes from XSD, trying to download XJC plug in for eclipse but the given link/url is not working..

do you know where I can get the XJC plugin to run the example from 9.4 section of your notes.

thanks
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
No, I am very sorry to see that the XJC plugin has disappeared.
Hopefully it will be back at some other place.
Best wishes!
 
vasu mannem
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there any other source where we can download the xjc plug in


or without that plugin, can't we proceed in glassfish tool bundle with eclipse?


instead of glassfish, using RAD7.5 and not sure where to define the end point to test the 9.4 example from your notes.

do you have an idea where to define endpoints in rad7.5 ..which are defined in sun-jaxws.xml file in glassfish..

because there is no wsdl in this example and i am getting the following error while run the example in rad7.5

What operation do you want to perform (Addition = add, Subtraction = sub, Division = div, Multiplication = mult)?
addGive the first integer number:
100Give the second integer number:
200Jan 26, 2011 3:26:15 PM null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Jan 26, 2011 3:26:16 PM null null
INFO: Client code attempting to load security configuration
Jan 26, 2011 3:26:16 PM null null
INFO: Client code attempting to load security configuration
Jan 26, 2011 3:26:17 PM null null
AUDIT: chain.started
javax.xml.ws.WebServiceException: java.net.ConnectException: HTTP ( 404 ) Not Found address : http://localhost:9081/JAX-WSXMLCalculator/xmlcalc/ at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:572)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:123)
at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
at org.apache.axis2.jaxws.client.dispatch.BaseDispatch.invoke(BaseDispatch.java:192)
at com.vasu.client.XMLCalculatorClient.<init>(XMLCalculatorClient.java:87)
at com.vasu.client.XMLCalculatorClient.main(XMLCalculatorClient.java:51)
Caused by: java.net.ConnectException: HTTP ( 404 ) Not Found address : http://localhost:9081/JAX-WSXMLCalculator/xmlcalc/ at com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.processStatusCode(SOAPOverHTTPSender.java:3497)
at com.ibm.ws.websvcs.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:502)
at com.ibm.ws.websvcs.transport.http.HTTPTransportSender.invoke(HTTPTransportSender.java:311)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:567)
... 5 more


guessing this error is due to not define the endpoint in deployment descriptor..

i tried to define the endpoint in ibm-web-bnd.xml, ibm-web-ext.xml but there is no endpoints or endpoint elements defined in these xml files..



 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
As I said in another post, the XJC terminal command is still available in recent JDK/JREs.
The Eclipse plugin is just a "wrapper" for this terminal command.
Best wishes!
reply
    Bookmark Topic Watch Topic
  • New Topic