Saumya Nair

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

Recent posts by Saumya Nair

Temporarily have placed the files in the classes dir of WEB_INF.. but would like to know how to obtain the hbm files that have been placed in a separate folder.. which does not lie in the output folder directory
File not found error... does not get the location of hibernate.cfg.cml file
Hello all,


I am using hibernate with Tomcat. All the hibernate files are defined in a 'config' folder on the WEB-INF,src,.. level. I am not able to build the session factory even if i give the entire path while configuring.


Please help

Regards,
Saumya
When i print the Property i get from the file, it does not print the ones with the empty tags.

i.e

<property name="hibernate.config" value="/hibernate.cfg.xml" />
<property name="log4j.config" value="config/log4j.xml" />


is there any way i can load this configuration file (cfg.xml) file on the server startup. I m using Tomcat.


Regards,
Saumya
18 years ago
Hi All,


I am calling a java file (servlet) from my JSP... I need to load a configuration file on the servlet call.. How can I do it ??

I tried using new AppProperties(name,filename) , but the file does not load. I am using hibernate and mysql. Every time my servlet is being called it throws invalid URL exception for the above line..

Please help...


Regards,
Saumya
18 years ago
Hi All,


I am calling a java file (servlet) from my JSP... I need to load a configuration file on the servlet call.. How can I do it ??

I tried using new AppProperties(name,filename) , but the file does not load. I am using hibernate and mysql. Every time my servlet is being called it throws invalid URL exception for the above line..

Please help...


Regards,
Saumya
18 years ago
JSP
Hi all,

I am creating a file using DataOutputStream.This file is then opened in IE using - 'Runtime.getRuntime()'. I want to delete this file created on closing the Explorer. How can i do this ???


Regards
Saumya
18 years ago
i checked the files.. All the connections are properly handled. Tried the NOLOCK option too... But no result


any other solution to avoid this problem ??? Locks gets created from the login page itself. Even for all select n inserts that affects only a few rows.
Hello all,

I have an application developed in jsp.Using SQL Server as the backend.But sometimes the application creates a lot of lock in the database, and due to this blocking my application srops working.I checked the database connection.Each function being called,opens the connection and also closses it after the process.Not able to trace the reason behind these DB blockings.Can anyone suggest what can be the possible reason ???



Regards,
Saumya
The data in each field is within the defiend range.This error occurs when the total data in the table exceeds 8060 bytes. I tried changing the length of different columns but in no way can i reduce it such a value,such that it is less than 8060 bytes. The existing data might get lost in that case. Tried reducing the length of the columns which need not be that large but still the error occurs


Regards,
Saumya
Yes, i m using SQL server.

Our project is a maintenance project so can't make those major changes like shifting the columns to other table.We are trying by reducing the length of the fields. Is any other solution possible ??? As it there can be a data which exceeds 8060 bytes..

Regards,
Saumya
i get this error when i run my query...

Server: Msg 511, Level 16, State 1, Line 5
Cannot create a row of size <rowlength> which is greater than the allowable maximum of 8060.
The statement has been terminated.


how can i resolve it ???

Regards
Saumya
Hello all,

We have dan application in JSP which runs on Tomcat4.. Using jdk 1.4 version.... The application is being accessed by many users.. But recently it has been observed that it consumes a lot of memory & the server hangs..& hence we have to restart the server every 30 mins.. Can anybody please suggest what can be the possible cause & how to solve it...



Regards,
Saumya
[ July 21, 2006: Message edited by: Bear Bibeault ]
18 years ago
tried deleting n recreating it too.. works fine with Query analyzer... but with code it says "could not find the stored procedure"