Anirban Das

Ranch Hand
+ Follow
since Nov 22, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anirban Das

Hi,
I have recently started using eclipse europa. I was wondering if there is anyway to generate soap request message from wsdl. I know we can do it using xml spy but was wondering if we can do the same in Eclipse Europa

Thanks for your time

Cheers
Anirban
Cameron,
The link that you have posted for "Free Tutorials on How to Develop Portlets that are JSR-168 Compliant" is broken. Can you please give me the updated link or any tutorial that serves that purpose ?

Thanks
Anirban
16 years ago
Hi Guys....
Well I got it . Its because the endpoint reference was not proper in wsdl. Once I changed it, it worked.

Thanks-
17 years ago
Hi,
Iam trying to access a service which is hosted on axis2 server. While running the client Iam getting the following error

log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: http
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.ttdev.client.SimpleServiceStub.concat(SimpleServiceStub.java:169)
at com.ttdev.client.SimpleClient.main(SimpleClient.java:15)
Caused by: java.net.UnknownHostException: http
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:239)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:90)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:157)
at java.lang.Thread.run(Thread.java:595)














Here is the wsdl which the service has published.



The client code which I have generated using the "axis code generator" (eclipse plugin), is as follows

SimpleClient.Java -- which I have written myself


SimpleServiceStub.java


17 years ago
Hi,
Iam trying to access a service which is hosted on axis2 server. While running the client Iam getting the following error

log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: http
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.ttdev.client.SimpleServiceStub.concat(SimpleServiceStub.java:169)
at com.ttdev.client.SimpleClient.main(SimpleClient.java:15)
Caused by: java.net.UnknownHostException: http
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:239)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:90)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:157)
at java.lang.Thread.run(Thread.java:595)














Here is the wsdl which the service has published.



The client code which I have generated using the "axis code generator" (eclipse plugin), is as follows

SimpleClient.Java -- which I have written myself


SimpleServiceStub.java


17 years ago
Madhusudhan,
Thanks for your reply. Well I have my Java installed outside weblogic home and the same Iam pointing to, while configuring the Domain using Configuration Wizard Gui. My question to you would be will I require to set JAVA_HOME separately when Iam configuring the DOMAIN using configuration wizard ? Also Iam starting the weblogic managed server from the console GUI and not using any start up script that comes along with Weblogic Distribution.

Cheers
Anirban
17 years ago
Hi,
Iam using weblogic 9.1 on windows xp platform. While configuring the domain using configuration wizard Iam choosing JDK 1.5_14 by using the browsing option that is given on the GUI. However when I try to start the admin server I get the following error



weblogic.management.ManagementException: [Management:141266]Parsing Failure in config.xml: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:118)


But when I use the JDK version that is suplied by BEA the Admin server starts smoothly.

Is there anything extra configuration I need to do for using JDK apart from the ones already suplied by bea for Weblogic Server Version 9.1 ?

Any help would be apppreciated..
17 years ago
Joe,
Thanks for your response. To answer your question, Yes it is a Java App.

Can you please give me a sample code about the solution that you have mean't in your post ?

Cheers
Anirban
17 years ago
Joe,
Thanks for your response. To answer your question, Yes it is a Java App.

Can you please give me a sample code about the solution that you have mean't in your post ?

Cheers
Anirban
17 years ago
Hi,
Is there any way to find out whether weblogic is running on a windows system ? Iam using JAVA and would like to know if there is anyway that my code can find this out at runtime.

Thanks
Anirban
17 years ago
Thanks Chris
17 years ago
Hi,
I have a question. I have got to display dynamic messages at run time based on the result of a query.

E.g
Suppose on one condition I need to display the following

0 days
On some other condition I many need to display the following

68 days

As the error message changes (only the digits part) to any random number I cannot hard code this message in the Resource Bundle.

One more constraint is that my I need to do this from my action class.

Iam using Struts 1.3.8 . Is it anyway possible ?

If so a small example code snippet would be realy helpful.

Cheers
Anirban
17 years ago
Hi,
I have got a clarification. Lets suppose I have got a hidden field in my jsp for which I have got an getter setter method in the respective formbean. Now if I change the value of this hidden field from java script will it change in the value inside the form bean even ?( ie if I call the getProperty() would I get the changed value ? )

Thanks for your time in advance.

Cheers
Anirban
17 years ago
Thank you Merill. Well actualy I implemented the second way most of the places. It works fine. I was wondering if there is a struts way of handling this issue and hence I posted that question. You showed me a way using the framework. I would try to implement the same.

Thanks once again.
17 years ago
Merill,
Thanks for your response. But Iam still a bit confused.

My requirement is to have multiple images with same property. However they should be sending different values at run time when the respective image is clicked.

Is it possible ? If so how I will retrive the values of the image that got submited.

Are you suggesting that I create multiple properties for each of those images and retrive it in my action class to perform required action ?


A small code example would be realy helpful.

Thank you once again.

Cheers
17 years ago