Tomcat

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

Tomcat

Postby picker999 » 28. January 2011 19:58

I am trying to start Tomcat using Catalina start bat and i get the message
Error: The system was unable to find the specified registry key or
value Cannot find current JDK installation!



???????????????
picker999
 
Posts: 4
Joined: 06. September 2004 23:25
Location: Western Canada

Re: Tomcat

Postby Sharley » 28. January 2011 23:47

Are we supposed to take a guess at what XAMPP version you refer to?

It is now very important to provide the version you are referring to when requesting support.

I can still take a guess if you wish. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
XAMPP Version: 5.6.3
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Tomcat

Postby picker999 » 29. January 2011 02:15

It would be obvious to the person who has the answer to my question what version I was referring too.
The latest release is the only release that uses catalina start bat.
picker999
 
Posts: 4
Joined: 06. September 2004 23:25
Location: Western Canada

Re: Tomcat

Postby Sharley » 29. January 2011 03:05

Then you would have already worked out the answer or read a relevant post in this forum about the failings of the latest release.
catalina_start.bat file wrote:echo [XAMPP]: Searching JDK HOME with reg query ...
set KeyName=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
Does your registry contain that entry?

Where is your installed JDK that you downloaded located?

In previous versions it ran with a JRE version 5 or newer and the bat file is not reflecting this reference in the running.txt file located in the \xampp\tomcat folder, yet another 1.7.4 blunder...

...but if you change that entry to point to the Java Runtime Environment then this error will be presented
Code: Select all
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
So looks like a download and install of the JDK is required to possibly have it up and running - check after install that you have Java Development Kit in your registry if you get the same error.


In 1.7.3 and earlier most of these types of issues did not arise as the bat and configuration files were to a much higher standard than in this 1.7.4 botched release.

So, users are going to require a modicum of expertise in editing bat, configuration and system files if they want to proceed with a working version of 1.7.4 as in my opinion it has been hastily released before being properly test by the developer - or wait for 1.7.4a to appear, then 1.7.4b etc. till it has all been sorted out.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
XAMPP Version: 5.6.3
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Tomcat

Postby picker999 » 29. January 2011 05:08

Nice to meet you. Can't I just install a former version of Tomcat as in the old vers?

I am game to try the registry juggling etc. Thanks for doing the work Sharley I appreciate the fast track.
picker999
 
Posts: 4
Joined: 06. September 2004 23:25
Location: Western Canada

Re: Tomcat

Postby Sharley » 29. January 2011 08:03

picker999 wrote:Can't I just install a former version of Tomcat as in the old vers?
I don't see why not.

Here's what I did but you may find other more suitable methods for your situation.

First I made a copy of my 1.7.4 xampp folder as a backup.

Next I located my last downloaded tomcat addon in my own XAMPP archive...
xampp-tomcat-addon-win32-6.0.20.exe
...a self installing archived exe file.
(You can open in WinRAR to look inside for the simple readme file or double click to install).

Try the SourceForge repository for these earlier TomCat addons, link is on the home page.

Select the 1.7.4 installation folder and click on Install.

After install you will need to copy xampp.cli from 1.7.3 to 1.7.4 folder, if you still have it, so the start_tomcat.bat files will work or use the startup.bat file in the tomcat/bin folder.

If you want to install as a service then xampp_cli.exe is required but I was not sure if this is at all possible as I could not see it installed using SCM even though the bat files return a positive message.

I also copied over the xampp-portcheck.exe file to check if Tomcat was indeed started on the correct ports.

This is how the ports looked after installing the addon and before starting tomcat
Code: Select all
Service              Port   Status
==================================
Apache (HTTP)          80   free
Apache (WebDAV)        81   free
Apache (HTTPS)        443   free

MySQL                3306   free

FileZilla (FTP)        21   free
FileZilla (Admin)   14147   free

Mercury (SMTP)         25   free
Mercury (POP3)        110   free
Mercury (IMAP)        143   free
Mercury (HTTP)       2224   free
Mercury (Finger)       79   free
Mercury (PH)          105   free
Mercury (PopPass)     106   free

Tomcat (AJP/1.3)     8009   free
Tomcat (HTTP)        8080   free

Press <Return> to continue.
These are the ports after installing the addon and then starting and stopping tomcat in turn using the tomcat_start.bat file then the startup.bat file and then the tomcat_installservice.bat file but even though tomcat started I could not see a service installed in SCM.
I noticed the stopping bat files also were effective and freed up the ports each time after running them.
Code: Select all
Service              Port   Status
==================================
Apache (HTTP)          80   free
Apache (WebDAV)        81   free
Apache (HTTPS)        443   free

MySQL                3306   free

FileZilla (FTP)        21   free
FileZilla (Admin)   14147   free

Mercury (SMTP)         25   free
Mercury (POP3)        110   free
Mercury (IMAP)        143   free
Mercury (HTTP)       2224   free
Mercury (Finger)       79   free
Mercury (PH)          105   free
Mercury (PopPass)     106   free

Tomcat (AJP/1.3)     8009   Program: G:\xampp174\tomcat\jre\bin\javaw.exe
Tomcat (HTTP)        8080   Program: G:\xampp174\tomcat\jre\bin\javaw.exe

Press <Return> to continue.
Next I started Apache and went to http://127.0.0.1/examples/
and had them all working just fine.

So there you have it.

It seems with a little messing about you can have another tomcat up and running, but that's as far as I got in the time available - you may get more mileage than my simple experiment.

If you are happy with how it turns out then remember to delete the copy of 1.7.4 if required.

Good luck.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
XAMPP Version: 5.6.3
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests