TOMCAT org.apache.catalina.startup.Bootstrap ERROR [Solved]

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

TOMCAT org.apache.catalina.startup.Bootstrap ERROR [Solved]

Postby buildup » 30. March 2012 16:03

Hi - did poke all around the net as well as here. I got help on JAVA_JRE and JAVA_HOME. Thnx. :D
Now - I start TOMCAT in XAMPP 1.7.7 on Win7 64bit. I get the following msgs. :oops:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\buildup>cd c:/xampp

c:\xampp>catalina_start

[XAMPP]: Searching JDK HOME with reg query ...

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.6

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6
JavaHome REG_SZ C:\Program Files\Java\jdk1.6.0_31
MicroVersion REG_SZ 0

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6.0_31
JavaHome REG_SZ C:\Program Files\Java\jdk1.6.0_31
MicroVersion REG_SZ 0


[XAMPP]: Seems fine!
[XAMPP]: Set JAVA_HOME : C:\Program Files\Java\jdk1.6.0_31
[XAMPP]: Set CATALINA_HOME : c:\xampp\tomcat

Using CATALINA_BASE: "c:\xampp\tomcat"
Using CATALINA_HOME: "c:\xampp\tomcat"
Using CATALINA_TMPDIR: "c:\xampp\tomcat\temp"
Using JRE_HOME: "C:\Program Files\Java\jre6"
Using CLASSPATH: "c:\xampp\tomcat\bin\bootstrap.jar;c:\xampp\tomcat\bin\to
mcat-juli.jar"
Mar 30, 2012 10:57:32 AM org.apache.catalina.startup.Bootstrap main
WARNING: Bootstrap: command "end" does not exist.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Caused by: java.security.AccessControlException: access denied (java.util.Proper
tyPermission java.util.logging.config.class read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.apache.juli.logging.DirectJDKLog.<clinit>(DirectJDKLog.java:43)
... 4 more
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program w
ill exit.

c:\xampp>

Advice is so looked for here. :roll:
BTW - the beta control panel is cool looking and works nice! :lol:
buildup
 
Posts: 7
Joined: 27. March 2012 04:00
Location: New Jersey, USA
Operating System: win7 64b pro

Re: TOMCAT org.apache.catalina.startup.Bootstrap ERROR

Postby hackattack142 » 31. March 2012 00:18

I am not sure I have seen this before. Could you check your /xampp/tomcat/conf/catalina.policy and post the contents between code tags
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: TOMCAT org.apache.catalina.startup.Bootstrap ERROR

Postby buildup » 03. April 2012 17:16

Thanx for responding. Here is what I believe you asked for. Please advise if not. It is everything under system code and catalina code headings.


// ========== SYSTEM CODE PERMISSIONS =========================================


// These permissions apply to javac
grant codeBase "file:${java.home}/lib/-" {
permission java.security.AllPermission;
};

// These permissions apply to all shared system extensions
grant codeBase "file:${java.home}/jre/lib/ext/-" {
permission java.security.AllPermission;
};

// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
grant codeBase "file:${java.home}/../lib/-" {
permission java.security.AllPermission;
};

// These permissions apply to all shared system extensions when
// ${java.home} points at $JAVA_HOME/jre
grant codeBase "file:${java.home}/lib/ext/-" {
permission java.security.AllPermission;
};


// ========== CATALINA CODE PERMISSIONS =======================================


// These permissions apply to the daemon code
grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" {
permission java.security.AllPermission;
};

// These permissions apply to the logging API
// Note: If tomcat-juli.jar is in ${catalina.base} and not in ${catalina.home},
// update this section accordingly.
// grant codeBase "file:${catalina.base}/bin/tomcat-juli.jar" {..}
grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
permission java.io.FilePermission
"${java.home}${file.separator}lib${file.separator}logging.properties", "read";

permission java.io.FilePermission
"${catalina.base}${file.separator}conf${file.separator}logging.properties", "read";
permission java.io.FilePermission
"${catalina.base}${file.separator}logs", "read, write";
permission java.io.FilePermission
"${catalina.base}${file.separator}logs${file.separator}*", "read, write";

permission java.lang.RuntimePermission "shutdownHooks";
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "setContextClassLoader";

permission java.util.logging.LoggingPermission "control";

permission java.util.PropertyPermission "java.util.logging.config.class", "read";
permission java.util.PropertyPermission "java.util.logging.config.file", "read";
permission java.util.PropertyPermission "catalina.base", "read";

// Note: To enable per context logging configuration, permit read access to
// the appropriate file. Be sure that the logging configuration is
// secure before enabling such access.
// E.g. for the examples web application (uncomment and unwrap
// the following to be on a single line):
// permission java.io.FilePermission "${catalina.base}${file.separator}
// webapps${file.separator}examples${file.separator}WEB-INF
// ${file.separator}classes${file.separator}logging.properties", "read";
};

// These permissions apply to the server startup code
grant codeBase "file:${catalina.home}/bin/bootstrap.jar" {
permission java.security.AllPermission;
};

// These permissions apply to the servlet API classes
// and those that are shared across all class loaders
// located in the "lib" directory
grant codeBase "file:${catalina.home}/lib/-" {
permission java.security.AllPermission;
};


// If using a per instance lib directory, i.e. ${catalina.base}/lib,
// then the following permission will need to be uncommented
// grant codeBase "file:${catalina.base}/lib/-" {
// permission java.security.AllPermission;
// };
buildup
 
Posts: 7
Joined: 27. March 2012 04:00
Location: New Jersey, USA
Operating System: win7 64b pro

Re: TOMCAT org.apache.catalina.startup.Bootstrap ERROR

Postby hackattack142 » 04. April 2012 03:47

It looks like the permission that it is complaining about exists in the policy file as it should so I am not entirely sure what the underlying issue is.

1. If you still have the XAMPP zip file, you could try deleting the Tomcat folder and just reextracting it into your XAMPP folder to make sure no files were corrupted/missing
2. Have you had any issues with any other Java applications? (possible IDS/Firewall/HIPS/etc.. restricting access)
3. Are you running with Admin privileges?
4. If all of the above fail, you have the option of manually upgrading Tomcat to the latest 64-bit version (XAMPP comes with the 32-bit version which in some instances has issues with a 64-bit Java like you have installed). Tomcat does not have any XAMPP-specific modifications inside the tomcat folder. You could rename the existing folder, download the latest 64-bit Tomcat Zip from http://tomcat.apache.org/download-70.cgi and extract that folder to the XAMPP directory. Finally, rename the extracted folder to 'tomcat' and it should work with the existing just as the bundled one did.
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: TOMCAT org.apache.catalina.startup.Bootstrap ERROR

Postby buildup » 01. May 2012 11:18

Hey Hackattack142 - a very big thanks! I did option 4 (overlaid xampp suppllied tomcat with tomcat's 64bit version 7) and it is up and running! Using the beta control panel it started up and all ports are showing active. I also went into the main, manager and status panels successfully.
buildup
 
Posts: 7
Joined: 27. March 2012 04:00
Location: New Jersey, USA
Operating System: win7 64b pro


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests