prachi jahagirdar

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

Recent posts by prachi jahagirdar

Hello,
I am trying to create directory using mkdirs command. I am working on Linux.

<code>
File fTest = new File("/software/test/1");
System.out.println(fTest.mkdirs());
</code>

It always returns false
I tried creating directory from the prompt.... It gets created, but don't know whats the problem with above code.
16 years ago
Yes this happen on the very first time when I try to get a connection.
16 years ago
Hi there,
I am not able to get the connection using DataSource. I have submmited the question previosly.... didn't get any answer.
I am trying to connect to a DB2 8.1 database. Using Webspehere 5.0
I am getting error:
J2CA0020E: The Connection Pool Manager could not allocate a Managed Connection:
JDBC Provider I am using is DB2 JDBC Provider(Defalut). Is this creating a problem?
16 years ago
<code>
try
{
javax.naming.Context jndiCntx=new javax.naming.InitialContext();
javax.sql.DataSource ds
=(javax.sql.DataSource)jndiCntx.lookup("jdbc/home");
c = ds.getConnection(getUID(),getPassword().trim());
s = c.createStatement();
//}catch(javax.naming.NamingException e){e.printStackTrace();}
}catch(Exception e){Log.print(":Exception = "+e);
</code>
In the above code i am trying to get connected to the DB2. Working with Webspehere 5.0. I am new to Webspehere. Created a JDBC Provider for DB2. Created a datasource with jndi name 'jdbc/home'.
**The exception i am getting is:
Exception = com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting.
Is there anything else to be done to get the connection?
Thank you
16 years ago
hello,
i was trying to understand the deployment procedure. I have some confusion with .war and .ear files.
Suppose i am using Tomcat and created the directory as 'test'. structure is as follows:
tomcat
/
webapps
/
test
/ \
jsp WEB-INF(it contais web.xml)
When i run any '.jsp' file the corrosponding servlet gets created in 'work' directory. If i want to create a 'app1.war' for my application which directory should i use(work or test)? and suppose some EJB.jar are also to be added to create 'app.ear'(I know .ear is not used in Tomcat.... then consider i want to use it in websphere) file for the same application then what are the contents of that file along with 'app1.war' and 'EJB.jar'. What will be the Deployment Discriptor for this .ear file. Can you please give some example.
The next thing is when you give it to client and try to install it on his server. how does this installation takes place?
Thank you!
16 years ago
Hi,
I have written program which processes with thousands of records using JDBC. When limited records are used it terminates properly. when the number of records are increased, the program doesn't terminate. To check the execution I am printing some messages at each stage. It is printing the last message, but not terminating.
I couldn't understand why this is happening. Can you help me with this...
Thank you for the answers.
What I have stated down is possible
when we give command as
javac -classpath \MyProject\src\comm \Myproject\src\b\test.java
then does the '-classpath' calls the setclasspath and sets the path to the specified directory. If yes then is previously set path gets reset?
16 years ago
I am trying to compile some java files which uses the object of some other class. For example, i have two directories 'comm' and 'b'. i am trying to compile the java files in directory 'b' which uses the files in 'comm' directory.
I " don't " want to import the package of 'comm', but i want the java files in 'b' should get compiled without error. the files in 'b' do not conatain error. but every time i compile it. it gives me some object is missing(which is in 'comm'). how do i do it?
please help me with this
16 years ago
hello,
i am trying to create a jar file using 'jar' command. my directory structure is-
c:
root
test1
applet
*.class
if i create a jar for it and extract that jar. it is creating the same path(c:\root\test1\applet) again. but i just want the 'applet' folder to be jared and extract the same in some other directory.
my working directory is 'root'.
please tell me how do i do it. does it require to modify META-INF/MANIFEST.MF. If yes, how it is done?
16 years ago
hello,
i am trying to copy a file from one directory to other.
if i don't want to use Runtime.exec(), how do i do it?
16 years ago
hello,
I was trying to run the DOS command 'del' using Runtime.exec().
Other commands work properly.
I have the files in respective folders which are to be deleted.
My code look like this
String command="del c:\test\*.txt ";
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(command);
Output is
java.io.IOException: CreateProcess: del c:\abc\test\*.txt error=0
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:67)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:428)
at java.lang.Runtime.exec(Runtime.java:364)
at java.lang.Runtime.exec(Runtime.java:326)
at CreatePatch.runcommand(CreatePatch.java:161)
at CreatePatch.getVector(CreatePatch.java:144)
at CreatePatch.main(CreatePatch.java:26)
16 years ago