XAMPP CONTROL PANEL Version 3 Problems

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

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby dmsclz » 16. May 2011 08:29

HI Sharley,

The problem about tomcat is java.
All other modules are detected by process name, but there is no tomcat but only a java-process.
The only way Ive seen is to check for a process "java.exe" and than check, if it has 3 listening connection. Not beatyful but it works (more or less).
Since this detection is not always 100% working I added that "Force start/Force stop" options.

Best regards,
Steffen
dmsclz
 
Posts: 35
Joined: 05. May 2011 22:41

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby hackattack142 » 20. May 2011 23:39

I wanted to provide a possible workaround for the tomcat process issue.

There is a free program called launch4j that allows for wrapping java applications and specifying a custom process name: http://launch4j.sourceforge.net/
It has versions that work on Windows, Mac and Linux.

I tried it out to see if it would work with the latest XAMPP windows beta and its seems to work well for me.

It creates an XML file with configuration options. I put the wrapped EXE and the config file in the root tomcat directory for testing (xampp/tomcat).
Below is what I setup in the program to get it to work:

config.xml
Code: Select all
<launch4jConfig>
  <dontWrapJar>true</dontWrapJar>
  <headerType>gui</headerType>
  <jar>.\bin\bootstrap.jar</jar>
  <outfile>C:\Users\myname\Desktop\xampp\tomcat\tomcat7wrapped.exe</outfile>
  <errTitle></errTitle>
  <cmdLine></cmdLine>
  <chdir>.</chdir>
  <priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
  <customProcName>true</customProcName>
  <stayAlive>true</stayAlive>
  <manifest></manifest>
  <icon></icon>
  <singleInstance>
    <mutexName>Tomcat</mutexName>
    <windowTitle>Tomcat Instance</windowTitle>
  </singleInstance>
  <classPath>
    <mainClass>org.apache.catalina.startup.Bootstrap</mainClass>
    <cp>.\bin\commons-daemon.jar</cp>
    <cp>.\bin\tomcat-juli.jar</cp>
  </classPath>
  <jre>
    <path></path>
    <minVersion>1.5.0</minVersion>
    <maxVersion></maxVersion>
    <jdkPreference>preferJdk</jdkPreference>
    <opt>-Dcatalina.home=&quot;%EXEDIR%&quot;</opt>
    <opt>-Djava.io.tmpdir=&quot;%EXEDIR%\\temp&quot;</opt>
    <opt>-Djava.util.logging.config.file=&quot;%EXEDIR%\\conf\\logging.properties&quot;</opt>
    <opt>-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager</opt>
    <opt>-Dcatalina.base=&quot;%EXEDIR%&quot;</opt>
  </jre>
</launch4jConfig>
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby ggedamed » 31. May 2011 07:46

I registered just to say it:

Thank you, Steffen!
ggedamed
 
Posts: 1
Joined: 31. May 2011 07:41

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby dmsclz » 31. May 2011 23:04

Hackattack: sorry I didnt answer earlier.
Thanks a lot for your comments and your work. Sure this is an interesting idea.
But i think there are enough dependencies and different supported windows systems and so possibible problems in that whole port of xampp and the controlpanel3, so we should not bring such new components in it. If there is a status blinking or a wrong status display for tomcat i think we can live with it and it should be acceptable, isnt it?

ggedamed: hehe thanks, thats very nice :)


Regards,
Steffen Strueber
dmsclz
 
Posts: 35
Joined: 05. May 2011 22:41

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby hackattack142 » 03. June 2011 04:34

What about using a built-in Windows tool like tasklist. It is a CMD utility that can list all the available processes running, PIDs, etc and I think it comes with all versions of Windows (at least XP onward). You could use it to search for the java processes like so:

Code: Select all
tasklist /FI "IMAGENAME eq java.exe"


You could do a check before launching Tomcat taking note of all currently running java processes and pipe the output somewhere for processing. When you start Tomcat, you could do another check and take note of the new java process that appears. You could then monitor just that PID. I don't actually use Tomcat but I thought I would throw a few ideas out at least.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby JonB » 05. July 2011 15:03

YES!

It IS VERY VERY NICE! :D

Thanks very much Steffen!

(I'll now try to break it, LOL) :shock:

Thanks again, (and of course I will report any miscreant code)

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: *** New XAMPP CONTROL PANEL Version 3 ***

Postby dmsclz » 05. July 2011 15:28

Thanks JonB :)

Hackattack, listing the processes is done in a direct way (Windows-API) at the moment.
But exactly this is a little problem because there can be many java.exe-processes.

This is not to important to do anything about this at the moment. At least this is my opinion regarding this issue.
Hope you enjoy the controlpanel3 anyway :-)

Kind regards,
Steffen
dmsclz
 
Posts: 35
Joined: 05. May 2011 22:41

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby JonB » 05. July 2011 17:11

Great -

Actually as a developer, I understand the problem of looking into the Java sandbox - the problem IS that it's a sandbox (or a blackbox, if you prefer). I guess in some ways you could say - (LOL) "maybe Sun did TOO GOOD a job isolating it."

Anyway, I'm pretty juiced to see the new VC9 compiles, that will solve some issues for those who want to bring in 'alien components' they may find wandering around on the Net. :shock: Won't solve ALL issues, and may complicate providing answers to 'why won't that work', just like the identically named libraries and Java instance problems.

Soon we will all look back on 32 bit machines and OS's, like we do on 16 bit Windows 3.11 (or DOS or 8 bit CP/M)

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: *** New XAMPP CONTROL PANEL Version 3 ***

Postby BigWetDog » 05. July 2011 17:21

:wink: Man someone is waxing nostalgic today.
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby Sharley » 21. July 2011 08:36

Hello Steffen,

It seems that the Apache Logs button only loads the access.log file when the error.log file is selected.

See this post by Chris (Hirex) here:
viewtopic.php?p=182571#p182571

All of the feedback I see, after recommending it's use, is positive.
It seems this version is going down quite well with those who have taken the time and little effort to download and use it. :D

Is there any update news on the XAMPP developers including this version in new releases as it far outshines any of the previous offerings?

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

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby dmsclz » 21. July 2011 09:20

HI Sharley,

thanks for the info.
I changed that error.log thing. Just changed the dat eof compile (in main title), but no version number or anything else.
The olf file at the old URL is now updated.

May I ask why you recommended that cport-program? This feature is included in xampp-control3 ("netstat"). Anything missed there?

Kind regards,
Steffen
dmsclz
 
Posts: 35
Joined: 05. May 2011 22:41

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby Sharley » 21. July 2011 09:37

dmsclz wrote:May I ask why you recommended that cport-program? This feature is included in xampp-control3 ("netstat"). Anything missed there?
This nice little GUI contains at a glance all the information one could require to investigate port use with the additional features of being able to manipulate via the File menu the processes plus the ability to close a selected TCP connection if required for testing an XAMPP installation error.

I also like the ability of it to flexibly refresh at varying intervals set by a config setting, then you can spot opening and closing of ports by various processes in real time.

I have found that a GUI is preferable to most Windows users over a command console program like netstat.exe for example, which is now thankfully in a GUI form in the XAMPP Control Panel V3, but netstat has a limited function capability over the more comprehensive Curr Ports utility for those seeking explicit information about a port and it's user.

Remember that cports.exe file (Curr Ports) was called upon for 'ports in use' in previous versions of XAMPP in the included xampp-portcheck.exe utility.


Thanks for the log file fix, I will download and test - what was the problem?

Best wishes.
Last edited by Sharley on 22. July 2011 02:26, edited 1 time in total.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby dmsclz » 21. July 2011 09:45

The problem was very easy & stupid, just a direct copy/paste problem and a not changed text :)
I forgot to change the location of the file....Fixed version:

Code: Select all
GeneralPUAdd('access.log','apache\logs\access.log');
GeneralPUAdd('error.log','apache\logs\error.log');


Kind regards,
Steffen
dmsclz
 
Posts: 35
Joined: 05. May 2011 22:41

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby Hirex » 21. July 2011 10:55

Many thanks Steffen for your very very fast change !!
I was also thinking that a nice Copy and Paste has run on this button :wink: .
Trust me, I know him !

Thanks again for this new version of control panel.
I love it !! And my wife too, of course :lol:

Have a nice day
Enjoy
Chris
Hirex
 
Posts: 5
Joined: 20. July 2011 16:29

Re: *** New XAMPP CONTROL PANEL Version 3 ***

Postby JonoB » 27. July 2011 11:51

Just wanted to say thanks to Steffan! It actually works on Win64, and is much improved. Very nice!
JonoB
 
Posts: 8
Joined: 29. November 2009 10:27

PreviousNext

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 94 guests