Ketan Mohite

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

Recent posts by Ketan Mohite

Hello,

I am trying to deploy EAR on Websphere Application Server 5.1 installed on Linux Server by running the .sh scripts. While deploying the application, I am receiving follwing exception:
com.ibm.etools.archive.exception.SaveFailureException:

I realized that less space in \tmp directory is causing this issue.

Following WAS command is used in the script for installing the application:
$AdminApp install $earLocation $app_options

It is observed from the logs that this command is trying to save some temp files in \tmp directory and as the size of tmp is limited, I am getting the above mentioned error.

To resolve this, either I need to increase the size of tmp directory or I will have to change the tmp directory location to somewhere else where more space is available. I want to avoid the first option. For second option, I tried to change the following variable in wsadmin.properties:
com.ibm.ws.scripting.tempdir

But even after changing this, I can still see, files getting copied in \tmp directory.

Please suggest how can i avoid WAS saving these files in \tmp directory.
15 years ago
Hello,

I am trying to build an EAR with Maven 1.0.2 and jdk 1.3.1.

One of the goal fails while replacing a text in the file, the details of which are given below.
maven.xml>>>


File contents where the text is to be replaced: VersionInfo.java>>


The build is successful with jdk 1.4.

I refered ReplaceRegExp.java the API suggests:
For jdk <= 1.3, there are two available implementations:
* org.apache.tools.ant.util.regexp.JakartaOroRegexp (the default)
* Requires the jakarta-oro package
*
* org.apache.tools.ant.util.regexp.JakartaRegexpRegexp
* Requires the jakarta-regexp package
*
* For jdk >= 1.4 an additional implementation is available:
* org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
* Requires the jdk 1.4 built in regular expression package.


Hence, I tried the following:
maven -Dant.regexp.regexpimp=org.apache.tools.ant.util.regexp.JakartaOroRegexp install

maven -Dant.regexp.regexpimp=org.apache.tools.ant.util.regexp.JakartaRegexpRegexp install

Still the error continues. Please share your suggestions.

Thanks in advance.
15 years ago
Thanks for the responses guys. I understand the cause of the issue that I was facing, and commented the same in my second post.
16 years ago
I meant to say that java.util.Date class also checks milliseconds, not just upto seconds.

In your code, you can reduce the sleep period and check the same.
16 years ago
Thanks for the reply Vijitha!

I don't see that java.util.Date class checks up to seconds.
Example posted in the previous post proves it. I am able to compare the dates without issues. The problem occurs when I am retrieving dates from database and the comparing them.
Meanwhile, I have done some interesting analysis on this.
As said, the date values are saved as datetime in database. When obtained them in java (code given below), we actually get a java.sql.Timestamp. The dates are then casted to java.util.Date as shown.

Timestamp saves milliseconds values in it's "nanos" field, which is not known to java.util.Date class.

When we call 'after' method on these dates, 'after' method of java.util.Date is called, which don't consider 'nanos' and hence giving the results unexpected.
You may refer the following methods
1. in java.util.Date:

2. in java.sql.Timestamp

So, to achieve the required result, we can do either of the following:
1. Type cast the values into Timestamp on retrieval
OR 2. use getTime() method of java.util.Date method for comparision.
16 years ago
Hi All,

I am working on a Java application which retrieves two dates (of type datetime) from database table. e.g. 2009-05-13 11:11:03.113 and 2009-05-13 11:11:03.257

I am saving these into two variables date1 and date2 of type java.util.Date.

i.e. date1 --> 2009-05-13 11:11:03.113
date2 --> 2009-05-13 11:11:03.257

As seen these two dates are equal but there is difference in time : 113 v/s 257

I use the following function,
boolean bool1 = date2.after(date1);
boolean bool2 = date2.before(date1);

bool1 and bool2 both contain false values (ideally, bool2- false and bool1 - true)

This was with respect to the values obtained from database.

I tried the following code, but created dates in Java code:
[color=blue]
Calendar cal1 = Calendar.getInstance();
cal1.clear();

cal1.set(Calendar.YEAR, 2009);
cal1.set(Calendar.MONTH, 4);
cal1.set(Calendar.DATE, 13);
cal1.set(Calendar.HOUR, 11);
cal1.set(Calendar.MINUTE, 11);
cal1.set(Calendar.SECOND, 03);
cal1.set(Calendar.MILLISECOND, 113);

java.util.Date utilDate1 = cal1.getTime();
// System.out.println(utilDate1);

