You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Janvier Majirus <ma...@yahoo.fr> on 2005/02/18 10:42:00 UTC

reading xml file from disk with jsp bean under tomcat

Hi all,
I am developing a simple module of my app that simple reads an xml file from disk and adds it on my database. I used tomcat-4.1.30 and jsp. My bean implements a method 
readFileFromDisk(String myfile).
When i try to execute my jsp page i have error message with code 404: myfile (file not fund).
Should anyone know where to place my xml file so that with my jsp bean i access to it?
I run my bean in standalone mode, all turn well. There is something in my servlet context configuration  that i don't know.
Any suggestion is welcome.
I thank all of you in advance.
Regards
 
Majirus

		
---------------------------------
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail

Re: reading xml file from disk with jsp bean under tomcat

Posted by Schalk Neethling <sc...@volume4.com>.
Janvier

Please post or attach code that is causing the problem.

Janvier Majirus wrote:

>Hi all,
>I am developing a simple module of my app that simple reads an xml file from disk and adds it on my database. I used tomcat-4.1.30 and jsp. My bean implements a method 
>readFileFromDisk(String myfile).
>When i try to execute my jsp page i have error message with code 404: myfile (file not fund).
>Should anyone know where to place my xml file so that with my jsp bean i access to it?
>I run my bean in standalone mode, all turn well. There is something in my servlet context configuration  that i don't know.
>Any suggestion is welcome.
>I thank all of you in advance.
>Regards
> 
>Majirus
>
>		
>---------------------------------
> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
>Créez votre Yahoo! Mail
>
>!DSPAM:4215b893165461570615694!
>
>  
>

-- 
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
Fax: +27125468436
Web
email:schalk@volume4.com
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: volume4_@hotmail.com

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/
 
This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: reading xml file from disk with jsp bean under tomcat

Posted by Janvier Majirus <ma...@yahoo.fr>.
Hi Viorel,
I thank you a lot.
With absolute path it woks. 
Regards.
 
Majirus


Viorel Dragomir <vd...@wylog.com> wrote:

1. Code 404 appears when you can't find your jsp file. Do you correctly deployed it into an webapplication ?
2. You can get the file using the absolute URL to the file like [c:/myfile.xml] but you might want first to upload the file
to the webserver and then parseit.



Viorel Dragomir

.
..
-------------------------------------------------------------------



----- Original Message ----- 
From: Janvier Majirus 
To: tomcat-user@jakarta.apache.org 
Cc: tomcat-dev@jakarta.apache.org 
Sent: Friday, February 18, 2005 11:42
Subject: reading xml file from disk with jsp bean under tomcat


Hi all,
I am developing a simple module of my app that simple reads an xml file from disk and adds it on my database. I used tomcat-4.1.30 and jsp. My bean implements a method 
readFileFromDisk(String myfile).
When i try to execute my jsp page i have error message with code 404: myfile (file not fund).
Should anyone know where to place my xml file so that with my jsp bean i access to it?
I run my bean in standalone mode, all turn well. There is something in my servlet context configuration that i don't know.
Any suggestion is welcome.
I thank all of you in advance.
Regards

Majirus


---------------------------------
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
		
---------------------------------
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail

Re: reading xml file from disk with jsp bean under tomcat

Posted by Viorel Dragomir <vd...@wylog.com>.
1.    Code 404 appears when you can't find your jsp file. Do you correctly deployed it into an webapplication ?
2.    You can get the file using the absolute URL to the file like [c:/myfile.xml] but you might want first to upload the file
to the webserver and then parseit.



Viorel Dragomir

.
..
-------------------------------------------------------------------



----- Original Message ----- 
From: Janvier Majirus 
To: tomcat-user@jakarta.apache.org 
Cc: tomcat-dev@jakarta.apache.org 
Sent: Friday, February 18, 2005 11:42
Subject: reading xml file from disk with jsp bean under tomcat


Hi all,
I am developing a simple module of my app that simple reads an xml file from disk and adds it on my database. I used tomcat-4.1.30 and jsp. My bean implements a method 
readFileFromDisk(String myfile).
When i try to execute my jsp page i have error message with code 404: myfile (file not fund).
Should anyone know where to place my xml file so that with my jsp bean i access to it?
I run my bean in standalone mode, all turn well. There is something in my servlet context configuration  that i don't know.
Any suggestion is welcome.
I thank all of you in advance.
Regards
 
Majirus


---------------------------------
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail