Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

Mohd Fuzail

Ranch Hand
+ Follow
since Feb 20, 2002
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohd Fuzail

To create a java Web Service client using IBM Web sphere JAX-WS runtime to consume any web service. This client needs to be developed as utility project for a given Web Service and allows other application to invoke that particular web service

Tool Used
RAD (with Web Service Feature Pack )
WAS 6.1

After creating Java client from RAD using IBM Web sphere JAX-WS runtime as a Java Utility Project, whenever I am invoking the Web Service using this client I am getting following error

Exception in thread "main" java.lang.NoSuchMethodError: javax/wsdl/Operation.getExtensibilityElements()Ljava/util/List;
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.buildAxisServiceFromWSDL(
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(
at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(
at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(
at org.example.person.PersonService.getPersonPort(
at org.example.person.Person_portProxy$Descriptor.initCommon(
at org.example.person.Person_portProxy$Descriptor.<init>(
at org.example.person.Person_portProxy.<init>(

Goggled this error, appears issue with the usage of incorrect version of wsdl4j.jar file
Tried replacing wsdl4j.jar (version wsdl4j-1_6_2 latest) with the available wsdl4j.jar files in RAD, no success
Replaced wsdl4j-1.5.1.jar with latest jar, no success
Comprehensive error resolution is provided at but nothing is working as of now talks about making following changes if application which is hitting this issue id deployed over WAS (Classes loaded with application class loader first and Single class loader for application ), but in our case this is a utility project


13 years ago
I need to use RAD (cant use anything else ) to create standalone java client for Web Service, presently i am trying to create client for
WS-A : .NET Web Service whose WSDL location i have
WS-B : Another Webservice which was generated using WebSphere JAX-WS Runtime.

When i tried creating java client using the code SAAJ-CLIENT provided in FAQ. I am getting java.lang.reflect.InvocationTargetException for both WS-A and WS-B

For another Wed Service which was generated using WebPshere JAX-RPC runtime SAAJ-CLIENT is working fine

I need to create a utility program using which the user provides WSDL location and minimal information (like input parameter)and the utility will take care of rest like accessing web service, wrapping parameter and returning response.

I know RAD 7 allows you to create a Java Proxy Client for any given web service, but i dont want to deploy the client to be used. My primary requirement is to create a standalone java client. I know it can be done as i am able to Test the .NET webservice using Test Explorer in RAD. Since i am new to WS and RAD (4 week old) i am still facing issues in getting things in right perspective

Please help
13 years ago
Thanks guys for not replying, that forced me to start thinking from the ground and I finally managed to figure this one out.... althought it almost spoiled my dinner...
I am new to EJB. I am trying to implement CMR using J2EE RI.

I have a Movie Local Entiry Bean and Director Local Entity Bean (both are CMP). Access to these local Bean is provided using AccessMovie stateless Session Bean.

Relationship between Movie and Director is many ne.

I have specified the relationship between these two beans using relationship TAB in J2EE RI.

For Movie bean i am setting setDirector() CMR in ejbPostCreate() method and i am able to access getDirector().

For Director CMR 'Collection getMovies()' and 'setMovies(Collection movies)', I am not able to set the values hence nor able to get the values.

Present Approach
1. define a ejbSelect method in movie bean which will return all movies which have a given director id. EJB-SQL is select object(m) from Movie m where = ?1

2. define another method in director bean which uses InitialContext and then find the movies by director id and then call setMovies accordingly.

I am not sure very much comfortable with the last step and also getting ServerException.

Can anyone help me with the troubleshooting.

Check Thread API here and i think JOIN should serve your purpose
[ June 12, 2008: Message edited by: Mohd Fuzail ]
I think John wants to decide at runtime whether he wants to execute Filter B or not and this decision he needs to make from Filter A code
[ June 11, 2008: Message edited by: Mohd Fuzail ]
14 years ago
jsp:include is suppose to be dynamic in nature. Can you try using c:import instead?

I think there might be some container setting which can help to determine the file being dynamically imported.

Lets wait for more inputs from others and in the mean time try out c:import
14 years ago
Please check the Container specification as to which version it supports

For Tomcat check its site
[ June 10, 2008: Message edited by: Mohd Fuzail ]
14 years ago

But Since date has been depreciated better use Calender

Hope it helps
14 years ago

If I comment the last write() statement that is one containing '\n' then I see a blank screen as the output.This is also not clear

From the source code of out.write

By default autoFlush is false, so if we write '\n' the data written is flushed from the stream or we can flush it explicitly

Hope that helps
[ June 06, 2008: Message edited by: Mohd Fuzail ]
14 years ago
print(int i)
Print an integer. The string produced by String.valueOf(int) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

write(int c)
Write a single character.

Hope it helps.

Next time please just do a quick reference to API before posting
[ June 06, 2008: Message edited by: Mohd Fuzail ]
14 years ago
please do a netstat -a -n to see if port no 25 is already in use. Port No 25 is well defined port for SMTP.

Try using port no between 49152 through 65535
Hope you have restarted the Container (Tomcat) after adding the new directory and the file.
14 years ago
The X-Forwarded-For (XFF) HTTP header is a de facto standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy Wiki

But if the request is coming directly from client then it can return null.

So you need to take care of this condition also
14 years ago