You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tripti Mehta <me...@gmail.com> on 2013/02/04 17:31:00 UTC

Severe Errrors encountered in Tomcat when running a Struts2 project...

Hello Sir,

Please help. I am a newbie trying to learn Application Develipment using
java and Struts2.
The details of my system and tomcat versions are :
Tomcat is : 7.0.35
Java jdk- 1.7
My system details are: Dell Laptop
OS - Windows 7
RAM- 8.00 GB
System Type- 64 bit OS

Looking at everything I have installed 64bit version from your website, but
still when I start the server in my eclipse...it gives me this below
mentioned errors-

java.lang.UnsatisfiedLinkError: C:\Program Files
(x86)\apache-tomcat-7.0.35\bin\tcnative-1.dll: Can't load AMD 64-bit .dll
on a IA 32-bit platform.



I would be extremely thankful if you can please help me with what I am
doing wrong here.

Thanks
Tripti

Re: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Tue, Feb 5, 2013 at 2:16 AM, Caldarale, Charles R
<Ch...@unisys.com> wrote:
>> From: Howard W. Smith, Jr. [mailto:smithh032772@gmail.com]
>> Subject: Re: Severe Errrors encountered in Tomcat when running a Struts2 project...
>
>> Chuck, if you look at Tripti's details above (in OP), it seems as
>> though Tripti desires to run 64-bit veresion of tomcat7.0.35 on 64-bit
>> JVM.
>
> Nowhere does the OP indicate the mode of the JVM.  There are numerous valid reasons for running a 32-bit JVM on a 64-bit OS.
>
>> It seems as though Tripti needs to 'update' JAVA_HOME etc...?
>
> Not likely.  He may want to install a 64-bit JVM, if that's what is desired.  But unless a large heap size is necessary to run the expected applications, a 64-bit JVM will be marginally slower than a 32-bit one.
>
>> Excuse me as I am a bit of a perfectionist, but Windows provides
>> "C:\Program Files (x86)" folder on 64-bit operating system. The
>> "C:\Program Files" is the best/appropriate place to install 64-bit
>> software.
>
> If the .exe installer is used, it selects the appropriate location based on the JVM it finds; if the .zip file is used, it's probably best not to muck with C:\Program Files at all.  Note that even the 64-bit .zip file of Tomcat contains both 32- and 64-bit executables in the bin directory.  Tomcat proper, of course, is completely independent of JVM mode; only the tcnative-1.dll and the service wrapper must have the same mode as the JVM used.
>
>> Since OP states 64-bit 'so much'
>
> Twice is "so much"?
>
>> it is best for you to update or add JAVA_HOME (and I think JRE_HOME)
>> in your System Environment variables of My Computer or System properties.
>
> Ignored if running as a service; when running via the scripts, one or the other (not both) should be set to point to the desired JVM.  Best to set this in a setenv.bat script in Tomcat's bin directory, not in the global environment variables.
>
>  - Chuck
>

Nice response and agreed/understood on all accounts. Yes, twice is 'so
much' to me. :)

>
> 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
>

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


RE: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Howard W. Smith, Jr. [mailto:smithh032772@gmail.com] 
> Subject: Re: Severe Errrors encountered in Tomcat when running a Struts2 project...

> Chuck, if you look at Tripti's details above (in OP), it seems as
> though Tripti desires to run 64-bit veresion of tomcat7.0.35 on 64-bit
> JVM.

Nowhere does the OP indicate the mode of the JVM.  There are numerous valid reasons for running a 32-bit JVM on a 64-bit OS.

> It seems as though Tripti needs to 'update' JAVA_HOME etc...?

Not likely.  He may want to install a 64-bit JVM, if that's what is desired.  But unless a large heap size is necessary to run the expected applications, a 64-bit JVM will be marginally slower than a 32-bit one.

> Excuse me as I am a bit of a perfectionist, but Windows provides
> "C:\Program Files (x86)" folder on 64-bit operating system. The
> "C:\Program Files" is the best/appropriate place to install 64-bit
> software.

