Vrunda Joshi

Ranch Hand
+ Follow
since Dec 03, 2001
Merit badge: grant badges
For More
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 Vrunda Joshi

Hey,
It worked out!!!
the tomcat\bin has a tomcat5w.exe file. I don't know what it is, but as I was trying, I clicked on it,it has options for some properties to set. One of these is for Java (JVM),which was set to jre1.5.0_06\bin\client\jvm.dll, so I changed it to the current one that I have (jre1.5.0_11\bin\client\jvm.dll).and it's started working now.

I don't remember changing this setting when I had installed tomcat.
anyways..
thanks for your help though

Vrunda
16 years ago
hey,

yes, it's properly pointing to jdk's root directory. I checked my path too,it had the dir jdk1.5.0_06,so I changed it to jdk1.5.0_09 restarted pc. still no luck.
the error is still the same.
-------------
[2007-03-29 10:27:38] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 10:27:38] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 10:27:38] [info] Debug service finished.
[2007-03-29 10:27:38] [info] Procrun finished.
[2007-03-29 10:33:43] [info] Debuging Service...
[2007-03-29 10:33:43] [info] Starting service...
[2007-03-29 10:33:43] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 10:33:43] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 10:33:43] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 10:33:43] [info] Debug service finished.
[2007-03-29 10:33:43] [info] Procrun finished.
----------------
why is it still looking for jre1.5.0_06?

Vrunda
16 years ago
Hey Ben,

yes I can see the log file,it has
------------------------------------------
[2007-03-29 07:41:32] [info] Debuging Service...
[2007-03-29 07:41:32] [info] Starting service...
[2007-03-29 07:41:32] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 07:41:32] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 07:41:32] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 07:41:32] [info] Debug service finished.
[2007-03-29 07:41:32] [info] Procrun finished.
[2007-03-29 07:49:39] [info] Debuging Service...
[2007-03-29 07:49:39] [info] Starting service...
[2007-03-29 07:49:39] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 07:49:39] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 07:49:39] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 07:49:39] [info] Debug service finished.
[2007-03-29 07:49:39] [info] Procrun finished.
[2007-03-29 08:01:47] [info] Debuging Service...
[2007-03-29 08:01:47] [info] Starting service...
[2007-03-29 08:01:47] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 08:01:47] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 08:01:47] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 08:01:47] [info] Debug service finished.
[2007-03-29 08:01:47] [info] Procrun finished.
[2007-03-29 08:07:02] [info] Debuging Service...
[2007-03-29 08:07:02] [info] Starting service...
[2007-03-29 08:07:02] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 08:07:02] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 08:07:03] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 08:07:03] [info] Debug service finished.
[2007-03-29 08:07:03] [info] Procrun finished.
-----------------------------
does this mean I need jdk1.5.0_06 and jre1.5.0_06?
I already have jdk1.5.0_09?

these versions and numbers are so confusing
16 years ago
Hi everyone,

I have tomcat 5.5 on xp. I have jdk1.5. everything was working perfectly.Last week I uninstalled some of the updates (JRE updates) and tomcat has stopped starting.I have again installed jdk1.5 with update 9 and 11,10. my java_home and catalina_home are set properly.
So I am not sure which updates or what I need to make the tomcat work again.. any suggestion?

thanks in advance

Vrunda
16 years ago
Hi,
Problem Fixed!!! I checked the other topics related to "File Download" and changed my response header from
"Content-Disposition"," inline; filename=" + FileName
to
"Content-Disposition"," attachment; filename=" + strFileName

and it's working now

I wish I had done this before posting reply...
thanks anyways,
Vrunda
17 years ago
Hi,

I am trying to download a file stored in Database(in a blob).I am just reading it and writing output to outputstream.


I am setting contenttype to "application/ms-word","application/vnd.ms-excel" depending upon the file extension. I am also setting the response header as ""Content-Disposition"," inline; filename=" + FileName

all this together is working perfectly on my xp based laptop. as soon as I moved it to my linux based server,It has stopped functioning. The pop-up for file open/save is not coming.The servlet just shows a blank page,no error at all. I don't know how to fix and what to do..

Thanks in advance, and sorry for the lengthy post...
Vrunda
17 years ago
hey Jeroen T Wenting,

Thanks for your reply. I double checked my classpath.I can understand how it can get irritating with a single mistypped letter. As it's happening with me I have properly checked the typos.