Calendar cal2 = Calendar.getInstance();
cal2.clear();

cal2.set(Calendar.YEAR, 2009);
cal2.set(Calendar.MONTH, 4);
cal2.set(Calendar.DATE, 13);
cal2.set(Calendar.HOUR, 11);
cal2.set(Calendar.MINUTE, 11);
cal2.set(Calendar.SECOND, 03);
cal2.set(Calendar.MILLISECOND, 257);

java.util.Date utilDate2 = cal2.getTime();
// System.out.println(utilDate2);

if(utilDate1.after(utilDate2))
System.out.println("1 is > than 2");
else
if(utilDate1.before(utilDate2))
System.out.println("1 is < than 2");[/color]

This time the console printed "1 is < than 2", which is correct.

Can someone please suggest what is happening in first case?
16 years ago
Hi all,

I am using the code given at http://www.jguru.com/faq/view.jsp?EID=1045412 to implement Single Sign on in my web application.

This code works fine to all clients except for one client where the POST data is not passed from one page to another.

Is there anything User-specific in this code?

Your help will be highly appriciated.

Thanks & Regards,
Ketan
18 years ago
Hi All,

I have a web application running on Websphere Application Server 6.1.

I want to add one servlet (LoginTrailServlet)to the existing application.

I added class file for the same in respective path and updated web.xml:

I restarted WAS after making changes.

But that sevlet fails to load.

Can anyone suggest, what else need to be done to make the sever recognize the servlet?

Thanks & Regards,
Ketamn
[ December 15, 2006: Message edited by: Ketan Mohite ]
18 years ago
Hi,

Please use the latest Update Installer available at
http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg24012718 to
install this fix.

patch provided IBM
6.1.0.0-WS-WAS-IFPK30169.pak


For details, give me your email ID, I will mail you the document for the same.

Thanks & Regards,
Ketan
18 years ago
Hi all,

I have a intranet web application which is hosted by WAS 6.1 on Windows 2003 server.

To access my application url is:
http://severname:9080/com/comp_name/module/index.jsp

I am able to reach to the page by just typing "http://severname:9080" in the address bar by making my application the default application(context root='/').

But my requirement is that, I want to access the application with url:"http://severname"

Is it part of WAS settings configuration ?

Please guide me, where and what settings need to be changed to make this possible.

Thanks & Regards,
Ketan
18 years ago
Hi all,


My problem is solved.....Websphere Application Server 6.1 has a bug related to NTLM authentication for which they have released a pack.

After installing this pack, my code worked.

Regards,
Ketan
18 years ago
Hi All,

I want to install JDBC ODBC driver for DB2 V8.2

Can anyone please suggest from where can I download the necessary setup?

Thanks & Regards,
Ketan
Hi All,

I have a web application running on WAS 6.1 which is using Single sign On functionality.

I had used the code given in the following link for getting the Login Id of the Client.
http://www.jguru.com/faq/view.jsp?EID=1045412

This code does work in WAS 4.0 but fails in WAS 6.1.

I have gone through the procedure for getting the same at www3.java.no/.../HolgerZobel/Holger_Zobel_JavaZone2005-Real_Single_Sign-on_for_web_applictions_02.pdf

But I could not find wssec.jar and CustomTrustInjector.class in WAS lib directory...and the procedure seems to be long, so is there any possibility of making any change in the previosly working code or any settings at server side to make it working.

Thanks & Regards,
Ketan
18 years ago
Hi all,

I am working on a web application, which is supposed to be migrated from Java Version 1.3 to 5.0.

I compiled all the Java classes with 5.0 compiler, but it fails to compile a class which uses Enumeration as it is not included in JDK 5.0.

I have the following piece of code. What modifications I need to make to make it worked in Java 5.0
// request is of type HTTPRequest
Enumeration en = request.getParameterNames();
while (en.hasMoreElements()) {
String key = (String) en.nextElement();
//....
}

Please share your opinions.

Thanks & regards,
Ketan
18 years ago
Hi all,

I am working on Web Application which uses Websphere V4 as an Application Server and DB2 as a backend.

I tried to increase the java heap size setting from 256 MB to 512 MB.
But after doing this, the default server application failed to start.
Error given is parameter is incorrect.
Parameter name is not specified.
The Exception name is com.ibm.ejs.sm.util.process.exception.ProcessException..

Can someon suggest, what is the issue with it

Thanks & Regards,
Ketan
18 years ago