If the .exe installer is used, it selects the appropriate location based on the JVM it finds; if the .zip file is used, it's probably best not to muck with C:\Program Files at all.  Note that even the 64-bit .zip file of Tomcat contains both 32- and 64-bit executables in the bin directory.  Tomcat proper, of course, is completely independent of JVM mode; only the tcnative-1.dll and the service wrapper must have the same mode as the JVM used.

> Since OP states 64-bit 'so much'

Twice is "so much"?

> it is best for you to update or add JAVA_HOME (and I think JRE_HOME)
> in your System Environment variables of My Computer or System properties.

Ignored if running as a service; when running via the scripts, one or the other (not both) should be set to point to the desired JVM.  Best to set this in a setenv.bat script in Tomcat's bin directory, not in the global environment variables.

 - 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: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Mon, Feb 4, 2013 at 11:31 AM, Tripti Mehta <me...@gmail.com> wrote:
>
> Hello Sir,
>
> Please help. I am a newbie trying to learn Application Develipment using
> java and Struts2.
> The details of my system and tomcat versions are :
> Tomcat is : 7.0.35
> Java jdk- 1.7
> My system details are: Dell Laptop
> OS - Windows 7
> RAM- 8.00 GB
> System Type- 64 bit OS
>
> Looking at everything I have installed 64bit version from your website,
> but
> still when I start the server in my eclipse...it gives me this below
> mentioned errors-
>
> java.lang.UnsatisfiedLinkError: C:\Program Files
> (x86)\apache-tomcat-7.0.35\bin\tcnative-1.dll: Can't load AMD 64-bit .dll
> on a IA 32-bit platform.
>
>

Chuck, if you look at Tripti's details above (in OP), it seems as
though Tripti desires to run 64-bit veresion of tomcat7.0.35 on 64-bit
JVM. If/since this is the case,

It seems as though Tripti needs to 'update' JAVA_HOME etc...?

Tripti, why did you install 64-bit version of tomcat 7.0.35 to the
following directory?

C:\Program Files (x86)\apache-tomcat-7.0.35

Excuse me as I am a bit of a perfectionist, but Windows provides
"C:\Program Files (x86)" folder on 64-bit operating system. The
"C:\Program Files" is the best/appropriate place to install 64-bit
software.

Since OP states 64-bit 'so much', it is best for you to update or add
JAVA_HOME (and I think JRE_HOME) in your System Environment variables
of My Computer or System properties.

Ever since I started developing Java (1.5 years ago), I was developing
the software on 64-bit Windows Server 2008, and for about the same
amount of time, i deployed the software (JSF web app) to 32-bit
Windows Server 2003. Recently, the organization, purchased a new
server (Windows Server 2008 R2 64-bit) to be the production server for
the JSF web app. So, what I am telling here is what I did on
development server as well as production server.

Howard

>
> I would be extremely thankful if you can please help me with what I am
> doing wrong here.
>
> Thanks
> Tripti

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


Re: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by Tripti Mehta <me...@gmail.com>.
Thank you. My problem is solved !

On Thu, Feb 7, 2013 at 6:25 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Tripti Mehta [mailto:mehtatripti06@gmail.com]
> > Subject: Re: Severe Errrors encountered in Tomcat when running a Struts2
> project...
>
>
> > I keep getting this error
>
> > java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\
> > apache-tomcat-7.0.35\bin\tcnative-1.dll:
> > Can't load IA 32-bit .dll on a AMD 64-bit platform
>
> Now you have the reverse problem: you're using a 64-bit JVM but have the
> 32-bit tcnative-1.dll in Tomcat's bin directory.  You need to be consistent.
>
>  - 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: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by Tripti Mehta <me...@gmail.com>.
What should I do...I did not change anything since the last time except
deleting and reinstalling the new instance 64 bit version of Tomcat.
What should I do to solve this problem?

Thanks