The file is there where my classpath points to. But still no luck.

What else can I do?

Thanks
-Vrunda
Hi everybody,

I am starting the prepartion. I am trying to develop the project from HEFJB. But I am not able to compile it.
I have jdk1.3.1 & j2sdkee1.3.1 installed and I have put the j2ee.jar in classpath.
my classpath has "D:\j2sdkee1.3.1\lib\j2ee.jar;D:\jdk1.3.1\bin"
& path has "D:\jdk1.3.1\bin;D:\j2sdkee1.3.1\bin;"

I am getting errors in all the 3 .java files.The errors are
"can not find class ejb/EJBObject"
"can not resolve symbol SessionBean"
etc

can anyone please tell me what do I need to do here to solve this
thanks a bunch in advance
-Vrunda
hey Ulf Dittmer & William Brogden,

Thanks for your replies. Looks like I have created a lot of confusion here. Let me explain.

I am working on website which is hosted by (has hosting service)godaddy.We are having Linux based hosting plan.

I am developing a File upload component,so that anybody will be able to uplad file on the site from anywhere when he/she visits the site,I want to insert the file into the database that's with the godaddy's site.For that purpose,I was using FileInputStream,I don't know anyother better/simple way.Please let me know.

I have developed this program on my own and I have been testing it on my local pc,local db which was working fine. I put it on godaddy to test it,and it has stopped working and it's giving me the exception I have mentioned.
So I am really not able to understand what the problem is?One reason I think is,it's restricting the WEB-INF/classes folder from reading client files.

Again that's what I think,
Please bear with the lengthy explaination, I hope I've made myself clear now.
I do apologize for the inconvinience that has caused and I really appreciate your replies.
Thanks
-Vrunda
Sorr
17 years ago
Hey Ernest Friedman-Hill,
Thanks for your reply.I am sorry if I have caused any confusion. I will try to clear how I am working,

1) I am trying to upload a file from client side to database on server.
2) I am doing it with the above code.

I think you are right, and I am confused. Well now the problem is I am getting,

java.security.AccessControlException: access denied java.io.FilePermission C:\Documents and Settings\Mandar\My Documents\Vrunda\abc.txt read)

exception.So I don't know what to do.

I am having a site hosting service with godaddy.

Please let me know what can be done,
Thanks
-Vrunda
17 years ago
Hi,

Since I am not able to solve my problem,I am thinking of implementation authentication.Which I think might implement security and will help to read and write to/from client and to the database.

Does this sound a good solution? Which type of authentication would be suitable? I am new to this.

Any help is Welcome.
Thanks
-Vrunda
17 years ago
Hi Murad Iqbal,

Thanks for your reply.I really appreciate it.You can see the code which I have written in my earlier post. That is how I am reading a file from client side.From a jsp page which has a "input type=file" I am submitting it to a servlet,and then through that servlet,I am calling a .java prog which is doing the actual file upload to database.

Also,to use apache commons fileupload,what do I need to do?

Thanks a lot,
-Vrunda Joshi
17 years ago
Hey Paul,

Thanks for the immediate response. I was waiting well,by reading the file,I didn't mean it.I am giving my code.



Even the uploadFile.length() throws java.security.AccessControlException: access denied

do let me know if I need to change anything, also can you give some code hints plz
thanks
-Vrunda
17 years ago
Hi all

I am trying to develop a File Upload facility for my website.Because of restrictions from my hosting services I am not able to "write" anything on the server. So I am trying to insert the file into database.For that I need to read the file and then insert it into database.

All this works fine on my local machine.But on my hosting service,it doesn't. I get a exception which is..

java.security.AccessControlException: access denied (java.io.FilePermission "filename" read)

I have just given first line..
So I am not able to read the file itself. How do I solve this problem?

I found out that I can change the permissions through "catalina.policy" but I can't do that in my hosting service.

Is there any other way around.

This is a bit urgent.

Thanks in advance
-Vrunda Joshi

[Bear edit: removed "urgent" from title]
[ July 24, 2006: Message edited by: Bear Bibeault ]
17 years ago
Hey David O'Meara,

Thanks for your reply. I really appreciate it. I am thinking of the second possiblity too. But if not through the .policy file,how am I going to grant the "read" access to the "WEB-INF". Can I do that in the "web.xml" since it's the only place where I can make such changes.

Thanks in advance
-Vrunda Joshi
17 years ago