Re: Tomcat 7, startup problems

2016-05-17 Thread tomcat

On 17.05.2016 18:14, Mark Thomas wrote:

On 17/05/2016 16:49, André Warnier (tomcat) wrote:

Hello experts.

What does the following mean,


The constant values are from the Java virtual machine specification and
related to new features added in Java 7.

Those errors mean that the byte scanning code (o.a.t.u.bcel, copied from
Apache Commons BCEL) doesn't know how to handle them.


and/or (better) what do we have to do to get rid of these ?


If you look at the change log for 7.0.x, you'll see Java 7 support was
first added in 7.0.30 and improved in 7.0.54.

You have a couple of options.

1. Upgrade Tomcat, ideally to the latest 7.0.x release.
2. Add those JARs to jarsToSkip in catalina.properties (assuming there
aren't any annotations in those JARs you need to scan).

Mark



Thanks, great.
Let's see now which Tomcat 7 we find nowadays in the Debian repositories..

But something puzzles me :

# java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~deb7u1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
#

So that's the "default" java.

# /usr/share/tomcat7/bin/version.sh
Using CATALINA_BASE:   /usr/share/tomcat7
Using CATALINA_HOME:   /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME:/usr
Using CLASSPATH: 
/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.28
Server built:   Jan 11 2016 11:40:31
Server number:  7.0.28.0
OS Name:Linux
OS Version: 3.16.0-0.bpo.4-amd64
Architecture:   amd64
JVM Version:1.7.0_75-b13
JVM Vendor: Oracle Corporation
#

And that would seem to be pointing to a different version (the -b13 at the 
end)..


While all the messages below seem to point to :
[jar:file:/opt/jdk8/jre/lib/jar!/]

Why would the Tomcat 7 JVM (1.7) go scan jars there ?

We do have a Java 8 installed on  that machine also, but as far as I know that one was 
only for Confluence, which has its own private Tomcat.


I'm a bit confused. Not that I would be surprised if some Debian links were pointing all 
over the place.


André






Note : below is only a small sample, there are hundreds of these
in-between (about 2.3 MB of logfile worth of them).


INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
May 11, 2016 2:08:18 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry
[jdk/nashorn/internal/objects/NativeString.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 15
 at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

 at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

...
May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry
[jdk/nashorn/internal/objects/NativeDate$Constructor.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 15
 at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

...
May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry [com/sun/glass/ui/Window.class] from
Jar [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 18
 at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

 at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)


...
May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry
[com/sun/javafx/css/StyleManager.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 18
 at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

 at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

...
...
May 11, 2016 2:09:55 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry [javafx/stage/Screen.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 18
 at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

 at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

 at

Re: Tomcat 7, startup problems

2016-05-17 Thread Mark Thomas
On 17/05/2016 16:49, André Warnier (tomcat) wrote:
> Hello experts.
> 
> What does the following mean,

The constant values are from the Java virtual machine specification and
related to new features added in Java 7.

Those errors mean that the byte scanning code (o.a.t.u.bcel, copied from
Apache Commons BCEL) doesn't know how to handle them.

> and/or (better) what do we have to do to get rid of these ?

If you look at the change log for 7.0.x, you'll see Java 7 support was
first added in 7.0.30 and improved in 7.0.54.

You have a couple of options.

1. Upgrade Tomcat, ideally to the latest 7.0.x release.
2. Add those JARs to jarsToSkip in catalina.properties (assuming there
aren't any annotations in those JARs you need to scan).

Mark



> Note : below is only a small sample, there are hundreds of these
> in-between (about 2.3 MB of logfile worth of them).
> 
> 
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
> May 11, 2016 2:08:18 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
> May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry
> [jdk/nashorn/internal/objects/NativeString.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 15
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
> 
> ...
> May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry
> [jdk/nashorn/internal/objects/NativeDate$Constructor.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 15
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
> ...
> May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry [com/sun/glass/ui/Window.class] from
> Jar [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 18
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
> 
> 
> ...
> May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry
> [com/sun/javafx/css/StyleManager.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 18
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
> 
> ...
> ...
> May 11, 2016 2:09:55 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry [javafx/stage/Screen.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 18
> at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
> at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
> 
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
> 
> at
> org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
> 
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)
> 
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)
> 
> at
> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)
> 
> at
> org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
> 
> at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
> 
> at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
> 
> at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)
> 
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
> 
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> 

Re: Tomcat 7, startup problems

2016-05-17 Thread David kerber

On 5/17/2016 11:49 AM, André Warnier (tomcat) wrote:

Hello experts.

What does the following mean, and/or (better) what do we have to do to
get rid of these ?

Note : below is only a small sample, there are hundreds of these
in-between (about 2.3 MB of logfile worth of them).


It looks to me like you're building your jar files to a different java 
version standard than you're running them on (Java 4 vs Java 7, or some 
such thing).






INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
May 11, 2016 2:08:18 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry
[jdk/nashorn/internal/objects/NativeString.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 15
at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

...
May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry
[jdk/nashorn/internal/objects/NativeDate$Constructor.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 15
at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

...
May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry [com/sun/glass/ui/Window.class] from
Jar [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 18
at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)


...
May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry
[com/sun/javafx/css/StyleManager.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 18
at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

...
...
May 11, 2016 2:09:55 PM org.apache.catalina.startup.ContextConfig
processAnnotationsJar
SEVERE: Unable to process Jar entry [javafx/stage/Screen.class] from Jar
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 18
at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)

at
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

at
org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)

at
org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)

at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)

at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)

at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)

at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)

at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)

at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)

at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)

at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)

at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at

Tomcat 7, startup problems

2016-05-17 Thread tomcat

Hello experts.

What does the following mean, and/or (better) what do we have to do to get rid 
of these ?

Note : below is only a small sample, there are hundreds of these in-between (about 2.3 MB 
of logfile worth of them).



INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
May 11, 2016 2:08:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig 
processAnnotationsJar
SEVERE: Unable to process Jar entry [jdk/nashorn/internal/objects/NativeString.class] from 
Jar [jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant 
pool: 15

at 
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at 
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
...
May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig 
processAnnotationsJar
SEVERE: Unable to process Jar entry 
[jdk/nashorn/internal/objects/NativeDate$Constructor.class] from Jar 
[jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant 
pool: 15

at 
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
...
May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig 
processAnnotationsJar
SEVERE: Unable to process Jar entry [com/sun/glass/ui/Window.class] from Jar 
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant 
pool: 18

at 
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at 
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)

...
May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig 
processAnnotationsJar
SEVERE: Unable to process Jar entry [com/sun/javafx/css/StyleManager.class] from Jar 
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant 
pool: 18

at 
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at 
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
...
...
May 11, 2016 2:09:55 PM org.apache.catalina.startup.ContextConfig 
processAnnotationsJar
SEVERE: Unable to process Jar entry [javafx/stage/Screen.class] from Jar 
[jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant 
pool: 18

at 
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at 
org.apache.tomcat.util.bcel.classfile.ConstantPool.(ConstantPool.java:60)
at 
org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
at 
org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
	at 
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)

at 
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)
at 
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)
at 
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
at 
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
at 
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 

Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)

 

We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, and all we get from it is:

 

Service 'tomcat7' is missing the ImageFile

 

None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 

Any ideas are appreciated.

 

Joe

 

 



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)



From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 


How do you start it ?

and all we get from it is:


Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services applet 
show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation directory, and enter 
bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
the Apache site, and installed as we normally do, from the EXE, and, as you 
presume, as a service.

We normally start it via the Tomcat monitor, but of course that isn't working.  
So, from the command line in the bin directory, we are running, simply, 
tomcat7.exe and it is from that we see the message.  Now that I take a 
closer look at the bin dir... there isn't a startup.bat. 


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 7:40 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:
 We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
 ram, 322GB free disk space)
 

 From where did you download / install it ?
How did you install it ?

  
 
 We copied the msvcr71.dll into the bin directory, and have Java
 1.6.0_23-b05 64 bit.
 
  
 
 Tomcat doesn't start, 

How do you start it ?

and all we get from it is:
 
 Service 'tomcat7' is missing the ImageFile
 
Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services 
applet 
show for this service ? (as an executable file)

If you open a command window and navigate to Tomcat's installation directory, 
and enter 
bin/starstup.bat, what do you see ?


  
 
 None of the normal Tomcat logs are written even with debug set on, so
 it's clear the basics of Tomcat can't seem to get going...
 
  
 
 Any ideas are appreciated.
 
  
 
 Joe
 
  
 
  
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Joseph Morgan wrote:

We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
the Apache site, and installed as we normally do, from the EXE, and, as you 
presume, as a service.

