Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
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\binstartup.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 

Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
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.caldar...@unisys.com wrote:

  From: Amit Kumar [mailto:nanosoft.ind...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
Hi,
 When I run  C:\Windows\System32java -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.caldar...@unisys.com wrote:

  From: Amit Kumar [mailto:nanosoft.ind...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
Hi,

The commands executed in my computer are below:

C:\Oracle\Middleware\jdk160_18\binjava -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\binjava -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.caldar...@unisys.com wrote:

  From: Amit Kumar [mailto:nanosoft.ind...@gmail.com]
  Subject: Re: Error while first Run of Tomcat Server 7.0.22

  When I run  C:\Windows\System32java -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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
Hi,

The commands executed in my computer are below:

C:\Oracle\Middleware\jdk160_18\binjava -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\binjava -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 nanosoft.ind...@gmail.comwrote:

 Hi,

 The commands executed in my computer are below:

 C:\Oracle\Middleware\jdk160_18\binjava -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\binjava -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.caldar...@unisys.com wrote:

  From: Amit Kumar [mailto:nanosoft.ind...@gmail.com]
  Subject: Re: Error while first Run of Tomcat Server 7.0.22

  When I run  C:\Windows\System32java -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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
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\binjava -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*\binjava -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.caldar...@unisys.com wrote:

  From: Amit Kumar [mailto:nanosoft.ind...@gmail.com]
  Subject: Re: Error while first Run of Tomcat Server 7.0.22

  C:\Oracle\Middleware\jdk160_18\binjava -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\binjava -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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Amit Kumar
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 nanosoft.ind...@gmail.comwrote:

 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\binjava -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*\binjava -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.caldar...@unisys.com wrote:

  From: Amit Kumar [mailto:nanosoft.ind...@gmail.com]
  Subject: Re: Error while first Run of Tomcat Server 7.0.22

  C:\Oracle\Middleware\jdk160_18\binjava -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\binjava -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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





Re: difference between TC5.5 and TC6

2008-03-10 Thread amit kumar
We intend to develop tomcat valves specific to our product, I found
information about APIs available and samples from the internet and book.
But I am not able to locate any material over internet or in books for the
Tomcat 6. It looks like the valve development specific classes have been
refactored/restructured. Could someone please guide on the same.

Regards,
Amit
On Thu, Mar 6, 2008 at 5:30 PM, Konstantin Kolinko [EMAIL PROTECTED]
wrote:

 And also there is
 http://tomcat.apache.org/migration.html

  
Is there any documentation available where I can read about
all the changes that has happened from TC 5 to TC6.
 
 
  http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
 

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




Re: difference between TC5.5 and TC6

2008-03-05 Thread amit kumar
Is there any documentation available where I can read about all the changes
that has happened from TC 5 to TC6. I have been facing problem in figuring
out the changed structure of classes and or replaced classes if
any.(specifically for developing valves for tomcat 6)


Regards.
Amit

On Wed, Mar 5, 2008 at 6:45 AM, David Smith [EMAIL PROTECTED] wrote:

 Regarding specs, tomcat 6 also supports servlet spec 2.5.

 Regarding tomcat specific stuff, the default folder layout with respect
 to where to place jar files was optimized slightly.

 --David


 Markus Schönhaber wrote:

 Edward Quick wrote:
 
 
 
 I have a question about the difference between TC 5.5 and 6. We use
 5.5 as our standard, but a vendor we are working with is insisting
 their webapp will only work with TC6 because they have coded to JSP
 standard 2.2 (may be 2.1?)
 
 
 
 JSP 2.1 is supported by Tomcat 6 (and is the current official standard).
 http://tomcat.apache.org/whichversion.html
 
 
 
 I have a couple of questions about this:
 
 Where do I go to check the differences between JSP 2.0 and 2.1/2.2 ?
 I'm not sure what these are.
 
 
 
 The JSP specification contains a list of changes from previous versions.
 
 
 
 Is it possible that a webapp can only work on TC6 and not TC5.5 ?
 
 
 
 Yes. The reason given by the vendor seems valid.
 
 Regards
   mks
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




Tomcat 6 Valves Development

2008-03-04 Thread amit kumar
Hi,
I am looking for some reference material or tutorial over net on how to
begin with development of my own tomcat 6 valves. I have started looking at
a book which is for tomcat 5 and it seems to import following from
catalina.jar

import org.apache.catalina.HttpResponse;
import org.apache.catalina.Request;
import org.apache.catalina.Response;
import org.apache.catalina.ValveContext;

but all these looks to be absent/changed in the tomcat 6. I am not able to
find corresponding classes.
Googled as well but no success for such tutorial/article.
Could someone please guide on the same?

Regards,
Amit Kumar