Re: Undeploy fails with Tomcat 7 manager application

2011-10-22 Thread Mike
Mark Thomas markt at apache.org writes:
 
 Where is the log file created? Why are you trying to delete it?
 
 Mark
 

The logfile is created within the application deployed to the webapps 
directory of tomcat (and there within [applicationName]\resources\log). 

I am not trying to delete it. However, when issuing the redeploy command with 
maven the problem appears (The continued presence of this file may 
cause problems.) and the application cannot be redeployed. Even when 
trying to undeploy the application via the tomcat manager (via the manager 
gui button undeploy) it cannot be undeployed completely. Only the 
war file and all application files except the log file are removed. Only 
when stopping tomcat can the application be completely removed. After 
starting tomcat again I can deploy again successfully. 


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



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

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\binstartup.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 

RE: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Caldarale, Charles R
 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,

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 Caldarale, Charles R
 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,
 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 Caldarale, Charles R
 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\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 Caldarale, Charles R
 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,

 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





Best practices for creating a Windows installer with bundled webapp

2011-10-22 Thread Markus Schneider
Hi list,

I am not totally sure if this is the right place to ask this question,
so please excuse and point me to the right list if this is not the case.

I want to create a Windows installer for Tomcat 7.0 along with deegree
webservices [1]. These are LGPL-licensed implementations of OGC
standards (webservices that deal with geospatial stuff, such as
delivering maps). Technically, deegree is just a WAR.

My current idea looks like this:

1. Modify the Tomcat ant script to include the deegree webapp
2. Modify res/tomcat.nsi to my needs
3. Use ant installer to build the Windows installer

In a later step I would like to get the installer build running using
Maven, as the deegree build process is based in it.

My questions:

- Is the Tomcat license/project o.k. with deriving such a modified
installer? I would like to make it deegree-branded, i.e. it would be
named deegree installer, I would like to use the deegree logo, etc. Of
course, we will credit Tomcat, but we want to avoid confusion for users
who just want to install deegree and don't care about the details of a
web container.
- Has anybody insights or best practices to share?
- Are there any open-source projects that use build scripts which I may
re-use?

Thanks for your comments,
Markus

[1] http://wiki.deegree.org/deegreeWiki/DownloadPage

-- 
Markus Schneider

Occam Labs UG (haftungsbeschränkt)
Godesberger Allee 139
53175 Bonn, Germany

+49 228 93798874

http://www.occamlabs.de






signature.asc
Description: OpenPGP digital signature


Re: RE: tomcat error 404

2011-10-22 Thread Dave Filchak

Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: tomcat error 404
I am receiving a HTTP Status 404 error.

Can you tell if the 404 is coming from Tomcat or httpd?
Well, I cannot seem to connect to the site using 8080 either or the 
example files but, this site is a VPS controlled with cpanel. Cpanel 
says it is running and when I ssh to the server and run ps -aux, it 
shows an instance of tomcat running. This also verifies that httpd is 
running from your next question as well. However, in the catalina.err 
file, it shows the following errors:


Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
SEVERE: Parse error in application web.xml file at 
jndi:/exodusdecoded.com/WEB-INF/web.xml
org.xml.sax.SAXParseException: The string -- is not permitted within 
comments.


and then;

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

and

Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war
Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

with exodus being the name of the app I am trying to deploy. Then it shows:

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: 
/include/../../include/system-checkup.jsp(2,0) The value for the useBean 
class attribute com.snapmedia.WebSystemController is invalid.






I have verified that tomcat and apache are running.

By apache [sic], I presume you mean httpd.  How did you verify they're 
running?


My host will now help

So if the host will help, why aren't you asking them?  (Or did you really mean 
not there?)

Sorry, I meant not, as in will not help.



If anyone can help me I really would appreciate it as the
site is down completely at this point.

Without considerably more information, there's not much anyone can help you with.  
For starters, you need to examine the logs, post your server.xml file (obfuscated as 
needed), show us theContext  element (if there is one) for your webapp, tell 
us the mechanism you're using to connect httpd to Tomcat, and provide the config for 
that.

environment.xml file:

?xml version=1.0?
mushroom

environment
systemVersion2.0/systemVersion
systemBuildCode005523/systemBuildCode
systemLastUpdateApril 29, 2005/systemLastUpdate
systemIPAddress127.0.0.1/systemIPAddress
SMTPHost174.122.30.18/SMTPHost !-- Used by JavaMail --
mailFromit-...@quickplay.com/mailFrom
sysAdminN. Dingle/sysAdmin
debugtrue/debug
/environment

!--
  This node contains the paths to static systems. These should 
always be
  Fully-qualified URLs to the system in question, including domain, 
context
  root and any pertinent subdirectory. If code references any 
system which

  does not exist here, base will be used as a default.
   --
staticSystems
basehttp://www.###.com/base
adminhttp://www.###.com/tools/admin
/staticSystems

!--
  This node is recursive so that any paths set here will be 
automatically

  loaded into the environment class. Paths end up being converted into
  Name/Value pairs and are dumped into a Hashtable
   --
paths
loginJSP/login.jsp/loginJSP
parentControlJSP/parentControl.jsp/parentControlJSP

baseRoot/usr/local/tomcat/webapps/exodus/baseRoot

##NOTE: this path does not exist on this server. It is the path that 
existed on the old server.


dataRoot/data/dataRoot
instanceFile/instanceFile
systemLogFolder/usr/local/tomcat/webapps/exodus/WEB-INF/logs//systemLogFolder

##NOTE: obviously this one does not exist either

systemArchiveFolder/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive//systemArchiveFolder
logFile/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt/logFile

Re: tomcat error 404

2011-10-22 Thread André Warnier

Hi.

One thing at a time..

1) When you send XML configuration files, please remove everything that is a 
comment.
XML files are already being wrapped by the email program, and are difficult to read as it 
is. Having plenty of comments in them in addition makes is really a hassle to figure out 
what is being used or not.

(Note: an XML comment is anything between a pair of !-- and -- )

2) one error message below talks about an invalid XML file.
Inside one of the comments (between a leading !-- and a trailing --), there is another 
pair of -- . That is incorrect and causes the entire file to be rejected/ignored.

Inspect that file carefully, remove the offending --, and try again.

(Note: the extra -- may also be due to a previous bad edit of the file.  It may have been 
a !-- or a -- , where someone tried to comment or de-comment something, and either 
removed too much or added not enough.
Remember that everything between a pair of !-- and -- is a comment (normally ignored), 
and inside of such a comment, you cannot have another pair of -- )


Do this carefully, as it may be the basic cause why the whole thing is not 
working.
Keep a backup of the original, for each file that you start editing.

(Another note: there exist text editors which can show you if a file is correct XML or 
not.  For a windows PC, look up Notepad++ in Google)


3) what happens when, in your browser, you enter the URL :

http://your-host-name:8180

?
(replace your-host-name by .. your real host name (or its IP address))




Dave Filchak wrote:

Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: tomcat error 404
I am receiving a HTTP Status 404 error.

Can you tell if the 404 is coming from Tomcat or httpd?
Well, I cannot seem to connect to the site using 8080 either or the 
example files but, this site is a VPS controlled with cpanel. Cpanel 
says it is running and when I ssh to the server and run ps -aux, it 
shows an instance of tomcat running. This also verifies that httpd is 
running from your next question as well. However, in the catalina.err 
file, it shows the following errors:


Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
SEVERE: Parse error in application web.xml file at 
jndi:/exodusdecoded.com/WEB-INF/web.xml
org.xml.sax.SAXParseException: The string -- is not permitted within 
comments.


and then;

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

and

Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war
Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

with exodus being the name of the app I am trying to deploy. Then it shows:

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: 
/include/../../include/system-checkup.jsp(2,0) The value for the useBean 
class attribute com.snapmedia.WebSystemController is invalid.






I have verified that tomcat and apache are running.
By apache [sic], I presume you mean httpd.  How did you verify 
they're running?



My host will now help
So if the host will help, why aren't you asking them?  (Or did you 
really mean not there?)

Sorry, I meant not, as in will not help.



If anyone can help me I really would appreciate it as the
site is down completely at this point.
Without considerably more information, there's not much anyone can 
help you with.  For starters, you need to examine the logs, post your 
server.xml file (obfuscated as needed), show us theContext  element 
(if there is one) for your webapp, tell us the mechanism you're using 
to connect httpd to Tomcat, and provide the config for that.

environment.xml file:

?xml version=1.0?
mushroom

environment

Re: Error while first Run of Tomcat Server 7.0.22

2011-10-22 Thread Mark Thomas
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



URI mapping

2011-10-22 Thread Eldon Olmstead

Hello,

I'm using the following
Apache2.2
mod_jk 1.2.32
Tomcat 7.0.21

I am trying to understand how to configure Apache to allow access to 
Tomcat via mod_jk. I have already made some progress, but have got stuck 
on one point.


Currently, I can access Apache at http://localhost ( works )
I can also access tomcats default wepapp and the manager and 
host-manager via


http://localhost:8080/
http://localhost:8080/manager
http://localhost:8080/host-manager


What I want to do next it to connect Apache to Tomcat via mod_jk such 
that the following URLs work


http://localhost/tomcat7/ ( default tomcat webapp)
http://localhost/tomcat7/manager
http://localhost/tomcat7/host-manager


I have updated the workers.properties with:

   worker.list=tomcat7
   worker.tomcat7.type=ajp13
   worker.tomcat7.host=localhost
   worker.tomcat7.port=8809

I have added the the following in my http-jk.conf that I include in 
http.conf:


   JkMount  /tomcat7/* tomcat7

When I try to access http://localhost/tomcat7, tomcat is given the URI 
/tomcat7/


   127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] GET /tomcat7/ HTTP/1.1
   404 979

So from the above log, I know that apache is forwarding the requests to 
tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part 
of the request and since there is no tomcat7 web app, it doesn't match 
the request.


I would like http://localhost/tomcat7/ to map to the root of my Tomcat, 
and to be able to access http://localhost/tomcat7/manager, 
http://localhost/tomcat7/host-manager.


What do I do next?

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



Re: Best practices for creating a Windows installer with bundled webapp

2011-10-22 Thread Mark Thomas
On 22/10/2011 15:49, Markus Schneider wrote:
 Hi list,
 
 I am not totally sure if this is the right place to ask this
 question, so please excuse and point me to the right list if this
 is not the case.

You are in the right place, but keep in mind we can't give you legal
advice. If you want that, you'll need to pay for your own lawyer.

 - Is the Tomcat license/project o.k. with deriving such a modified 
 installer?

You may do whatever you like as long as it is within the terms of the
Apache License. Providing a modified installer should be OK. I would
suggest you pay particular attention to sections 4 and 6 of the ALv2.

 I would like to make it deegree-branded, i.e. it would be named
 deegree installer, I would like to use the deegree logo, etc. Of 
 course, we will credit Tomcat, but we want to avoid confusion for
 users who just want to install deegree and don't care about the
 details of a web container.

Making it degree branded should ensure you meet the requirements of
section 6.

As long as you provide credit in the form required by section 4, again
you should be fine.

 - Has anybody insights or best practices to share?

When speaking to folks that are new to the ALv2 I usually use the
following example.

If I download Apache Tomcat, re-brand it as Mark's Servlet
container, add a notice on the package that says based on software
from the Apache Software Foundation and stick the result on a web
site and start selling it for $1,000 / copy the ASF would be
absolutely fine with that. BTW, if any one wants a copy, let me know ;).

The key things are:
- don't abuse ASF trademarks
- include the NOTICE  LICENSE file
- credit the ASF

Note: You should read the ALv2 for the full details.

 - Are there any open-source projects that use build scripts which I
 may re-use?

Some work is starting on a Maven build for Tomcat trunk / 7. That
might help.

HTH,

Mark

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



Re: URI mapping

2011-10-22 Thread Mark Thomas
On 22/10/2011 17:11, Eldon Olmstead wrote:
 Hello,
 
 I'm using the following
 Apache2.2
 mod_jk 1.2.32
 Tomcat 7.0.21
 
 I am trying to understand how to configure Apache to allow access to
 Tomcat via mod_jk. I have already made some progress, but have got stuck
 on one point.
 
 Currently, I can access Apache at http://localhost ( works )
 I can also access tomcats default wepapp and the manager and
 host-manager via
 
 http://localhost:8080/
 http://localhost:8080/manager
 http://localhost:8080/host-manager
 
 
 What I want to do next it to connect Apache to Tomcat via mod_jk such
 that the following URLs work
 
 http://localhost/tomcat7/ ( default tomcat webapp)
 http://localhost/tomcat7/manager
 http://localhost/tomcat7/host-manager
 
 
 I have updated the workers.properties with:
 
worker.list=tomcat7
worker.tomcat7.type=ajp13
worker.tomcat7.host=localhost
worker.tomcat7.port=8809
 
 I have added the the following in my http-jk.conf that I include in
 http.conf:
 
JkMount  /tomcat7/* tomcat7
 
 When I try to access http://localhost/tomcat7, tomcat is given the URI
 /tomcat7/
 
127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] GET /tomcat7/ HTTP/1.1
404 979
 
 So from the above log, I know that apache is forwarding the requests to
 tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part
 of the request and since there is no tomcat7 web app, it doesn't match
 the request.
 
 I would like http://localhost/tomcat7/ to map to the root of my Tomcat,
 and to be able to access http://localhost/tomcat7/manager,
 http://localhost/tomcat7/host-manager.
 
 What do I do next?

If you want to modify the URL, you'll need to use mod_proxy. Then you
can do:

ProxyPass /tomcat7 http://localhost:8080
or
ProxyPass /tomcat7 ajp://localhost:8080

Note that as soon as you start modifying the URL as part of the
ProxyPass you open up a world of opportunity for things to go wrong
(redirects, cookie paths, links). All of these are fixable but it is a
lot easier just to use the same URL structure in both httpd and Tomcat.

Mark

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



Re: URI mapping

2011-10-22 Thread Eldon Olmstead

Thanks for the response Mark,

Ok so if I want to keep mod_jk as part of this, ( it is what we use at 
work ), then if I understand right, I have no choice but to make tomcat 
support /tomcat7/ in the path. Do I do this just by moving all the 
webapps under webapps/tomcat7/? Will I have to make other configuration 
changes?


What is the right way to do this? The way we have it at work is that 
each tomcat worker is pointing to one developer's tomcat installation 
for the developer to do with as they need.


On 2011-10-22 1:17 PM, Mark Thomas wrote:

On 22/10/2011 17:11, Eldon Olmstead wrote:

Hello,

I'm using the following
Apache2.2
mod_jk 1.2.32
Tomcat 7.0.21

I am trying to understand how to configure Apache to allow access to
Tomcat via mod_jk. I have already made some progress, but have got stuck
on one point.

Currently, I can access Apache at http://localhost ( works )
I can also access tomcats default wepapp and the manager and
host-manager via

http://localhost:8080/
http://localhost:8080/manager
http://localhost:8080/host-manager


What I want to do next it to connect Apache to Tomcat via mod_jk such
that the following URLs work

http://localhost/tomcat7/ ( default tomcat webapp)
http://localhost/tomcat7/manager
http://localhost/tomcat7/host-manager


I have updated the workers.properties with:

worker.list=tomcat7
worker.tomcat7.type=ajp13
worker.tomcat7.host=localhost
worker.tomcat7.port=8809

I have added the the following in my http-jk.conf that I include in
http.conf:

JkMount  /tomcat7/* tomcat7

When I try to access http://localhost/tomcat7, tomcat is given the URI
/tomcat7/

127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] GET /tomcat7/ HTTP/1.1
404 979

So from the above log, I know that apache is forwarding the requests to
tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part
of the request and since there is no tomcat7 web app, it doesn't match
the request.

I would like http://localhost/tomcat7/ to map to the root of my Tomcat,
and to be able to access http://localhost/tomcat7/manager,
http://localhost/tomcat7/host-manager.

What do I do next?

If you want to modify the URL, you'll need to use mod_proxy. Then you
can do:

ProxyPass /tomcat7 http://localhost:8080
or
ProxyPass /tomcat7 ajp://localhost:8080

Note that as soon as you start modifying the URL as part of the
ProxyPass you open up a world of opportunity for things to go wrong
(redirects, cookie paths, links). All of these are fixable but it is a
lot easier just to use the same URL structure in both httpd and Tomcat.

Mark

-
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: Best practices for creating a Windows installer with bundled webapp

2011-10-22 Thread Markus Schneider
Mark,

thanks for the quick reply.

I will have a look at the license and especially review the sections you
pointed out.

Best regards,
Markus

Am 22.10.2011 18:13, schrieb Mark Thomas:
 On 22/10/2011 15:49, Markus Schneider wrote:
 Hi list,

 I am not totally sure if this is the right place to ask this
 question, so please excuse and point me to the right list if this
 is not the case.
 
 You are in the right place, but keep in mind we can't give you legal
 advice. If you want that, you'll need to pay for your own lawyer.
 
 - Is the Tomcat license/project o.k. with deriving such a modified 
 installer?
 
 You may do whatever you like as long as it is within the terms of the
 Apache License. Providing a modified installer should be OK. I would
 suggest you pay particular attention to sections 4 and 6 of the ALv2.
 
 I would like to make it deegree-branded, i.e. it would be named
 deegree installer, I would like to use the deegree logo, etc. Of 
 course, we will credit Tomcat, but we want to avoid confusion for
 users who just want to install deegree and don't care about the
 details of a web container.
 
 Making it degree branded should ensure you meet the requirements of
 section 6.
 
 As long as you provide credit in the form required by section 4, again
 you should be fine.
 
 - Has anybody insights or best practices to share?
 
 When speaking to folks that are new to the ALv2 I usually use the
 following example.
 
 If I download Apache Tomcat, re-brand it as Mark's Servlet
 container, add a notice on the package that says based on software
 from the Apache Software Foundation and stick the result on a web
 site and start selling it for $1,000 / copy the ASF would be
 absolutely fine with that. BTW, if any one wants a copy, let me know ;).
 
 The key things are:
 - don't abuse ASF trademarks
 - include the NOTICE  LICENSE file
 - credit the ASF
 
 Note: You should read the ALv2 for the full details.
 
 - Are there any open-source projects that use build scripts which I
 may re-use?
 
 Some work is starting on a Maven build for Tomcat trunk / 7. That
 might help.
 
 HTH,
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-- 
Markus Schneider

Occam Labs UG (haftungsbeschränkt)
Godesberger Allee 139
53175 Bonn, Germany

+49 228 93798874

http://www.occamlabs.de



signature.asc
Description: OpenPGP digital signature


Re: Re: tomcat error 404

2011-10-22 Thread Dave Filchak

Hi André,

Sorry about the comments. Wasn't thinking. So, I did find that one of
the closing comment tags in my web.xml was entered as ==. Fixing that
gave me some progress in that the site's homepage now comes up. However,
I now get the following error when clicking on a few links, which
obviously refer to a connection to the database:

Error initializing sub-systems:
Please check the following:
1. That your machine has a valid connection to 
jdbc:mysql://localhost/_exodus Using:
Username: _exodus
Password: ##
Driver: com.mysql.jdbc.Driver


*DETAILS FOLLOW:*
java.lang.Exception: Unable to Initialize Environment:
java.lang.NoClassDefFoundError: javax/mail/Address
at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
at com.snapmedia.SystemController.init(SystemController.java:86)
at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
Caused by: java.lang.ClassNotFoundException: javax.mail.Address
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
... 25 more

I have verified that thew username and password are correct by logging
into the MySQL server from the command line. Something with the driver?

Dave



On 22/07/64 2:59 PM, André Warnier wrote:

Hi.

One thing at a time..

1) When you send XML configuration files, please remove everything 
that is a comment.
XML files are already being wrapped by the email program, and are 
difficult to read as it is. Having plenty of comments in them in 
addition makes is really a hassle to figure out what is being used or 
not.

(Note: an XML comment is anything between a pair of !-- and -- )

2) one error message below talks about an invalid XML file.
Inside one of the comments (between a leading !-- and a trailing 
--), there is another pair of -- . That is incorrect and causes the 
entire file to be rejected/ignored.

Inspect that file carefully, remove the offending --, and try again.

(Note: the extra -- may also be due to a previous bad edit of the 
file.  It may have been a !-- or a -- , where someone tried to 
comment or de-comment something, and either removed too much or added 
not enough.
Remember that everything between a pair of !-- and -- is a comment 
(normally ignored), and inside of such a comment, you cannot have 
another pair of -- )


Do this carefully, as it may be the basic cause why the whole thing is 
not working.

Keep a backup of the original, for each file that you start editing.

(Another note: there exist text editors which can show you if a file 
is correct XML or not.  For a windows PC, look up Notepad++ in Google)


3) what happens when, in your browser, you enter the URL :

http://your-host-name:8180

?
(replace your-host-name by .. your real host name (or its IP address))




Dave Filchak wrote:

Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: tomcat error 404
I am receiving a HTTP Status 404 error.

Can you tell if the 

Re: URI mapping

2011-10-22 Thread Tobias Crefeld
Am Sat, 22 Oct 2011 17:17:26 +0100 schrieb Mark Thomas
ma...@apache.org:

 ProxyPass /tomcat7 http://localhost:8080
 or
 ProxyPass /tomcat7 ajp://localhost:8080

Usually Tomcat is listening for ajp-requests on port 8009, not 8080.

Regards,
 Tobias.

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



Re: Tomcat application startup - Lifecycleexception

2011-10-22 Thread ramsri

I learn. Thank you for the help and prompt responses. This problem is solved. 


Pid * wrote:
 
 On 21/10/2011 00:26, ramsri wrote:
 I now know that there is no longer a need to mess around with
 setclasspath.sh.
 
 I'm not sure there ever was.
 
 
 p
 
 
  
 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-application-startup---Lifecycleexception-tp32693089p32702567.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: URI mapping

2011-10-22 Thread André Warnier

Hi.

What response ? to what question ?

Top-posting makes it difficult to follow the flow of questions/answers.
Mark's response was at the bottom, where it was logically following the part of the 
question he was answering.  Once it has started that way, it is a lot easier for everyone 
to continue the same way.

See next message.

Eldon Olmstead wrote:

Thanks for the response Mark,

Ok so if I want to keep mod_jk as part of this, ( it is what we use at 
work ), then if I understand right, I have no choice but to make tomcat 
support /tomcat7/ in the path. Do I do this just by moving all the 
webapps under webapps/tomcat7/? Will I have to make other configuration 
changes?


What is the right way to do this? The way we have it at work is that 
each tomcat worker is pointing to one developer's tomcat installation 
for the developer to do with as they need.


On 2011-10-22 1:17 PM, Mark Thomas wrote:

On 22/10/2011 17:11, Eldon Olmstead wrote:

Hello,

I'm using the following
Apache2.2
mod_jk 1.2.32
Tomcat 7.0.21

I am trying to understand how to configure Apache to allow access to
Tomcat via mod_jk. I have already made some progress, but have got stuck
on one point.

Currently, I can access Apache at http://localhost ( works )
I can also access tomcats default wepapp and the manager and
host-manager via

http://localhost:8080/
http://localhost:8080/manager
http://localhost:8080/host-manager


What I want to do next it to connect Apache to Tomcat via mod_jk such
that the following URLs work

http://localhost/tomcat7/ ( default tomcat webapp)
http://localhost/tomcat7/manager
http://localhost/tomcat7/host-manager


I have updated the workers.properties with:

worker.list=tomcat7
worker.tomcat7.type=ajp13
worker.tomcat7.host=localhost
worker.tomcat7.port=8809

I have added the the following in my http-jk.conf that I include in
http.conf:

JkMount  /tomcat7/* tomcat7

When I try to access http://localhost/tomcat7, tomcat is given the URI
/tomcat7/

127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] GET /tomcat7/ HTTP/1.1
404 979

So from the above log, I know that apache is forwarding the requests to
tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part
of the request and since there is no tomcat7 web app, it doesn't match
the request.

I would like http://localhost/tomcat7/ to map to the root of my Tomcat,
and to be able to access http://localhost/tomcat7/manager,
http://localhost/tomcat7/host-manager.

What do I do next?

If you want to modify the URL, you'll need to use mod_proxy. Then you
can do:

ProxyPass /tomcat7 http://localhost:8080
or
ProxyPass /tomcat7 ajp://localhost:8080

Note that as soon as you start modifying the URL as part of the
ProxyPass you open up a world of opportunity for things to go wrong
(redirects, cookie paths, links). All of these are fixable but it is a
lot easier just to use the same URL structure in both httpd and Tomcat.

Mark

-
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: Undeploy fails with Tomcat 7 manager application

2011-10-22 Thread Pid
On 22/10/2011 12:38, Mike wrote:
 Mark Thomas markt at apache.org writes:

 Where is the log file created? Why are you trying to delete it?

 Mark

 
 The logfile is created within the application deployed to the webapps 
 directory of tomcat (and there within [applicationName]\resources\log). 
 
 I am not trying to delete it. However, when issuing the redeploy command with 
 maven the problem appears (The continued presence of this file may 
 cause problems.) and the application cannot be redeployed. Even when 
 trying to undeploy the application via the tomcat manager (via the manager 
 gui button undeploy) it cannot be undeployed completely. Only the 
 war file and all application files except the log file are removed. Only 
 when stopping tomcat can the application be completely removed. After 
 starting tomcat again I can deploy again successfully. 

Writing the log file (or any file) inside the app isn't such a good
idea.  Try putting it in the tomcat/logs directory.


p




signature.asc
Description: OpenPGP digital signature


Re: URI mapping

2011-10-22 Thread Pid
On 22/10/2011 17:42, Eldon Olmstead wrote:
 Thanks for the response Mark,
 
 Ok so if I want to keep mod_jk as part of this, ( it is what we use at
 work ), then if I understand right, I have no choice but to make tomcat
 support /tomcat7/ in the path. Do I do this just by moving all the
 webapps under webapps/tomcat7/? 

No.  The appBase (the 'webapps' dir in your case) is not a document root
like HTTPD, it is the location for your apps - their published paths are
based on their names (usually).

You would have rename the applications, from:

 tomcat/webapps/app1.war - http://host/app1
 tomcat/webapps/app2.war - http://host/app2

to:

 tomcat/webapps/tomcat7#app1.war - http://host/tomcat7/app1
 tomcat/webapps/tomcat7#app2.war - http://host/tomcat7/app2

The '#' in the name is translated to a '/' in the path.


p

 Will I have to make other configuration changes?
 
 What is the right way to do this? The way we have it at work is that
 each tomcat worker is pointing to one developer's tomcat installation
 for the developer to do with as they need.
 
 On 2011-10-22 1:17 PM, Mark Thomas wrote:
 On 22/10/2011 17:11, Eldon Olmstead wrote:
 Hello,

 I'm using the following
 Apache2.2
 mod_jk 1.2.32
 Tomcat 7.0.21

 I am trying to understand how to configure Apache to allow access to
 Tomcat via mod_jk. I have already made some progress, but have got stuck
 on one point.

 Currently, I can access Apache at http://localhost ( works )
 I can also access tomcats default wepapp and the manager and
 host-manager via

 http://localhost:8080/
 http://localhost:8080/manager
 http://localhost:8080/host-manager


 What I want to do next it to connect Apache to Tomcat via mod_jk such
 that the following URLs work

 http://localhost/tomcat7/ ( default tomcat webapp)
 http://localhost/tomcat7/manager
 http://localhost/tomcat7/host-manager


 I have updated the workers.properties with:

 worker.list=tomcat7
 worker.tomcat7.type=ajp13
 worker.tomcat7.host=localhost
 worker.tomcat7.port=8809

 I have added the the following in my http-jk.conf that I include in
 http.conf:

 JkMount  /tomcat7/* tomcat7

 When I try to access http://localhost/tomcat7, tomcat is given the URI
 /tomcat7/

 127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] GET /tomcat7/ HTTP/1.1
 404 979

 So from the above log, I know that apache is forwarding the requests to
 tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part
 of the request and since there is no tomcat7 web app, it doesn't match
 the request.

 I would like http://localhost/tomcat7/ to map to the root of my Tomcat,
 and to be able to access http://localhost/tomcat7/manager,
 http://localhost/tomcat7/host-manager.

 What do I do next?
 If you want to modify the URL, you'll need to use mod_proxy. Then you
 can do:

 ProxyPass /tomcat7 http://localhost:8080
 or
 ProxyPass /tomcat7 ajp://localhost:8080

 Note that as soon as you start modifying the URL as part of the
 ProxyPass you open up a world of opportunity for things to go wrong
 (redirects, cookie paths, links). All of these are fixable but it is a
 lot easier just to use the same URL structure in both httpd and Tomcat.

 Mark

 -
 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
 




signature.asc
Description: OpenPGP digital signature


Re: URI mapping

2011-10-22 Thread Eldon Olmstead



On 2011-10-22 5:57 PM, Pid wrote:

On 22/10/2011 17:42, Eldon Olmstead wrote:

Thanks for the response Mark,

Ok so if I want to keep mod_jk as part of this, ( it is what we use at
work ), then if I understand right, I have no choice but to make tomcat
support /tomcat7/ in the path. Do I do this just by moving all the
webapps under webapps/tomcat7/?

No.  The appBase (the 'webapps' dir in your case) is not a document root
like HTTPD, it is the location for your apps - their published paths are
based on their names (usually).

You would have rename the applications, from:

  tomcat/webapps/app1.war - http://host/app1
  tomcat/webapps/app2.war - http://host/app2

to:

  tomcat/webapps/tomcat7#app1.war - http://host/tomcat7/app1
  tomcat/webapps/tomcat7#app2.war - http://host/tomcat7/app2

The '#' in the name is translated to a '/' in the path.
OK, so what about the folders that come with Tomcat then? Like ROOT, 
manager, and host-manager? Do I jar those up and name them as 
tomcat7#ROOT.war, tomcat7#manager.war, and tomcat7#host-manager.war?


I just tried creating wars for the above but that doesn't work.

Tomcat's access log is showing apache is passing on the request:
127.0.0.1 - - [22/Oct/2011:18:27:06 -0300] GET /tomcat7 HTTP/1.1 404 -
127.0.0.1 - - [22/Oct/2011:18:27:14 -0300] GET /tomcat7/ROOT HTTP/1.1 
404 -  ( tried this just in case )
127.0.0.1 - - [22/Oct/2011:18:27:21 -0300] GET /tomcat7/manager 
HTTP/1.1 404 -


The apps aren't being found.



p


Will I have to make other configuration changes?

What is the right way to do this? The way we have it at work is that
each tomcat worker is pointing to one developer's tomcat installation
for the developer to do with as they need.

On 2011-10-22 1:17 PM, Mark Thomas wrote:

On 22/10/2011 17:11, Eldon Olmstead wrote:

Hello,

I'm using the following
Apache2.2
mod_jk 1.2.32
Tomcat 7.0.21

I am trying to understand how to configure Apache to allow access to
Tomcat via mod_jk. I have already made some progress, but have got stuck
on one point.

Currently, I can access Apache at http://localhost ( works )
I can also access tomcats default wepapp and the manager and
host-manager via

http://localhost:8080/
http://localhost:8080/manager
http://localhost:8080/host-manager


What I want to do next it to connect Apache to Tomcat via mod_jk such
that the following URLs work

http://localhost/tomcat7/ ( default tomcat webapp)
http://localhost/tomcat7/manager
http://localhost/tomcat7/host-manager


I have updated the workers.properties with:

 worker.list=tomcat7
 worker.tomcat7.type=ajp13
 worker.tomcat7.host=localhost
 worker.tomcat7.port=8809

I have added the the following in my http-jk.conf that I include in
http.conf:

 JkMount  /tomcat7/* tomcat7

When I try to access http://localhost/tomcat7, tomcat is given the URI
/tomcat7/

 127.0.0.1 - - [22/Oct/2011:11:34:20 -0300] GET /tomcat7/ HTTP/1.1
 404 979

So from the above log, I know that apache is forwarding the requests to
tomcat via mod_jk ok, but tomcat now thinks that /tomcat7/ is now part
of the request and since there is no tomcat7 web app, it doesn't match
the request.

I would like http://localhost/tomcat7/ to map to the root of my Tomcat,
and to be able to access http://localhost/tomcat7/manager,
http://localhost/tomcat7/host-manager.

What do I do next?

If you want to modify the URL, you'll need to use mod_proxy. Then you
can do:

ProxyPass /tomcat7 http://localhost:8080
or
ProxyPass /tomcat7 ajp://localhost:8080

Note that as soon as you start modifying the URL as part of the
ProxyPass you open up a world of opportunity for things to go wrong
(redirects, cookie paths, links). All of these are fixable but it is a
lot easier just to use the same URL structure in both httpd and Tomcat.

Mark

-
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