We normally start it via the Tomcat monitor, but of course that isn't working.  So, from the command line in the bin directory, we are running, simply, tomcat7.exe and it is from that we see the message.  Now that I take a closer look at the bin dir... there isn't a startup.bat. 



Right. Then, in short : run tomcat7w.exe, which should be there. That's a GUI which 
allows to edit parameters stored in the Registry, for the Tomcat JVM wrapper which is 
tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and that's probably what 
is wrong. Rectify it and retry tomcat7.exe.


I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 7:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)



 From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 


How do you start it ?

and all we get from it is:

Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services applet 
show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation directory, and enter 
bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Long explanation:

1) the Windows installer, for some unfathomable reason, does not contain all the files. 
The 64-bit zip file does.


2) a standard java JVM does not have the plumbing to run well as a Windows Service (for 
example, it does not react to Windows Service Events).  That's why some smart people 
created a service wrapper which does have such plumbing, and this wrapper in turn will 
run the JVM which runs tomcat.  This wrapper is what you get as tomcat7.exe.


3) this wrapper takes its parameters from the Windows registry (for example, which JVM to 
run).  Another Windows program, distributed as tomcat7w.exe, is the GUI editor which 
allows to view/modify these parameters.


Normally, all this should be set up properly by the tomcat exe installer.  But it looks 
like in your case, something did not happen correctly.
Under Windows 7, it may be because you did not get rid of UAC, or did not run the 
installer as an administrator, or who knows what else.




André Warnier wrote:

Joseph Morgan wrote:
We downloaded and installed apache-tomcat-7.0.8.exe install for 
Windows from the Apache site, and installed as we normally do, from 
the EXE, and, as you presume, as a service.


We normally start it via the Tomcat monitor, but of course that isn't 
working.  So, from the command line in the bin directory, we are 
running, simply, tomcat7.exe and it is from that we see the 
message.  Now that I take a closer look at the bin dir... there isn't 
a startup.bat.


Right. Then, in short : run tomcat7w.exe, which should be there. 
That's a GUI which allows to edit parameters stored in the Registry, for 
the Tomcat JVM wrapper which is tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and 
that's probably what is wrong. Rectify it and retry tomcat7.exe.


I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, April 11, 
2011 7:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)



 From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 


How do you start it ?

and all we get from it is:

Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows 
Services applet show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation 
directory, and enter bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
Yep.. the entirety of the Java parameters was blank 

If I run from the command line:


Tomcat7

I get Service 'tomcat7' is missing the ImageFile

If I run:

Tomcat7 //RS/Tomcat7

I get two lines of output, but still no Tomcat. They both start with the date, 
then:

Commons daemon procrun stdout initialized
Commons daemon procrun stderr initialized

And... I don't see logs anywhere...



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 8:40 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:
 We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
 the Apache site, and installed as we normally do, from the EXE, and, as you 
 presume, as a service.
 
 We normally start it via the Tomcat monitor, but of course that isn't 
 working.  So, from the command line in the bin directory, we are running, 
 simply, tomcat7.exe and it is from that we see the message.  Now that I 
 take a closer look at the bin dir... there isn't a startup.bat. 
 

Right. Then, in short : run tomcat7w.exe, which should be there. That's a GUI 
which 
allows to edit parameters stored in the Registry, for the Tomcat JVM wrapper 
which is 
tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and that's 
probably what 
is wrong. Rectify it and retry tomcat7.exe.

I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.

 
 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Monday, April 11, 2011 7:40 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 7 Startup Problems
 
 Joseph Morgan wrote:
 We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
 ram, 322GB free disk space)

 
  From where did you download / install it ?
 How did you install it ?
 
  

 We copied the msvcr71.dll into the bin directory, and have Java
 1.6.0_23-b05 64 bit.

  

 Tomcat doesn't start, 
 
 How do you start it ?
 
 and all we get from it is:
 Service 'tomcat7' is missing the ImageFile

 Where do you get that message ?
 
 Presuming it is installed as a Windows Service, what does the Windows 
 Services applet 
 show for this service ? (as an executable file)
 
 If you open a command window and navigate to Tomcat's installation directory, 
 and enter 
 bin/starstup.bat, what do you see ?
 
 
  

 None of the normal Tomcat logs are written even with debug set on, so
 it's clear the basics of Tomcat can't seem to get going...

  

 Any ideas are appreciated.

  

 Joe

  

  


 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Startup Problems

2011-04-11 Thread Konstantin Kolinko
2011/4/11 Joseph Morgan joseph.mor...@ignitesales.com:
 Yep.. the entirety of the Java parameters was blank


