For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 2 voices, and was last updated 18 years, 1 month ago by
Loyal Water.
-
AuthorPosts
-
grungefreak1MemberHi,
I am running myEclipse workbench 5.0 and Tomcat 4.
I am developing a small app. that uses a MS Access database. I place the DB in the directory that my compiled servlet files are which is fine. But each time i “redeploy” the app, I check and my DB is not there anymore.
There is one thing that may help with this. On myfirst redeployment, there were radio buttons and it asked me to choose e.g. backup redeployments, overwrite redeployments. (Something similar to that anyway). I chose “Backup Redeployments” which was unnecessary, could that be stealing my DB for the backup or something? It’s weird coz I set this up on another pc and it works fine.
So does anybody know what is happening my database?
Many thanks in advance.
GF
February 26, 2008 at 4:48 am #282125
Loyal WaterMemberGF,
What app are your deploying and which folder are you placing the DB in ?February 26, 2008 at 6:31 am #282128
grungefreak1Member@support-nipun wrote:
GF,
What app are your deploying and which folder are you placing the DB in ?I placed the MSAccess DB in the same directory of Tomcat that servlets go i.e. the package within my web app that my servlets go.
The application itself is simply a web form that inserts into the database.
Any ideas?
GF
February 27, 2008 at 11:57 am #282209
Loyal WaterMemberGF,
I guess servlets get recomplied and replaced in that directory thats why the complete directory is getting deletd and recreated. Thats the reason why you DB is being deleted as well. Cant you place it at another location ? Or, you can prevent the scrubbing of your output folder while building. But that will not update the servlets.February 27, 2008 at 1:41 pm #282228
grungefreak1Member@support-nipun wrote:
GF,
I guess servlets get recomplied and replaced in that directory thats why the complete directory is getting deletd and recreated. Thats the reason why you DB is being deleted as well. Cant you place it at another location ? Or, you can prevent the scrubbing of your output folder while building. But that will not update the servlets.Ok,
That makes sense, I will try that. The only thing is, on my home PC I use tomcat 6 and this doesn’t happen. It only seems to happen using Tomcat 4 in work.GF
February 28, 2008 at 11:04 am #282260
Loyal WaterMemberYour using the same version of MyEclipse ? Do you have the same set of settings under Preferences ?
February 28, 2008 at 11:12 am #282262
grungefreak1Member@support-nipun wrote:
Your using the same version of MyEclipse ? Do you have the same set of settings under Preferences ?
I am actually using different versions of myEclipse so the settings are different. I tried your suggestion anyhow and it worked so thanks a million for that. I simply moved the database to another location and it worked.
Thanks again.
GF
February 28, 2008 at 11:31 am #282268
Loyal WaterMemberYour Welcome.
-
AuthorPosts
