Tomcat corrupt (Win7U 64) 1.7.7 [Solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Tomcat corrupt (Win7U 64) 1.7.7 [Solved]

Postby spocy » 27. October 2011 09:15

Hi everyone, so after reading this forum for a bit I still found no solution for my problem and decided to register and ask it here.
I use Xammp to test out Wordpress sites. Usually no problem.
Yesterday however I started working on my new PC with win7-64bit as OS (details in profile).
At first I got a corrupted tomcat file in the bin folder, couldn't remove/delete xammp had to run chkdsk and restart for it.
After redownloading the installer and reinstalling Xammp, everything worked fine.
Been working the whole day yesterday and this morning I restarted my PC, start up xammp. And again I got the message that tomcat was corrupted.
Asks me to run chkdsk again, while I just did it yesterday, and the new install worked yesterday.

I'm using the beta 3 control panel that came with the installer package, and never had this kind of trouble on 32-bit win7.
Anyone got any clue as to why this is happening and how to solve it?

Probably will have to delete and run chkdsk again before reinstalling everything, but I'm not going to be bothered with reinstalling if this just keep occurring.

Thanks for any and all help!
spocy
 
Posts: 6
Joined: 27. October 2011 09:08
Operating System: Win7 Ultimate 64-bit

Re: Tomcat corrupt

Postby spocy » 27. October 2011 11:07

after another chkdsk run I didn't delete the files, just started the beta 3 CP and no error msg about tomcat.
However upon trying to start apache I get this msg:

the program or part \??\d:\xampp\apache\bin\httpd.exe cannot be started or processed because of incompatibility with the 64-bit version of windows. please contact the software distributor to ask if a 64-bit windows compatible version is available. (translated as accurate as possible from the Dutch error message I got.)

The title of the error message was: non supported 16-bits program (also translated as accurately as I can.)

any tips are greatly appreciated.
spocy
 
Posts: 6
Joined: 27. October 2011 09:08
Operating System: Win7 Ultimate 64-bit

Re: Tomcat corrupt

Postby JonB » 27. October 2011 11:28

Hi -

Try using the .zip or .7x downloads (non-installer) version. Backup anything needed first and un-install first, of course. :)

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Tomcat corrupt

Postby spocy » 27. October 2011 13:44

thank you for helping JonB.

So I copied the wordpress folders from htdocs and mysql/data
uninstalled and removed any other files.
downloaded the zip. unzipped. tested, seemed to work.
replaced the wordpress folders. tested, mysql wouldn't start.
removed the mysql wordpress folder, teste, mysql still doesn't start.

This is the error log:

Code: Select all
111027 14:41:02 [Note] Plugin 'FEDERATED' is disabled.
111027 14:41:02 InnoDB: The InnoDB memory heap is disabled
111027 14:41:02 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111027 14:41:02 InnoDB: Compressed tables use zlib 1.2.3
111027 14:41:02 InnoDB: Initializing buffer pool, size = 16.0M
111027 14:41:02 InnoDB: Completed initialization of buffer pool
InnoDB: Error: auto-extending data file D:\xampp\xampp\mysql\data\ibdata1 is of a different size
InnoDB: 192 pages (rounded down to MB) than specified in the .cnf file:
InnoDB: initial 640 pages, max 0 (relevant if non-zero) pages!
111027 14:41:02 InnoDB: Could not open or create data files.
111027 14:41:02 InnoDB: If you tried to add new data files, and it failed here,
111027 14:41:02 InnoDB: you should now edit innodb_data_file_path in my.cnf back
111027 14:41:02 InnoDB: to what it was, and remove the new ibdata files InnoDB created
111027 14:41:02 InnoDB: in this failed attempt. InnoDB only wrote those files full of
111027 14:41:02 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
111027 14:41:02 InnoDB: remove old data files which contain your precious data!
111027 14:41:02 [ERROR] Plugin 'InnoDB' init function returned error.
111027 14:41:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
111027 14:41:02 [ERROR] Unknown/unsupported storage engine: InnoDB
111027 14:41:02 [ERROR] Aborting

111027 14:41:02 [Note] d:\xampp\xampp\mysql\bin\mysqld.exe: Shutdown complete
spocy
 
Posts: 6
Joined: 27. October 2011 09:08
Operating System: Win7 Ultimate 64-bit

Re: Tomcat corrupt

Postby JonB » 27. October 2011 16:59

1. When you have a completely clean install, are you able to start MySQL and/or phpMyAdmin?

2. Did you try to restore, import or 'copy on' MySQL data from another source???

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Tomcat corrupt

Postby spocy » 28. October 2011 08:41

With the completely clean install I could start mySQL, didn't check for PHPMyAdmin though.
I tried to copy/paste the files to the folders I took em out. If thats the problem, how to backup and restore your data properly when you can't access it in the browser no more (like I had).
spocy
 
Posts: 6
Joined: 27. October 2011 09:08
Operating System: Win7 Ultimate 64-bit

Re: Tomcat corrupt

Postby JonB » 28. October 2011 10:12

I tried to copy/paste the files to the folders I took em out.


That is the problem

if thats the problem, how to backup and restore your data properly when you can't access it in the browser no more (like I had).


Its hard to say without a lot of details, but usually you can use the MySQL CLI (command line interface)'mysql.exe' or the 'mysqldump.exe' program/tool, both of will allow you to output the data to files. Mysqldump.exe is designed specifically to export databases to text files that you can later import into a new database installation.

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

http://stackoverflow.com/questions/1057 ... -dump-file

The second of these tips mentions the .dump format and issues related to it. The best option is always to output to a .SQL file - its universal. To do it this way will require some effort, but you will learn a lot in the process.

A second method, provided the database is not corrupt, is to install the free tool MySQL Workbench form Oracle (the MySQL company). It has a full phpMyAdmin-like interface and the ability to manage/create/import/export databases.
http://www.mysql.com/products/workbench/

I use it professionally to develop and design databases. There's user-friendly graphical interface to help manage and backup/restore (the MySQL term is export/import) your database.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Tomcat corrupt

Postby spocy » 31. October 2011 09:15

Thanks so much JonB,

Now I know what I did wrong, and learned how to do it better.
Gave it a fresh install and rebuilded my work, I'll make sure to keep proper backups now !

So far everything seems to be working fine and haven't needed a backup anymore, but i'll make them after every day of work.
Again thanks for all the help.
spocy
 
Posts: 6
Joined: 27. October 2011 09:08
Operating System: Win7 Ultimate 64-bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests