You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Amit Kumar <na...@gmail.com> on 2011/10/22 14:57:02 UTC

Error while first Run of Tomcat Server 7.0.22

Hi,

I downloaded apache-tomcat-7.0.22-windows-x64.zip file, unzipped in my
Windows-7 64-bit comp and set the JAVA_HOME and JRE_HOME paths.
When I tried double-clicking startup.bat to run the server , a cmd prompt
popped-up and soon disappeared. I tried accessing http://localhost:8080/
*But got below error:*
*Internet Explorer cannot display the webpage*


Then I tried running the batch file through the command prompt by changing
directory to the bin subdirectory of the TOMCAT installation and then run
batch file from there *(C:\TOMCAT 7\bin>startup.bat) *which gave me follow
error:

java.lang.UnsatisfiedLinkError: C:\TOMCAT 7\bin\tcnative-1.dll: Can't load
AMD 6
4-bit .dll on a IA 32-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at org.apache.tomcat.jni.Library.<init>(Library.java:42)
        at org.apache.tomcat.jni.Library.initialize(Library.java:174)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListen
er.java:165)
        at
org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifec
ycleListener.java:81)
        at
org.apache.catalina.connector.Connector.setProtocol(Connector.java:54
0)
        at org.apache.catalina.connector.Connector.<init>(Connector.java:71)
        at
org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreate
Rule.java:62)
        at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1
276)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(AbstractSAXParser.java:501)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.
emptyElement(AbstractXMLDocumentParser.java:179)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
MLDocumentScannerImpl.java:648)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:808)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:119)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1205)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(SAXParserImpl.java:522)
        at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:596)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
22 Oct, 2011 5:58:58 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Oracle\M
iddleware\jdk160_18\jre\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Win
dows;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\app\Nano\product\11.2.0
\dbhome_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows
Live;C:\Pro
gram Files (x86)\Common Files\Microsoft Shared\Windows
Live;C:\Windows\system32;
C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCom
mon\;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program
Files\WIDCOMM\Bluet
ooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared;C:\Program
Fil
es (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common
File
s\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
Shared\O
EM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
Shared\OEM\12.0\DLLShare
d\;C:\Program Files
(x86)\Roxio\OEM\AudioCore\;c:\glassfish3\glassfish\bin\;c:\g
lassfish3\bin\;C:\glassfish3\jdk\bin\
22 Oct, 2011 5:58:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-9090"]
22 Oct, 2011 5:58:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
22 Oct, 2011 5:58:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 562 ms
22 Oct, 2011 5:58:58 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
22 Oct, 2011 5:58:58 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
22 Oct, 2011 5:58:58 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory docs
22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory examples
22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory host-manager
22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory manager
22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory ROOT
22 Oct, 2011 5:58:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-9090"]
22 Oct, 2011 5:58:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 573 ms


PLz tell me what to do????

Re: Error while first Run of Tomcat Server 7.0.22

Posted by Amit Kumar <na...@gmail.com>.
Hi,

The commands executed in my computer are below:

C:\Oracle\Middleware\jdk160_18\bin>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

C:\Oracle\Middleware\jdk160_18\jre\bin>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)



Now i think commands are correct. Plz correct me if i m wrong

Regards,


On Sat, Oct 22, 2011 at 7:17 PM, Amit Kumar <na...@gmail.com>wrote:

> Hi,
>
> The commands executed in my computer are below:
>
> C:\Oracle\Middleware\jdk160_18\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>
> C:\Oracle\Middleware\jdk160_18\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>
>
>
> Now i think commands are correct. Plz correct me if i m wrong
>
> Regards,
>
>
>
>
> On Sat, Oct 22, 2011 at 7:08 PM, Caldarale, Charles R <
> Chuck.Caldarale@unisys.com> wrote:
>
>> > From: Amit Kumar [mailto:nanosoft.indian@gmail.com]
>> > Subject: Re: Error while first Run of Tomcat Server 7.0.22
>>
>> > When I run  C:\Windows\System32>java -version
>>
>> Note that the above is not any of the three commands I told you to run.
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you received
>> this in error, please contact the sender and delete the e-mail and its
>> attachments from all computers.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

Re: Error while first Run of Tomcat Server 7.0.22

Posted by Mark Thomas <ma...@apache.org>.
On 22/10/2011 15:22, Amit Kumar wrote:
> HI ,
> 
> I installed 32-bit version of Tomcat and now its working fine.
> Anyway if you could plz tell me how you concluded I hv installed 32-bit JVM
> that will be very helpful.

Because start-up failed with the error you'd expect to see if you try
and use the 64-bit APR/native connector with a 32-bit JVM. The phrase
"Can't load AMD 64-bit .dll on a IA 32-bit platform" is a very large hint.

Mark

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


Re: Error while first Run of Tomcat Server 7.0.22

Posted by Daniel Mikusa <dm...@vmware.com>.
On Sat, 2011-10-22 at 07:22 -0700, Amit Kumar wrote:
> Anyway if you could plz tell me how you concluded I hv installed
> 32-bit JVM
> that will be very helpful.

When you look at the output from "java -version", it does not list your
JVM as being 64-bit.

> C:\Oracle\Middleware\jdk160_18\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

If you had a 64-bit JVM, it would look something like the following.
Note the third line contains "64-bit".

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Dan

Re: Error while first Run of Tomcat Server 7.0.22

Posted by Amit Kumar <na...@gmail.com>.
HI ,

I installed 32-bit version of Tomcat and now its working fine.
Anyway if you could plz tell me how you concluded I hv installed 32-bit JVM
that will be very helpful.

Regards,
Amit

On Sat, Oct 22, 2011 at 7:37 PM, Amit Kumar <na...@gmail.com>wrote:

> Hi,
>
>  You told me to run following :
> *To find out what the default JVM is:
>
> java -version
>
> To find out what the one at JAVA_HOME or JRE_HOME is:
>
> %JAVA_HOME%\bin\java -version
> %JRE_HOME%\bin\java -version*
> *
> *
> *As I know **%JAVA_HOME% and **%JRE_HOME% has to be replaced by
> corresponding directory in my file system which I am doing below:*
> * *
> *For **%JAVA_HOME%\bin\java -version*
> C:\Oracle\Middleware\jdk160_18\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>
> *%JRE_HOME%\bin\java -version*
> *
> *
> C:\Oracle\Middleware\jdk160_18\*jre*\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>
> *Plz tell me where hv I gone wrong and what are correct steps?*
> *Also How you concluded that I am using 32-bit JVM?*
> *
> *
> *
> *
> *Regards,
> *
>
> On Sat, Oct 22, 2011 at 7:22 PM, Caldarale, Charles R <
> Chuck.Caldarale@unisys.com> wrote:
>
>> > From: Amit Kumar [mailto:nanosoft.indian@gmail.com]
>> > Subject: Re: Error while first Run of Tomcat Server 7.0.22
>>
>> > C:\Oracle\Middleware\jdk160_18\bin>java -version
>> > java version "1.6.0_18"
>> > Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
>> > Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>>
>> A 32-bit JVM.
>>
>> > C:\Oracle\Middleware\jdk160_18\bin>java -version
>> > java version "1.6.0_18"
>> > Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
>> > Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>>
>> A duplicate of the above - not terribly interesting.
>>
>> Again, the above is not what I told to you run.
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you received
>> this in error, please contact the sender and delete the e-mail and its
>> attachments from all computers.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

Re: Error while first Run of Tomcat Server 7.0.22

Posted by Amit Kumar <na...@gmail.com>.
Hi,

 You told me to run following :
*To find out what the default JVM is:

java -version

To find out what the one at JAVA_HOME or JRE_HOME is:

%JAVA_HOME%\bin\java -version
%JRE_HOME%\bin\java -version*
*
*
*As I know **%JAVA_HOME% and **%JRE_HOME% has to be replaced by
corresponding directory in my file system which I am doing below:*
* *
*For **%JAVA_HOME%\bin\java -version*
C:\Oracle\Middleware\jdk160_18\bin>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

*%JRE_HOME%\bin\java -version*
*
*
C:\Oracle\Middleware\jdk160_18\*jre*\bin>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

