You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ne...@swisslab.de on 2007/01/31 13:58:05 UTC

Tomcat and Java6

Hello List!

is it possible to run Tomcat with Java6 ? I've just tried Tomcat 5.5.20 and
it did not start with Java 6.
Is there a Version that is compatible with Java 6 allready?

Thanks!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Java6

Posted by Per Johnsson <Pe...@omxgroup.com>.
Hi!

Are you sure it's tomcat which fails, in my case it was the Tomcat
Service which hangs, and I have no clue why. I got it working on one
machine but not on all other with the same setup.

I tried updated the Tomcat.exe service files without luck. 

Another person on the list said it will work if you reinstall tomcat.

I presume you run windows, because in Linux and without the service
Tomcat runs perfect..

/per jonsson
 

-----Original Message-----
From: news@swisslab.de [mailto:news@swisslab.de] 
Sent: den 31 januari 2007 13:58
To: 'Tomcat Users List'
Subject: Tomcat and Java6

Hello List!

is it possible to run Tomcat with Java6 ? I've just tried Tomcat 5.5.20
and it did not start with Java 6.
Is there a Version that is compatible with Java 6 allready?

Thanks!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


********************************************************************************
This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the material from your computer.
********************************************************************************



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Java6

Posted by Mark Thomas <ma...@apache.org>.
news@swisslab.de wrote:
> Hello List!
> 
> is it possible to run Tomcat with Java6 ? I've just tried Tomcat 5.5.20 and
> it did not start with Java 6.
> Is there a Version that is compatible with Java 6 allready?

5.5.20 works happily for me with Java 6.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Java6

Posted by gabores <ga...@t-online.hu>.
Hi ..

>> Does anyone know what the IS_INVALID_HANDLE(gWorker) is checking? 
>> Or why the apxCreateJava(..) is failing why?

procmon from Mark Russinowitch showed, what happens :

After loading the jvm.dll there is an attempt to load msvcr71.dll form the
jvm dir and from the path (this dll is only in jdk/bin). Copying the
msvcr71.dll in one of this dirs solved the problem, Tomcat runs as a service
under Java 1.6 too.  


-- 
View this message in context: http://www.nabble.com/Tomcat-and-Java6-tf3148596.html#a10141209
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Java6

Posted by Per Johnsson <Pe...@omxgroup.com>.
Hi Again..

I tried to look at the sources:
http://svn.apache.org/viewvc/jakarta/commons/proper/daemon/trunk/src/nat
ive/nt/procrun/src/

I'm not a really into C but someone here could maybe see whats wrong, I
have come to the conclusion that the method: serviceStart()

Is failing on row (~946):
----8<---
/* Set the environment using putenv, so JVM can use it */
setInprocEnvironment();
/* Create the JVM glbal worker */
gWorker = apxCreateJava(gPool, _jni_jvmpath);
if (IS_INVALID_HANDLE(gWorker)) {
 apxLogWrite(APXLOG_MARK_ERROR "Failed creating java %S", _jni_jvmpath);
 return 1;
}
----8<---

I have tried reinstall both tomcat5.5.20, reinstall jre1.6.0 and
jdk1.6.0 tried all the different options in the java virtual machine
setting in service, from default to jre/client/jvm.dll, jdk/client and
server jvm.dll...

I have run out of options, and I haven't got the knowledge to debug this
furhter, so...

Does anyone know what the IS_INVALID_HANDLE(gWorker) is checking? 
Or why the apxCreateJava(..) is failing why?

/Per Jonsson

-----Original Message-----
From: Per Johnsson [mailto:Per.Johnsson@omxgroup.com] 
Sent: den 1 februari 2007 11:02
To: Tomcat Users List
Subject: RE: Tomcat and Java6


I get this error in jakarta_service_20070201.log which don't give me
much of a clue :-/

But it seams that java itself won't load

---8<---
[2007-02-01 10:33:10] [173  javajni.c] [error] The specified module
could not be found.
[2007-02-01 10:33:10] [924  prunsrv.c] [error] Failed creating java
C:\Java\jdk1.6.0\jre\bin\server\jvm.dll
[2007-02-01 10:33:10] [1179 prunsrv.c] [error] ServiceStart returned 1
--8<---

You could run tomcat witout the service but I don't have the run.bat
scripts etc in the installation in the environment right now.. Will
maybe test it later.

There was an earlier thread abaout this here:

http://www.mail-archive.com/users@tomcat.apache.org/msg21543.html

/per jonsson
 

-----Original Message-----
From: Kristian Rink [mailto:kristian@zimmer428.net]
Sent: den 31 januari 2007 14:35
To: users@tomcat.apache.org
Subject: Re: Tomcat and Java6

["Per Johnsson" <Pe...@omxgroup.com> @ Wed, 31 Jan 2007 14:20:13
+0100]

> Do you run on windows with the Tomcat Service? Did you do a clean 
> install of tomcat after installing java 6? I have tried both the 
> server and client jvm.dll in both the jre and jdk withouit luck.

Ahh, no, our production systems are Linux and Solaris exclusively.
Isn't there a way to also run tomcat without the service atop Win32?
Just in order to figure out which piece of the setup is actually
broken...

Cheers,
Kristian


--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


************************************************************************
********
This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any
information it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and
delete the material from your computer.
************************************************************************
********



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


********************************************************************************
This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the material from your computer.
********************************************************************************



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Java6

Posted by Per Johnsson <Pe...@omxgroup.com>.
I get this error in jakarta_service_20070201.log which don't give me
much of a clue :-/

But it seams that java itself won't load

---8<---
[2007-02-01 10:33:10] [173  javajni.c] [error] The specified module
could not be found.
[2007-02-01 10:33:10] [924  prunsrv.c] [error] Failed creating java
C:\Java\jdk1.6.0\jre\bin\server\jvm.dll
[2007-02-01 10:33:10] [1179 prunsrv.c] [error] ServiceStart returned 1
--8<---

You could run tomcat witout the service but I don't have the run.bat
scripts etc in the installation in the environment right now.. Will
maybe test it later.

There was an earlier thread abaout this here:

http://www.mail-archive.com/users@tomcat.apache.org/msg21543.html

/per jonsson
 

-----Original Message-----
From: Kristian Rink [mailto:kristian@zimmer428.net] 
Sent: den 31 januari 2007 14:35
To: users@tomcat.apache.org
Subject: Re: Tomcat and Java6

["Per Johnsson" <Pe...@omxgroup.com> @ Wed, 31 Jan 2007 14:20:13
+0100]

> Do you run on windows with the Tomcat Service? Did you do a clean 
> install of tomcat after installing java 6? I have tried both the 
> server and client jvm.dll in both the jre and jdk withouit luck.

Ahh, no, our production systems are Linux and Solaris exclusively.
Isn't there a way to also run tomcat without the service atop Win32?
Just in order to figure out which piece of the setup is actually
broken...

Cheers,
Kristian


--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


********************************************************************************
This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the material from your computer.
********************************************************************************



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Java6

Posted by Kristian Rink <kr...@zimmer428.net>.
["Per Johnsson" <Pe...@omxgroup.com> @ Wed, 31 Jan 2007 14:20:13
+0100]

> Do you run on windows with the Tomcat Service? Did you do a clean
> install of tomcat after installing java 6? I have tried both the
> server and client jvm.dll in both the jre and jdk withouit luck.

Ahh, no, our production systems are Linux and Solaris exclusively.
Isn't there a way to also run tomcat without the service atop Win32?
Just in order to figure out which piece of the setup is actually
broken...

Cheers,
Kristian


-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat and Java6

Posted by Per Johnsson <Pe...@omxgroup.com>.
Hi!
Do you run on windows with the Tomcat Service? Did you do a clean
install of tomcat after installing java 6? I have tried both the server
and client jvm.dll in both the jre and jdk withouit luck.

Then on the other hand we had both jdk5 and jdk6 installed and we did
not reinstalled tomcat. (We are running tomcat 5.5.17)

I tried the debug of the tomcat service but I didn't get much of
information from that either..

/Regards Per Jonsson

-----Original Message-----
From: Kristian Rink [mailto:kristian@zimmer428.net] 
Sent: den 31 januari 2007 14:12
To: users@tomcat.apache.org
Subject: Re: Tomcat and Java6

[news@swisslab.de @ Wed, 31 Jan 2007 13:58:05 +0100]

> Hello List!
> 
> is it possible to run Tomcat with Java6 ? I've just tried Tomcat 
> 5.5.20 and it did not start with Java 6.

Could you be more verbose about the meaning of "it did not start with
Java 6"? I am running several tomcat machines (both internally and
externally available) using Java 6, and so far I haven't had any
trouble...

Cheers,
Kristian

--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


********************************************************************************
This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the material from your computer.
********************************************************************************



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Java6

Posted by Kristian Rink <kr...@zimmer428.net>.
[news@swisslab.de @ Wed, 31 Jan 2007 13:58:05 +0100]

> Hello List!
> 
> is it possible to run Tomcat with Java6 ? I've just tried Tomcat
> 5.5.20 and it did not start with Java 6.

Could you be more verbose about the meaning of "it did not start with
Java 6"? I am running several tomcat machines (both internally and
externally available) using Java 6, and so far I haven't had any
trouble...

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org