cnivas redy

Greenhorn
+ Follow
since Apr 19, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by cnivas redy

how can I get the IBM JCE policy files, I'm using IBM WAS 6.1 and by googling I came to know that it is using JDK1.5 it is not working with SUN JCE policy files.
I don't have IBM ID to download from IBM web site.. can any one suggest..
15 years ago
we are getting java.security.InvalidKeyException: Illegal key size or default parameters exception while decrypting a data file.
we have IBM web sphere 6.1. and in the websphere Java/jre/lib/Security I have the two jars. local_policy.jar and US_export_policy.jar but Still I'm getting this exception.

Caused by:
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at com.edifecs.shared.filestore.ECCrypto.getDecryptionStream(ClientFileStore.java:539)

I tried the same web service on Tomcat web server in the begining I got the same error but after copying these SDK JCE jars to lib the exception is gone. I tried to download these from IBM web site but it is asking for IBM ID. does any body know how to get these JCE jars for IBM web sphere.? and why I'm getting this exception even after having the Jar in the jre/lib
thanks in advance
15 years ago
the java web service support only the types available in XML xsd. check the following link.
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzamy/50/webserv/wsdevmap.htm
LIST,Collections, MAPS will not work with WSDL types . it will take it as anyType which is equal to a java type of OBJECT .
15 years ago
if you change the port number I guess tomcat runs fine on that port, but if you put your web app some where in the drive and wants to point to that application by using tomcat... I don't understand how tomcat will know that your application is residing at c:\... so and so location.. as per my knowledge tomcat looks for webapplications deployed in <tomcat root>/webapps directory. so I'm guessing because its not in webapps directory you are getting 404 (not found error).
15 years ago
check your web.xml for Admin servlet mappings and also web-inf/classes check for your admin servlet class. if you dont need admin servlet you can just remove the mappings. in my case the axis plugin was not providing the Admin Servlets. so I used to directly hit the service by typing the entire URL.
try something like http://localhost:8080/<ur web app name>/services/<your service class name>?wsdl --> this will give you the WSDL of your service or
http://localhost:8080/<ur web app name>/services/listServices --> this URL will provide you the list of available services. there if your service is not listed then try debugging your code and jars that you are using.
hope this helps.
15 years ago
JAX-WS , Axis are the different APIs for developing web services. first you need to understand what is WSDL and by using the plugins in eclipse you can easily create web services.
this link will guide you to create a simple web service.
http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html

good luck
15 years ago
I used Axis 1.4 for developing the web service.
15 years ago
Thanks Deepak,
15 years ago
Hi, I deployed a EAR in web sphere 6.1 and lately I found that in the application.xml the context root is mis spelled. I forgot to mention " / "
<context-root>EIService</context-root> instead of <context-root>/EIService</context-root> . what is the Impact of this mistake. does any body know?
15 years ago
Hi, I deployed a EAR in web sphere 6.1 and lately I found that in the application.xml the context root is mis spelled. I forgot to mention " / "
<context-root>EIService</context-root> instead of <context-root>/EIService</context-root> . what is the Impact of this mistake. does any body know?
15 years ago
suppose if you have a list of persons :: List<Persons> list; and want to convert this to Persons array.


your method signature will look like

public Persons[] Methodname(Query Param){

List<Persons> list (your list object)
Persons [] sr = new Persons[list.size()];
list.toArray(sr);

}

if you can provide the exception details that will help to provide more information.
15 years ago
1.what happens if my Service class(or interface) doesn't extend java.rmi.remote and the method doesn't throw java.rmi.remoteException. is it compulsory to throw remote exception?.

2. my service is having complex types. so for the bean class i'm implementing Serializable. do i need to write deSerializable classes also?
15 years ago
I have a question with Axis 1.4. I'm not able to see the full stack trace of the exception. I mean in the soap:fault string it showing the exception class name and exception name. but how to get the full stack trace in the soap fault. while using Axis2 ... I made changes in web-inf/conf/axis2.xml. but I'm not able to find the solution in Axis1.4 where can i configure to get the full stack trace as soap:fault string.
15 years ago
hi, I'm using Axis1, Eclipse Galileo, my question is if any exception occurs.... in the fault string i can see it as just where and what exception occurred . but how to get the full stack trace in the fault Sting <details> ??? in Axis2 i know that we need to enable the property in Axis2.xml. as in axis1 there is no such config files i found... please let me know how to get the full stack trace in axis1
15 years ago