I understand that as the service was not actually installed, i.e.
nothing was written into the registry.

You would better to uninstall it and then reinstall (and now be sure
to run the installer with run as administrator).

Though if you want to install it manually, there is service.bat in
the zip package.

BTW, the exe installer prints the commands that were used to install
the service into one of log files. Those can also be used to reinstall
it.

 apache-tomcat-7.0.8.exe

Why not 7.0.12? :/

 We copied the msvcr71.dll into the bin directory,

The above should not be needed. The service wrapper now has a
workaround for the original problem.


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Startup Problems

2011-04-11 Thread André Warnier

Joseph Morgan wrote:
Yep.. the entirety of the Java parameters was blank 


If I run from the command line:


Tomcat7

I get Service 'tomcat7' is missing the ImageFile

If I run:

Tomcat7 //RS/Tomcat7

I get two lines of output, but still no Tomcat. They both start with the date, 
then:

Commons daemon procrun stdout initialized
Commons daemon procrun stderr initialized

And... I don't see logs anywhere...


The location of these logs, as I recall, is also in a tab in tomcat7w.exe.

As a quick-and-dirty fix, you could download the zip, expand it into your tomcat 
directories (should be ok, will just add new files), and then run the service.bat script 
from the command-line to install your service properly. (You may have to de-install the 
service first, I don't remember).


To do it cleanly, it may be better to de-install tomcat, and re-install it, making sure 
that you do not have permission problems.  The Windows 7 UAC is a p.i.t.a.







-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 8:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We downloaded and installed apache-tomcat-7.0.8.exe install for Windows from 
the Apache site, and installed as we normally do, from the EXE, and, as you 
presume, as a service.

We normally start it via the Tomcat monitor, but of course that isn't working.  So, from the command line in the bin directory, we are running, simply, tomcat7.exe and it is from that we see the message.  Now that I take a closer look at the bin dir... there isn't a startup.bat. 



Right. Then, in short : run tomcat7w.exe, which should be there. That's a GUI which 
allows to edit parameters stored in the Registry, for the Tomcat JVM wrapper which is 
tomcat7.exe.
In one of the tabs, there should be the path of the JVM to run, and that's probably what 
is wrong. Rectify it and retry tomcat7.exe.


I'm not familiar with Tomcat7, but that's how it used to be for 5 and 6.


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, April 11, 2011 7:40 AM

To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

Joseph Morgan wrote:

We have a newly installed Tomcat 7 64bit in Windows 7 (quad-core w/8gb
ram, 322GB free disk space)


 From where did you download / install it ?
How did you install it ?

 


We copied the msvcr71.dll into the bin directory, and have Java
1.6.0_23-b05 64 bit.

 

Tomcat doesn't start, 

How do you start it ?

and all we get from it is:

Service 'tomcat7' is missing the ImageFile


Where do you get that message ?

Presuming it is installed as a Windows Service, what does the Windows Services applet 
show for this service ? (as an executable file)


If you open a command window and navigate to Tomcat's installation directory, and enter 
bin/starstup.bat, what do you see ?



 


None of the normal Tomcat logs are written even with debug set on, so
it's clear the basics of Tomcat can't seem to get going...

 


Any ideas are appreciated.

 


Joe

 

 





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 7 Startup Problems

2011-04-11 Thread Joseph Morgan
 You would better to uninstall it and then reinstall (and now be sure
 to run the installer with run as administrator).

After Andre's suggestion that we may not have properly installed as
administrator, this is exactly what we just did... and I did notice the
new version and downloaded 7.0.12.. and evidently we did not Run as
Administrator when we installed things are working just fine
now 



-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Monday, April 11, 2011 9:59 AM
To: Tomcat Users List
Subject: Re: Tomcat 7 Startup Problems

2011/4/11 Joseph Morgan joseph.mor...@ignitesales.com:
 Yep.. the entirety of the Java parameters was blank


I understand that as the service was not actually installed, i.e.
nothing was written into the registry.

You would better to uninstall it and then reinstall (and now be sure
to run the installer with run as administrator).

Though if you want to install it manually, there is service.bat in
the zip package.

BTW, the exe installer prints the commands that were used to install
the service into one of log files. Those can also be used to reinstall
it.

 apache-tomcat-7.0.8.exe

Why not 7.0.12? :/

 We copied the msvcr71.dll into the bin directory,

The above should not be needed. The service wrapper now has a
workaround for the original problem.


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org