On Thu, Feb 7, 2013 at 6:25 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Tripti Mehta [mailto:mehtatripti06@gmail.com]
> > Subject: Re: Severe Errrors encountered in Tomcat when running a Struts2
> project...
>
>
> > I keep getting this error
>
> > java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\
> > apache-tomcat-7.0.35\bin\tcnative-1.dll:
> > Can't load IA 32-bit .dll on a AMD 64-bit platform
>
> Now you have the reverse problem: you're using a 64-bit JVM but have the
> 32-bit tcnative-1.dll in Tomcat's bin directory.  You need to be consistent.
>
>  - 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: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Tripti Mehta [mailto:mehtatripti06@gmail.com] 
> Subject: Re: Severe Errrors encountered in Tomcat when running a Struts2 project...


> I keep getting this error

> java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\
> apache-tomcat-7.0.35\bin\tcnative-1.dll:
> Can't load IA 32-bit .dll on a AMD 64-bit platform

Now you have the reverse problem: you're using a 64-bit JVM but have the 32-bit tcnative-1.dll in Tomcat's bin directory.  You need to be consistent.

 - 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: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by Tripti Mehta <me...@gmail.com>.
Hello Chuck,

Thanks for helping me on the earlier occasion with my Tomcat. Now the issue
is coming to haunt again as I am trying to use Tomcat to connect to Mysql
database. I keep getting this error

java.lang.UnsatisfiedLinkError: C:\Program Files
(x86)\apache-tomcat-7.0.35\bin\tcnative-1.dll: Can't load IA 32-bit .dll on
a AMD 64-bit platform
Do I need to modify the JDK as it is saying or there is anyway around it ?

Again thank you so much for the help and guidance.

Thanks
Tripti




On Mon, Feb 4, 2013 at 12:05 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Tripti Mehta [mailto:mehtatripti06@gmail.com]
> > Subject: Severe Errrors encountered in Tomcat when running a Struts2
> project...
>
> > java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\
> > apache-tomcat-7.0.35\bin\tcnative-1.dll: Can't load AMD 64-bit .dll
> > on a IA 32-bit platform.
>
> You appear to be running a 32-bit JVM, so you need the 32-bit version of
> tcnative-1.dll.  You could simply comment out the <Listener> for
> AprLifecycleListener in conf/server.xml, or change the name of
> tcnative-1.dll to something not ending in .dll, since the rest of Tomcat is
> 32- and 64-bit agnostic.
>
>  - 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: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by Tripti Mehta <me...@gmail.com>.
Chuck,

Thank you so much helping.

On Mon, Feb 4, 2013 at 12:05 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Tripti Mehta [mailto:mehtatripti06@gmail.com]
> > Subject: Severe Errrors encountered in Tomcat when running a Struts2
> project...
>
> > java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\
> > apache-tomcat-7.0.35\bin\tcnative-1.dll: Can't load AMD 64-bit .dll
> > on a IA 32-bit platform.
>
> You appear to be running a 32-bit JVM, so you need the 32-bit version of
> tcnative-1.dll.  You could simply comment out the <Listener> for
> AprLifecycleListener in conf/server.xml, or change the name of
> tcnative-1.dll to something not ending in .dll, since the rest of Tomcat is
> 32- and 64-bit agnostic.
>
>  - 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: Severe Errrors encountered in Tomcat when running a Struts2 project...

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Tripti Mehta [mailto:mehtatripti06@gmail.com] 
> Subject: Severe Errrors encountered in Tomcat when running a Struts2 project...

> java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\
> apache-tomcat-7.0.35\bin\tcnative-1.dll: Can't load AMD 64-bit .dll
> on a IA 32-bit platform.

You appear to be running a 32-bit JVM, so you need the 32-bit version of tcnative-1.dll.  You could simply comment out the <Listener> for AprLifecycleListener in conf/server.xml, or change the name of tcnative-1.dll to something not ending in .dll, since the rest of Tomcat is 32- and 64-bit agnostic.

 - 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