*Plz tell me where hv I gone wrong and what are correct steps?*
*Also How you concluded that I am using 32-bit JVM?*
*
*
*
*
*Regards,
*
On Sat, Oct 22, 2011 at 7:22 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Amit Kumar [mailto:nanosoft.indian@gmail.com]
> > Subject: Re: Error while first Run of Tomcat Server 7.0.22
>
> > C:\Oracle\Middleware\jdk160_18\bin>java -version
> > java version "1.6.0_18"
> > Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> > Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>
> A 32-bit JVM.
>
> > C:\Oracle\Middleware\jdk160_18\bin>java -version
> > java version "1.6.0_18"
> > Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> > Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
>
> A duplicate of the above - not terribly interesting.
>
> Again, the above is not what I told to you run.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Error while first Run of Tomcat Server 7.0.22

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Amit Kumar [mailto:nanosoft.indian@gmail.com] 
> Subject: Re: Error while first Run of Tomcat Server 7.0.22

> C:\Oracle\Middleware\jdk160_18\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

A 32-bit JVM.

> C:\Oracle\Middleware\jdk160_18\bin>java -version
> java version "1.6.0_18"
> Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
> Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

A duplicate of the above - not terribly interesting.

Again, the above is not what I told to you run.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Error while first Run of Tomcat Server 7.0.22

Posted by Amit Kumar <na...@gmail.com>.
Hi,

The commands executed in my computer are below:

C:\Oracle\Middleware\jdk160_18\bin>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)

C:\Oracle\Middleware\jdk160_18\bin>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)



Now i think commands are correct. Plz correct me if i m wrong

Regards,




On Sat, Oct 22, 2011 at 7:08 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Amit Kumar [mailto:nanosoft.indian@gmail.com]
> > Subject: Re: Error while first Run of Tomcat Server 7.0.22
>
> > When I run  C:\Windows\System32>java -version
>
> Note that the above is not any of the three commands I told you to run.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Error while first Run of Tomcat Server 7.0.22

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Amit Kumar [mailto:nanosoft.indian@gmail.com] 
> Subject: Re: Error while first Run of Tomcat Server 7.0.22

> When I run  C:\Windows\System32>java -version

Note that the above is not any of the three commands I told you to run.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Error while first Run of Tomcat Server 7.0.22

Posted by Amit Kumar <na...@gmail.com>.
Hi,
 When I run  C:\Windows\System32>java -version
I get below:

java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

That means I am using 64-bit JVM . So I shouldn't get the error.

Regards,
Amit

On Sat, Oct 22, 2011 at 6:55 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Amit Kumar [mailto:nanosoft.indian@gmail.com]
> > Subject: Re: Error while first Run of Tomcat Server 7.0.22
>
> > Can u tell me how to check whether I have  32-bit
> > or 64-bit JVM installed?
>
> To find out what the default JVM is:
>
> java -version
>
> To find out what the one at JAVA_HOME or JRE_HOME is:
>
> %JAVA_HOME%\bin\java -version
> %JRE_HOME%\bin\java -version
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Error while first Run of Tomcat Server 7.0.22

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Amit Kumar [mailto:nanosoft.indian@gmail.com] 
> Subject: Re: Error while first Run of Tomcat Server 7.0.22

> Can u tell me how to check whether I have  32-bit 
> or 64-bit JVM installed?

To find out what the default JVM is:

java -version

To find out what the one at JAVA_HOME or JRE_HOME is:

%JAVA_HOME%\bin\java -version
%JRE_HOME%\bin\java -version

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Error while first Run of Tomcat Server 7.0.22

Posted by Amit Kumar <na...@gmail.com>.
HI,

Can u tell me how to check whether I have  32-bit or 64-bit JVM installed?

Regards,
Amit

On Sat, Oct 22, 2011 at 6:35 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Amit Kumar [mailto:nanosoft.indian@gmail.com]
> > Subject: Error while first Run of Tomcat Server 7.0.22
>
> > I downloaded apache-tomcat-7.0.22-windows-x64.zip file
>
> Which requires a 64-bit JVM.
>
> > set the JAVA_HOME and JRE_HOME paths.
>
> Set one or the other, not both.
>
> > java.lang.UnsatisfiedLinkError: C:\TOMCAT 7\bin\tcnative-1.dll:
> > Can't load AMD 64-bit .dll on a IA 32-bit platform
>
> You appear to have a 32-bit JVM installed.  If you want to use that, you'll
> need the 32-bit version of Tomcat.  Otherwise, remove the JVM you have and
> put in a 64-bit one.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Error while first Run of Tomcat Server 7.0.22

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Amit Kumar [mailto:nanosoft.indian@gmail.com] 
> Subject: Error while first Run of Tomcat Server 7.0.22

> I downloaded apache-tomcat-7.0.22-windows-x64.zip file

Which requires a 64-bit JVM.

> set the JAVA_HOME and JRE_HOME paths.

Set one or the other, not both.

> java.lang.UnsatisfiedLinkError: C:\TOMCAT 7\bin\tcnative-1.dll:
> Can't load AMD 64-bit .dll on a IA 32-bit platform

You appear to have a 32-bit JVM installed.  If you want to use that, you'll need the 32-bit version of Tomcat.  Otherwise, remove the JVM you have and put in a 64-bit one.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Error while first Run of Tomcat Server 7.0.22

Posted by David Kerber <dc...@verizon.net>.
On 10/22/2011 8:57 AM, Amit Kumar wrote:
> Hi,
>
> I downloaded apache-tomcat-7.0.22-windows-x64.zip file, unzipped in my
> Windows-7 64-bit comp and set the JAVA_HOME and JRE_HOME paths.
> When I tried double-clicking startup.bat to run the server , a cmd prompt
> popped-up and soon disappeared. I tried accessing http://localhost:8080/
> *But got below error:*
> *Internet Explorer cannot display the webpage*
>
>
> Then I tried running the batch file through the command prompt by changing
> directory to the bin subdirectory of the TOMCAT installation and then run
> batch file from there *(C:\TOMCAT 7\bin>startup.bat) *which gave me follow
> error:

It looks to me like it couldn't find a 64-bit jvm.



>
> java.lang.UnsatisfiedLinkError: C:\TOMCAT 7\bin\tcnative-1.dll: Can't load
> AMD 6
> 4-bit .dll on a IA 32-bit platform
>          at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>          at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
>          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
>          at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>          at java.lang.System.loadLibrary(System.java:1028)
>          at org.apache.tomcat.jni.Library.<init>(Library.java:42)
>          at org.apache.tomcat.jni.Library.initialize(Library.java:174)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:597)
>          at
> org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListen
> er.java:165)
>          at
> org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifec
> ycleListener.java:81)
>          at
> org.apache.catalina.connector.Connector.setProtocol(Connector.java:54
> 0)
>          at org.apache.catalina.connector.Connector.<init>(Connector.java:71)
>          at
> org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreate
> Rule.java:62)
>          at
> org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1
> 276)
>          at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
> ment(AbstractSAXParser.java:501)
>          at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.
> emptyElement(AbstractXMLDocumentParser.java:179)
>          at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
>          at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
>          at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
> MLDocumentScannerImpl.java:648)
>          at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>          at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:808)
>          at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:737)
>          at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
> java:119)
>          at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
> stractSAXParser.java:1205)
>          at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
> arse(SAXParserImpl.java:522)
>          at
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
>          at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
>          at org.apache.catalina.startup.Catalina.load(Catalina.java:596)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:597)
>          at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
>          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
> 22 Oct, 2011 5:58:58 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performanc
> e in production environments was not found on the java.library.path:
> C:\Oracle\M
> iddleware\jdk160_18\jre\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Win
> dows;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\app\Nano\product\11.2.0
> \dbhome_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows
> Live;C:\Pro
> gram Files (x86)\Common Files\Microsoft Shared\Windows
> Live;C:\Windows\system32;
> C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
> C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common
> Files\Intel\WirelessCom
> mon\;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program
> Files\WIDCOMM\Bluet
> ooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared;C:\Program
> Fil
> es (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common
> File
> s\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
> Shared\O
> EM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
> Shared\OEM\12.0\DLLShare
> d\;C:\Program Files
> (x86)\Roxio\OEM\AudioCore\;c:\glassfish3\glassfish\bin\;c:\g
> lassfish3\bin\;C:\glassfish3\jdk\bin\
> 22 Oct, 2011 5:58:58 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-9090"]
> 22 Oct, 2011 5:58:58 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> 22 Oct, 2011 5:58:58 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 562 ms
> 22 Oct, 2011 5:58:58 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> 22 Oct, 2011 5:58:58 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
> 22 Oct, 2011 5:58:58 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory docs
> 22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> 22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory host-manager
> 22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory manager
> 22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> 22 Oct, 2011 5:58:59 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["http-bio-9090"]
> 22 Oct, 2011 5:58:59 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> 22 Oct, 2011 5:58:59 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 573 ms
>
>
> PLz tell me what to do????
>


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