RE: Urgent Help

2021-06-30 Thread Mohan T
Hi,

Thanks as suggested by you the issue was there were duplicate class and after 
removal the issue is resolved.

Thanks once again

Mohan

-Original Message-
From: Christopher Schultz 
Sent: 24 June 2021 00:33
To: users@tomcat.apache.org
Subject: Re: Urgent Help

CAUTION: You received this email from external Domain. Check reliability of 
sender’s email ID. Do not click links, open attachments unless you recognize 
the sender and know the content is safe. – Ramco IMG



Mohan,

On 6/23/21 07:20, Mark Thomas wrote:
> On 23/06/2021 11:32, Mohan T wrote:
>> Attaching the Catalina.out file also
>
> Nearly all attachments to this mailing list are blocked.
>
>> MY manifest info is as under.
>>
>> Manifest-Version: 1.0
>> Ant-Version: Apache Ant 1.9.9
>> Created-By: 1.7.0_80-b15 (Oracle Corporation)
>> X-Compile-Source-JDK: 1.7
>> X-Compile-Target-JDK: 1.7
>>
>> Name: javax/servlet/
>> Specification-Title: Java API for Servlets
>> Specification-Version: 3.1
>> Specification-Vendor: Sun Microsystems, Inc.
>> Implementation-Title: javax.servlet
>> Implementation-Version: 3.1.FR
>> Implementation-Vendor: Apache Software Foundation
>
> That looks like the standard Servlet API JAR provided by Tomcat.
>
> Please provide a list of all the JAR files under WEB-INF/lib in your
> WAR file.

+1 and maybe also everything in $CATALINA_BASE/lib as well, just in case
your Tomcat lib directory has had things added.

-chris

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

DISCLAIMER: This communication contains information which is confidential and 
the copyright of Ramco Systems Ltd, its subsidiaries or a third party 
(“Ramco”). This email may also contain legally privileged information. 
Confidentiality and legal privilege attached to this communication are not 
waived or lost by reason of mistaken delivery to you.This email is intended to 
be read or used by the addressee only. If you are not the intended recipient, 
any use, distribution, disclosure or copying of this email is strictly 
prohibited without the express written approval of Ramco. Please delete and 
destroy all copies and email Ramco at le...@ramco.com immediately. Any views 
expressed in this communication are those of the individual sender, except 
where the sender specifically states them to be the views of Ramco. Except as 
required by law, Ramco does not represent, warrant and/or guarantee that the 
integrity of this communication has been maintained nor that the communication 
is free of errors, virus, interception or interference. If you do not wish to 
receive such communications, please forward this communication to 
market...@ramco.com and express your wish not to receive such communications 
henceforth.

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



Re: Urgent Help

2021-06-23 Thread Rob Sargent

I dropped a couple lines in the C/P, ammended below

On 6/23/21 1:35 PM, Rob Sargent wrote:



Please provide a list of all the JAR files under WEB-INF/lib in your 
WAR file.


+1 and maybe also everything in $CATALINA_BASE/lib as well, just in 
case your Tomcat lib directory has had things added.


-chris

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


If looking for the source(s) of a given class, here's a bash function

function jargrep {
    sdir=`pwd`
    target=$1
    if [[ "$target"x == "x" ]]
    then
    printf "need at least search value, with optional starting dir\n"
    printf "use colon sep'd list for multiple, non-redundant dirs
(eg CLASSPATH)"
    return
    fi
    cdir=`pwd`
    finded=
    if [ "$2"x != "x" ]
    then
    cdir=( $(echo "$2" | sed s/:/\ /g) )
    fi

    for d in ${cdir[@]}; do
    cd $d
    if [[ $JARGREP_DEBUG ]]; then printf "TOPDIR is now: %s\n" $d; fi
 for jlist in `find . -name \*.jar`
 do
     if [[ $JARGREP_DEBUG ]]; then printf "checking %s/%s for
%s\n" $d $jlist $target; fi
     for founds in `jar tf $jlist | grep $1`
     do
        if [[ $JARGREP_DEBUG ]]; then printf "full founds: %s\n"
"$founds"; fi
    printf "Found in %s as %s\n" $jlist ${founds}
     finded=1
     done
 done
    cd ..
    done


    if [ ! $finded ]; then echo "I got nothin' from ${cdir[@]}"; fi
    cd $sdir

}
which takes the class name (e.g. ServletContext) and an optional 
starting dir (default to .) and scans any found jars for anything 
remotely similar.







Re: Urgent Help

2021-06-23 Thread Christopher Schultz

Mohan,

On 6/23/21 07:20, Mark Thomas wrote:

On 23/06/2021 11:32, Mohan T wrote:

Attaching the Catalina.out file also


Nearly all attachments to this mailing list are blocked.


MY manifest info is as under.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.9
Created-By: 1.7.0_80-b15 (Oracle Corporation)
X-Compile-Source-JDK: 1.7
X-Compile-Target-JDK: 1.7

Name: javax/servlet/
Specification-Title: Java API for Servlets
Specification-Version: 3.1
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: javax.servlet
Implementation-Version: 3.1.FR
Implementation-Vendor: Apache Software Foundation


That looks like the standard Servlet API JAR provided by Tomcat.

Please provide a list of all the JAR files under WEB-INF/lib in your WAR 
file.


+1 and maybe also everything in $CATALINA_BASE/lib as well, just in case 
your Tomcat lib directory has had things added.


-chris

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



Re: Urgent Help

2021-06-23 Thread Mark Thomas

On 23/06/2021 11:32, Mohan T wrote:

Attaching the Catalina.out file also


Nearly all attachments to this mailing list are blocked.


MY manifest info is as under.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.9
Created-By: 1.7.0_80-b15 (Oracle Corporation)
X-Compile-Source-JDK: 1.7
X-Compile-Target-JDK: 1.7

Name: javax/servlet/
Specification-Title: Java API for Servlets
Specification-Version: 3.1
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: javax.servlet
Implementation-Version: 3.1.FR
Implementation-Vendor: Apache Software Foundation


That looks like the standard Servlet API JAR provided by Tomcat.

Please provide a list of all the JAR files under WEB-INF/lib in your WAR 
file.


Mark

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



RE: Urgent Help

2021-06-23 Thread Mohan T
Attaching the Catalina.out file also


MY manifest info is as under.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.9
Created-By: 1.7.0_80-b15 (Oracle Corporation)
X-Compile-Source-JDK: 1.7
X-Compile-Target-JDK: 1.7

Name: javax/servlet/
Specification-Title: Java API for Servlets
Specification-Version: 3.1
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: javax.servlet
Implementation-Version: 3.1.FR
Implementation-Vendor: Apache Software Foundation



-Original Message-
From: Jean-Pierre Urkens 
Sent: 23 June 2021 15:55
To: Tomcat Users List 
Subject: RE: Urgent Help

CAUTION: You received this email from external Domain. Check reliability of 
sender’s email ID. Do not click links, open attachments unless you recognize 
the sender and know the content is safe. – Ramco IMG



What is the servlet-api version indicated in the META-INF/MANIFEST.mf file 
contained in the servlet-api.jar. If it is v3.1 (or higher) the 
ServletContext.class should contain the method getCloassLoader()? If it is 2.x, 
it won't.
You might want to check your classpath (checkout Catalina.out to see a dump of 
the classpath) to see if there is another jar that might contain javax.servlet 
classes that get loaded even before servlet-api.jar.



-Original Message-
From: Mohan T 
Sent: woensdag 23 juni 2021 12:09
To: Tomcat Users List 
Subject: RE: Urgent Help

Hi,

Thanks for the immediate response. I am attaching my file that is used for 
starting the tomcat instance. Infact I have  the  servlet-api.jar in tomcat lib.

I am unable to conclude on this.

Kindly guide me.

Thanks

Mohan
-Original Message-
From: Jean-Pierre Urkens 
Sent: 23 June 2021 15:17
To: Tomcat Users List 
Subject: RE: Urgent Help

CAUTION: You received this email from external Domain. Check reliability of 
sender’s email ID. Do not click links, open attachments unless you recognize 
the sender and know the content is safe. – Ramco IMG



From where is the ServletContext.class loaded? Is it from 
/lib/servlet-api.jar or from another jar-library on the classpath? 
My guess is that you have multiple jars  containing the ServletContext.class 
and not all of these are related to the same servlet-api version and thus not 
supporting the getClassLoader() method.
You might be loading the wrong SevletContext class file.



-Original Message-
From: Mohan T 
Sent: woensdag 23 juni 2021 11:35
To: Tomcat Users List 
Subject: Urgent Help

Hi,

While starting tomcat, I am getting this error .

Neither the console is starting nor the application is working .

It is tomcat 8.5.35 on linux

Please help

Mohan

23-Jun-2021 14:42:09.857 SEVERE [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web 
application archive 
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war]
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/admin]]
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:758)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)

23-Jun-2021 14:42:09.864 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war] has 
finished in [608] ms
23-Jun-2021 14:42:09.880 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/audit.war]
23-Jun-2021 14:42:09.927 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/audit]]
   at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:754)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985

RE: Urgent Help

2021-06-23 Thread Jean-Pierre Urkens
What is the servlet-api version indicated in the META-INF/MANIFEST.mf file
contained in the servlet-api.jar. If it is v3.1 (or higher) the
ServletContext.class should contain the method getCloassLoader()? If it is
2.x, it won't.
You might want to check your classpath (checkout Catalina.out to see a dump
of the classpath) to see if there is another jar that might contain
javax.servlet classes that get loaded even before servlet-api.jar.



-Original Message-
From: Mohan T 
Sent: woensdag 23 juni 2021 12:09
To: Tomcat Users List 
Subject: RE: Urgent Help

Hi,

Thanks for the immediate response. I am attaching my file that is used for
starting the tomcat instance. Infact I have  the  servlet-api.jar in tomcat
lib.

I am unable to conclude on this.

Kindly guide me.

Thanks

Mohan
-Original Message-
From: Jean-Pierre Urkens 
Sent: 23 June 2021 15:17
To: Tomcat Users List 
Subject: RE: Urgent Help

CAUTION: You received this email from external Domain. Check reliability of
sender’s email ID. Do not click links, open attachments unless you recognize
the sender and know the content is safe. – Ramco IMG



>From where is the ServletContext.class loaded? Is it from
/lib/servlet-api.jar or from another jar-library on the
classpath? My guess is that you have multiple jars  containing the
ServletContext.class and not all of these are related to the same
servlet-api version and thus not supporting the getClassLoader() method.
You might be loading the wrong SevletContext class file.



-Original Message-
From: Mohan T 
Sent: woensdag 23 juni 2021 11:35
To: Tomcat Users List 
Subject: Urgent Help

Hi,

While starting tomcat, I am getting this error .

Neither the console is starting nor the application is working .

It is tomcat 8.5.35 on linux

Please help

Mohan

23-Jun-2021 14:42:09.857 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web
application archive
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war]
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/admin]]
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:758)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)

23-Jun-2021 14:42:09.864 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web
application archive
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war] has
finished in [608] ms
23-Jun-2021 14:42:09.880 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/audit.war]
23-Jun-2021 14:42:09.927 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/audit]]
   at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:754)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
   at
org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJar
Scanner.java:246)
   at
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.jav
a:

RE: Urgent Help

2021-06-23 Thread Mohan T
Hi,

Thanks for the immediate response. I am attaching my file that is used for 
starting the tomcat instance. Infact I have  the  servlet-api.jar in tomcat lib.

I am unable to conclude on this.

Kindly guide me.

Thanks

Mohan
-Original Message-
From: Jean-Pierre Urkens 
Sent: 23 June 2021 15:17
To: Tomcat Users List 
Subject: RE: Urgent Help

CAUTION: You received this email from external Domain. Check reliability of 
sender’s email ID. Do not click links, open attachments unless you recognize 
the sender and know the content is safe. – Ramco IMG



From where is the ServletContext.class loaded? Is it from 
/lib/servlet-api.jar or from another jar-library on the classpath? 
My guess is that you have multiple jars  containing the ServletContext.class 
and not all of these are related to the same servlet-api version and thus not 
supporting the getClassLoader() method.
You might be loading the wrong SevletContext class file.



-Original Message-
From: Mohan T 
Sent: woensdag 23 juni 2021 11:35
To: Tomcat Users List 
Subject: Urgent Help

Hi,

While starting tomcat, I am getting this error .

Neither the console is starting nor the application is working .

It is tomcat 8.5.35 on linux

Please help

Mohan

23-Jun-2021 14:42:09.857 SEVERE [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web 
application archive 
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war]
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/admin]]
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:758)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)

23-Jun-2021 14:42:09.864 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war] has 
finished in [608] ms
23-Jun-2021 14:42:09.880 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/audit.war]
23-Jun-2021 14:42:09.927 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/audit]]
   at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:754)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
   at
org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJar
Scanner.java:246)
   at
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.jav
a:229)
   at
org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(Conte
xtConfig.java:1892)
   at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:112
0)
   at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.jav
a:769)
   at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.jav
a:299)
   at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.ja
va:94)
   at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.jav
a:5154)
   at
org.apache.catalina.util.LifecycleBase.start

RE: Urgent Help

2021-06-23 Thread Jean-Pierre Urkens
>From where is the ServletContext.class loaded? Is it from
/lib/servlet-api.jar or from another jar-library on the
classpath? My guess is that you have multiple jars  containing the
ServletContext.class and not all of these are related to the same
servlet-api version and thus not supporting the getClassLoader() method.
You might be loading the wrong SevletContext class file.



-Original Message-
From: Mohan T 
Sent: woensdag 23 juni 2021 11:35
To: Tomcat Users List 
Subject: Urgent Help

Hi,

While starting tomcat, I am getting this error .

Neither the console is starting nor the application is working .

It is tomcat 8.5.35 on linux

Please help

Mohan

23-Jun-2021 14:42:09.857 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web
application archive
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war]
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/admin]]
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:758)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)

23-Jun-2021 14:42:09.864 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web
application archive
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war] has
finished in [608] ms
23-Jun-2021 14:42:09.880 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/audit.war]
23-Jun-2021 14:42:09.927 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/audit]]
   at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
:754)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1149)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:624)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
   at
org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJar
Scanner.java:246)
   at
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.jav
a:229)
   at
org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(Conte
xtConfig.java:1892)
   at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:112
0)
   at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.jav
a:769)
   at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.jav
a:299)
   at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.ja
va:94)
   at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.jav
a:5154)
   at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
DISCLAIMER: This communication contains information which is confidential
and the copyright of Ramco Systems Ltd, its subsidiaries or a third party
("Ramco"). This email may also contain legally privileged information.
Confidentiality and legal privilege attached to this communication are not
waived or lost by reason of mistaken delivery to you.This email is
intended to be read or used by the addressee only. If you are not the
intended recipient, any use, distribution, disclosure or copying of this
email is strict

Urgent Help

2021-06-23 Thread Mohan T
Hi,

While starting tomcat, I am getting this error .

Neither the console is starting nor the application is working .

It is tomcat 8.5.35 on linux

Please help

Mohan

23-Jun-2021 14:42:09.857 SEVERE [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web 
application archive 
[/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war]
java.lang.IllegalStateException: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/admin]]
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:758)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)

23-Jun-2021 14:42:09.864 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/admin.war] has 
finished in [608] ms
23-Jun-2021 14:42:09.880 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive [/home/ilas/tomcat8.5_tech/apache-tomcat-8.5.35/webapps/audit.war]
23-Jun-2021 14:42:09.927 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: 
start:
 org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/audit]]
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
   at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
   at 
org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:246)
   at 
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
   at 
org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1892)
   at 
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1120)
   at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
   at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
   at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
   at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
DISCLAIMER: This communication contains information which is confidential and 
the copyright of Ramco Systems Ltd, its subsidiaries or a third party 
("Ramco"). This email may also contain legally privileged information. 
Confidentiality and legal privilege attached to this communication are not 
waived or lost by reason of mistaken delivery to you.This email is intended to 
be read or used by the addressee only. If you are not the intended recipient, 
any use, distribution, disclosure or copying of this email is strictly 
prohibited without the express written approval of Ramco. Please delete and 
destroy all copies and email Ramco at le...@ramco.com immediately. Any views 
expressed in this communication are those of the individual sender, except 
where the sender specifically states them to be the views of Ramco. Except as 
required by law, Ramco does not represent, warrant and/or guarantee that the 
integrity of this communication has been maintained nor that the communication 
is free of errors, 

RE: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-18 Thread Jonnalagadda, Swathi (External)

Hi Schultz

Please find sample code below
Suffix is there in request so ..

RequestDispatcher rd = context.getRequestDispatcher(sample.xls);
String contentType =((request.getParameter(SUFFIX) 
!=null) && ((request.getParameter(SUFFIX).equalsIgnoreCase("xls" 
?"application/vnd.ms-excel":null; <--- setting explicitly
if (contentType != null)
{
response.setContentType(contentType);
}
rd.forward(request, response);

Thanks
Swathi

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, January 15, 2021 7:41 PM
To: users@tomcat.apache.org
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Swathi,

On 1/15/21 08:41, Jonnalagadda, Swathi (External) wrote:
> My web application is trying to open the xls file by passing the file 
> to request.getDispatcher method. It is supposed open up download 
> dialogue box but it is not doing.
After you get a request dispatcher, what are you doing with it?

> If I set the content-type explicitly to response it is showing up the box.

Please post actual code.

> With Tomcat 7 it was never an issue and it used to consider mimetype 
> that is defined in web.xml but in Tomcat 9 not sure why it is not 
> considering mime-type.

Something seems odd, here. Post your sample code.

-chris

> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Friday, January 15, 2021 3:25 AM
> To: users@tomcat.apache.org
> Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!
> 
> CAUTION:   This email originated from outside the organization. Do not click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.
> 
> Swathi,
> 
> On 1/13/21 03:27, Jonnalagadda, Swathi (External) wrote:
>> We could see that when we try to open the xls file separately the 
>> browser shows dialogue box to save it so it is nothing to do with 
>> browser settings
> What is the difference between "open[ing] the XLS file separately" and ... 
> whatever your application is doing instead?
> 
> If you want to force a download, you need to add some response headers 
> otherwise a normal browser will usually try to render the file in the browser 
> window instead of initiating a download.
> 
> The response header you need is "Content-Disposition" and its value can be 
> complex. Here is what I usually do:
> 
> Content-Disposition: attachment; filename="[filename]"; 
> filename*=utf-8''[filename in UTF-8 encoding]
> 
> Note that the above is all on one line and the two single-quotes are not a 
> typo. You will also need to escape any double-quotes in the "filename"
> and escape any semicolons in the utf8-filename.
> 
> You can find more information here as well as other places online:
> https://www.geeksforgeeks.org/http-headers-content-disposition/
> 
> The above reference happens to be particularly thorough, even moreso than 
> Mozilla's (typically very good and complete) documentation for 
> Content-Disposition.
> 
> If your application is not being hosted within a web browser (e.g. it's a 
> mobile application, or an Electron (etc.) application, etc.) then it's 
> entirely up to you to trigger the display of a download dialog when this kind 
> of thing needs to happen.
> 
> -chris
> 
>> -Original Message-
>> From: Mounika Reddy [mailto:spidermai...@gmail.com]
>> Sent: Wednesday, January 13, 2021 3:48 AM
>> To: Tomcat Users List
>> Cc: Mark Thomas
>> Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!
>>
>> CAUTION:   This email originated from outside the organization. Do not click 
>> links or open attachments unless you recognize the sender and know the 
>> content is safe.
>>
>> Pls check http response headers for the request to confirm if it's returning 
>> proper headers.
>>
>> Once they are in place then it may be to do with browser settings not 
>> processing headers.
>>
>>
>>
>> On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
>> swathi.jonnalaga...@xerox.com> wrote:
>>
>>> Hi Team
>>>
>>> We have an application deployed in tomcat9.0.38 server which 
>>> generates an xls file dynamically and saves at server end. When we 
>>> try to access th

Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-15 Thread Christopher Schultz

Swathi,

On 1/15/21 08:41, Jonnalagadda, Swathi (External) wrote:

My web application is trying to open the xls file by passing the file
to request.getDispatcher method. It is supposed open up download
dialogue box but it is not doing.

After you get a request dispatcher, what are you doing with it?


If I set the content-type explicitly to response it is showing up the box.


Please post actual code.


With Tomcat 7 it was never an issue and it used to consider mimetype
that is defined in web.xml but in Tomcat 9 not sure why it is not
considering mime-type.


Something seems odd, here. Post your sample code.

-chris


-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Friday, January 15, 2021 3:25 AM
To: users@tomcat.apache.org
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Swathi,

On 1/13/21 03:27, Jonnalagadda, Swathi (External) wrote:

We could see that when we try to open the xls file separately the
browser shows dialogue box to save it so it is nothing to do with
browser settings

What is the difference between "open[ing] the XLS file separately" and ... 
whatever your application is doing instead?

If you want to force a download, you need to add some response headers 
otherwise a normal browser will usually try to render the file in the browser 
window instead of initiating a download.

The response header you need is "Content-Disposition" and its value can be 
complex. Here is what I usually do:

Content-Disposition: attachment; filename="[filename]"; 
filename*=utf-8''[filename in UTF-8 encoding]

Note that the above is all on one line and the two single-quotes are not a typo. You will 
also need to escape any double-quotes in the "filename"
and escape any semicolons in the utf8-filename.

You can find more information here as well as other places online:
https://www.geeksforgeeks.org/http-headers-content-disposition/

The above reference happens to be particularly thorough, even moreso than 
Mozilla's (typically very good and complete) documentation for 
Content-Disposition.

If your application is not being hosted within a web browser (e.g. it's a 
mobile application, or an Electron (etc.) application, etc.) then it's entirely 
up to you to trigger the display of a download dialog when this kind of thing 
needs to happen.

-chris


-Original Message-
From: Mounika Reddy [mailto:spidermai...@gmail.com]
Sent: Wednesday, January 13, 2021 3:48 AM
To: Tomcat Users List
Cc: Mark Thomas
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Pls check http response headers for the request to confirm if it's returning 
proper headers.

Once they are in place then it may be to do with browser settings not 
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
swathi.jonnalaga...@xerox.com> wrote:


Hi Team

We have an application deployed in tomcat9.0.38 server which
generates an xls file dynamically and saves at server end. When we
try to access the file using application frontend, it is neither
showing up in excel format nor showing up pop up to save the file
instead it is showing the content of xls file in xml format directly on the 
browser.

Below mime type is set both at web.xml of webapplicatio end and as
well as Tomcat9038/conf/web.xml


  xls
  application/vnd.ms-excel
  

Could you please help in resolving the issue ASAP


Thanks
Swathi



-
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



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



Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-15 Thread Mounika Reddy
As Niranjan said, pls validate the headers first and it may be not the case
in Tomcat7 but there are multiple points which must have updated probably
triggering it. Only way to verify is set Content-Disposition header
accurately and verify if browser can see it

On Fri, Jan 15, 2021, 8:41 AM Jonnalagadda, Swathi (External) <
swathi.jonnalaga...@xerox.com> wrote:

> Hi Chris
>
> My web application is trying to open the xls file by passing the file to
> request.getDispatcher method. It is supposed open up download dialogue box
> but it is not doing.
>
> If I set the content-type explicitly to response it is showing up the box.
>
> With Tomcat 7 it was never an issue and it used to consider mimetype that
> is defined in web.xml but in Tomcat 9 not sure why it is not considering
> mime-type.
>
> Thanks
> Swathi
>
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Friday, January 15, 2021 3:25 AM
> To: users@tomcat.apache.org
> Subject: Re: Tomcat server not considering Mime Type - Request urgent
> help!!
>
> CAUTION:   This email originated from outside the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
> Swathi,
>
> On 1/13/21 03:27, Jonnalagadda, Swathi (External) wrote:
> > We could see that when we try to open the xls file separately the
> > browser shows dialogue box to save it so it is nothing to do with
> > browser settings
> What is the difference between "open[ing] the XLS file separately" and ...
> whatever your application is doing instead?
>
> If you want to force a download, you need to add some response headers
> otherwise a normal browser will usually try to render the file in the
> browser window instead of initiating a download.
>
> The response header you need is "Content-Disposition" and its value can be
> complex. Here is what I usually do:
>
> Content-Disposition: attachment; filename="[filename]";
> filename*=utf-8''[filename in UTF-8 encoding]
>
> Note that the above is all on one line and the two single-quotes are not a
> typo. You will also need to escape any double-quotes in the "filename"
> and escape any semicolons in the utf8-filename.
>
> You can find more information here as well as other places online:
> https://www.geeksforgeeks.org/http-headers-content-disposition/
>
> The above reference happens to be particularly thorough, even moreso than
> Mozilla's (typically very good and complete) documentation for
> Content-Disposition.
>
> If your application is not being hosted within a web browser (e.g. it's a
> mobile application, or an Electron (etc.) application, etc.) then it's
> entirely up to you to trigger the display of a download dialog when this
> kind of thing needs to happen.
>
> -chris
>
> > -Original Message-
> > From: Mounika Reddy [mailto:spidermai...@gmail.com]
> > Sent: Wednesday, January 13, 2021 3:48 AM
> > To: Tomcat Users List
> > Cc: Mark Thomas
> > Subject: Re: Tomcat server not considering Mime Type - Request urgent
> help!!
> >
> > CAUTION:   This email originated from outside the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
> >
> > Pls check http response headers for the request to confirm if it's
> returning proper headers.
> >
> > Once they are in place then it may be to do with browser settings not
> processing headers.
> >
> >
> >
> > On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) <
> swathi.jonnalaga...@xerox.com> wrote:
> >
> >> Hi Team
> >>
> >> We have an application deployed in tomcat9.0.38 server which
> >> generates an xls file dynamically and saves at server end. When we
> >> try to access the file using application frontend, it is neither
> >> showing up in excel format nor showing up pop up to save the file
> >> instead it is showing the content of xls file in xml format directly on
> the browser.
> >>
> >> Below mime type is set both at web.xml of webapplicatio end and as
> >> well as Tomcat9038/conf/web.xml
> >>
> >> 
> >>  xls
> >>  application/vnd.ms-excel
> >>  
> >>
> >> Could you please help in resolving the issue ASAP
> >>
> >>
> >> Thanks
> >> Swathi
> >>
> >
> > -
> > 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: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-15 Thread Jonnalagadda, Swathi (External)
Hi Chris

My web application is trying to open the xls file by passing the file to 
request.getDispatcher method. It is supposed open up download dialogue box but 
it is not doing.

If I set the content-type explicitly to response it is showing up the box.

With Tomcat 7 it was never an issue and it used to consider mimetype that is 
defined in web.xml but in Tomcat 9 not sure why it is not considering mime-type.

Thanks
Swathi 

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, January 15, 2021 3:25 AM
To: users@tomcat.apache.org
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Swathi,

On 1/13/21 03:27, Jonnalagadda, Swathi (External) wrote:
> We could see that when we try to open the xls file separately the 
> browser shows dialogue box to save it so it is nothing to do with 
> browser settings
What is the difference between "open[ing] the XLS file separately" and ... 
whatever your application is doing instead?

If you want to force a download, you need to add some response headers 
otherwise a normal browser will usually try to render the file in the browser 
window instead of initiating a download.

The response header you need is "Content-Disposition" and its value can be 
complex. Here is what I usually do:

Content-Disposition: attachment; filename="[filename]"; 
filename*=utf-8''[filename in UTF-8 encoding]

Note that the above is all on one line and the two single-quotes are not a 
typo. You will also need to escape any double-quotes in the "filename" 
and escape any semicolons in the utf8-filename.

You can find more information here as well as other places online:
https://www.geeksforgeeks.org/http-headers-content-disposition/

The above reference happens to be particularly thorough, even moreso than 
Mozilla's (typically very good and complete) documentation for 
Content-Disposition.

If your application is not being hosted within a web browser (e.g. it's a 
mobile application, or an Electron (etc.) application, etc.) then it's entirely 
up to you to trigger the display of a download dialog when this kind of thing 
needs to happen.

-chris

> -Original Message-
> From: Mounika Reddy [mailto:spidermai...@gmail.com]
> Sent: Wednesday, January 13, 2021 3:48 AM
> To: Tomcat Users List
> Cc: Mark Thomas
> Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!
> 
> CAUTION:   This email originated from outside the organization. Do not click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.
> 
> Pls check http response headers for the request to confirm if it's returning 
> proper headers.
> 
> Once they are in place then it may be to do with browser settings not 
> processing headers.
> 
> 
> 
> On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
> swathi.jonnalaga...@xerox.com> wrote:
> 
>> Hi Team
>>
>> We have an application deployed in tomcat9.0.38 server which 
>> generates an xls file dynamically and saves at server end. When we 
>> try to access the file using application frontend, it is neither 
>> showing up in excel format nor showing up pop up to save the file 
>> instead it is showing the content of xls file in xml format directly on the 
>> browser.
>>
>> Below mime type is set both at web.xml of webapplicatio end and as 
>> well as Tomcat9038/conf/web.xml
>>
>> 
>>  xls
>>  application/vnd.ms-excel
>>  
>>
>> Could you please help in resolving the issue ASAP
>>
>>
>> Thanks
>> Swathi
>>
> 
> -
> 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: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-15 Thread tomcat/perl

Hi again.
Sorry for the noise.
The page which you quoted 
(https://www.geeksforgeeks.org/http-headers-content-disposition/), itself contains a 
formal reference to
RFC 5987 (https://tools.ietf.org/html/rfc5987), which formally defines the extended 
"filename*" header parameter below.


On 15.01.2021 11:48, André Warnier (tomcat/perl) wrote:

On 14.01.2021 22:55, Christopher Schultz wrote:
Content-Disposition: attachment; filename="[filename]"; filename*=utf-8''[filename in 
UTF-8 encoding]


Hi Chris.
Do you have any reference for the above ?
(the "utf8''" part is new to me)


-
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: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-15 Thread tomcat/perl

On 14.01.2021 22:55, Christopher Schultz wrote:
Content-Disposition: attachment; filename="[filename]"; filename*=utf-8''[filename in 
UTF-8 encoding]


Hi Chris.
Do you have any reference for the above ?
(the "utf8''" part is new to me)


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



Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-14 Thread Christopher Schultz

Swathi,

On 1/13/21 03:27, Jonnalagadda, Swathi (External) wrote:

We could see that when we try to open the xls file separately the
browser shows dialogue box to save it so it is nothing to do with
browser settings
What is the difference between "open[ing] the XLS file separately" and 
... whatever your application is doing instead?


If you want to force a download, you need to add some response headers 
otherwise a normal browser will usually try to render the file in the 
browser window instead of initiating a download.


The response header you need is "Content-Disposition" and its value can 
be complex. Here is what I usually do:


Content-Disposition: attachment; filename="[filename]"; 
filename*=utf-8''[filename in UTF-8 encoding]


Note that the above is all on one line and the two single-quotes are not 
a typo. You will also need to escape any double-quotes in the "filename" 
and escape any semicolons in the utf8-filename.


You can find more information here as well as other places online:
https://www.geeksforgeeks.org/http-headers-content-disposition/

The above reference happens to be particularly thorough, even moreso 
than Mozilla's (typically very good and complete) documentation for 
Content-Disposition.


If your application is not being hosted within a web browser (e.g. it's 
a mobile application, or an Electron (etc.) application, etc.) then it's 
entirely up to you to trigger the display of a download dialog when this 
kind of thing needs to happen.


-chris


-Original Message-
From: Mounika Reddy [mailto:spidermai...@gmail.com]
Sent: Wednesday, January 13, 2021 3:48 AM
To: Tomcat Users List
Cc: Mark Thomas
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Pls check http response headers for the request to confirm if it's returning 
proper headers.

Once they are in place then it may be to do with browser settings not 
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
swathi.jonnalaga...@xerox.com> wrote:


Hi Team

We have an application deployed in tomcat9.0.38 server which generates
an xls file dynamically and saves at server end. When we try to access
the file using application frontend, it is neither showing up in excel
format nor showing up pop up to save the file instead it is showing
the content of xls file in xml format directly on the browser.

Below mime type is set both at web.xml of webapplicatio end and as
well as Tomcat9038/conf/web.xml


 xls
 application/vnd.ms-excel
 

Could you please help in resolving the issue ASAP


Thanks
Swathi



-
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: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-14 Thread Niranjan Rao

What everyone is telling you is browser is not seeing right headers..

You can modify your tomcat settings as well as apache2 settings to log 
outgoing content type header. If tomcat and apache2 headers match, 
problem is in your tomcat side. If there is a mismatch and tomcat is 
sending right headers. then problem is on apache2 side. You can directly 
connect to tomact using curl or even in the browser to bypass apache2 
and see if it works.


How is response returned? How do you set the extension of the file? You 
said file generated dynamically, are you sure your servlet or whatever 
service handler you have there is not sending incorrect header?


I am not sure, but I believe global mime type settings are only for 
static files that tomcat serves. Any dynamically generated content has 
to be managed by response handler. More knowledgeable people here can 
correct me if I am wrong.


Regards,

Niranjan

On 1/14/21 8:59 AM, Jonnalagadda, Swathi (External) wrote:

Could you please elaborate more on this as to where I need to check

From: Mounika Reddy 
Sent: Thursday, January 14, 2021 2:41 AM
To: Tomcat Users List 
Cc: Mark Thomas 
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

If you are via AJP connector, then check if Apache proxy is changing
headers. We have a similar environment and when we set content-type,
clients see the same but possible it must be overriding

On Wed, Jan 13, 2021, 3:14 PM Jonnalagadda, Swathi (External) <
swathi.jonnalaga...@xerox.com> wrote:


This issue is not resolved yet.  The extension of file is clearly .xls but
I see content-type in response header is set to text/html.

Please note that the request initially hits apache2.4 server which is
redirected to tomcat9 server after successful authentication at siteminder.

The connection is configured via ajp connector.

Is there a possibility that the apache server is overwriting the
content-type header in response ?

Please advise.

Thanks
Swathi

-Original Message-
From: Jonnalagadda, Swathi (External) [mailto:
swathi.jonnalaga...@xerox.com]
Sent: Wednesday, January 13, 2021 1:57 PM
To: Tomcat Users List
Cc: Mark Thomas
Subject: RE: Tomcat server not considering Mime Type - Request urgent
help!!

CAUTION:   This email originated from outside the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.

Thank you for the email

We could see that when we try to open the xls file separately the browser
shows dialogue box to save it so it is nothing to do with browser settings

Could you please advise if I am missing out any setting here.

Thanks
Swathi
-Original Message-
From: Mounika Reddy [mailto:spidermai...@gmail.com]
Sent: Wednesday, January 13, 2021 3:48 AM
To: Tomcat Users List
Cc: Mark Thomas
Subject: Re: Tomcat server not considering Mime Type - Request urgent
help!!

CAUTION:   This email originated from outside the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.

Pls check http response headers for the request to confirm if it's
returning proper headers.

Once they are in place then it may be to do with browser settings not
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) <
swathi.jonnalaga...@xerox.com> wrote:


Hi Team

We have an application deployed in tomcat9.0.38 server which generates
an xls file dynamically and saves at server end. When we try to access
the file using application frontend, it is neither showing up in excel
format nor showing up pop up to save the file instead it is showing
the content of xls file in xml format directly on the browser.

Below mime type is set both at web.xml of webapplicatio end and as
well as Tomcat9038/conf/web.xml


 xls
 application/vnd.ms-excel
 

Could you please help in resolving the issue ASAP


Thanks
Swathi




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



Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-14 Thread Jonnalagadda, Swathi (External)
Could you please elaborate more on this as to where I need to check

From: Mounika Reddy 
Sent: Thursday, January 14, 2021 2:41 AM
To: Tomcat Users List 
Cc: Mark Thomas 
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

If you are via AJP connector, then check if Apache proxy is changing
headers. We have a similar environment and when we set content-type,
clients see the same but possible it must be overriding

On Wed, Jan 13, 2021, 3:14 PM Jonnalagadda, Swathi (External) <
swathi.jonnalaga...@xerox.com> wrote:

> This issue is not resolved yet.  The extension of file is clearly .xls but
> I see content-type in response header is set to text/html.
>
> Please note that the request initially hits apache2.4 server which is
> redirected to tomcat9 server after successful authentication at siteminder.
>
> The connection is configured via ajp connector.
>
> Is there a possibility that the apache server is overwriting the
> content-type header in response ?
>
> Please advise.
>
> Thanks
> Swathi
>
> -Original Message-
> From: Jonnalagadda, Swathi (External) [mailto:
> swathi.jonnalaga...@xerox.com]
> Sent: Wednesday, January 13, 2021 1:57 PM
> To: Tomcat Users List
> Cc: Mark Thomas
> Subject: RE: Tomcat server not considering Mime Type - Request urgent
> help!!
>
> CAUTION:   This email originated from outside the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
> Thank you for the email
>
> We could see that when we try to open the xls file separately the browser
> shows dialogue box to save it so it is nothing to do with browser settings
>
> Could you please advise if I am missing out any setting here.
>
> Thanks
> Swathi
> -Original Message-
> From: Mounika Reddy [mailto:spidermai...@gmail.com]
> Sent: Wednesday, January 13, 2021 3:48 AM
> To: Tomcat Users List
> Cc: Mark Thomas
> Subject: Re: Tomcat server not considering Mime Type - Request urgent
> help!!
>
> CAUTION:   This email originated from outside the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
> Pls check http response headers for the request to confirm if it's
> returning proper headers.
>
> Once they are in place then it may be to do with browser settings not
> processing headers.
>
>
>
> On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) <
> swathi.jonnalaga...@xerox.com> wrote:
>
> > Hi Team
> >
> > We have an application deployed in tomcat9.0.38 server which generates
> > an xls file dynamically and saves at server end. When we try to access
> > the file using application frontend, it is neither showing up in excel
> > format nor showing up pop up to save the file instead it is showing
> > the content of xls file in xml format directly on the browser.
> >
> > Below mime type is set both at web.xml of webapplicatio end and as
> > well as Tomcat9038/conf/web.xml
> >
> > 
> > xls
> > application/vnd.ms-excel
> > 
> >
> > Could you please help in resolving the issue ASAP
> >
> >
> > Thanks
> > Swathi
> >
>


Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-13 Thread Mounika Reddy
If you are via AJP connector, then check if Apache proxy is changing
headers. We have a similar environment and when we set content-type,
clients see the same but possible it must be overriding

On Wed, Jan 13, 2021, 3:14 PM Jonnalagadda, Swathi (External) <
swathi.jonnalaga...@xerox.com> wrote:

> This issue is not resolved yet.  The extension of file is clearly .xls but
> I see content-type in response header is set to text/html.
>
> Please note that the request initially hits apache2.4 server which is
> redirected to tomcat9 server after successful authentication at siteminder.
>
> The connection is configured via ajp connector.
>
> Is there a possibility that the apache server is overwriting the
> content-type header in response ?
>
> Please advise.
>
> Thanks
> Swathi
>
> -Original Message-
> From: Jonnalagadda, Swathi (External) [mailto:
> swathi.jonnalaga...@xerox.com]
> Sent: Wednesday, January 13, 2021 1:57 PM
> To: Tomcat Users List
> Cc: Mark Thomas
> Subject: RE: Tomcat server not considering Mime Type - Request urgent
> help!!
>
> CAUTION:   This email originated from outside the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
> Thank you for the email
>
> We could see that when we try to open the xls file separately the browser
> shows dialogue box to save it so it is nothing to do with browser settings
>
> Could you please advise if I am missing out any setting here.
>
> Thanks
> Swathi
> -Original Message-
> From: Mounika Reddy [mailto:spidermai...@gmail.com]
> Sent: Wednesday, January 13, 2021 3:48 AM
> To: Tomcat Users List
> Cc: Mark Thomas
> Subject: Re: Tomcat server not considering Mime Type - Request urgent
> help!!
>
> CAUTION:   This email originated from outside the organization. Do not
> click links or open attachments unless you recognize the sender and know
> the content is safe.
>
> Pls check http response headers for the request to confirm if it's
> returning proper headers.
>
> Once they are in place then it may be to do with browser settings not
> processing headers.
>
>
>
> On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) <
> swathi.jonnalaga...@xerox.com> wrote:
>
> > Hi Team
> >
> > We have an application deployed in tomcat9.0.38 server which generates
> > an xls file dynamically and saves at server end. When we try to access
> > the file using application frontend, it is neither showing up in excel
> > format nor showing up pop up to save the file instead it is showing
> > the content of xls file in xml format directly on the browser.
> >
> > Below mime type is set both at web.xml of webapplicatio end and as
> > well as Tomcat9038/conf/web.xml
> >
> > 
> > xls
> > application/vnd.ms-excel
> > 
> >
> > Could you please help in resolving the issue ASAP
> >
> >
> > Thanks
> > Swathi
> >
>


RE: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-13 Thread Jonnalagadda, Swathi (External)
This issue is not resolved yet.  The extension of file is clearly .xls but I 
see content-type in response header is set to text/html. 

Please note that the request initially hits apache2.4 server which is 
redirected to tomcat9 server after successful authentication at siteminder. 

The connection is configured via ajp connector.

Is there a possibility that the apache server is overwriting the content-type 
header in response ?

Please advise.

Thanks
Swathi 

-Original Message-
From: Jonnalagadda, Swathi (External) [mailto:swathi.jonnalaga...@xerox.com] 
Sent: Wednesday, January 13, 2021 1:57 PM
To: Tomcat Users List
Cc: Mark Thomas
Subject: RE: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Thank you for the email

We could see that when we try to open the xls file separately the browser shows 
dialogue box to save it so it is nothing to do with browser settings

Could you please advise if I am missing out any setting here.

Thanks
Swathi
-Original Message-
From: Mounika Reddy [mailto:spidermai...@gmail.com]
Sent: Wednesday, January 13, 2021 3:48 AM
To: Tomcat Users List
Cc: Mark Thomas
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Pls check http response headers for the request to confirm if it's returning 
proper headers.

Once they are in place then it may be to do with browser settings not 
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
swathi.jonnalaga...@xerox.com> wrote:

> Hi Team
>
> We have an application deployed in tomcat9.0.38 server which generates 
> an xls file dynamically and saves at server end. When we try to access 
> the file using application frontend, it is neither showing up in excel 
> format nor showing up pop up to save the file instead it is showing 
> the content of xls file in xml format directly on the browser.
>
> Below mime type is set both at web.xml of webapplicatio end and as 
> well as Tomcat9038/conf/web.xml
>
> 
> xls
> application/vnd.ms-excel
> 
>
> Could you please help in resolving the issue ASAP
>
>
> Thanks
> Swathi
>


Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-13 Thread Greg Huber
I have found getting browsers to handle objects correctly is problematic 
and needs to be specific to the use case in the html link.




On 13/01/2021 08:27, Jonnalagadda, Swathi (External) wrote:

Thank you for the email

We could see that when we try to open the xls file separately the browser shows 
dialogue box to save it so it is nothing to do with browser settings

Could you please advise if I am missing out any setting here.

Thanks
Swathi
-Original Message-
From: Mounika Reddy [mailto:spidermai...@gmail.com]
Sent: Wednesday, January 13, 2021 3:48 AM
To: Tomcat Users List
Cc: Mark Thomas
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Pls check http response headers for the request to confirm if it's returning 
proper headers.

Once they are in place then it may be to do with browser settings not 
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
swathi.jonnalaga...@xerox.com> wrote:


Hi Team

We have an application deployed in tomcat9.0.38 server which generates
an xls file dynamically and saves at server end. When we try to access
the file using application frontend, it is neither showing up in excel
format nor showing up pop up to save the file instead it is showing
the content of xls file in xml format directly on the browser.

Below mime type is set both at web.xml of webapplicatio end and as
well as Tomcat9038/conf/web.xml


 xls
 application/vnd.ms-excel
 

Could you please help in resolving the issue ASAP


Thanks
Swathi


-
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: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-13 Thread Jonnalagadda, Swathi (External)
Thank you for the email

We could see that when we try to open the xls file separately the browser shows 
dialogue box to save it so it is nothing to do with browser settings

Could you please advise if I am missing out any setting here.

Thanks
Swathi
-Original Message-
From: Mounika Reddy [mailto:spidermai...@gmail.com] 
Sent: Wednesday, January 13, 2021 3:48 AM
To: Tomcat Users List
Cc: Mark Thomas
Subject: Re: Tomcat server not considering Mime Type - Request urgent help!!

CAUTION:   This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Pls check http response headers for the request to confirm if it's returning 
proper headers.

Once they are in place then it may be to do with browser settings not 
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < 
swathi.jonnalaga...@xerox.com> wrote:

> Hi Team
>
> We have an application deployed in tomcat9.0.38 server which generates 
> an xls file dynamically and saves at server end. When we try to access 
> the file using application frontend, it is neither showing up in excel 
> format nor showing up pop up to save the file instead it is showing 
> the content of xls file in xml format directly on the browser.
>
> Below mime type is set both at web.xml of webapplicatio end and as 
> well as Tomcat9038/conf/web.xml
>
> 
> xls
> application/vnd.ms-excel
> 
>
> Could you please help in resolving the issue ASAP
>
>
> Thanks
> Swathi
>


Re: Tomcat server not considering Mime Type - Request urgent help!!

2021-01-12 Thread Mounika Reddy
Pls check http response headers for the request to confirm if it's
returning proper headers.

Once they are in place then it may be to do with browser settings not
processing headers.



On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) <
swathi.jonnalaga...@xerox.com> wrote:

> Hi Team
>
> We have an application deployed in tomcat9.0.38 server which generates an
> xls file dynamically and saves at server end. When we try to access the
> file using application frontend, it is neither showing up in excel format
> nor showing up pop up to save the file instead it is showing the content of
> xls file in xml format directly on the browser.
>
> Below mime type is set both at web.xml of webapplicatio end and as well as
> Tomcat9038/conf/web.xml
>
> 
> xls
> application/vnd.ms-excel
> 
>
> Could you please help in resolving the issue ASAP
>
>
> Thanks
> Swathi
>


Tomcat server not considering Mime Type - Request urgent help!!

2021-01-12 Thread Jonnalagadda, Swathi (External)
Hi Team

We have an application deployed in tomcat9.0.38 server which generates an xls 
file dynamically and saves at server end. When we try to access the file using 
application frontend, it is neither showing up in excel format  nor showing up 
pop up to save the file instead it is showing the content of xls file in xml 
format directly on the browser.

Below mime type is set both at web.xml of webapplicatio end and as well as 
Tomcat9038/conf/web.xml


xls
application/vnd.ms-excel


Could you please help in resolving the issue ASAP


Thanks
Swathi


Re: Urgent help tomcat 9 and https 8443

2020-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Siva,

On 3/12/20 23:13, siva.saravanamu...@csl.com.au wrote:
> Below is the catalina.log output
>
> 12-Mar-2020 19:57:18.885 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-openssl-apr-8443"] 12-Mar-2020 19:57:18.969 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-openssl-apr-8443"] 12-Mar-2020 19:57:18.969 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying
> ProtocolHandler ["https-openssl-apr-8443"]

You are running an APR connector on 8443.

> 12-Mar-2020 23:05:10.776 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler ["https-jsse-nio-8443"] 12-Mar-2020 23:05:10.798
> SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException
> Failed to initialize component [Connector[HTTP/1.1-8443]]
> 12-Mar-2020 23:09:23.385 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-jsse-nio-8443"] 12-Mar-2020 23:09:23.439 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-jsse-nio-8443"] 12-Mar-2020 23:09:23.440 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying
> ProtocolHandler ["https-jsse-nio-8443"]

You are also trying to run an NIO connector on port 8443.

If these are on the same interface, they cannot both be started at
once: choose one.

- -chris
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5r2JEACgkQHPApP6U8
pFiUsA//WVR3fPMC6LFLwu227cspTIwj3Gj2tVpZTehLChGEqY20dAQz4SS9x0cm
XOQpJJ65fNNlOEgnzUZB0VFv+rgyH3UfzLZiYe7Wu6GuPfGK2ySLuwlZA0Tlbeo5
ddzYIaq2YMelnpf9PFn2IKDpVhPOhpbVtHGfmZgcGfwlg56uKsrc54tuTav1r1B9
f/KHg3vF+mJUiFvaicfTPLN7X+vwJYTUgfeln4/2VONF3qsT3HO7LuUT1Z277ZPJ
9IPkyQHvK/vtcupBy8yx/9JZV/wGkKtKScz0CAwSnVBMUTy7+QUehWqT6QwhDQyC
Kc2OBerWmsFY3e+SByGjouet0bVJDbe6yESNkgCYbOFGWbrcuvqR3px/IfMbsxsN
XjfZXf7DRO8/tdgRf10Ea/v9WYVJjyC05X6HQts4yKNBCH0I/9LThylg1wFZJ1vU
DwhJ28NgrlIfFOWqNizjjEMdaUQ8eV1IVcRI9vW7wXda/d/jxih8ISEOQodJgTzK
wsalOWk0M8kC/+KHu/C3VpAg+CXf9rWEzXmYCeZTr2muQHvU5RRTY4XTwibYKGfb
KR0ouiM25ejyYo0/MUYqC3Jlh5clrvQHUmlSp/ygWAbIJD3Y3RrVaWuJ8YXdo41A
Udu7easgVYZq6VUwnuZqYCp7fJMGoRgJOiO6/87HGDv59SV3364=
=wu1M
-END PGP SIGNATURE-

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



RE: Re: Urgent help tomcat 9 and https 8443

2020-03-13 Thread Siva.Saravanamuthu
Mark,

Thanks. You waken my frozen concentration. Yes I was able to identify the error 
which is related APR library and I followed the step as per this article

https://www.openkm.com/wiki/index.php/Tomcat_native_libraries

which made port 8443 listen and able to load the URL with the certificate.

Regards,
Siva

-Original Message-
From: Mark Thomas 
Sent: Friday, 13 March 2020 6:30 PM
To: users@tomcat.apache.org
Subject: [EXT] Re: Urgent help tomcat 9 and https 8443


EXTERNAL:  This email originated from outside of the organization. Do not click 
any links or open any attachments unless you trust the sender and know the 
content is safe.

==
Please provide the complete catalina.log for a clean failed start.

To be specific:
- make sure Tomcat is not running
- delete all the files in the logs directory
- start Tomcat
- wait for start-up to complete
- provide us with the full catalina.log

Mark



On 13/03/2020 03:13, siva.saravanamu...@csl.com.au wrote:
> Below is the catalina.log output
>
> 12-Mar-2020 19:57:18.885 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 19:57:18.969 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 19:57:18.969 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 20:34:44.758 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to initialize component
> [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
> 12-Mar-2020 20:36:34.657 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 20:36:34.704 INFO [1]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 20:36:34.705 INFO [1]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 20:36:36.981 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to initialize component
> [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
> 12-Mar-2020 23:05:08.376 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 23:05:08.426 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 23:05:08.426 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["https-openssl-apr-8443"]
> 12-Mar-2020 23:05:10.776 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:05:10.798 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to initialize component [Connector[HTTP/1.1-8443]]
> 12-Mar-2020 23:09:23.385 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:23.439 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:23.440 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:25.703 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:25.723 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to initialize component [Connector[HTTP/1.1-8443]]
> 12-Mar-2020 23:10:47.171 INFO [main]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:47.225 INFO [main]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:47.225 INFO [main]
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:49.473 INFO [main]
> org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:49.494 SEVERE [main]
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed
> to initialize component [Connector[HTTP/1.1-8443]]
>
> From: Arvind Kumar (ZNetLive) 
> Sent: Friday, 13 March 2020 12:24 PM
> To: Tomcat Users List 
> Cc: Saravanamuthu, Sivakumar (Siva) AU/PKV
> 
> Subjec

Re: Urgent help tomcat 9 and https 8443

2020-03-13 Thread Mark Thomas
Please provide the complete catalina.log for a clean failed start.

To be specific:
- make sure Tomcat is not running
- delete all the files in the logs directory
- start Tomcat
- wait for start-up to complete
- provide us with the full catalina.log

Mark



On 13/03/2020 03:13, siva.saravanamu...@csl.com.au wrote:
> Below is the catalina.log output
> 
> 12-Mar-2020 19:57:18.885 INFO [main] org.apache.coyote.AbstractProtocol.pause 
> Pausing ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 19:57:18.969 INFO [main] org.apache.coyote.AbstractProtocol.stop 
> Stopping ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 19:57:18.969 INFO [main] 
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler 
> ["https-openssl-apr-8443"]
> 12-Mar-2020 20:34:44.758 SEVERE [main] 
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
> initialize component 
> [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
> 12-Mar-2020 20:36:34.657 INFO [main] org.apache.coyote.AbstractProtocol.pause 
> Pausing ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 20:36:34.704 INFO [1] org.apache.coyote.AbstractProtocol.stop 
> Stopping ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 20:36:34.705 INFO [1] org.apache.coyote.AbstractProtocol.destroy 
> Destroying ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 20:36:36.981 SEVERE [main] 
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
> initialize component 
> [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
> 12-Mar-2020 23:05:08.376 INFO [main] org.apache.coyote.AbstractProtocol.pause 
> Pausing ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 23:05:08.426 INFO [main] org.apache.coyote.AbstractProtocol.stop 
> Stopping ProtocolHandler ["https-openssl-apr-8443"]
> 12-Mar-2020 23:05:08.426 INFO [main] 
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler 
> ["https-openssl-apr-8443"]
> 12-Mar-2020 23:05:10.776 INFO [main] org.apache.coyote.AbstractProtocol.init 
> Initializing ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:05:10.798 SEVERE [main] 
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
> initialize component [Connector[HTTP/1.1-8443]]
> 12-Mar-2020 23:09:23.385 INFO [main] org.apache.coyote.AbstractProtocol.pause 
> Pausing ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:23.439 INFO [main] org.apache.coyote.AbstractProtocol.stop 
> Stopping ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:23.440 INFO [main] 
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler 
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:25.703 INFO [main] org.apache.coyote.AbstractProtocol.init 
> Initializing ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:09:25.723 SEVERE [main] 
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
> initialize component [Connector[HTTP/1.1-8443]]
> 12-Mar-2020 23:10:47.171 INFO [main] org.apache.coyote.AbstractProtocol.pause 
> Pausing ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:47.225 INFO [main] org.apache.coyote.AbstractProtocol.stop 
> Stopping ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:47.225 INFO [main] 
> org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler 
> ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:49.473 INFO [main] org.apache.coyote.AbstractProtocol.init 
> Initializing ProtocolHandler ["https-jsse-nio-8443"]
> 12-Mar-2020 23:10:49.494 SEVERE [main] 
> org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
> initialize component [Connector[HTTP/1.1-8443]]
> 
> From: Arvind Kumar (ZNetLive) 
> Sent: Friday, 13 March 2020 12:24 PM
> To: Tomcat Users List 
> Cc: Saravanamuthu, Sivakumar (Siva) AU/PKV 
> Subject: [EXT] RE: Urgent help tomcat 9 and https 8443
> 
> EXTERNAL: This email originated from outside of the organization. Do not 
> click any links or open any attachments unless you trust the sender and know 
> the content is safe.
> 
> 
> 
> FYI
> From: Arvind Kumar (ZNetLive)
> Sent: 13 March 2020 06:53
> To: Tomcat Users List 
> mailto:users@tomcat.apache.org>>
> Subject: RE: Urgent help tomcat 9 and https 8443
> 
> Please make sure port 8443 is listing if not try to restart your tomcat once 
> and then check the listing, once you get it is listing, please run below 
> command to allow 8443 to open outside of your server.
> 
> iptables -I INPUT -m tcp -p tcp -s  0.

RE: Urgent help tomcat 9 and https 8443

2020-03-12 Thread Siva.Saravanamuthu
Below is the catalina.log output

12-Mar-2020 19:57:18.885 INFO [main] org.apache.coyote.AbstractProtocol.pause 
Pausing ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 19:57:18.969 INFO [main] org.apache.coyote.AbstractProtocol.stop 
Stopping ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 19:57:18.969 INFO [main] org.apache.coyote.AbstractProtocol.destroy 
Destroying ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 20:34:44.758 SEVERE [main] 
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
initialize component 
[Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
12-Mar-2020 20:36:34.657 INFO [main] org.apache.coyote.AbstractProtocol.pause 
Pausing ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 20:36:34.704 INFO [1] org.apache.coyote.AbstractProtocol.stop 
Stopping ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 20:36:34.705 INFO [1] org.apache.coyote.AbstractProtocol.destroy 
Destroying ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 20:36:36.981 SEVERE [main] 
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
initialize component 
[Connector[org.apache.coyote.http11.Http11AprProtocol-8443]]
12-Mar-2020 23:05:08.376 INFO [main] org.apache.coyote.AbstractProtocol.pause 
Pausing ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 23:05:08.426 INFO [main] org.apache.coyote.AbstractProtocol.stop 
Stopping ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 23:05:08.426 INFO [main] org.apache.coyote.AbstractProtocol.destroy 
Destroying ProtocolHandler ["https-openssl-apr-8443"]
12-Mar-2020 23:05:10.776 INFO [main] org.apache.coyote.AbstractProtocol.init 
Initializing ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:05:10.798 SEVERE [main] 
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
initialize component [Connector[HTTP/1.1-8443]]
12-Mar-2020 23:09:23.385 INFO [main] org.apache.coyote.AbstractProtocol.pause 
Pausing ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:09:23.439 INFO [main] org.apache.coyote.AbstractProtocol.stop 
Stopping ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:09:23.440 INFO [main] org.apache.coyote.AbstractProtocol.destroy 
Destroying ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:09:25.703 INFO [main] org.apache.coyote.AbstractProtocol.init 
Initializing ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:09:25.723 SEVERE [main] 
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
initialize component [Connector[HTTP/1.1-8443]]
12-Mar-2020 23:10:47.171 INFO [main] org.apache.coyote.AbstractProtocol.pause 
Pausing ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:10:47.225 INFO [main] org.apache.coyote.AbstractProtocol.stop 
Stopping ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:10:47.225 INFO [main] org.apache.coyote.AbstractProtocol.destroy 
Destroying ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:10:49.473 INFO [main] org.apache.coyote.AbstractProtocol.init 
Initializing ProtocolHandler ["https-jsse-nio-8443"]
12-Mar-2020 23:10:49.494 SEVERE [main] 
org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to 
initialize component [Connector[HTTP/1.1-8443]]

From: Arvind Kumar (ZNetLive) 
Sent: Friday, 13 March 2020 12:24 PM
To: Tomcat Users List 
Cc: Saravanamuthu, Sivakumar (Siva) AU/PKV 
Subject: [EXT] RE: Urgent help tomcat 9 and https 8443

EXTERNAL: This email originated from outside of the organization. Do not click 
any links or open any attachments unless you trust the sender and know the 
content is safe.



FYI
From: Arvind Kumar (ZNetLive)
Sent: 13 March 2020 06:53
To: Tomcat Users List mailto:users@tomcat.apache.org>>
Subject: RE: Urgent help tomcat 9 and https 8443

Please make sure port 8443 is listing if not try to restart your tomcat once 
and then check the listing, once you get it is listing, please run below 
command to allow 8443 to open outside of your server.

iptables -I INPUT -m tcp -p tcp -s  0.0.0.0/0 --dport 8080 -j ACCEPT

How to check 8443 Is listing,

Netstat -tnap | grep 8443

From: siva.saravanamu...@csl.com.au<mailto:siva.saravanamu...@csl.com.au> 
mailto:siva.saravanamu...@csl.com.au>>
Sent: 13 March 2020 06:17
To: users@tomcat.apache.org<mailto:users@tomcat.apache.org>
Subject: Urgent help tomcat 9 and https 8443

Hello Everyone,

I am new to this group and tomcat.

I am having issue with tomcat 9 using port 8443. I configured tomcat 8443  
using CA certificate and my configuration are as follow.




I verified the certificate file using openssl command and certificate working 
fine and there is no issue with the certificate.

#openssl verify dlkopatu001.crt
dlkopatu001

RE: Urgent help tomcat 9 and https 8443

2020-03-12 Thread Siva.Saravanamuthu
Thanks for the reply.

There is no firewall or selinux and it is not listening that is the problem.  
Not sure where it is failing ?

From: Arvind Kumar (ZNetLive) 
Sent: Friday, 13 March 2020 12:24 PM
To: Tomcat Users List 
Cc: Saravanamuthu, Sivakumar (Siva) AU/PKV 
Subject: [EXT] RE: Urgent help tomcat 9 and https 8443

EXTERNAL: This email originated from outside of the organization. Do not click 
any links or open any attachments unless you trust the sender and know the 
content is safe.



FYI
From: Arvind Kumar (ZNetLive)
Sent: 13 March 2020 06:53
To: Tomcat Users List mailto:users@tomcat.apache.org>>
Subject: RE: Urgent help tomcat 9 and https 8443

Please make sure port 8443 is listing if not try to restart your tomcat once 
and then check the listing, once you get it is listing, please run below 
command to allow 8443 to open outside of your server.

iptables -I INPUT -m tcp -p tcp -s  0.0.0.0/0 --dport 8080 -j ACCEPT

How to check 8443 Is listing,

Netstat -tnap | grep 8443

From: siva.saravanamu...@csl.com.au<mailto:siva.saravanamu...@csl.com.au> 
mailto:siva.saravanamu...@csl.com.au>>
Sent: 13 March 2020 06:17
To: users@tomcat.apache.org<mailto:users@tomcat.apache.org>
Subject: Urgent help tomcat 9 and https 8443

Hello Everyone,

I am new to this group and tomcat.

I am having issue with tomcat 9 using port 8443. I configured tomcat 8443  
using CA certificate and my configuration are as follow.




I verified the certificate file using openssl command and certificate working 
fine and there is no issue with the certificate.

#openssl verify dlkopatu001.crt
dlkopatu001.crt: OK


But for unknown reason port 8443 is not listening and because of that I am not 
able to access url using 
https://url:8443<https://urldefense.proofpoint.com/v2/url?u=https-3A__url-3A8443=DwMFAg=iYwH3J27U_MBSsOvqcb8y8L0YvDEWvwF8fJyvC56xZM=skIkIH_QXTEZR3BEt6FeRMjoXQbfmE83b8AyfPxh3nc=RtRGesgJFKJSzkQpps0V7Rj-UV6ePw4JttXM-XZRBMY=V6hxOfmjky_Qc47PSvHv8wYAdZFW03iL39cyDN_ZRVI=>

Please help me to resolve this issue.


Regards,

Sivakumar Saravanamuthu
Senior Systems Engineer, Open Systems
CSL Limited
POA2 , 189-209 Camp Road, Broadmeadows | VIC 3047 | Australia
siva.saravanamu...@csl.com.au<mailto:siva.saravanamu...@csl.com.au>
http://www.csl.com.au<http://www.csl.com.au/>
Mobile: +61 419 835 682
Please consider the environment before printing this email.
[cid:image002.jpg@01D3F0F5.A4968CE0]




This email, including any attachments, is confidential and contains proprietary 
content and may be legally privileged. This transmission is intended only for 
the designated recipient(s), and any duplication or distribution, in any form 
or part, without the written consent of the sender is strictly prohibited. Any 
confidentiality or privilege is not waived or lost if this email has been sent 
to you by mistake, in which case you should not read, copy, adapt, use or 
disclose this message. If you've received this email by mistake, please delete 
the message, disregard its contents and notify the sender of the mistake. Any 
personal information in this email must be handled in accordance with 
applicable privacy laws.




This email, including any attachments, is confidential and contains proprietary 
content and may be legally privileged. This transmission is intended only for 
the designated recipient(s), and any duplication or distribution, in any form 
or part, without the written consent of the sender is strictly prohibited. Any 
confidentiality or privilege is not waived or lost if this email has been sent 
to you by mistake, in which case you should not read, copy, adapt, use or 
disclose this message. If you've received this email by mistake, please delete 
the message, disregard its contents and notify the sender of the mistake. Any 
personal information in this email must be handled in accordance with 
applicable privacy laws.


RE: Urgent help tomcat 9 and https 8443

2020-03-12 Thread Arvind Kumar (ZNetLive)

FYI
From: Arvind Kumar (ZNetLive)
Sent: 13 March 2020 06:53
To: Tomcat Users List 
Subject: RE: Urgent help tomcat 9 and https 8443

Please make sure port 8443 is listing if not try to restart your tomcat once 
and then check the listing, once you get it is listing, please run below 
command to allow 8443 to open outside of your server.

iptables -I INPUT -m tcp -p tcp -s  0.0.0.0/0 --dport 8080 -j ACCEPT

How to check 8443 Is listing,

Netstat -tnap | grep 8443

From: siva.saravanamu...@csl.com.au<mailto:siva.saravanamu...@csl.com.au> 
mailto:siva.saravanamu...@csl.com.au>>
Sent: 13 March 2020 06:17
To: users@tomcat.apache.org<mailto:users@tomcat.apache.org>
Subject: Urgent help tomcat 9 and https 8443

Hello Everyone,

I am new to this group and tomcat.

I am having issue with tomcat 9 using port 8443. I configured tomcat 8443  
using CA certificate and my configuration are as follow.




I verified the certificate file using openssl command and certificate working 
fine and there is no issue with the certificate.

#openssl verify dlkopatu001.crt
dlkopatu001.crt: OK


But for unknown reason port 8443 is not listening and because of that I am not 
able to access url using https://url:8443

Please help me to resolve this issue.


Regards,

Sivakumar Saravanamuthu
Senior Systems Engineer, Open Systems
CSL Limited
POA2 , 189-209 Camp Road, Broadmeadows | VIC 3047 | Australia
siva.saravanamu...@csl.com.au<mailto:siva.saravanamu...@csl.com.au>
http://www.csl.com.au<http://www.csl.com.au/>
Mobile: +61 419 835 682
Please consider the environment before printing this email.
[cid:image002.jpg@01D3F0F5.A4968CE0]




This email, including any attachments, is confidential and contains proprietary 
content and may be legally privileged. This transmission is intended only for 
the designated recipient(s), and any duplication or distribution, in any form 
or part, without the written consent of the sender is strictly prohibited. Any 
confidentiality or privilege is not waived or lost if this email has been sent 
to you by mistake, in which case you should not read, copy, adapt, use or 
disclose this message. If you've received this email by mistake, please delete 
the message, disregard its contents and notify the sender of the mistake. Any 
personal information in this email must be handled in accordance with 
applicable privacy laws.


RE: Urgent help tomcat 9 and https 8443

2020-03-12 Thread Arvind Kumar (ZNetLive)
Please make sure port 8443 is listing if not try to restart your tomcat once 
and then check the listing, once you get it is listing, please run below 
command to allow 8443 to open outside of your server.

iptables -I INPUT -m tcp -p tcp -s  0.0.0.0/0 --dport 8080 -j ACCEPT

How to check 8443 Is listing,

Netstat -tnap | grep 8443

From: siva.saravanamu...@csl.com.au 
Sent: 13 March 2020 06:17
To: users@tomcat.apache.org
Subject: Urgent help tomcat 9 and https 8443

Hello Everyone,

I am new to this group and tomcat.

I am having issue with tomcat 9 using port 8443. I configured tomcat 8443  
using CA certificate and my configuration are as follow.




I verified the certificate file using openssl command and certificate working 
fine and there is no issue with the certificate.

#openssl verify dlkopatu001.crt
dlkopatu001.crt: OK


But for unknown reason port 8443 is not listening and because of that I am not 
able to access url using https://url:8443

Please help me to resolve this issue.


Regards,

Sivakumar Saravanamuthu
Senior Systems Engineer, Open Systems
CSL Limited
POA2 , 189-209 Camp Road, Broadmeadows | VIC 3047 | Australia
siva.saravanamu...@csl.com.au<mailto:siva.saravanamu...@csl.com.au>
http://www.csl.com.au<http://www.csl.com.au/>
Mobile: +61 419 835 682
Please consider the environment before printing this email.
[cid:image002.jpg@01D3F0F5.A4968CE0]




This email, including any attachments, is confidential and contains proprietary 
content and may be legally privileged. This transmission is intended only for 
the designated recipient(s), and any duplication or distribution, in any form 
or part, without the written consent of the sender is strictly prohibited. Any 
confidentiality or privilege is not waived or lost if this email has been sent 
to you by mistake, in which case you should not read, copy, adapt, use or 
disclose this message. If you've received this email by mistake, please delete 
the message, disregard its contents and notify the sender of the mistake. Any 
personal information in this email must be handled in accordance with 
applicable privacy laws.


Urgent help tomcat 9 and https 8443

2020-03-12 Thread Siva.Saravanamuthu
Hello Everyone,

I am new to this group and tomcat.

I am having issue with tomcat 9 using port 8443. I configured tomcat 8443  
using CA certificate and my configuration are as follow.




I verified the certificate file using openssl command and certificate working 
fine and there is no issue with the certificate.

#openssl verify dlkopatu001.crt
dlkopatu001.crt: OK


But for unknown reason port 8443 is not listening and because of that I am not 
able to access url using https://url:8443

Please help me to resolve this issue.


Regards,

Sivakumar Saravanamuthu
Senior Systems Engineer, Open Systems
CSL Limited
POA2 , 189-209 Camp Road, Broadmeadows | VIC 3047 | Australia
siva.saravanamu...@csl.com.au
http://www.csl.com.au
Mobile: +61 419 835 682
Please consider the environment before printing this email.
[cid:image002.jpg@01D3F0F5.A4968CE0]





This email, including any attachments, is confidential and contains proprietary 
content and may be legally privileged. This transmission is intended only for 
the designated recipient(s), and any duplication or distribution, in any form 
or part, without the written consent of the sender is strictly prohibited. Any 
confidentiality or privilege is not waived or lost if this email has been sent 
to you by mistake, in which case you should not read, copy, adapt, use or 
disclose this message. If you've received this email by mistake, please delete 
the message, disregard its contents and notify the sender of the mistake. Any 
personal information in this email must be handled in accordance with 
applicable privacy laws.


Re: [NUCLEUS #813966] Urgent: Problem receiving email

2019-04-18 Thread Richard Huntrods

there are two email addresses that send the emails to me.

Tomcat Users List 

and Tomcat Digest 

I used to get only the digest, but this week even emails from 'users' 
are not coming through at all.


Cheers,

-Richard

On 4/18/2019 5:42 PM, Nigel Koppert via RT wrote:

Hi Richard,

Unfortunately there's not much we can tell from the message you 
provided for examination, as it appears all of sender/receiver 
information is only referencing the apache server that is hosting 
their mail accounts; there are no references to huntr...@nucleus.com.
Could you please provide us with the mail address that sends these 
digests to huntr...@nucleus.com? Once I have that information I can 
put an inquiry in with our mail admins.
  


--
Nigel Koppert
Support Analyst
Nucleus Information Service

Phone: (403) 509-4960
Toll Free: (888) 466-6336

On 2019-04-18 19:59:21, huntr...@nucleus.com wrote:

Greetings!

Could you please look at the mail server that supports the above email
address (huntr...@nucleus.com)?

Last week I stopped receiving emails from the tomcat forum. They had a
server outage and changed servers, and ever since I have not received a
single email from the list or the digest.

I've been able to send emails to them, and received word (via the digest
archive using a browser) that they have been sending me emails as
recently as yesterday.

Attached is an email from yesterday that I did not receive. I've
obtained it from the archive in 'raw' form so you can inspect the
headers and try and find out why I am not receiving these emails.

I should also note I've checked the spam, junk and other folders on this
email account and there is nothing there.

Thanks,

-Richard




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: [Urgent!] Unable to change Tomcat Username

2018-04-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Noppadol,

On 4/20/18 3:47 AM, NOPPADOL CHAROENWATTANAPHOKAEW (GSO1-ECS-CCS) wrote:
> I would like to ask how to fix the problem when Tomcat 7.0.68
> always remember the old config file (tomcat-users.xml).
> 
> The old config used to be username=”admin” and password=”admin”.
> But now I want to change to something else and restart Tomcat
> service, It doesn’t work. It still keep remember the config file
> since it was “admin-admin”
> 
> You can see from the video-> 
> (https://www.dropbox.com/s/ybruw6kyhfgdm74/Video_2018-04-20_142428.wmv
?dl=0)

Are
> 
you sure you are restarting the right Tomcat?

It looks like CATALINA_BASE is supposed to be C:\GCTI\apache-tomcat
from the file you edited, but there's no way to confirm that
configuration for the service given what you have in the video.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlrZ+gQACgkQHPApP6U8
pFjXvBAAs50wsXu7t1MX4MQZqh5W443QDroM5SEuKdpRxHWKSXvC/O+GQDkg2/sW
GjQh2y0pavcuWJmY0I108XiE/emLhwg81vSLNe3UJaqvj3xk82jnmzsBowKzd8/0
0WxI4vXQHQ+rrEIPS0Iaomi4Ep2mR+KL5UJ5WGwgpY1DPEloelnID9RMc/dR7Nb4
7s48wxISQOAlwYi3uoSUMcxUavJLOtxBR6B6IWlykv5wmaKBWzIrFXXAovIOwvqc
+Fxu3ZIQY89yBvdW8ZxojUCZCWnso6foaUoZXU37AbEoOLseVquKmd1p9i2MQX2D
3BZufhMlkt1QcwILvu+uG7+D/i6dHYsoinsZvg5DZ9T5vMKTLzvwy3uYgwTVMeK7
1SDIFdZiLGz9eliAxeof0YNXlr/zyoXk1IqEN0udwGxcL1y+2Kds7Jkh/h2Sc1pS
wRllX9U36L398mGMoWGR7FynVsb2tMv7N7UsM26Mcm4EoGwMddVj13mDls2TgvUi
Wd3Of9B70YzXcBARG/MYVzkzD7Wiht/ummvy7s0mM1oabVJwLCYBr23SnX61Vr3+
oTdTZ2ltQwF+y7a8KmkwNkNYZPeWPbyQbMlcX9ZaCDLmOYpVXRlPacpM7/Atl1/k
Nz5uukA4oN0O3LaR/pZWDcejxYQgWDGmaIenTxhY9QVx6RoC8hk=
=7/AF
-END PGP SIGNATURE-

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



[Urgent!] Unable to change Tomcat Username

2018-04-20 Thread NOPPADOL CHAROENWATTANAPHOKAEW (GSO1-ECS-CCS)

Hi,

I would like to ask how to fix the problem when Tomcat 7.0.68 always remember 
the old config file (tomcat-users.xml).
The old config used to be username="admin" and password="admin". But now I want 
to change to something else and restart Tomcat service, It doesn't work. It 
still keep remember the config file since it was "admin-admin"
You can see from the video ->  
(https://www.dropbox.com/s/ybruw6kyhfgdm74/Video_2018-04-20_142428.wmv?dl=0)


** Apache Tomcat 7.0.68 **
** Windows Server 2012  64bit**

Best regards,
Noppadol Charoenwattanaphokaew


[Urgent!] Unable to change Tomcat Username

2018-04-20 Thread NOPPADOL CHAROENWATTANAPHOKAEW (GSO1-ECS-CCS)
Hi,

I would like to ask how to fix the problem when Tomcat 7.0.68 always remember 
the old config file (tomcat-users.xml).
The old config used to be username="admin" and password="admin". But now I want 
to change to something else and restart Tomcat service, It doesn't work. It 
still keep remember the config file since it was "admin-admin"
You can see from the video ->  
(https://www.dropbox.com/s/ybruw6kyhfgdm74/Video_2018-04-20_142428.wmv?dl=0)


** Apache Tomcat 7.0.68 **
** Windows Server 2012  64bit**

Best regards,
Noppadol Charoenwattanaphokaew


tomcat-users.xml
Description: tomcat-users.xml

-
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

[Urgent!] Unable to change Tomcat Username

2018-04-20 Thread NOPPADOL CHAROENWATTANAPHOKAEW (GSO1-ECS-CCS)

Hi,

I would like to ask how to fix the problem when Tomcat 7.0.68 always remember 
the old config file (tomcat-users.xml).
The old config used to be username="admin" and password="admin". But now I want 
to change to something else and restart Tomcat service, It doesn't work. It 
still keep remember the config file since it was "admin-admin"
You can see from the video ->  
(https://www.dropbox.com/s/ybruw6kyhfgdm74/Video_2018-04-20_142428.wmv?dl=0)


** Apache Tomcat 7.0.68 **
** Windows Server 2012  64bit**

Best regards,
Noppadol Charoenwattanaphokaew


tomcat-users.xml
Description: tomcat-users.xml

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

RE: urgent problems with tomcat release 8.5.4

2017-12-22 Thread CYAG (Johnny Chao Yang)
Hello Konstantin,

This is my first time to ask questions on this site, apologize I'm not sure why 
my reply been encrypt on tomcat official site, so I just send this reply to you 
separately to thanks for your help :)

Thank you so much for your kindly help, it definitely solved my problem:)

Gratitude & have a nice weekend. :)


Br/Johnny

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: 2017年12月22日 17:43
To: Tomcat Users List
Subject: Re: urgent problems with tomcat release 8.5.4

2017-12-22 5:28 GMT+03:00 CYAG (Johnny Chao Yang) <c...@nnit.com>:
> Hello team,
>
>
> Due to the tomcat 8.0 will closed to its support deadline, so we are going to 
> upgrade our tomcat version from 8.0 to 8.5.4, as Apache tomcat official 
> website announced 8.5.x will not stop support so far, but the support time 
> decides which tomcat version is better for us to choose and it really affect 
> our IT infrastructure, so could we know approximately how long will Apache 
> keep support Tomcat release 8.5.x ?
>
>
> Very appreciated for your help & will looking hearing for your feedback. :)
>


http://www.catb.org/~esr/faqs/smart-questions.html#urgent

The current version of Tomcat 8.5 is 8.5.24.
https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5

http://markmail.org/message/c7mxxiokcmf665qy

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



RE: urgent problems with tomcat release 8.5.4

2017-12-22 Thread CYAG (Johnny Chao Yang)
Hello Konstantin,

This is my first time to ask questions on this site.

Thank you so much for your kindly help, it definitely solved my problem:)

Gratitude & have a nice weekend. :)

-Original Message-

> Hello team,
>
>
> Due to the tomcat 8.0 will closed to its support deadline, so we are going to 
> upgrade our tomcat version from 8.0 to 8.5.4, as Apache tomcat official 
> website announced 8.5.x will not stop support so far, but the support time 
> decides which tomcat version is better for us to choose and it really affect 
> our IT infrastructure, so could we know approximately how long will Apache 
> keep support Tomcat release 8.5.x ?
>
>
> Very appreciated for your help & will looking hearing for your feedback. :)
>


http://www.catb.org/~esr/faqs/smart-questions.html#urgent

The current version of Tomcat 8.5 is 8.5.24.
https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5

http://markmail.org/message/c7mxxiokcmf665qy




RE: urgent problems with tomcat release 8.5.4

2017-12-22 Thread CYAG (Johnny Chao Yang)
Hello Konstantin,

Thank you so much for your kindly help, it definitely solved my problem:)

Gratitude & have a nice weekend. :)


Br/Johnny

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: 2017年12月22日 17:43
To: Tomcat Users List
Subject: Re: urgent problems with tomcat release 8.5.4

2017-12-22 5:28 GMT+03:00 CYAG (Johnny Chao Yang) <c...@nnit.com>:
> Hello team,
>
>
> Due to the tomcat 8.0 will closed to its support deadline, so we are going to 
> upgrade our tomcat version from 8.0 to 8.5.4, as Apache tomcat official 
> website announced 8.5.x will not stop support so far, but the support time 
> decides which tomcat version is better for us to choose and it really affect 
> our IT infrastructure, so could we know approximately how long will Apache 
> keep support Tomcat release 8.5.x ?
>
>
> Very appreciated for your help & will looking hearing for your feedback. :)
>


http://www.catb.org/~esr/faqs/smart-questions.html#urgent

The current version of Tomcat 8.5 is 8.5.24.
https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5

http://markmail.org/message/c7mxxiokcmf665qy

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



Re: urgent problems with tomcat release 8.5.4

2017-12-22 Thread Konstantin Kolinko
2017-12-22 5:28 GMT+03:00 CYAG (Johnny Chao Yang) <c...@nnit.com>:
> Hello team,
>
>
> Due to the tomcat 8.0 will closed to its support deadline, so we are going to 
> upgrade our tomcat version from 8.0 to 8.5.4, as Apache tomcat official 
> website announced 8.5.x will not stop support so far, but the support time 
> decides which tomcat version is better for us to choose and it really affect 
> our IT infrastructure, so could we know approximately how long will Apache 
> keep support Tomcat release 8.5.x ?
>
>
> Very appreciated for your help & will looking hearing for your feedback. :)
>


http://www.catb.org/~esr/faqs/smart-questions.html#urgent

The current version of Tomcat 8.5 is 8.5.24.
https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5

http://markmail.org/message/c7mxxiokcmf665qy

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



urgent problems with tomcat release 8.5.4

2017-12-21 Thread CYAG (Johnny Chao Yang)
Hello team,


Due to the tomcat 8.0 will closed to its support deadline, so we are going to 
upgrade our tomcat version from 8.0 to 8.5.4, as Apache tomcat official website 
announced 8.5.x will not stop support so far, but the support time decides 
which tomcat version is better for us to choose and it really affect our IT 
infrastructure, so could we know approximately how long will Apache keep 
support Tomcat release 8.5.x ?


Very appreciated for your help & will looking hearing for your feedback. :)


Johnny Yang
Middleware & Batch team
E-mail : c...@nnit.com



Re: needed your help very urgent

2017-04-24 Thread Mark Thomas
On 24/04/17 17:38, calder wrote:

> When reading a stack trace, always look for any "Caused by" entries -
> if more than one exists, then find the last "Caused by" entry and that
> should clue you as to the issue.

Indeed it does.

> I draw your attention to the line below I marked with asterisks
> ** - that log entry suggests your -Xss setting is set to low.

But that is the wrong conclusion. There is no -Xss problem here.

Mark


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



Re: needed your help very urgent

2017-04-24 Thread calder
On Mon, Apr 24, 2017 at 9:22 AM, Naga Ramesh <naga.ram...@manthan.com> wrote:
> Tomcat Team,
>
> Always we are getting the below mentioned errors, please check ASAP and
> guide me if anything missing from our end, this is very urgent, please
> respond asap.
>
> Tomcat Version: apache-tomcat-8.0.33
> Java Version: "1.8.0_77"
>
> Setenv.sh file setting:
> export JAVA_OPTS="$JAVA_OPTS -DR_E_T_A_P_P"
> export CATALINA_OPTS="$CATALINA_OPTS -Xms1024m"
> export CATALINA_OPTS="$CATALINA_OPTS -Xmx4196m"

> #export CATALINA_OPTS="$CATALINA_OPTS -Xss64m"


When reading a stack trace, always look for any "Caused by" entries -
if more than one exists, then find the last "Caused by" entry and that
should clue you as to the issue.

I draw your attention to the line below I marked with asterisks
** - that log entry suggests your -Xss setting is set to low.
Now, look up at the last CATALINA_OPTS line in your setenv.sh - that
last entry is commented out.

Remove the leading pound-sign (#) and set it to a value appropriate
for your application.  Because that line is commented out, the JVM is
using the default value - the default value is different for 32 and 64
bit JVMs.

[snipped]

> Caused by: java.lang.IllegalStateException:
>   Unable to complete the scan for annotations for web application [] due to a 
> StackOverflowError.
>   Possible root causes include a


>** too low setting for -Xss and illegal cyclic inheritance 
> dependencies.


>   The class hierarchy being processed was 
> [org.bouncycastle.asn1.ASN1EncodableVector-org.bouncycastle
>   .asn1.DEREncodableVector-org.bouncycastle.asn1.ASN1EncodableVector]
>at
> org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2097)

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



Re: needed your help very urgent

2017-04-24 Thread Konstantin Kolinko
2017-04-24 12:44 GMT+03:00 Naga Ramesh <naga.ram...@manthan.com>:
> We need solution for this issue, please guide to us.
>
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: Monday, April 24, 2017 3:11 PM
> To: Tomcat Users List
> Subject: Re: needed your help very urgent
>
> On 24/04/2017 10:22, Naga Ramesh wrote:
>
> 
>
>> Caused by: java.lang.IllegalStateException: Unable to complete the
>> scan for annotations for web application [] due to a
>> StackOverflowError. Possible root causes include a too low setting for
>> -Xss and illegal cyclic inheritance dependencies. The class hierarchy
>> being processed was
>> [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DERE
>> ncodab
>> leVector->org.bouncycastle.asn1.ASN1EncodableVector]
>
> What isn't clear?
>
> Where that cyclic dependency came from is a whole different questions. I
> don't see any hint of it in the bouncy castle source.
>
> Mark
>

Naga.

Read the rules:
http://tomcat.apache.org/lists.html#tomcat-users
-> Important -> 6. Top-posting is bad.

-> "How To Ask Questions The Smart Way".
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific


For your question:
1. Check what jar libraries are packed in your war and what are
installed with Tomcat.

Ensure that there are no duplicates.

2. Check whether annotation scanning is important for you application.
Either
a) disable it and configure all servlets, listeners etc. discovered
with scanning in you WEB-INF/web.xml file,
or
b) configure the scanner to exclude unrelated jars from scanning.

https://wiki.apache.org/tomcat/HowTo/FasterStartUp

3. Current version of Tomcat 8.0 is 8.0.43

http://tomcat.apache.org/security-8.html

Best regards,
Konstantin Kolinko

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



RE: needed your help very urgent

2017-04-24 Thread Naga Ramesh
We need solution for this issue, please guide to us.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, April 24, 2017 3:11 PM
To: Tomcat Users List
Subject: Re: needed your help very urgent

On 24/04/2017 10:22, Naga Ramesh wrote:



> Caused by: java.lang.IllegalStateException: Unable to complete the 
> scan for annotations for web application [] due to a 
> StackOverflowError. Possible root causes include a too low setting for 
> -Xss and illegal cyclic inheritance dependencies. The class hierarchy 
> being processed was 
> [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DERE
> ncodab
> leVector->org.bouncycastle.asn1.ASN1EncodableVector]

What isn't clear?

Where that cyclic dependency came from is a whole different questions. I
don't see any hint of it in the bouncy castle source.

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: needed your help very urgent

2017-04-24 Thread Mark Thomas
On 24/04/2017 10:22, Naga Ramesh wrote:



> Caused by: java.lang.IllegalStateException: Unable to complete the scan for
> annotations for web application [] due to a StackOverflowError. Possible
> root causes include a too low setting for -Xss and illegal cyclic
> inheritance dependencies. The class hierarchy being processed was
> [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodab
> leVector->org.bouncycastle.asn1.ASN1EncodableVector]

What isn't clear?

Where that cyclic dependency came from is a whole different questions. I
don't see any hint of it in the bouncy castle source.

Mark

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



needed your help very urgent

2017-04-24 Thread Naga Ramesh
Tomcat Team,

 

Always we are getting the below mentioned errors, please check ASAP and
guide me if anything missing from our end, this is very urgent, please
respond asap.

 

Tomcat Version: apache-tomcat-8.0.33

Java Version: "1.8.0_77"

 

Setenv.sh file setting:

 

export JAVA_OPTS="$JAVA_OPTS -DR_E_T_A_P_P"

export CATALINA_OPTS="$CATALINA_OPTS -Xms1024m"

export CATALINA_OPTS="$CATALINA_OPTS -Xmx4196m"

#export CATALINA_OPTS="$CATALINA_OPTS -Xss64m"

export CATALINA_OPTS="$CATALINA_OPTS -server"

export CATALINA_OPTS="$CATALINA_OPTS -XX:+TieredCompilation
-XX:+AggressiveOpts -XX:+UseG1GC -XX:SurvivorRatio=1 -XX:NewRatio=2
-XX:MaxTenuringThreshold=15 -XX:-UseAda

ptiveSizePolicy -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=512m
-XX:-UseSplitVerifier -noverify"

export LD_LIBRARY_PATH=/usr/lib64/

 

 

Errors:

 

24-Apr-2017 12:16:18.701 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
Catalina

24-Apr-2017 12:16:18.701 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
Engine: rafg

24-Apr-2017 12:16:18.707 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory /opt/install/ra6.6/apache-tomcat-8.0.33/webapps/ROOT

24-Apr-2017 12:16:31.198 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:

org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]

at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
25)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)

at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1
834)

at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
42)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
17)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.IllegalStateException: Unable to complete the scan for
annotations for web application [] due to a StackOverflowError. Possible
root causes include a too low setting for -Xss and illegal cyclic
inheritance dependencies. The class hierarchy being processed was
[org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodab
leVector->org.bouncycastle.asn1.ASN1EncodableVector]

at
org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.ja
va:2097)

at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextCo
nfig.java:2043)

at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfi
g.java:1988)

at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfi
g.java:1958)

at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.j
ava:1912)

at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1157)

at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:
779)

at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
306)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:95)

at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java
:90)

at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5150)

at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

... 10 more

 

24-Apr-2017 12:16:31.199 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web
application directory /opt/install/ra6.6/apache-tomcat-8.0.33/webapps/ROOT

java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
29)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)

at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1
834)

 

Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 12/9/16 11:40 AM, Victor Rodriguez wrote:
> Being able to have xyz as an alias for abc would be great, but
> everything I've tried with aliases hasn't worked either.
> 
> On Fri, Dec 9, 2016 at 8:28 AM, Victor Rodriguez
>  wrote:
> 
>> Chris, I really don't want double deployment.  I'm trying to have
>> a single abc.war and avoid having to install apache to
>> redirect/rewrite http://host:8082/xyz to http://host:8082/abc.  I
>> was hoping there was a way to have tomcat send /xyz to abc.war.
>> I suppose I could also just copy abc.war to xyz.war and have both
>> in the webapps directory, but I'm trying to avoid that.
>> 
>> On Fri, Dec 9, 2016 at 8:23 AM, Christopher Schultz < 
>> ch...@christopherschultz.net> wrote:
>> 
> Victor,
> 
> On 12/9/16 11:17 AM, Victor Rodriguez wrote:
> Chris, a little more progress this morning...
> 
> This is what I currently have in my xyz.xml
> 
>  docBase="wfsservice.war">
> 
> And, this is what I get in my catalina.out...
> 
> INFO: Deploying configuration descriptor 
> /dg/local/cots/tomcat/tomcat_8082/conf/Catalina/localhost/xyz.xml
>
>
> 
...then...
> 
> WARNING: A docBase 
> /dg/local/cots/tomcat/tomcat_8082/webapps/abc.war inside
> the host appBase has been specified, and will be ignored
> 
> Aah, yes. This is probably because specifying a docBase inside the 
> appBase usually indicates a mistake that will result in 
> double-deployment of a web application. But double-deployment is 
> precicely what you are requesting.
> 
> We'll need to do this then:
> 
> 1. Put abc.war somewhere else 2. Change the path in xyz.xml to
> match #1 3. Copy xyz.xml to abc.xml in the same directory 4.
> Profit
> 
> ...then...
> 
> SEVERE: Error starting static Resources
> 
> java.lang.IllegalArgumentException: Document base 
> /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not
> exist or is not a readable directory
> 
> So, it looks like it's looking for an exploded xyz
> directory.
> 
> It might be. But there isn't a stack trace so I have no idea if
> that is even being produced by Tomcat.
> 
> -chris
> 
> On Fri, Dec 9, 2016 at 8:07 AM, Christopher Schultz < 
> ch...@christopherschultz.net> wrote:
> 
> Victor,
> 
> On 12/8/16 7:57 PM, Victor Rodriguez wrote:
 On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz
 < ch...@christopherschultz.net> wrote:
 
> Victor,
> 
> On 12/8/16 4:59 PM, Victor Rodriguez wrote:
 THANKS IN ADVANCE FOR YOUR HELP!  (not
 yelling, just emphasizing!)
 
 I have abc.war and I want both /abc and /xyz
 to work for it.  I've tried adding 
 aliases="/abc=abc.war,/xyz=abc.war" and 
 aliases="/abc=abc,/xyz=abc" but neither of
 those worked.  This is how my original
 context.xml looked like.
 
 >>> swallowOutput="true">   
 WEB-INF/web.xml

 
 >>> pathname="" />
 
  
 
 
 
> 
> Tomcat 7 aliases are intended to map URLs within a
> single web application. You can't use it to
> duplicate the web application on two base paths.
> 
> Here's what you need to do:
> 
> 1. Put your WAR file in webapps/abc.war. This will
> deploy as usual.
> 
> 2. Copy webapps/abc.war/META-INF/context.xml into 
> conf/Catalina/localhost/xyz.xml and modify the
>  element like this:
> 
>  docBase="webapps/abc.war "> ... 
 
 Thanks Chris!  I now get "Document base 
 /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does
 not exist or is not a readable directory"
> 
> Is that path correct? What is the stack trace of that
> error?
> 
> I would have expected the path to be pointing to abc.war,
> not .../xyz
> 
> -chris

You will have to use re-writing to do this, and you'll have to use a
REDIRECT. You can't simply alias one web application for another. You
can double-deploy, but there really isn't any other good way to do this.

What's your use-case, here, anyway?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYSu7TAAoJEBzwKT+lPKRYOjYP/3VUKDP1gZ7Vrijkl+WAOM6N
IHW/2h8WdtpO4MCeXe0E0SoFI5GTGFOjFLoRiyBMTzXcS0RebWdD7ociqOflEn/z
GWKAgLbZXPvkXB29Y4xt8n030g8GQMAZYreb9YixKNXcVGk5cdaOXvlfArFSzrct
UBEjCXqvEjio9MT91W0GC4WkTpwkKyKLLstoDSAKfZ97SiAsPaVbzRh+Epjfbc7r
M05PJp05mgPSuEwyndRw4a9sZ2BsETH/f5TOs5lLOl0tJcoXZk7nV9r7FK5yCrWZ
t3lhu/5MobyeDLwPlcy7qHV+bpr5QFfHRYfdMjtQ8ujyWZpv/2kJEejVQnOtXvXT

Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Mark Eggers
Victor,

Please do not top post.

Anyway (see at the bottom).


On 12/9/2016 8:28 AM, Victor Rodriguez wrote:
> Chris, I really don't want double deployment.  I'm trying to have a single
> abc.war and avoid having to install apache to redirect/rewrite
> http://host:8082/xyz to http://host:8082/abc.  I was hoping there was a way
> to have tomcat send /xyz to abc.war.  I suppose I could also just copy
> abc.war to xyz.war and have both in the webapps directory, but I'm trying
> to avoid that.
> 
> On Fri, Dec 9, 2016 at 8:23 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
> 
> Victor,
> 
> On 12/9/16 11:17 AM, Victor Rodriguez wrote:
 Chris, a little more progress this morning...

 This is what I currently have in my xyz.xml

 >>> docBase="wfsservice.war">

 And, this is what I get in my catalina.out...

 INFO: Deploying configuration descriptor
 /dg/local/cots/tomcat/tomcat_8082/conf/Catalina/localhost/xyz.xml

 ...then...

 WARNING: A docBase
 /dg/local/cots/tomcat/tomcat_8082/webapps/abc.war inside the host
 appBase has been specified, and will be ignored
> 
> Aah, yes. This is probably because specifying a docBase inside the
> appBase usually indicates a mistake that will result in
> double-deployment of a web application. But double-deployment is
> precicely what you are requesting.
> 
> We'll need to do this then:
> 
> 1. Put abc.war somewhere else
> 2. Change the path in xyz.xml to match #1
> 3. Copy xyz.xml to abc.xml in the same directory
> 4. Profit
> 
 ...then...

 SEVERE: Error starting static Resources

 java.lang.IllegalArgumentException: Document base
 /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is
 not a readable directory

 So, it looks like it's looking for an exploded xyz directory.
> 
> It might be. But there isn't a stack trace so I have no idea if that
> is even being produced by Tomcat.
> 
> -chris
> 
 On Fri, Dec 9, 2016 at 8:07 AM, Christopher Schultz <
 ch...@christopherschultz.net> wrote:

 Victor,

 On 12/8/16 7:57 PM, Victor Rodriguez wrote:
>>> On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz <
>>> ch...@christopherschultz.net> wrote:
>>>
 Victor,

 On 12/8/16 4:59 PM, Victor Rodriguez wrote:
>>> THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just
>>> emphasizing!)
>>>
>>> I have abc.war and I want both /abc and /xyz to work
>>> for it.  I've tried adding
>>> aliases="/abc=abc.war,/xyz=abc.war" and
>>> aliases="/abc=abc,/xyz=abc" but neither of those
>>> worked.  This is how my original context.xml looked
>>> like.
>>>
>>>   
>>> WEB-INF/web.xml
>>>  
>>>
>>>  
>>>
>>> 
>>>

 Tomcat 7 aliases are intended to map URLs within a single
 web application. You can't use it to duplicate the web
 application on two base paths.

 Here's what you need to do:

 1. Put your WAR file in webapps/abc.war. This will deploy
 as usual.

 2. Copy webapps/abc.war/META-INF/context.xml into
 conf/Catalina/localhost/xyz.xml and modify the 
 element like this:

 >>> docBase="webapps/abc.war "> ... 
>>>
>>> Thanks Chris!  I now get "Document base
>>> /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist
>>> or is not a readable directory"

 Is that path correct? What is the stack trace of that error?

 I would have expected the path to be pointing to abc.war, not
 .../xyz

 -chris

What Chris is saying is the following:

Suppose the user you're running Tomcat under is called tomcat, with a
home directory of /home/tomcat.

Make a directory under /home/tomcat - call it Apps (probably too
generic, but you get the idea).

Now copy abc.war into that directory.

Then you'll create two context.xml files.

Call one abc.xml

Call the other xyz.xml

In both abc.xml and xyz.xml, specify the complete path to abc.war as the
docBase - like this (using the layout above)





Now copy both of these xml files to

$CATALINA_BASE/conf/Catalina/localhost/

More properly:

$CATALINA_BASE/conf/[Engine name]/[Host name]/

where [Engine name] is the name attribute from the Engine element in
server.xml, and Host name is the name attribute from the Host element in
server.xml.

I haven't tried this, but I don't see why it shouldn't work.

The basis for this can be found here:

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

. . . just my two cents (and no coffee)
/mde/



signature.asc
Description: OpenPGP digital signature


Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Victor Rodriguez
Being able to have xyz as an alias for abc would be great, but everything
I've tried with aliases hasn't worked either.

On Fri, Dec 9, 2016 at 8:28 AM, Victor Rodriguez 
wrote:

> Chris, I really don't want double deployment.  I'm trying to have a single
> abc.war and avoid having to install apache to redirect/rewrite
> http://host:8082/xyz to http://host:8082/abc.  I was hoping there was a
> way to have tomcat send /xyz to abc.war.  I suppose I could also just copy
> abc.war to xyz.war and have both in the webapps directory, but I'm trying
> to avoid that.
>
> On Fri, Dec 9, 2016 at 8:23 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Victor,
>>
>> On 12/9/16 11:17 AM, Victor Rodriguez wrote:
>> > Chris, a little more progress this morning...
>> >
>> > This is what I currently have in my xyz.xml
>> >
>> > > > docBase="wfsservice.war">
>> >
>> > And, this is what I get in my catalina.out...
>> >
>> > INFO: Deploying configuration descriptor
>> > /dg/local/cots/tomcat/tomcat_8082/conf/Catalina/localhost/xyz.xml
>> >
>> > ...then...
>> >
>> > WARNING: A docBase
>> > /dg/local/cots/tomcat/tomcat_8082/webapps/abc.war inside the host
>> > appBase has been specified, and will be ignored
>>
>> Aah, yes. This is probably because specifying a docBase inside the
>> appBase usually indicates a mistake that will result in
>> double-deployment of a web application. But double-deployment is
>> precicely what you are requesting.
>>
>> We'll need to do this then:
>>
>> 1. Put abc.war somewhere else
>> 2. Change the path in xyz.xml to match #1
>> 3. Copy xyz.xml to abc.xml in the same directory
>> 4. Profit
>>
>> > ...then...
>> >
>> > SEVERE: Error starting static Resources
>> >
>> > java.lang.IllegalArgumentException: Document base
>> > /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is
>> > not a readable directory
>> >
>> > So, it looks like it's looking for an exploded xyz directory.
>>
>> It might be. But there isn't a stack trace so I have no idea if that
>> is even being produced by Tomcat.
>>
>> - -chris
>>
>> > On Fri, Dec 9, 2016 at 8:07 AM, Christopher Schultz <
>> > ch...@christopherschultz.net> wrote:
>> >
>> > Victor,
>> >
>> > On 12/8/16 7:57 PM, Victor Rodriguez wrote:
>>  On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz <
>>  ch...@christopherschultz.net> wrote:
>> 
>> > Victor,
>> >
>> > On 12/8/16 4:59 PM, Victor Rodriguez wrote:
>>  THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just
>>  emphasizing!)
>> 
>>  I have abc.war and I want both /abc and /xyz to work
>>  for it.  I've tried adding
>>  aliases="/abc=abc.war,/xyz=abc.war" and
>>  aliases="/abc=abc,/xyz=abc" but neither of those
>>  worked.  This is how my original context.xml looked
>>  like.
>> 
>>    
>>  WEB-INF/web.xml
>>   
>> 
>>   
>> 
>>  
>> 
>> >
>> > Tomcat 7 aliases are intended to map URLs within a single
>> > web application. You can't use it to duplicate the web
>> > application on two base paths.
>> >
>> > Here's what you need to do:
>> >
>> > 1. Put your WAR file in webapps/abc.war. This will deploy
>> > as usual.
>> >
>> > 2. Copy webapps/abc.war/META-INF/context.xml into
>> > conf/Catalina/localhost/xyz.xml and modify the 
>> > element like this:
>> >
>> > > > docBase="webapps/abc.war "> ... 
>> 
>>  Thanks Chris!  I now get "Document base
>>  /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist
>>  or is not a readable directory"
>> >
>> > Is that path correct? What is the stack trace of that error?
>> >
>> > I would have expected the path to be pointing to abc.war, not
>> > .../xyz
>> >
>> > -chris
>> >>
>> >> -
>> >>
>> >>
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> >> For additional commands, e-mail: users-h...@tomcat.apache.org
>> >>
>> >>
>> >
>> >
>> -BEGIN PGP SIGNATURE-
>> Comment: GPGTools - http://gpgtools.org
>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>
>> iQIcBAEBCAAGBQJYStqTAAoJEBzwKT+lPKRYHakP/1ElYsYhiwGr/WUS8LvYxGwY
>> OtTGFKWwuUetcXhPNHnXmH3cnJcME44bjQyLDqXCKgKiCHaJ6aV+p+F/vlaFL5no
>> T6vu1lk5BUA/uMgryyg766EWoDeQZTlp/SKYpPwJfrdmYr36pqkOC93aoZIBB1QF
>> /vWOByQIhVFvWM7e/7GxJo5tG0StGWLaM16zj88r+lhkV37UweavovStjNIjIWrC
>> W7ihnlHV5QeW1rKFQ+rmD7BVRY0up5P8Be8FUrNrIFheXq7+JQBNRtM2YRIcSwTM
>> TzbUr+n8MOAzIths6HZ9vnddXSE61Ndqku8FPZ/CMSYkPCIgK+x8btQ/4lb2zqDK
>> aUQac0lOeQQMK9POXpp65O+45yVQkyJeTScgAjikngRdn0x9VQTxHa4WggSgFPxX
>> vZik/3s5QvzjlGlArk7+71r/mmszOc+g2s+vN7aBDTDiGgHJOtStp1SbmkgW9w7m
>> sW+dSgR/78BRFZSXRsRdBf3RkQzCFk/dAJr8flEYKWFF7s0TOmrMSuxX7NB3EzK+
>> 

Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Victor Rodriguez
Chris, I really don't want double deployment.  I'm trying to have a single
abc.war and avoid having to install apache to redirect/rewrite
http://host:8082/xyz to http://host:8082/abc.  I was hoping there was a way
to have tomcat send /xyz to abc.war.  I suppose I could also just copy
abc.war to xyz.war and have both in the webapps directory, but I'm trying
to avoid that.

On Fri, Dec 9, 2016 at 8:23 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Victor,
>
> On 12/9/16 11:17 AM, Victor Rodriguez wrote:
> > Chris, a little more progress this morning...
> >
> > This is what I currently have in my xyz.xml
> >
> >  > docBase="wfsservice.war">
> >
> > And, this is what I get in my catalina.out...
> >
> > INFO: Deploying configuration descriptor
> > /dg/local/cots/tomcat/tomcat_8082/conf/Catalina/localhost/xyz.xml
> >
> > ...then...
> >
> > WARNING: A docBase
> > /dg/local/cots/tomcat/tomcat_8082/webapps/abc.war inside the host
> > appBase has been specified, and will be ignored
>
> Aah, yes. This is probably because specifying a docBase inside the
> appBase usually indicates a mistake that will result in
> double-deployment of a web application. But double-deployment is
> precicely what you are requesting.
>
> We'll need to do this then:
>
> 1. Put abc.war somewhere else
> 2. Change the path in xyz.xml to match #1
> 3. Copy xyz.xml to abc.xml in the same directory
> 4. Profit
>
> > ...then...
> >
> > SEVERE: Error starting static Resources
> >
> > java.lang.IllegalArgumentException: Document base
> > /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is
> > not a readable directory
> >
> > So, it looks like it's looking for an exploded xyz directory.
>
> It might be. But there isn't a stack trace so I have no idea if that
> is even being produced by Tomcat.
>
> - -chris
>
> > On Fri, Dec 9, 2016 at 8:07 AM, Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> > Victor,
> >
> > On 12/8/16 7:57 PM, Victor Rodriguez wrote:
>  On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz <
>  ch...@christopherschultz.net> wrote:
> 
> > Victor,
> >
> > On 12/8/16 4:59 PM, Victor Rodriguez wrote:
>  THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just
>  emphasizing!)
> 
>  I have abc.war and I want both /abc and /xyz to work
>  for it.  I've tried adding
>  aliases="/abc=abc.war,/xyz=abc.war" and
>  aliases="/abc=abc,/xyz=abc" but neither of those
>  worked.  This is how my original context.xml looked
>  like.
> 
>    
>  WEB-INF/web.xml
>   
> 
>   
> 
>  
> 
> >
> > Tomcat 7 aliases are intended to map URLs within a single
> > web application. You can't use it to duplicate the web
> > application on two base paths.
> >
> > Here's what you need to do:
> >
> > 1. Put your WAR file in webapps/abc.war. This will deploy
> > as usual.
> >
> > 2. Copy webapps/abc.war/META-INF/context.xml into
> > conf/Catalina/localhost/xyz.xml and modify the 
> > element like this:
> >
> >  > docBase="webapps/abc.war "> ... 
> 
>  Thanks Chris!  I now get "Document base
>  /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist
>  or is not a readable directory"
> >
> > Is that path correct? What is the stack trace of that error?
> >
> > I would have expected the path to be pointing to abc.war, not
> > .../xyz
> >
> > -chris
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> >
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYStqTAAoJEBzwKT+lPKRYHakP/1ElYsYhiwGr/WUS8LvYxGwY
> OtTGFKWwuUetcXhPNHnXmH3cnJcME44bjQyLDqXCKgKiCHaJ6aV+p+F/vlaFL5no
> T6vu1lk5BUA/uMgryyg766EWoDeQZTlp/SKYpPwJfrdmYr36pqkOC93aoZIBB1QF
> /vWOByQIhVFvWM7e/7GxJo5tG0StGWLaM16zj88r+lhkV37UweavovStjNIjIWrC
> W7ihnlHV5QeW1rKFQ+rmD7BVRY0up5P8Be8FUrNrIFheXq7+JQBNRtM2YRIcSwTM
> TzbUr+n8MOAzIths6HZ9vnddXSE61Ndqku8FPZ/CMSYkPCIgK+x8btQ/4lb2zqDK
> aUQac0lOeQQMK9POXpp65O+45yVQkyJeTScgAjikngRdn0x9VQTxHa4WggSgFPxX
> vZik/3s5QvzjlGlArk7+71r/mmszOc+g2s+vN7aBDTDiGgHJOtStp1SbmkgW9w7m
> sW+dSgR/78BRFZSXRsRdBf3RkQzCFk/dAJr8flEYKWFF7s0TOmrMSuxX7NB3EzK+
> 9tcce1xSb1TXRq/h/x59Mjidntl5qo7g123QWgwe4z7tqfOMbj30zYDwWjIJTzDt
> hq5zM1qxgH/mAUtiwdK/Ezb7CcOPMj5VokGu7ptKB9PrxqtLLZ9EbfrbB2sicbZ4
> gAXhoj65+cdeL322fnMj
> =yBjR
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Sent from 

Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 12/9/16 11:17 AM, Victor Rodriguez wrote:
> Chris, a little more progress this morning...
> 
> This is what I currently have in my xyz.xml
> 
>  docBase="wfsservice.war">
> 
> And, this is what I get in my catalina.out...
> 
> INFO: Deploying configuration descriptor 
> /dg/local/cots/tomcat/tomcat_8082/conf/Catalina/localhost/xyz.xml
> 
> ...then...
> 
> WARNING: A docBase
> /dg/local/cots/tomcat/tomcat_8082/webapps/abc.war inside the host
> appBase has been specified, and will be ignored

Aah, yes. This is probably because specifying a docBase inside the
appBase usually indicates a mistake that will result in
double-deployment of a web application. But double-deployment is
precicely what you are requesting.

We'll need to do this then:

1. Put abc.war somewhere else
2. Change the path in xyz.xml to match #1
3. Copy xyz.xml to abc.xml in the same directory
4. Profit

> ...then...
> 
> SEVERE: Error starting static Resources
> 
> java.lang.IllegalArgumentException: Document base 
> /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is
> not a readable directory
> 
> So, it looks like it's looking for an exploded xyz directory.

It might be. But there isn't a stack trace so I have no idea if that
is even being produced by Tomcat.

- -chris

> On Fri, Dec 9, 2016 at 8:07 AM, Christopher Schultz < 
> ch...@christopherschultz.net> wrote:
> 
> Victor,
> 
> On 12/8/16 7:57 PM, Victor Rodriguez wrote:
 On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz < 
 ch...@christopherschultz.net> wrote:
 
> Victor,
> 
> On 12/8/16 4:59 PM, Victor Rodriguez wrote:
 THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just 
 emphasizing!)
 
 I have abc.war and I want both /abc and /xyz to work
 for it.  I've tried adding
 aliases="/abc=abc.war,/xyz=abc.war" and
 aliases="/abc=abc,/xyz=abc" but neither of those 
 worked.  This is how my original context.xml looked
 like.
 

 WEB-INF/web.xml
  
 
  
 
 
 
> 
> Tomcat 7 aliases are intended to map URLs within a single
> web application. You can't use it to duplicate the web
> application on two base paths.
> 
> Here's what you need to do:
> 
> 1. Put your WAR file in webapps/abc.war. This will deploy
> as usual.
> 
> 2. Copy webapps/abc.war/META-INF/context.xml into 
> conf/Catalina/localhost/xyz.xml and modify the 
> element like this:
> 
>  docBase="webapps/abc.war "> ... 
 
 Thanks Chris!  I now get "Document base 
 /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist
 or is not a readable directory"
> 
> Is that path correct? What is the stack trace of that error?
> 
> I would have expected the path to be pointing to abc.war, not
> .../xyz
> 
> -chris
>> 
>> -
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
> 
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYStqTAAoJEBzwKT+lPKRYHakP/1ElYsYhiwGr/WUS8LvYxGwY
OtTGFKWwuUetcXhPNHnXmH3cnJcME44bjQyLDqXCKgKiCHaJ6aV+p+F/vlaFL5no
T6vu1lk5BUA/uMgryyg766EWoDeQZTlp/SKYpPwJfrdmYr36pqkOC93aoZIBB1QF
/vWOByQIhVFvWM7e/7GxJo5tG0StGWLaM16zj88r+lhkV37UweavovStjNIjIWrC
W7ihnlHV5QeW1rKFQ+rmD7BVRY0up5P8Be8FUrNrIFheXq7+JQBNRtM2YRIcSwTM
TzbUr+n8MOAzIths6HZ9vnddXSE61Ndqku8FPZ/CMSYkPCIgK+x8btQ/4lb2zqDK
aUQac0lOeQQMK9POXpp65O+45yVQkyJeTScgAjikngRdn0x9VQTxHa4WggSgFPxX
vZik/3s5QvzjlGlArk7+71r/mmszOc+g2s+vN7aBDTDiGgHJOtStp1SbmkgW9w7m
sW+dSgR/78BRFZSXRsRdBf3RkQzCFk/dAJr8flEYKWFF7s0TOmrMSuxX7NB3EzK+
9tcce1xSb1TXRq/h/x59Mjidntl5qo7g123QWgwe4z7tqfOMbj30zYDwWjIJTzDt
hq5zM1qxgH/mAUtiwdK/Ezb7CcOPMj5VokGu7ptKB9PrxqtLLZ9EbfrbB2sicbZ4
gAXhoj65+cdeL322fnMj
=yBjR
-END PGP SIGNATURE-

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



Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Victor Rodriguez
Chris, a little more progress this morning...

This is what I currently have in my xyz.xml



And, this is what I get in my catalina.out...

INFO: Deploying configuration descriptor
/dg/local/cots/tomcat/tomcat_8082/conf/Catalina/localhost/xyz.xml

...then...

WARNING: A docBase /dg/local/cots/tomcat/tomcat_8082/webapps/abc.war inside
the host appBase has been specified, and will be ignored

...then...

SEVERE: Error starting static Resources

java.lang.IllegalArgumentException: Document base
/dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is not a
readable directory

So, it looks like it's looking for an exploded xyz directory.

On Fri, Dec 9, 2016 at 8:07 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Victor,
>
> On 12/8/16 7:57 PM, Victor Rodriguez wrote:
> > On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> >> Victor,
> >>
> >> On 12/8/16 4:59 PM, Victor Rodriguez wrote:
> > THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just
> > emphasizing!)
> >
> > I have abc.war and I want both /abc and /xyz to work for
> > it.  I've tried adding aliases="/abc=abc.war,/xyz=abc.war"
> > and aliases="/abc=abc,/xyz=abc" but neither of those
> > worked.  This is how my original context.xml looked like.
> >
> >   
> > WEB-INF/web.xml  
> >
> >  
> >
> > 
> >
> >>
> >> Tomcat 7 aliases are intended to map URLs within a single web
> >> application. You can't use it to duplicate the web application on
> >> two base paths.
> >>
> >> Here's what you need to do:
> >>
> >> 1. Put your WAR file in webapps/abc.war. This will deploy as
> >> usual.
> >>
> >> 2. Copy webapps/abc.war/META-INF/context.xml into
> >> conf/Catalina/localhost/xyz.xml and modify the  element
> >> like this:
> >>
> >>  >> docBase="webapps/abc.war "> ... 
> >
> > Thanks Chris!  I now get "Document base
> > /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is
> > not a readable directory"
>
> Is that path correct? What is the stack trace of that error?
>
> I would have expected the path to be pointing to abc.war, not .../xyz
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYStazAAoJEBzwKT+lPKRYPyEQAJZ8YpO/qzFtGkvZnR5Ws9CS
> jns81BMXXW01tPbTqEUVmGOnuTcDS/fTzaOtqp5QfkeAy9408vh8ynC1es2ZuKZ9
> iwlI9Rvwlg0LMiLIHOvmvTHEjxDEN6UCDtUb7iUc2IgVe3LCUm7wgAF6d84uhbIm
> +wi+HYd9ezl+KXfmr9izvfX3iFghdCS+MLR3OIusHhtlTzipmQVF6Vxrr7LcMv1F
> CR31oClB4XY6fFuzUmbLfV+O39ccHNGdb72fXcWAIFJNtjjLdQdpgw97O7J5BSRt
> Bmrk803NditwB0Zb99Fl39pf7+AMREkagnI1NHVuC0XwCOqNI0eHflPMEhJE9BUA
> Z3nlIUemi42lc8+IqXm+qIoZ67MG52UnUfOFcpc0g0tgO9YLRLJrhAsQY8E9QLQc
> kMPRD6GsFXFY38K9owX9znFPjR5FvCHdCdgln+emhCxGJt4MnyOs8I6U8ZCxyRSL
> gGSpTCmPYs0gx+6AaAhSpiy21E5LsFE1W5UdsEcBtjmy/XcFg+qJWn1OxThR8Iyj
> +24ooVNgmY6bR7HLNCUd7EE9baS1Fu0v2TWzN0Aw9E4gdGBr7TVNrI9lw4gXSHsv
> qtKRkQvSDmwNNmRUqFz//NIKlNGLSSYj4qa40pPux6ysNLRJ3mXudzq9bGKY73n1
> 9Y7HBzUnFlQj8NzP6kJM
> =Q+Vp
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Sent from neither my iPhone nor my iPad.


Re: URGENT: Tomcat 7 Aliases

2016-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 12/8/16 7:57 PM, Victor Rodriguez wrote:
> On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz < 
> ch...@christopherschultz.net> wrote:
> 
>> Victor,
>> 
>> On 12/8/16 4:59 PM, Victor Rodriguez wrote:
> THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just
> emphasizing!)
> 
> I have abc.war and I want both /abc and /xyz to work for
> it.  I've tried adding aliases="/abc=abc.war,/xyz=abc.war"
> and aliases="/abc=abc,/xyz=abc" but neither of those
> worked.  This is how my original context.xml looked like.
> 
>
> WEB-INF/web.xml  
> 
>  
> 
> 
> 
>> 
>> Tomcat 7 aliases are intended to map URLs within a single web 
>> application. You can't use it to duplicate the web application on
>> two base paths.
>> 
>> Here's what you need to do:
>> 
>> 1. Put your WAR file in webapps/abc.war. This will deploy as
>> usual.
>> 
>> 2. Copy webapps/abc.war/META-INF/context.xml into 
>> conf/Catalina/localhost/xyz.xml and modify the  element
>> like this:
>> 
>> > docBase="webapps/abc.war "> ... 
> 
> Thanks Chris!  I now get "Document base 
> /dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is
> not a readable directory"

Is that path correct? What is the stack trace of that error?

I would have expected the path to be pointing to abc.war, not .../xyz

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYStazAAoJEBzwKT+lPKRYPyEQAJZ8YpO/qzFtGkvZnR5Ws9CS
jns81BMXXW01tPbTqEUVmGOnuTcDS/fTzaOtqp5QfkeAy9408vh8ynC1es2ZuKZ9
iwlI9Rvwlg0LMiLIHOvmvTHEjxDEN6UCDtUb7iUc2IgVe3LCUm7wgAF6d84uhbIm
+wi+HYd9ezl+KXfmr9izvfX3iFghdCS+MLR3OIusHhtlTzipmQVF6Vxrr7LcMv1F
CR31oClB4XY6fFuzUmbLfV+O39ccHNGdb72fXcWAIFJNtjjLdQdpgw97O7J5BSRt
Bmrk803NditwB0Zb99Fl39pf7+AMREkagnI1NHVuC0XwCOqNI0eHflPMEhJE9BUA
Z3nlIUemi42lc8+IqXm+qIoZ67MG52UnUfOFcpc0g0tgO9YLRLJrhAsQY8E9QLQc
kMPRD6GsFXFY38K9owX9znFPjR5FvCHdCdgln+emhCxGJt4MnyOs8I6U8ZCxyRSL
gGSpTCmPYs0gx+6AaAhSpiy21E5LsFE1W5UdsEcBtjmy/XcFg+qJWn1OxThR8Iyj
+24ooVNgmY6bR7HLNCUd7EE9baS1Fu0v2TWzN0Aw9E4gdGBr7TVNrI9lw4gXSHsv
qtKRkQvSDmwNNmRUqFz//NIKlNGLSSYj4qa40pPux6ysNLRJ3mXudzq9bGKY73n1
9Y7HBzUnFlQj8NzP6kJM
=Q+Vp
-END PGP SIGNATURE-

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



Re: URGENT: Tomcat 7 Aliases

2016-12-08 Thread Victor Rodriguez
Thanks Chris!  I now get "Document base
/dg/local/cots/tomcat/tomcat_8082/webapps/xyz does not exist or is not a
readable directory"

On Thu, Dec 8, 2016 at 2:50 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Victor,
>
> On 12/8/16 4:59 PM, Victor Rodriguez wrote:
> > THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just emphasizing!)
> >
> > I have abc.war and I want both /abc and /xyz to work for it.  I've
> > tried adding aliases="/abc=abc.war,/xyz=abc.war" and
> > aliases="/abc=abc,/xyz=abc" but neither of those worked.  This is
> > how my original context.xml looked like.
> >
> >   
> > WEB-INF/web.xml   > pathname="" />
> >
> >  
> >
> > 
> >
>
> Tomcat 7 aliases are intended to map URLs within a single web
> application. You can't use it to duplicate the web application on two
> base paths.
>
> Here's what you need to do:
>
> 1. Put your WAR file in webapps/abc.war. This will deploy as usual.
>
> 2. Copy webapps/abc.war/META-INF/context.xml into
> conf/Catalina/localhost/xyz.xml and modify the  element like
> this:
>
>   
>...
>   
>
> Hope that helps,
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYSeO/AAoJEBzwKT+lPKRYBkIQAKiBaS7HNJrBfROGNu1pif1d
> ZPW1pyqXOp879TX9IjhViu8oSMQS1vymG4DrHscRUMlkdNuny+NHKecxKMv1La5i
> DtQOt2Hax26QizANh+cp9QHaJejdMpNM3mc4ySYfqi5bL4m3MlO7D+NycFT321/q
> mfKtDmH596B8TJRchoPjLCOl2jjPfvHSf2c1BVnztIOXXY/X4PwZfNiLv1uZDGnn
> pqK77m6TAiiMjV9lrn2DX7i3wZi1tiG13PoF16CYubmTNixbmZ45gO3dr+VmH+h2
> Q1hlN+MMghpbQ0Ukg1EYldA21ct31OjyG3ipinSHgTPygKV/ZvEIM3Zh67iU0bUn
> xOkiQ3G6nACSRP+0+9qFqnSGN283RQKC1eS6/ZnpG+YLOtNbh60+gLyOQk4O9/pw
> ZBabh7gOCjozHFmuDgcgec/Ql2kFS86fDBTX1QdjrhTdm/rH4rEAYShbL168gCC0
> vt+kjqR2QPJPkpxeuYiPTdoAI7eOLX1M4JfStF9Dmce5291262t2PJdBYJjulfVS
> cXVRjWgPCAiluBcyF2LME5E+jKEGeMtmBbK2+S8UVIXDS0MvKWLDln5PW8MAfWWr
> xfSFTBqNOKVtEuz22KpYkbljfXrLxn2uY6TKTjQnwddpH4t1TP0qSpnxCe38j3WT
> 3j37VFuqdMGl0f54yk12
> =hk95
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Sent from neither my iPhone nor my iPad.


Re: URGENT: Tomcat 7 Aliases

2016-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 12/8/16 4:59 PM, Victor Rodriguez wrote:
> THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just emphasizing!)
> 
> I have abc.war and I want both /abc and /xyz to work for it.  I've
> tried adding aliases="/abc=abc.war,/xyz=abc.war" and
> aliases="/abc=abc,/xyz=abc" but neither of those worked.  This is
> how my original context.xml looked like.
> 
>
> WEB-INF/web.xml   pathname="" />
> 
>  
> 
> 
> 

Tomcat 7 aliases are intended to map URLs within a single web
application. You can't use it to duplicate the web application on two
base paths.

Here's what you need to do:

1. Put your WAR file in webapps/abc.war. This will deploy as usual.

2. Copy webapps/abc.war/META-INF/context.xml into
conf/Catalina/localhost/xyz.xml and modify the  element like
this:

  
   ...
  

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYSeO/AAoJEBzwKT+lPKRYBkIQAKiBaS7HNJrBfROGNu1pif1d
ZPW1pyqXOp879TX9IjhViu8oSMQS1vymG4DrHscRUMlkdNuny+NHKecxKMv1La5i
DtQOt2Hax26QizANh+cp9QHaJejdMpNM3mc4ySYfqi5bL4m3MlO7D+NycFT321/q
mfKtDmH596B8TJRchoPjLCOl2jjPfvHSf2c1BVnztIOXXY/X4PwZfNiLv1uZDGnn
pqK77m6TAiiMjV9lrn2DX7i3wZi1tiG13PoF16CYubmTNixbmZ45gO3dr+VmH+h2
Q1hlN+MMghpbQ0Ukg1EYldA21ct31OjyG3ipinSHgTPygKV/ZvEIM3Zh67iU0bUn
xOkiQ3G6nACSRP+0+9qFqnSGN283RQKC1eS6/ZnpG+YLOtNbh60+gLyOQk4O9/pw
ZBabh7gOCjozHFmuDgcgec/Ql2kFS86fDBTX1QdjrhTdm/rH4rEAYShbL168gCC0
vt+kjqR2QPJPkpxeuYiPTdoAI7eOLX1M4JfStF9Dmce5291262t2PJdBYJjulfVS
cXVRjWgPCAiluBcyF2LME5E+jKEGeMtmBbK2+S8UVIXDS0MvKWLDln5PW8MAfWWr
xfSFTBqNOKVtEuz22KpYkbljfXrLxn2uY6TKTjQnwddpH4t1TP0qSpnxCe38j3WT
3j37VFuqdMGl0f54yk12
=hk95
-END PGP SIGNATURE-

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



URGENT: Tomcat 7 Aliases

2016-12-08 Thread Victor Rodriguez
THANKS IN ADVANCE FOR YOUR HELP!  (not yelling, just emphasizing!)

I have abc.war and I want both /abc and /xyz to work for it.  I've tried
adding aliases="/abc=abc.war,/xyz=abc.war" and aliases="/abc=abc,/xyz=abc"
but neither of those worked.  This is how my original context.xml looked
like.




WEB-INF/web.xml
   








Re: VERY URGENT

2015-04-02 Thread David kerber

On 4/2/2015 10:27 AM, Gary Dominic wrote:

Hi,
Could any one please advise whether Apache Tomcat 7.x is compatible with
Windows Server R2?. Also what are the most compatible servers that support
Apache Tomcat 7.x?.


Which Windows server R2?  2003 or 2008?  Though it actually doesn't 
matter.  TC 7 runs fine on every Windows server OS from 2000 on, as long 
as you have the correct version of Java installed.




Please help!.

Thanks.

Regards,
Gary




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



Re: VERY URGENT

2015-04-02 Thread David kerber

On 4/2/2015 10:42 AM, Gary Dominic wrote:

Thank you for your kind reply. Its Windows Server 2003 R2. So there will be
no performance issues right?.
Also could  you please tell me, which all are the optimal Windows servers
for Apache Tomcat 7.x?.


There is no optimal server.  It runs great on any of them.  Your 
application and the hardware will be the determining factor in 
performance, not Tomcat or the OS it's running on.  The version of Java 
will have an effect, but any ver 7 or 8 will be fine.


Just remember that Windows server 2003 goes EOL (no further updates) 
from MS this year, and Java 7 is already EOL from Oracle.





Please reply.

Thanks a lot!

Gary

On 2 April 2015 at 20:07, David kerber dcker...@verizon.net wrote:


On 4/2/2015 10:27 AM, Gary Dominic wrote:


Hi,
Could any one please advise whether Apache Tomcat 7.x is compatible with
Windows Server R2?. Also what are the most compatible servers that support
Apache Tomcat 7.x?.



Which Windows server R2?  2003 or 2008?  Though it actually doesn't
matter.  TC 7 runs fine on every Windows server OS from 2000 on, as long as
you have the correct version of Java installed.


  Please help!.


Thanks.

Regards,
Gary




-
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: VERY URGENT

2015-04-02 Thread André Warnier

Gary Dominic wrote:

Thank you for your kind reply. Its Windows Server 2003 R2. So there will be
no performance issues right?.
Also could  you please tell me, which all are the optimal Windows servers
for Apache Tomcat 7.x?.
Please reply.

Thanks a lot!

Gary

On 2 April 2015 at 20:07, David kerber dcker...@verizon.net wrote:


On 4/2/2015 10:27 AM, Gary Dominic wrote:


Hi,
Could any one please advise whether Apache Tomcat 7.x is compatible with
Windows Server R2?. Also what are the most compatible servers that support
Apache Tomcat 7.x?.


Hi.
To save you probably some disappointments and sharp responses on forums such as this one 
in the future, I would STRONGLY RECOMMEND that you read this :

http://www.catb.org/esr/faqs/smart-questions.html

REALLY

To try to answer your (really rather silly) question : Tomcat is a Java program, which is 
run by a Java JVM (http://en.wikipedia.org/wiki/Java_virtual_machine).

So wherever there is a JVM, Tomcat will run.
So it is not a question of having the most compatible server that supports Tomcat 7.x 
(whatever that means), it is a question of having a server which runs a Java JVM.
And in terms of performance, usually people look at the available CPU, memory, disks 
etc.., not at the OS.  In other words and to make this simple, a big machine will probably 
run Tomcat faster than a small machine.






Which Windows server R2?  2003 or 2008?  Though it actually doesn't
matter.  TC 7 runs fine on every Windows server OS from 2000 on, as long as
you have the correct version of Java installed.


 Please help!.

Thanks.

Regards,
Gary



-
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: VERY URGENT

2015-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

André,

On 4/2/15 11:00 AM, André Warnier wrote:
 Gary Dominic wrote:
 Thank you for your kind reply. Its Windows Server 2003 R2. So
 there will be no performance issues right?. Also could  you
 please tell me, which all are the optimal Windows servers for
 Apache Tomcat 7.x?. Please reply.
 
 Thanks a lot!
 
 Gary
 
 On 2 April 2015 at 20:07, David kerber dcker...@verizon.net
 wrote:
 
 On 4/2/2015 10:27 AM, Gary Dominic wrote:
 
 Hi, Could any one please advise whether Apache Tomcat 7.x is
 compatible with Windows Server R2?. Also what are the most
 compatible servers that support Apache Tomcat 7.x?.
 
 Hi. To save you probably some disappointments and sharp responses
 on forums such as this one in the future, I would STRONGLY
 RECOMMEND that you read this : 
 http://www.catb.org/esr/faqs/smart-questions.html
 
 REALLY
 
 To try to answer your (really rather silly) question : Tomcat is a
 Java program, which is run by a Java JVM 
 (http://en.wikipedia.org/wiki/Java_virtual_machine). So wherever
 there is a JVM, Tomcat will run. So it is not a question of having
 the most compatible server that supports Tomcat 7.x (whatever
 that means), it is a question of having a server which runs a Java
 JVM. And in terms of performance, usually people look at the
 available CPU, memory, disks etc.., not at the OS.  In other words
 and to make this simple, a big machine will probably run Tomcat
 faster than a small machine.

+1

http://stackoverflow.com/questions/14567926/minimum-and-recommended-requ
irement-for-tomcat-7-or-tomcat-6/14572521

- -chris

 
 Which Windows server R2?  2003 or 2008?  Though it actually
 doesn't matter.  TC 7 runs fine on every Windows server OS from
 2000 on, as long as you have the correct version of Java
 installed.
 
 
 Please help!.
 Thanks.
 
 Regards, Gary
 
 
 
- -

 
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
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVHVzxAAoJEBzwKT+lPKRYCukP/A6n2ejZBCO4iQ0JaD+YgsDw
34zik9/OBwebTYOy2WG1d4J8QpAXhsvpB068qrx6ewGNxpUb/M5JbS0sWmBakLgR
w04nYJESMFEIsc48TLO6P8R3tqCRHaHimv0vieEWMysfygpjSiHMziGo7Q3rUYrw
BN5+e51wsQEMTDBJ75J+NHx4k+wggDL+nAHcNqe20k5DBg3Yd91w7S7PQhPUJ3w5
h5+dj1G3MjPtrboAV1bQ6EIZMbNcQwxmPb7uH8E9nzsZxflFzOEZhmZhG2GhPx4i
M25N4pOh3x/9Eyn04PCb9BD0O2HnWAu1L500YWpFcEvj4CtNeahlH5esRedOSM68
2JfsVXhS8kmR7NY7bUw4aSzWgyXF8becos0GbP1LPMSNrVhvRvSG0gOvppFFzd/2
AvdFr3DC0BUzyThSirIXbMmkXrmG3MhPtaoXXRKeUuzhsP67NXf88VY21R4ucMAB
d35Il8NFKDMO9nuJgOQy1pq9ipwvvOEkYmNuDr/ecu/p08N2U7g8W/ixS1GUw+eq
Yj5K4fHPbBaY4Yp2niBPxy2kEqx/rxmRmAOT4HZryeMJxWSxHXj1jJN7OrseS1Tu
5YL1XnPIBrBssp8S+8clWjtT9/qR1pXD4M4hvAIxTaZlM8mPvI2pV+r8NQmSsfAh
E3a771A67K6wMODQNFSb
=NLSE
-END PGP SIGNATURE-

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



Re: VERY URGENT

2015-04-02 Thread Gary Dominic
Thank you for your kind reply. Its Windows Server 2003 R2. So there will be
no performance issues right?.
Also could  you please tell me, which all are the optimal Windows servers
for Apache Tomcat 7.x?.
Please reply.

Thanks a lot!

Gary

On 2 April 2015 at 20:07, David kerber dcker...@verizon.net wrote:

 On 4/2/2015 10:27 AM, Gary Dominic wrote:

 Hi,
 Could any one please advise whether Apache Tomcat 7.x is compatible with
 Windows Server R2?. Also what are the most compatible servers that support
 Apache Tomcat 7.x?.


 Which Windows server R2?  2003 or 2008?  Though it actually doesn't
 matter.  TC 7 runs fine on every Windows server OS from 2000 on, as long as
 you have the correct version of Java installed.


  Please help!.

 Thanks.

 Regards,
 Gary



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




VERY URGENT

2015-04-02 Thread Gary Dominic
Hi,
Could any one please advise whether Apache Tomcat 7.x is compatible with
Windows Server R2?. Also what are the most compatible servers that support
Apache Tomcat 7.x?.
Please help!.

Thanks.

Regards,
Gary


RE: VERY URGENT

2015-04-02 Thread Arthur Cosma
-Original Message-
From: Gary Dominic [mailto:domig...@gmail.com] 
Sent: Thursday, April 02, 2015 10:43 AM
To: Tomcat Users List
Subject: Re: VERY URGENT

Thank you for your kind reply. Its Windows Server 2003 R2. So there will be no 
performance issues right?.
Also could  you please tell me, which all are the optimal Windows servers for 
Apache Tomcat 7.x?.
Please reply.

Thanks a lot!

Gary

On 2 April 2015 at 20:07, David kerber dcker...@verizon.net wrote:

 On 4/2/2015 10:27 AM, Gary Dominic wrote:

 Hi,
 Could any one please advise whether Apache Tomcat 7.x is compatible 
 with Windows Server R2?. Also what are the most compatible servers 
 that support Apache Tomcat 7.x?.


 Which Windows server R2?  2003 or 2008?  Though it actually doesn't 
 matter.  TC 7 runs fine on every Windows server OS from 2000 on, as 
 long as you have the correct version of Java installed.


  Please help!.

 Thanks.

 Regards,
 Gary



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



Gary,

Tomcat 7 runs great on 2008 R2, just download the 64 bit version.
Before you install the service, edit service.bat in the bin directory and 
change the default memory allocation to suit your needs.
The default is very conservative, on my server I set it to 4096.

Arthur

[snip]
--StartParams start ^
--StopParams stop ^
--JvmOptions 
-Dcatalina.home=%CATALINA_HOME%;-Dcatalina.base=%CATALINA_BASE%;-Djava.endorsed.dirs=%CATALINA_HOME%\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties
 ^
--JvmMs 4096 ^
--JvmMx 4096
if not errorlevel 1 goto installed
echo Failed installing '%SERVICE_NAME%' service
goto end
[/snip]



 -- This message (including any attachments) is intended only for the use of 
the individual or entity to which it is addressed and may contain information 
that is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law. If you are not the intended recipient, you are 
hereby notified that any use, dissemination, distribution, or copying of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us and destroy this message immediately. ---


Re: [URGENT] Content-Encoding: gzip not set

2015-03-11 Thread Victor Rodriguez
Unfortunately, we're not ready to upgrade to 8.0.x yet, but I can see if I
can get our F5 load balancer to add the Content-encoding: gzip response
header.  Thanks guys!


Re: [URGENT] Content-Encoding: gzip not set

2015-03-11 Thread Mark Thomas
On 11/03/2015 14:44, Victor Rodriguez wrote:
 Thanks Geoff!  The thing is that I'd rather not have to add a servlet
 filter.
 
 Chris, I'm on Tomcat 7.0.53.

Finally. We have some version information.

The bad news is that the Default servlet gzip feature being discussed is
only available in 8.0.x.

  The files don't have .gz extensions; they end
 in .json and .terrain.  If I have gzip=true will tomcat add
 Content-encoding: gzip to all requests or only for files that end in
 .gz?

For those on Tomcat 8...

If the client requests foo.bar and declares that they accept gzip (and
gzip is enabled on the Default servlet), Tomcat looks for foo.bar.gz
and, if it exists, sets Content-encoding: gzip and returns the content
of foo.bar.gz.

In the unlikely event that the client doesn't support gzip or the more
likely event that a .gz version isn't available, Tomcat returns the
resource as originally requested. i.e. the idea is that both foo.bar and
foo.bar.gz exist in parallel.

 Having Content-encoding: gzip is the only way the browsers will
 gunzip on the fly.

Not strictly true although it requires a browser that actually follows
the HTTP specs for transfer-encoding and the last time I checked most
didn't.

 I was able to accomplish what I need with Apache with
 the following configuration, but my preference is to use Tomcat.

With Tomcat 7, a filter (which I know you'd rather not use - I mention
for others with the same question reading the archives) is likely the
simplest pure Tomcat option.

Another option would be to upgrade to 8.0.x.

Mark

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 3/10/15 6:33 PM, Victor Rodriguez wrote:
 I'm sorry.

Don't apologize, just listen and respond appropriately.

 I should have prefaced my original question by stating that I'd 
 read the Tomcat documentation

Great. So, what is it about just setting gzip=true on the
DefaultServlet that won't meet your needs?

 The only solution I found was having a servlet filter that adds
 the 'Content-encoding: gzip' response header

That shouldn't be necessary.

 and since I was referencing static content outside of any war
 file,

That's the first time you mentioned this requirement, although it's
easily solved. The solution depends upon your Tomcat version, which
you still haven't bothered to mention.

 I didn't want to have to write a servlet filter.

That shouldn't be necessary.

 Underlying Chris's original response was the assumption that I
 hadn't already read the documentation or done some research on my
 own prior to asking for assistance here, which was not the case.

If you read the docs, why didn't you say that you had read them? If
you had read them and understood them, you wouldn't have had to ask
the question that you did. Instead, you may have asked for
clarification before you actually tried configuring it.

http://www.catb.org/esr/faqs/smart-questions.html

 And then he didn't even point me to the pertinent documentation,
 but rather just said that I should read the documentation.  If he
 had pointed me to the pertinent documentation, I would not have
 been upset, but simply telling me to read the documentation pissed
 me off a bit.

The Tomcat documentation, while not the winner of any recent Pulitzer
Prizes, is definitely navigable: go to the Tomcat home page, and under
the Documentation menu, choose the version of Tomcat you are using.
There is even a top-level item for default servlet which Mark told
you to configure. Searching for gzip finds one relevant option. I
honestly don't understand why this is so hard.

And no, I'm generally not a jerk on this list. Had your tone been a
little more ... accommodating, I would have adjusted to that.

 telling someone to read the documentation without even so much as a
 hint as to where to look is analogous to telling someone to read
 the JDBC spec in response to a JDBC question (which by the way has
 also happened to me!)

That depends upon what the question was. If you asked what the return
type was for ResultSet.getString(String), I might tell you to go read
the spec, or at least the Javadoc.

This is a mailing list to support a community, not to be your own
personal reference librarian.

So, back to the original question: why doesn't gzip=true meet your
needs? Your original muttering on the subject:

On 3/9/15 5:25 PM, Victor Rodriguez wrote:
 Thanks Mark!  Unfortunately, that is not an option.  The client
 will be requesting the files without the .gz extension.

either misunderstood the solution or you have some hidden requirement
that you aren't telling us.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVAEDBAAoJEBzwKT+lPKRYoc4P/iliA4J2eu1c61p6Z7NgSxl1
iocnme3HxkrE4z9h1Q0krHYFdiO1Z/CMWvsssibM/lKzG4luRZkOWKtMl49UiXW2
4zS2cZ0iwx1OtD/jSeTLc0hB6hoFdiiRCOG053ZNT7TyGLmarfuDs92j8YJbqLud
6l9Yggbk1T/zYRPoxzlarS/ZqPX7llDO3dUc0J4QmgSZHzXCHwnxCiUfW8NZutBG
kqp5g7u+PMh6ZIH2PfJ2oXsIaQmxY7gK9VrCwgqL0p6PJAqn8SxIcKucRjB6Ynb8
bp6Lj2eKwWvwwz/Pked+cWLVEXD45AxM1hJplJz45s/PBQdUkRMB9Yfh5R1lCTo/
qkJVwIyP4xl0VgBRE4TIxhoVQlFNKokZsrLIHcvJXe2W1puCLE3phQMtgPTEFf98
XXJ3q4XgBYsD6cFeD2iQlupbmp2j9GYQdPqrWgMzf7dTlYGEnOYQsG+CNIm1o+i6
7k9zDIcfRYdvkF0zMkGYx9RnkuAJFOYwdrt4VAzqxrLkjJcPJVs7k0Zo71FTBY4T
rAKWZlc4png0x5tE81gA+06Q69azFGd8SiAg03PvBXlmpw+3SJSgsOkAfq+PDt7o
/uwkCyxjH2069C3bVYP1buOReUKXrK4Q9wxy2OQVYWmgP9SIk2OIQuFAA8hvm0V3
H4Td0N+YzfKLMvBFmK9c
=N998
-END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-11 Thread Victor Rodriguez
Thanks Geoff!  The thing is that I'd rather not have to add a servlet
filter.

Chris, I'm on Tomcat 7.0.53.  The files don't have .gz extensions; they end
in .json and .terrain.  If I have gzip=true will tomcat add
Content-encoding: gzip to all requests or only for files that end in
.gz?  Having Content-encoding: gzip is the only way the browsers will
gunzip on the fly.  I was able to accomplish what I need with Apache with
the following configuration, but my preference is to use Tomcat.

AddType application/json .json
AddType application/vnd.quantized-mesh .terrain
AddEncoding x-gzip .gz .tgz .json .terrain

Thanks!


Re: [URGENT] Content-Encoding: gzip not set

2015-03-11 Thread Geoff Meakin
Hi Victor,

I'm not sure if this is any use to you, but this guy seemed to have the
same issue as you:
http://stackoverflow.com/questions/1061066/http-compression-how-to-send-precompressed-files-that-exist-in-a-ear-file

Are you able to use the suggestion of an output filter to add the
content-encoding header for your already compressed files? It should work
if you can classify your precompressed files somehow - e.g. existing in a
directory or following a certain filename convention.

Hope that helps


Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Rainer,

On 3/9/15 7:01 PM, Rainer Jung wrote:
 Am 09.03.2015 um 23:11 schrieb Christopher Schultz:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256
 
 Igor,
 
 On 3/9/15 6:01 PM, Igor Cicimov wrote:
 On 10/03/2015 6:14 AM, Victor Rodriguez
 victropo...@gmail.com wrote:
 
 Greetings,
 
 I have some ALREADY gzipped files that I'm trying to serve
 up.
 
 I have the following in my web.xml.
 
 mime-mapping extensionjson/extension 
 mime-typeapplication/gzip/mime-type /mime-mapping
 
 
 And, I have the following in my server.xml:
 
 Context docBase=/path/to/already-gzipped-json
 path=/already-gzipped-json /
 
 
 From the command line, I can curl the files and gunzip them
 just fine, so they are coming across gzipped:
 
 curl http://localhost:8082/already-gzipped-json/fie.json |
 gunzip -
 
 However, requests coming from a web browser aren't handled 
 correctly and aren't legible in the browser, and I believe
 it's because
 Content-Encoding:
 gzip is not in the response headers.
 
 You mean Accept-Encoding, right? Is tomcat fronted by apache,
 nginx or something else that can add this header for you?
 
 Ironically, getting this to work as requested in Apache httpd is
 a complete nightmare. The Tomcat solution basically works
 *exactly* as a user would want it to work.
 
 Agreed, that the feature in the default servlet is much much easier
 to use than configure pre-compressed content in httpd. But
 nightmare might be a bit to strong. It is tricky. See for example:
 
 http://mail-archives.apache.org/mod_mbox/httpd-users/201110.mbox/%3c4e8e51c0.4050...@kippdata.de%3E

Would
 
you be up for the creation of mod_already_gzipped? It could act
just like the DefaultServlet's behavior:

1. Did the client say it could Accept-Encoding: gzip?
2. Does the file [translated-path].gz exist?
3. Then send those bytes with Content-Encoding: gzip and
Content-Length: size(file.gz)

It seems like that should be a no-brainer in terms of functionality.

Using MultiViews and re-naming your files to bizarre filenames, etc.
is a big hack that I finally decided wasn't worth it.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU/vszAAoJEBzwKT+lPKRYEXIQAKLx1pbCojQ9kcAeCp/ChLOd
x0B9AB7vPJBnB7+BkQV9n+0ZDm8xSw1BqnIWkNFGlCm/5ysz1YTxi358o7ksIqXS
stJXzrnF03f9v2M8tkm5A0Tmb9zO5lPbfgcCnv2qjtYstVB4NyMtowo7sGtUGpVW
uYKRWiRBbjwK/np7esoi5waosPepMttPx1E6dVKqSOrru805qs8FzO+uEjlTfLOt
vClfbZm9bkpyNUiEaj1P/oc10vjzKMXAPL1aqu5RMJz8sxvZugT/nLIpUTFbBHLY
XJW+aaKzrV5mlb8OK3NvQTTFEZO+KhL1lqTrWVtiQUx9jIDed3fuzBhy8PggIIu7
IoD7nCL3sPASxm+Hf2cf2I64vEXZQg85sxZh8rEZTmruqqmGSx3EauDzReU7AVOW
C2PNRexath9p5Pv1d3gAMjapybx4xPNtbaA2ThSENurzsba2c4jdJXD7lMWmGaIf
lmBbmCaAIn2C0UWkPBAQKOSAKmE6jmpCkqwmhP7WhjALfOSUDVXJTRA7nZ0ZkMh1
UuypvPvqDDcyLKKnrSaQiyYQ09r92Ru393YqVtaaQRkNX3hKwciLYfd1saJnyo9b
x7z6xIgvNf/tGOWye/QW68rn3ahpmArizYNeSz/FxWZxXuuFuwJoyGhErrOAADdR
z2OK5VlnKZWPTbWUOqlV
=4c4D
-END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Rainer Jung

Hi Chris,

Am 10.03.2015 um 15:09 schrieb Christopher Schultz:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Rainer,

On 3/9/15 7:01 PM, Rainer Jung wrote:

Am 09.03.2015 um 23:11 schrieb Christopher Schultz:

-BEGIN PGP SIGNED MESSAGE- Hash: SHA256

Igor,

On 3/9/15 6:01 PM, Igor Cicimov wrote:

On 10/03/2015 6:14 AM, Victor Rodriguez
victropo...@gmail.com wrote:


Greetings,

I have some ALREADY gzipped files that I'm trying to serve
up.

I have the following in my web.xml.

mime-mapping extensionjson/extension
mime-typeapplication/gzip/mime-type /mime-mapping


And, I have the following in my server.xml:

Context docBase=/path/to/already-gzipped-json

path=/already-gzipped-json /



 From the command line, I can curl the files and gunzip them
just fine, so they are coming across gzipped:

curl http://localhost:8082/already-gzipped-json/fie.json |
gunzip -

However, requests coming from a web browser aren't handled
correctly and aren't legible in the browser, and I believe
it's because

Content-Encoding:

gzip is not in the response headers.


You mean Accept-Encoding, right? Is tomcat fronted by apache,
nginx or something else that can add this header for you?


Ironically, getting this to work as requested in Apache httpd is
a complete nightmare. The Tomcat solution basically works
*exactly* as a user would want it to work.


Agreed, that the feature in the default servlet is much much easier
to use than configure pre-compressed content in httpd. But
nightmare might be a bit to strong. It is tricky. See for example:

http://mail-archives.apache.org/mod_mbox/httpd-users/201110.mbox/%3c4e8e51c0.4050...@kippdata.de%3E


Would



you be up for the creation of mod_already_gzipped? It could act
just like the DefaultServlet's behavior:

1. Did the client say it could Accept-Encoding: gzip?
2. Does the file [translated-path].gz exist?
3. Then send those bytes with Content-Encoding: gzip and
Content-Length: size(file.gz)

It seems like that should be a no-brainer in terms of functionality.

Using MultiViews and re-naming your files to bizarre filenames, etc.
is a big hack that I finally decided wasn't worth it.


Note that the linked recipe I provided for httpd does not use MultiViews 
and also does not force you to rename the existing (uncompressed) files.


It contains 5 lines of Apache config, of which 2 are most likely already 
present. So it boils down to one RewriteRule plus RewriteCond and one 
mod_headers directive. How and why it works is the long part of the 
description.


The only other thing is the maybe uncommon policy for the names of the 
*compressed* files, keeping the .gz in front of the original file name 
suffix. You could even move it completely in front of the file name like 
gz.myfile.suf to make it even more uncommon ;)


But yes, the recipe still needs to be adjusted depending on where your 
static files are, for which files you want to use it etc. So packing it 
into a simple module could be worthwhile. I'll post it if I get to it.


Regards,

Rainer

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
AddType application/json .json
AddType application/vnd.quantized-mesh .terrain


Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
I finally have it working in Apache using the following.  If there's an
easy way to accomplish this in Tomcat I'd pref that cuz I could just
leverage our existing deployed tomcats.  Thanks!

AddType application/json .json
AddType application/vnd.quantized-mesh .terrain
AddEncoding x-gzip .gz .tgz .json .terrain

On Tue, Mar 10, 2015 at 11:26 AM, Victor Rodriguez victropo...@gmail.com
wrote:

 AddType application/json .json
 AddType application/vnd.quantized-mesh .terrain




-- 
Sent from neither my iPhone nor my iPad.


Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
Interesting, we don't front with Apache, but we do have an F5 load
balancer.  Maybe it can add the Content-encoding; gzip' response header.
Thanks for the idea!  In the meantime, I'll keep plugging away trying to
get Tomcat to do it correctly.  thanks again!

On Mon, Mar 9, 2015 at 4:01 PM, Igor Cicimov icici...@gmail.com wrote:

 On 10/03/2015 6:14 AM, Victor Rodriguez victropo...@gmail.com wrote:
 
  Greetings,
 
  I have some ALREADY gzipped files that I'm trying to serve up.
 
  I have the following in my web.xml.
 
  mime-mapping
  extensionjson/extension
  mime-typeapplication/gzip/mime-type
  /mime-mapping
 
 
  And, I have the following in my server.xml:
 
  Context docBase=/path/to/already-gzipped-json
 path=/already-gzipped-json /
 
 
  From the command line, I can curl the files and gunzip them just fine, so
  they are coming across gzipped:
 
  curl http://localhost:8082/already-gzipped-json/fie.json | gunzip -
 
  However, requests coming from a web browser aren't handled correctly and
  aren't legible in the browser, and I believe it's because
 Content-Encoding:
  gzip is not in the response headers.
 
 You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx or
 sometning else that can add this header for you? If not then maybe just
 consider it as option if you can't solve it in tomcat although according to
 the comments you got here from people that are really experts it should be
 possible.

  curl -I http://localhost:8082/already-gzipped-json/fie.json
 
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Accept-Ranges: bytes
  Last-Modified: Mon, 09 Mar 2015 17:15:29 GMT
  Content-Type: application/gzip
  Content-Length: 17905
  Date: Mon, 09 Mar 2015 19:11:06 GMT
 
  How do I tell Tomcat to include the Content-Encoding: gzip response
  header?  Again, these area ALREADY zipped files.  I'm not interested in
  Tomcat doing the gziping on the fly.
 
  Thanks!
  --
  Sent from neither my iPhone nor my iPad.




-- 
Sent from neither my iPhone nor my iPad.


Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread André Warnier

Victor Rodriguez wrote:

I finally have it working in Apache using the following.  If there's an
easy way to accomplish this in Tomcat I'd pref that cuz I could just
leverage our existing deployed tomcats.  Thanks!

AddType application/json .json
AddType application/vnd.quantized-mesh .terrain
AddEncoding x-gzip .gz .tgz .json .terrain



Victor, you are wasting everyone's time. Go away.

Or else, why do you not re-read the very first response to your very first question, which 
already contained the correct answer, more than 24 hours and 15 messages ago ?


Or are you so infused with yourself that you do not realise why you might have upset some 
people here ?



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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 3/10/2015 3:33 PM, Victor Rodriguez wrote:
 I'm sorry.  I should have prefaced my original question by stating
 that I'd read the Tomcat documentation and did extensive googling
 on the subject, but could not find the answer I was looking for.
 The only solution I found was having a servlet filter that adds the
 'Content-encoding: gzip' response header and since I was
 referencing static content outside of any war file, I didn't want
 to have to write a servlet filter.
 
 Underlying Chris's original response was the assumption that I
 hadn't already read the documentation or done some research on my
 own prior to asking for assistance here, which was not the case.
 And then he didn't even point me to the pertinent documentation,
 but rather just said that I should read the documentation.  If he
 had pointed me to the pertinent documentation, I would not have
 been upset, but simply telling me to read the documentation pissed
 me off a bit.
 
 My apologies to all, but in the future, please don't assume that
 people haven't done some research prior to asking for assistance
 here.  Again, I accept part of the blame for not having said that
 to begin with, but telling someone to read the documentation
 without even so much as a hint as to where to look is analogous to
 telling someone to read the JDBC spec in response to a JDBC
 question (which by the way has also happened to me!) hehehe...
 
 On Tue, Mar 10, 2015 at 4:09 PM, André Warnier a...@ice-sa.com
 wrote:
 
 Victor Rodriguez wrote:
 
 I finally have it working in Apache using the following.  If
 there's an easy way to accomplish this in Tomcat I'd pref that
 cuz I could just leverage our existing deployed tomcats.
 Thanks!
 
 AddType application/json .json AddType
 application/vnd.quantized-mesh .terrain AddEncoding x-gzip .gz
 .tgz .json .terrain
 
 
 Victor, you are wasting everyone's time. Go away.
 
 Or else, why do you not re-read the very first response to your
 very first question, which already contained the correct answer,
 more than 24 hours and 15 messages ago ?
 
 Or are you so infused with yourself that you do not realise why
 you might have upset some people here ?

Very, very late to the party. BIA/BCP/RTO/RPO/audit/yuck.

Victor,

Mark's answer was spot on, and the documentation for Tomcat 8.0 gives
more or less explicit instructions.

Skimming over the thread, I don't see where you ever told folks what
version of Tomcat you were using (I could be wrong).

Using Mark's answer, I immediately went to the following page:

http://tomcat.apache.org/tomcat-8.0-doc/default-servlet.html

Read that documentation, especially where it concerns gzip.

If you need an example as to how to set gzip=true, look at the other
init-param nodes in the web.xml included on that page.

Seriously, I know you don't want to hear this but read the
documentation. Yes it's sometimes a bit dense (as in lots of
information, few words). However, it is for the most part very fine
documentation. Where it's not, patches are welcome (yes, I have one
long overdue).

If you come back and say, Here's what I read, here's what I
understood, here's what I tried, here's what happened, here's what I
wanted to happen, then people are much more likely to help. In short
(don't laugh, folks), demonstrate that you've put at least as much
effort into solving the problem as those people taking time to help
you find the answer.

Oh, and start out by reading this:

http://www.catb.org/esr/faqs/smart-questions.html

If not, then most likely you'll wear out your welcome.

It sounds like you have already worn out your welcome for JDBC.

. . . just my (beleaguered) 2 cents
/mde/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBAgAGBQJU/3ySAAoJEEFGbsYNeTwtjNIIAJAODTPlhgLjiN6JgiGcNWVU
bhNVrWn3VdO+WmDsXxLFAt2Gux8zbno2UL16x2VnYymqtXFt5+GqaaBrCtLla0Mu
1kP1CKHr1NEfvGta3X4Tf1bOiS9VfMyystZh+rLrkw98qL5eQdfakKWtnMKpQgp1
ih+IwfZ1bozEE4F+18pM3nhJMtiuMiQsuFWMPLe0ieIDE22gF4mZHGZb6Z4QfMIs
JLElFLkHTTIY6zAz30ZrkOTx+OE3q4ULEpCsfplXQOogoraVgHMuzk0PGAYTNldV
9hkAvrqjXDhCCQ7Cnc2Z4NyUQ07vawWSmoR22jnSIBAgfsYHUj3gGmMoUOJAElE=
=t6am
-END PGP SIGNATURE-

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-10 Thread Victor Rodriguez
I'm sorry.  I should have prefaced my original question by stating that I'd
read the Tomcat documentation and did extensive googling on the subject,
but could not find the answer I was looking for.  The only solution I found
was having a servlet filter that adds the 'Content-encoding: gzip' response
header and since I was referencing static content outside of any war file,
I didn't want to have to write a servlet filter.

Underlying Chris's original response was the assumption that I hadn't
already read the documentation or done some research on my own prior to
asking for assistance here, which was not the case.  And then he didn't
even point me to the pertinent documentation, but rather just said that I
should read the documentation.  If he had pointed me to the pertinent
documentation, I would not have been upset, but simply telling me to read
the documentation pissed me off a bit.

My apologies to all, but in the future, please don't assume that people
haven't done some research prior to asking for assistance here.  Again, I
accept part of the blame for not having said that to begin with, but
telling someone to read the documentation without even so much as a hint as
to where to look is analogous to telling someone to read the JDBC spec in
response to a JDBC question (which by the way has also happened to me!)
 hehehe...

On Tue, Mar 10, 2015 at 4:09 PM, André Warnier a...@ice-sa.com wrote:

 Victor Rodriguez wrote:

 I finally have it working in Apache using the following.  If there's an
 easy way to accomplish this in Tomcat I'd pref that cuz I could just
 leverage our existing deployed tomcats.  Thanks!

 AddType application/json .json
 AddType application/vnd.quantized-mesh .terrain
 AddEncoding x-gzip .gz .tgz .json .terrain


 Victor, you are wasting everyone's time. Go away.

 Or else, why do you not re-read the very first response to your very first
 question, which already contained the correct answer, more than 24 hours
 and 15 messages ago ?

 Or are you so infused with yourself that you do not realise why you might
 have upset some people here ?



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




-- 
Sent from neither my iPhone nor my iPad.


Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 3/9/15 3:12 PM, Victor Rodriguez wrote:
 I have some ALREADY gzipped files that I'm trying to serve up.

See Mark's reply for how to do what you are trying to do. I'd like to
comment, here, though.

 I have the following in my web.xml.
 
 mime-mapping extensionjson/extension 
 mime-typeapplication/gzip/mime-type /mime-mapping
 
 And, I have the following in my server.xml:
 
 Context docBase=/path/to/already-gzipped-json
 path=/already-gzipped-json /
 
 From the command line, I can curl the files and gunzip them just
 fine, so they are coming across gzipped:
 
 curl http://localhost:8082/already-gzipped-json/fie.json | gunzip
 -
 
 However, requests coming from a web browser aren't handled
 correctly and aren't legible in the browser, and I believe it's
 because Content-Encoding: gzip is not in the response headers.

Nor should it be: the file is a gzipped file; it's not being sent in
gzip encoding. You are confusing the two concepts.

If you request a web resource, what you get is what's on the server's
disk. If that content is gzipped, you'll get a gzipped file. If it's
not, you don't.

Content-Encoding: gzip means that the original file is being
compressed for transit, but that the original file is not
(necessarily) in gzipped format.

 curl -I http://localhost:8082/already-gzipped-json/fie.json
 
 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Accept-Ranges: bytes 
 Last-Modified: Mon, 09 Mar 2015 17:15:29 GMT Content-Type:
 application/gzip Content-Length: 17905 Date: Mon, 09 Mar 2015
 19:11:06 GMT
 
 How do I tell Tomcat to include the Content-Encoding: gzip
 response header?  Again, these area ALREADY zipped files.  I'm not
 interested in Tomcat doing the gziping on the fly.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU/hGXAAoJEBzwKT+lPKRY5JIP/iP0JhQXUeYqc36vwPIBfd8I
gIF59ZaSYzEifUFSTDGNe9YBhBtctVgpl+EB2RPIq3ICbC88SQhdaIFAqm+jyv9t
WpY62P+ZF5oRB36agYiGZl897KcC5nVvXVJ3wW3wkdT9jjRqtquV0idIdXEEjtCX
UUloa6YBqxz0LtrRzQYI4jGlK/sVGE9i1OraTJ5LbkDbE8KC7wtEB3/s6ptXRalr
VnTc1bofc/9HrlXKBqghr9Z13PXPLSXuJ5dih4TSO8rBQyw4J/rQD8lD/LPprxXB
BKNEUNCTWMuGjXtisDrcMkPPiNZTcFMuYbLDtzift7i2RGPbPuLLKt6ZiytncCjs
+EG6xkh2NRJVydUqQreIA+1n4ToLNApbI5+xt6FcIlEoftHrnrNA2vel2rUICj+n
Em/Eavt6L2IzkVUXOwWWjpVyqG0NXAJseL08itoMuKzTZZvXAtObc+EtL/zQzUaU
fC3Fz68U9HcQj6Zc7NmzHNihjOlb/wCswI32iuV0LZa4mN0qi3HCFEREOx4ijlnZ
/B/E+EWCZl4beICSAO6QFpWCHNm0m2FVKglD5vSLprxOwSqnTk0UR/WHf3aVWv97
GAx0iDrDtvZJRBnyVrdx0nD99hJBsDyYXl4KzMx/8m/yyuH4mTDLGnNqMjPpT1xT
d0l9sHubJaWratZJ9d1T
=flBL
-END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 3/9/15 5:44 PM, Victor Rodriguez wrote:
 Brilliant Chris!  However, if it were that easy, I would have
 already found it and figured it out.  That's why I'm asking the
 experts on this list for HELP!  Not for someone to tell me that I
 ought to read the documentation for the feature I'm trying to use.
 If there's something that drives me absolutely nuts it's people
 that say read the documentation when you ask them for help.
 
 Apparently, IIS can be easily configured to do this, but we don't
 use IIS around here, so I have to figure out how to do it with
 Tomcat and/or Apache.  And so far, the documentation hasn't given
 me the solution for either case.
 
 Can you possibly point me to the right place in the documentation?
 Thanks!

Hmm...

 On 3/9/15 4:01 PM, Mark Thomas wrote:
 Add .gz to the end of the file name and set gzip=true for the 
 default servlet.

User Guide  Default Servlet  search the page for gzip  read the
description for what gzip does.

I apologize for the difficulty level involved with finding that
documentation.

*facepalm*

Mark's response was a no-BS, cut-to-the-solution response, and you
didn't like it. Why, I'm not sure.

If there's something that drives me absolutely nuts it's people who
say help me with my URGENT problem, but no, I won't tell what version
of the software I'm running and when you tell me the answer I'll
discard it out of hand after jumping to conclusions about how it works.

- -chris

 On Mon, Mar 9, 2015 at 3:33 PM, Christopher Schultz  
 ch...@christopherschultz.net wrote:
 
 Victor,
 
 On 3/9/15 5:25 PM, Victor Rodriguez wrote:
 Thanks Mark!  Unfortunately, that is not an option.  The
 client will be requesting the files without the .gz
 extension.
 
 On Mon, Mar 9, 2015 at 2:01 PM, Mark Thomas
 ma...@apache.org wrote:
 
 On 09/03/2015 19:12, Victor Rodriguez wrote:
 
 How do I tell Tomcat to include the Content-Encoding:
 gzip response header?  Again, these area ALREADY zipped
 files.  I'm not interested in Tomcat doing the gziping on
 the fly.
 
 Add .gz to the end of the file name and set gzip=true for
 the default servlet.
 
 If the client will be requesting the files without a .gz
 extension, then ... you really ought to read the documentation for
 the feature you are trying to use.
 
 -chris
 
 -

 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU/hZkAAoJEBzwKT+lPKRYPVUQAIqw0xqgawpUZPVPc8OakaI+
It/4M173o1LyCLHC6gzWLkYM9Kuv8KlGpzou/XAa+c1Oiyr499nblPiuewSak4wt
IghlIjKcSGOWke3w7lc5KbVjUej3Jkj32cUQDWuSZ2+iSZxdyO7KQ6Zs1gTcHqaL
5uJRjr6ODfn5+NRAyTq4k04Rq/XBfERzC6SpA91LwjmX2XMx557A5jhqSZ88vlQC
lZfWeffc6V5Hy920xzxwzb4K7d6QBWHNNh94m6aUCtDzhzw5wzlnDnB0gv5RIEQw
+8nRRt3L64MvIJdVWDiOi+OewEnZwHlAtmYllWp+hFrN3NahHpmb2xOAjpFZYiAX
FzjeC+ObVzhrWdDpuJ2M2spemCBAGbbLieUMrVDWq/ePuFkK6r2EqxGJtOVEmFdW
LgPub4HqBP3mgDBRubBsKNjPw3FagqH3Y+7GOumyhENMdWhNLnNBS+Yo6naIe3Ym
l9S062gH2azJW2K/1loXnIOrIN0ejdeodUKiokBpcsgjL/jImBcxQULcyioTNy9+
67F46rU/rmTB8eJ+iGz1jDIUDeXtydS4Po2JUZl4JpqzzV/wHcVkmnXrv3PM+g3v
ePAgNQHVjs20K6ZykYZ45IO4yTgkbwH8Ug2mDMh24piVNVDrP4nFNfDfv1zm5lV4
Hepm/T1Zv2rP4dHPXspa
=o28h
-END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Mark Thomas
On 09/03/2015 19:12, Victor Rodriguez wrote:

 How do I tell Tomcat to include the Content-Encoding: gzip response
 header?  Again, these area ALREADY zipped files.  I'm not interested in
 Tomcat doing the gziping on the fly.

Add .gz to the end of the file name and set gzip=true for the default
servlet.

Mark


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




Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Mark Thomas
On 09/03/2015 21:25, Victor Rodriguez wrote:
 Thanks Mark!  Unfortunately, that is not an option.  The client will be
 requesting the files without the .gz extension.

Who said anything about the client having to change the file name it was
requesting?

Did you even look at the documentation for the default servlet before
you rejected this option?

Mark



 
 On Mon, Mar 9, 2015 at 2:01 PM, Mark Thomas ma...@apache.org wrote:
 
 On 09/03/2015 19:12, Victor Rodriguez wrote:

 How do I tell Tomcat to include the Content-Encoding: gzip response
 header?  Again, these area ALREADY zipped files.  I'm not interested in
 Tomcat doing the gziping on the fly.

 Add .gz to the end of the file name and set gzip=true for the default
 servlet.

 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: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Igor,

On 3/9/15 6:01 PM, Igor Cicimov wrote:
 On 10/03/2015 6:14 AM, Victor Rodriguez victropo...@gmail.com
 wrote:
 
 Greetings,
 
 I have some ALREADY gzipped files that I'm trying to serve up.
 
 I have the following in my web.xml.
 
 mime-mapping extensionjson/extension 
 mime-typeapplication/gzip/mime-type /mime-mapping
 
 
 And, I have the following in my server.xml:
 
 Context docBase=/path/to/already-gzipped-json
 path=/already-gzipped-json /
 
 
 From the command line, I can curl the files and gunzip them just
 fine, so they are coming across gzipped:
 
 curl http://localhost:8082/already-gzipped-json/fie.json | gunzip
 -
 
 However, requests coming from a web browser aren't handled
 correctly and aren't legible in the browser, and I believe it's
 because
 Content-Encoding:
 gzip is not in the response headers.
 
 You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx
 or something else that can add this header for you?

Ironically, getting this to work as requested in Apache httpd is a
complete nightmare. The Tomcat solution basically works *exactly* as a
user would want it to work.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU/hqbAAoJEBzwKT+lPKRYEmsQAKc1Pm9c9ihQb5A1DDiRYAAN
p0xj6JxxwjP2a1OawVUSXZU5umftkehDana6mLTPgZ/WtrzGxj8NR1ysl7or/eyC
slrkLruzp716jkDL2ySZt7l2PsJScOwAC1j1ZsGJA0HyIIHz5AmON0Aff1ihdCGz
uLXzDS2JyW7pdVFy6YLhfkCibocPv1NsXxo6NCbuTd91Rd2kwe7/KJ4YOLxXh2GX
oorlctGc4NuiM0eFoj4xeNrEodIalYZvhi8YyPEDpnifuItY2q2yKCAhjZMYVZ+X
A0WsQgGds5DWkeWPrR1dnGL82ZyoI1hN2vm6j5oWJnmSqzwuuUUdezmWOmXFWOhS
pIuCW2zvLdP/MDblwsV7NMOopfoqHhTqoM+5p+ttQviCMGe8ubDd5Q/JLenzehEr
lKdR78m812cuO84CZtKq0yIKF0Ipc1oYtXXKrHKkMbQWHbcvWTRvoqSNYICicXWF
PmmpRFytUXywUqjj3e++mKRqHWUWkg2WuABocbTtwOTouL8tXop/v018PkUBDf37
GqDzgVM0Y25O+jkxCj01ftDj+mrsDS5V8FH+sPtvt3DtgdWKTkIByNNeueau6zqh
zSwB3FSBuWk9Six3DuwhTXHA/RX6kL3nnZX46Tv4RAT0wPkxFH2fKa/eD3IPTnng
bWw+X47oId6UasMkj3pP
=LKmV
-END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Victor,

On 3/9/15 5:25 PM, Victor Rodriguez wrote:
 Thanks Mark!  Unfortunately, that is not an option.  The client
 will be requesting the files without the .gz extension.
 
 On Mon, Mar 9, 2015 at 2:01 PM, Mark Thomas ma...@apache.org
 wrote:
 
 On 09/03/2015 19:12, Victor Rodriguez wrote:
 
 How do I tell Tomcat to include the Content-Encoding: gzip
 response header?  Again, these area ALREADY zipped files.  I'm
 not interested in Tomcat doing the gziping on the fly.
 
 Add .gz to the end of the file name and set gzip=true for the
 default servlet.

If the client will be requesting the files without a .gz extension,
then ... you really ought to read the documentation for the feature
you are trying to use.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU/hHFAAoJEBzwKT+lPKRYIvUP/iXLC0HnWav5EdZlMG2KnlSs
MmVwikA7yoBLznMGcUSPNYhH8os6NKLusUltsxl8iWvGLCvxhNinNKSMShKOGby7
glXQ0o6Y0c2XCAiOCP0xv11RZNHjm+EZH1nrD8ZJoPegIrdxWXnO/P3Odx/3lNLn
PKt6M2TjEtzoBXy3V2QgXziOk/7ike5DHwZTi/NMIkV+e0OBrdqBgPlJPGMPngJU
5kmPQ7WSf3GlrkSw4ougIiKZAXqHHm27BlKkgO0pAn5qe78FcV0QCdfisLeXsU2o
frfuKAIpiVjsqmnSC9WHA8L4A2z2Pyma22thNjfZTRcCnyzXHsYDsfIafXed6V0N
oobXuXeOy/vtYEB6DulfJe6uxvfn5mD2YkTGNQjY4XbGuozlU/akBxEiFUjeJ5Zf
XYLB9UH5SV4pD7VtjwfqGvI8zo8ym1UEyb91KYQyZzxmcv0iGwS2YZNlj4iPBKSY
wTLQNDx3YcD66eLBSC2lnetDqeUJSSsuHmTEVVlF6uuoO0DECRkfqhQEsA9UQuv6
AS7Qaab7+w2dc6As3qGvhtUZU8wVrUsBZmHwcJZxv5DbhxLj7I0KG4WDmfE9qvKe
scsFkwyh9LKMTBetwXrgxkE8U5OavKa+ySpUllW6+5BVacipR7EQ0uG8CDQ5N3MD
SozuoZ5lHWZoxNVK4Gg2
=AmAp
-END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Victor Rodriguez
Thanks Mark!  Unfortunately, that is not an option.  The client will be
requesting the files without the .gz extension.

On Mon, Mar 9, 2015 at 2:01 PM, Mark Thomas ma...@apache.org wrote:

 On 09/03/2015 19:12, Victor Rodriguez wrote:

  How do I tell Tomcat to include the Content-Encoding: gzip response
  header?  Again, these area ALREADY zipped files.  I'm not interested in
  Tomcat doing the gziping on the fly.

 Add .gz to the end of the file name and set gzip=true for the default
 servlet.

 Mark


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




-- 
Sent from neither my iPhone nor my iPad.


Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Victor Rodriguez
Brilliant Chris!  However, if it were that easy, I would have already found
it and figured it out.  That's why I'm asking the experts on this list for
HELP!  Not for someone to tell me that I ought to read the documentation
for the feature I'm trying to use.  If there's something that drives me
absolutely nuts it's people that say read the documentation when you ask
them for help.

Apparently, IIS can be easily configured to do this, but we don't use IIS
around here, so I have to figure out how to do it with Tomcat and/or
Apache.  And so far, the documentation hasn't given me the solution for
either case.

Can you possibly point me to the right place in the documentation?  Thanks!

On Mon, Mar 9, 2015 at 3:33 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Victor,

 On 3/9/15 5:25 PM, Victor Rodriguez wrote:
  Thanks Mark!  Unfortunately, that is not an option.  The client
  will be requesting the files without the .gz extension.
 
  On Mon, Mar 9, 2015 at 2:01 PM, Mark Thomas ma...@apache.org
  wrote:
 
  On 09/03/2015 19:12, Victor Rodriguez wrote:
 
  How do I tell Tomcat to include the Content-Encoding: gzip
  response header?  Again, these area ALREADY zipped files.  I'm
  not interested in Tomcat doing the gziping on the fly.
 
  Add .gz to the end of the file name and set gzip=true for the
  default servlet.

 If the client will be requesting the files without a .gz extension,
 then ... you really ought to read the documentation for the feature
 you are trying to use.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: GPGTools - http://gpgtools.org

 iQIcBAEBCAAGBQJU/hHFAAoJEBzwKT+lPKRYIvUP/iXLC0HnWav5EdZlMG2KnlSs
 MmVwikA7yoBLznMGcUSPNYhH8os6NKLusUltsxl8iWvGLCvxhNinNKSMShKOGby7
 glXQ0o6Y0c2XCAiOCP0xv11RZNHjm+EZH1nrD8ZJoPegIrdxWXnO/P3Odx/3lNLn
 PKt6M2TjEtzoBXy3V2QgXziOk/7ike5DHwZTi/NMIkV+e0OBrdqBgPlJPGMPngJU
 5kmPQ7WSf3GlrkSw4ougIiKZAXqHHm27BlKkgO0pAn5qe78FcV0QCdfisLeXsU2o
 frfuKAIpiVjsqmnSC9WHA8L4A2z2Pyma22thNjfZTRcCnyzXHsYDsfIafXed6V0N
 oobXuXeOy/vtYEB6DulfJe6uxvfn5mD2YkTGNQjY4XbGuozlU/akBxEiFUjeJ5Zf
 XYLB9UH5SV4pD7VtjwfqGvI8zo8ym1UEyb91KYQyZzxmcv0iGwS2YZNlj4iPBKSY
 wTLQNDx3YcD66eLBSC2lnetDqeUJSSsuHmTEVVlF6uuoO0DECRkfqhQEsA9UQuv6
 AS7Qaab7+w2dc6As3qGvhtUZU8wVrUsBZmHwcJZxv5DbhxLj7I0KG4WDmfE9qvKe
 scsFkwyh9LKMTBetwXrgxkE8U5OavKa+ySpUllW6+5BVacipR7EQ0uG8CDQ5N3MD
 SozuoZ5lHWZoxNVK4Gg2
 =AmAp
 -END PGP SIGNATURE-

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




-- 
Sent from neither my iPhone nor my iPad.


Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Igor Cicimov
On 10/03/2015 6:14 AM, Victor Rodriguez victropo...@gmail.com wrote:

 Greetings,

 I have some ALREADY gzipped files that I'm trying to serve up.

 I have the following in my web.xml.

 mime-mapping
 extensionjson/extension
 mime-typeapplication/gzip/mime-type
 /mime-mapping


 And, I have the following in my server.xml:

 Context docBase=/path/to/already-gzipped-json
path=/already-gzipped-json /


 From the command line, I can curl the files and gunzip them just fine, so
 they are coming across gzipped:

 curl http://localhost:8082/already-gzipped-json/fie.json | gunzip -

 However, requests coming from a web browser aren't handled correctly and
 aren't legible in the browser, and I believe it's because
Content-Encoding:
 gzip is not in the response headers.

You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx or
sometning else that can add this header for you? If not then maybe just
consider it as option if you can't solve it in tomcat although according to
the comments you got here from people that are really experts it should be
possible.

 curl -I http://localhost:8082/already-gzipped-json/fie.json

 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Accept-Ranges: bytes
 Last-Modified: Mon, 09 Mar 2015 17:15:29 GMT
 Content-Type: application/gzip
 Content-Length: 17905
 Date: Mon, 09 Mar 2015 19:11:06 GMT

 How do I tell Tomcat to include the Content-Encoding: gzip response
 header?  Again, these area ALREADY zipped files.  I'm not interested in
 Tomcat doing the gziping on the fly.

 Thanks!
 --
 Sent from neither my iPhone nor my iPad.


[URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Victor Rodriguez
Greetings,

I have some ALREADY gzipped files that I'm trying to serve up.

I have the following in my web.xml.

mime-mapping
extensionjson/extension
mime-typeapplication/gzip/mime-type
/mime-mapping


And, I have the following in my server.xml:

Context docBase=/path/to/already-gzipped-json path=/already-gzipped-json /


From the command line, I can curl the files and gunzip them just fine, so
they are coming across gzipped:

curl http://localhost:8082/already-gzipped-json/fie.json | gunzip -

However, requests coming from a web browser aren't handled correctly and
aren't legible in the browser, and I believe it's because Content-Encoding:
gzip is not in the response headers.

curl -I http://localhost:8082/already-gzipped-json/fie.json

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Last-Modified: Mon, 09 Mar 2015 17:15:29 GMT
Content-Type: application/gzip
Content-Length: 17905
Date: Mon, 09 Mar 2015 19:11:06 GMT

How do I tell Tomcat to include the Content-Encoding: gzip response
header?  Again, these area ALREADY zipped files.  I'm not interested in
Tomcat doing the gziping on the fly.

Thanks!
-- 
Sent from neither my iPhone nor my iPad.


Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Igor Cicimov
On 10/03/2015 9:13 AM, Christopher Schultz ch...@christopherschultz.net
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Igor,

 On 3/9/15 6:01 PM, Igor Cicimov wrote:
  On 10/03/2015 6:14 AM, Victor Rodriguez victropo...@gmail.com
  wrote:
 
  Greetings,
 
  I have some ALREADY gzipped files that I'm trying to serve up.
 
  I have the following in my web.xml.
 
  mime-mapping extensionjson/extension
  mime-typeapplication/gzip/mime-type /mime-mapping
 
 
  And, I have the following in my server.xml:
 
  Context docBase=/path/to/already-gzipped-json
  path=/already-gzipped-json /
 
 
  From the command line, I can curl the files and gunzip them just
  fine, so they are coming across gzipped:
 
  curl http://localhost:8082/already-gzipped-json/fie.json | gunzip
  -
 
  However, requests coming from a web browser aren't handled
  correctly and aren't legible in the browser, and I believe it's
  because
  Content-Encoding:
  gzip is not in the response headers.
 
  You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx
  or something else that can add this header for you?

 Ironically, getting this to work as requested in Apache httpd is a
 complete nightmare. The Tomcat solution basically works *exactly* as a
 user would want it to work.

Thanks Chris, good to know before one starts going down this path!

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: GPGTools - http://gpgtools.org

 iQIcBAEBCAAGBQJU/hqbAAoJEBzwKT+lPKRYEmsQAKc1Pm9c9ihQb5A1DDiRYAAN
 p0xj6JxxwjP2a1OawVUSXZU5umftkehDana6mLTPgZ/WtrzGxj8NR1ysl7or/eyC
 slrkLruzp716jkDL2ySZt7l2PsJScOwAC1j1ZsGJA0HyIIHz5AmON0Aff1ihdCGz
 uLXzDS2JyW7pdVFy6YLhfkCibocPv1NsXxo6NCbuTd91Rd2kwe7/KJ4YOLxXh2GX
 oorlctGc4NuiM0eFoj4xeNrEodIalYZvhi8YyPEDpnifuItY2q2yKCAhjZMYVZ+X
 A0WsQgGds5DWkeWPrR1dnGL82ZyoI1hN2vm6j5oWJnmSqzwuuUUdezmWOmXFWOhS
 pIuCW2zvLdP/MDblwsV7NMOopfoqHhTqoM+5p+ttQviCMGe8ubDd5Q/JLenzehEr
 lKdR78m812cuO84CZtKq0yIKF0Ipc1oYtXXKrHKkMbQWHbcvWTRvoqSNYICicXWF
 PmmpRFytUXywUqjj3e++mKRqHWUWkg2WuABocbTtwOTouL8tXop/v018PkUBDf37
 GqDzgVM0Y25O+jkxCj01ftDj+mrsDS5V8FH+sPtvt3DtgdWKTkIByNNeueau6zqh
 zSwB3FSBuWk9Six3DuwhTXHA/RX6kL3nnZX46Tv4RAT0wPkxFH2fKa/eD3IPTnng
 bWw+X47oId6UasMkj3pP
 =LKmV
 -END PGP SIGNATURE-

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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread André Warnier

Rainer Jung wrote:

Am 09.03.2015 um 23:11 schrieb Christopher Schultz:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Igor,

On 3/9/15 6:01 PM, Igor Cicimov wrote:

On 10/03/2015 6:14 AM, Victor Rodriguez victropo...@gmail.com
wrote:


Greetings,

I have some ALREADY gzipped files that I'm trying to serve up.

I have the following in my web.xml.

mime-mapping extensionjson/extension
mime-typeapplication/gzip/mime-type /mime-mapping


And, I have the following in my server.xml:

Context docBase=/path/to/already-gzipped-json

path=/already-gzipped-json /



 From the command line, I can curl the files and gunzip them just
fine, so they are coming across gzipped:

curl http://localhost:8082/already-gzipped-json/fie.json | gunzip
-

However, requests coming from a web browser aren't handled
correctly and aren't legible in the browser, and I believe it's
because

Content-Encoding:

gzip is not in the response headers.


You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx
or something else that can add this header for you?


Ironically, getting this to work as requested in Apache httpd is a
complete nightmare. The Tomcat solution basically works *exactly* as a
user would want it to work.


Agreed, that the feature in the default servlet is much much easier to 
use than configure pre-compressed content in httpd. But nightmare might 
be a bit to strong. It is tricky. See for example:


http://mail-archives.apache.org/mod_mbox/httpd-users/201110.mbox/%3c4e8e51c0.4050...@kippdata.de%3E 



I had been looking for something like that (in httpd) for quite a while. Thanks for the 
link (and also for the original full explanation).


André


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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread André Warnier

Mark Thomas wrote:

On 09/03/2015 21:53, Christopher Schultz wrote:

Victor,

On 3/9/15 5:44 PM, Victor Rodriguez wrote:

Brilliant Chris!  However, if it were that easy, I would have
already found it and figured it out.  That's why I'm asking the
experts on this list for HELP!  Not for someone to tell me that I
ought to read the documentation for the feature I'm trying to use.
If there's something that drives me absolutely nuts it's people
that say read the documentation when you ask them for help.
Apparently, IIS can be easily configured to do this, but we don't
use IIS around here, so I have to figure out how to do it with
Tomcat and/or Apache.  And so far, the documentation hasn't given
me the solution for either case.
Can you possibly point me to the right place in the documentation?
Thanks!

Hmm...


On 3/9/15 4:01 PM, Mark Thomas wrote:
Add .gz to the end of the file name and set gzip=true for the 
default servlet.

User Guide  Default Servlet  search the page for gzip  read the
description for what gzip does.

I apologize for the difficulty level involved with finding that
documentation.

*facepalm*

Mark's response was a no-BS, cut-to-the-solution response, and you
didn't like it. Why, I'm not sure.

If there's something that drives me absolutely nuts it's people who
say help me with my URGENT problem, but no, I won't tell what version
of the software I'm running and when you tell me the answer I'll
discard it out of hand after jumping to conclusions about how it works.


+1. Thanks Chris. That is far better than the response I'd been
composing in my head.


It's a pity in a way. I'm sure that your response would have been enjoyable.

But +1 too. Chris beat us both to it, and his response is a wonder of 
ponderation.
I would have added something about using free software provided by experts and free help 
provided by experts, and about wasting their time by not using the free documentation also 
provided by experts; and also about the bad health effects of increased blood pressure.




I await the OP's response with interest.


+1



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



Re: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Mark Thomas
On 09/03/2015 21:53, Christopher Schultz wrote:
 Victor,
 
 On 3/9/15 5:44 PM, Victor Rodriguez wrote:
 Brilliant Chris!  However, if it were that easy, I would have
 already found it and figured it out.  That's why I'm asking the
 experts on this list for HELP!  Not for someone to tell me that I
 ought to read the documentation for the feature I'm trying to use.
 If there's something that drives me absolutely nuts it's people
 that say read the documentation when you ask them for help.
 
 Apparently, IIS can be easily configured to do this, but we don't
 use IIS around here, so I have to figure out how to do it with
 Tomcat and/or Apache.  And so far, the documentation hasn't given
 me the solution for either case.
 
 Can you possibly point me to the right place in the documentation?
 Thanks!
 
 Hmm...
 
 On 3/9/15 4:01 PM, Mark Thomas wrote:
 Add .gz to the end of the file name and set gzip=true for the 
 default servlet.
 
 User Guide  Default Servlet  search the page for gzip  read the
 description for what gzip does.
 
 I apologize for the difficulty level involved with finding that
 documentation.
 
 *facepalm*
 
 Mark's response was a no-BS, cut-to-the-solution response, and you
 didn't like it. Why, I'm not sure.
 
 If there's something that drives me absolutely nuts it's people who
 say help me with my URGENT problem, but no, I won't tell what version
 of the software I'm running and when you tell me the answer I'll
 discard it out of hand after jumping to conclusions about how it works.

+1. Thanks Chris. That is far better than the response I'd been
composing in my head.

I await the OP's response with interest.

Mark

 
 -chris
 
 On Mon, Mar 9, 2015 at 3:33 PM, Christopher Schultz  
 ch...@christopherschultz.net wrote:
 
 Victor,
 
 On 3/9/15 5:25 PM, Victor Rodriguez wrote:
 Thanks Mark!  Unfortunately, that is not an option.  The
 client will be requesting the files without the .gz
 extension.

 On Mon, Mar 9, 2015 at 2:01 PM, Mark Thomas
 ma...@apache.org wrote:

 On 09/03/2015 19:12, Victor Rodriguez wrote:

 How do I tell Tomcat to include the Content-Encoding:
 gzip response header?  Again, these area ALREADY zipped
 files.  I'm not interested in Tomcat doing the gziping on
 the fly.

 Add .gz to the end of the file name and set gzip=true for
 the default servlet.
 
 If the client will be requesting the files without a .gz
 extension, then ... you really ought to read the documentation for
 the feature you are trying to use.
 
 -chris

 -


 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: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Rainer Jung

Am 09.03.2015 um 23:11 schrieb Christopher Schultz:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Igor,

On 3/9/15 6:01 PM, Igor Cicimov wrote:

On 10/03/2015 6:14 AM, Victor Rodriguez victropo...@gmail.com
wrote:


Greetings,

I have some ALREADY gzipped files that I'm trying to serve up.

I have the following in my web.xml.

mime-mapping extensionjson/extension
mime-typeapplication/gzip/mime-type /mime-mapping


And, I have the following in my server.xml:

Context docBase=/path/to/already-gzipped-json

path=/already-gzipped-json /



 From the command line, I can curl the files and gunzip them just
fine, so they are coming across gzipped:

curl http://localhost:8082/already-gzipped-json/fie.json | gunzip
-

However, requests coming from a web browser aren't handled
correctly and aren't legible in the browser, and I believe it's
because

Content-Encoding:

gzip is not in the response headers.


You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx
or something else that can add this header for you?


Ironically, getting this to work as requested in Apache httpd is a
complete nightmare. The Tomcat solution basically works *exactly* as a
user would want it to work.


Agreed, that the feature in the default servlet is much much easier to 
use than configure pre-compressed content in httpd. But nightmare might 
be a bit to strong. It is tricky. See for example:


http://mail-archives.apache.org/mod_mbox/httpd-users/201110.mbox/%3c4e8e51c0.4050...@kippdata.de%3E

Regards,

Rainer


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



RE: [URGENT] Content-Encoding: gzip not set

2015-03-09 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com] 
 Subject: Re: [URGENT] Content-Encoding: gzip not set

   If there's something that drives me absolutely nuts it's people
   that say read the documentation when you ask them for help.

 It's a pity in a way. I'm sure that your response would have been enjoyable.

 But +1 too. Chris beat us both to it, and his response is a wonder of 
 ponderation.
 I would have added something about using free software provided by experts 
 and free help 
 provided by experts, and about wasting their time by not using the free 
 documentation also 
 provided by experts; and also about the bad health effects of increased blood 
 pressure.

I had some of that as well, along with a hope that the OP enjoys his life of 
insanity...

But Chris' was better.

 - 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: Two Way authentication - Urgent Help

2014-06-16 Thread Grip In
Hi,

Yes the problem got fixed the spelling of truststorefile was truststoreFile
and truststorepass was truststorePass.

Looks fixed for now!


On Mon, Jun 16, 2014 at 5:20 AM, Dino Ciuffetti d...@tuxweb.it wrote:

 Already imported your client.p12 into firefox?

 http://www.utexas.edu/its/help/user-certs/817

 Il 16/giu/2014 00:22 Grip In gripic...@gmail.com ha scritto:
 
  Getting
 
  An error occurred during a connection to localhost:8443.
  SSL peer cannot verify your certificate.
  (Error code: ssl_error_bad_cert_alert)
 
  In firefox on windows 7 with tomcat 7
 
  Here is what I did as per
 
 http://tomcat.10.x6.nabble.com/tomcat-mutual-authentication-doesn-t-work-td2133404.html#a5018750
 
  1. keytool.exe -genkeypair -keystore tomcat.keystore
 
  2. keytool.exe  -genkeypair -keystore client.keystore
 
  3a. keytool.exe  -exportcert -keystore client.keystore -file
 client.cert
 
  3b. keytool.exe  -importcert -keystore server.truststore -file
 client.cert
 
  4. keytool.exe  -importkeystore -srckeystore client.keystore
  -srcstoretype jks  -destkeystore client.p12 -deststoretype pkcs12
 
  keytool.exe  -list -keystore tomcat.keystore
  Enter keystore password:
 
  Keystore type: JKS
  Keystore provider: SUN
 
  Your keystore contains 1 entry
 
  mykey, Jun 16, 2014, PrivateKeyEntry,
  Certificate fingerprint (SHA1):
  E7:5E:F8:1F:BC:24:96:E2:D6:87:BF:3A:94:CD:53:14:C6:0E:A6:A5
 
  keytool.exe  -list -keystore server.truststore
  Enter keystore password:
 
  Keystore type: JKS
  Keystore provider: SUN
 
  Your keystore contains 1 entry
 
  mykey, Jun 16, 2014, trustedCertEntry,
  Certificate fingerprint (SHA1):
  81:C9:BF:20:E9:D8:18:7E:E5:F7:54:B1:68:0B:00:65:DB:13:8E:52
 
 
  My server.xml enteries are
 
  Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
  keystoreFile=path\tomcat.keystore keystorePass=tomcat
  truststorefile=path\server.truststore truststorepass=client
  maxThreads=1500 scheme=https secure=true clientAuth=true
  sslProtocol=TLS /
 
  My tomcat user enteries are
 
  user username=CN=Server, OU=Gripic, O=TechnoPotence, L=Pune, ST=MH,
 C=IN
  password=null roles=admin/
 
 
  But could not get the resolution
 
  Please help urgent.



Two Way authentication - Urgent Help

2014-06-15 Thread Grip In
Getting

An error occurred during a connection to localhost:8443.
SSL peer cannot verify your certificate.
 (Error code: ssl_error_bad_cert_alert)

In firefox on windows 7 with tomcat 7

Here is what I did as per
http://tomcat.10.x6.nabble.com/tomcat-mutual-authentication-doesn-t-work-td2133404.html#a5018750

1. keytool.exe -genkeypair -keystore tomcat.keystore

2. keytool.exe  -genkeypair -keystore client.keystore

3a. keytool.exe  -exportcert -keystore client.keystore -file client.cert

3b. keytool.exe  -importcert -keystore server.truststore -file client.cert

4. keytool.exe  -importkeystore -srckeystore client.keystore
-srcstoretype jks  -destkeystore client.p12 -deststoretype pkcs12

keytool.exe  -list -keystore tomcat.keystore
Enter keystore password:

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 1 entry

mykey, Jun 16, 2014, PrivateKeyEntry,
Certificate fingerprint (SHA1):
E7:5E:F8:1F:BC:24:96:E2:D6:87:BF:3A:94:CD:53:14:C6:0E:A6:A5

keytool.exe  -list -keystore server.truststore
Enter keystore password:

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 1 entry

mykey, Jun 16, 2014, trustedCertEntry,
Certificate fingerprint (SHA1):
81:C9:BF:20:E9:D8:18:7E:E5:F7:54:B1:68:0B:00:65:DB:13:8E:52


My server.xml enteries are

Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
keystoreFile=path\tomcat.keystore keystorePass=tomcat
truststorefile=path\server.truststore truststorepass=client
maxThreads=1500 scheme=https secure=true clientAuth=true
sslProtocol=TLS /

My tomcat user enteries are

user username=CN=Server, OU=Gripic, O=TechnoPotence, L=Pune, ST=MH, C=IN
password=null roles=admin/


But could not get the resolution

Please help urgent.


Re: Two Way authentication - Urgent Help

2014-06-15 Thread Dino Ciuffetti
Already imported your client.p12 into firefox?

http://www.utexas.edu/its/help/user-certs/817

Il 16/giu/2014 00:22 Grip In gripic...@gmail.com ha scritto:

 Getting 

 An error occurred during a connection to localhost:8443. 
 SSL peer cannot verify your certificate. 
 (Error code: ssl_error_bad_cert_alert) 

 In firefox on windows 7 with tomcat 7 

 Here is what I did as per 
 http://tomcat.10.x6.nabble.com/tomcat-mutual-authentication-doesn-t-work-td2133404.html#a5018750
  

 1. keytool.exe -genkeypair -keystore tomcat.keystore 

 2. keytool.exe  -genkeypair -keystore client.keystore 

 3a. keytool.exe  -exportcert -keystore client.keystore -file client.cert 

 3b. keytool.exe  -importcert -keystore server.truststore -file client.cert 

 4. keytool.exe  -importkeystore -srckeystore client.keystore 
 -srcstoretype jks  -destkeystore client.p12 -deststoretype pkcs12 

 keytool.exe  -list -keystore tomcat.keystore 
 Enter keystore password: 

 Keystore type: JKS 
 Keystore provider: SUN 

 Your keystore contains 1 entry 

 mykey, Jun 16, 2014, PrivateKeyEntry, 
 Certificate fingerprint (SHA1): 
 E7:5E:F8:1F:BC:24:96:E2:D6:87:BF:3A:94:CD:53:14:C6:0E:A6:A5 

 keytool.exe  -list -keystore server.truststore 
 Enter keystore password: 

 Keystore type: JKS 
 Keystore provider: SUN 

 Your keystore contains 1 entry 

 mykey, Jun 16, 2014, trustedCertEntry, 
 Certificate fingerprint (SHA1): 
 81:C9:BF:20:E9:D8:18:7E:E5:F7:54:B1:68:0B:00:65:DB:13:8E:52 


 My server.xml enteries are 

 Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true 
 keystoreFile=path\tomcat.keystore keystorePass=tomcat 
 truststorefile=path\server.truststore truststorepass=client 
 maxThreads=1500 scheme=https secure=true clientAuth=true 
 sslProtocol=TLS / 

 My tomcat user enteries are 

 user username=CN=Server, OU=Gripic, O=TechnoPotence, L=Pune, ST=MH, C=IN 
 password=null roles=admin/ 


 But could not get the resolution 

 Please help urgent. 


Fwd: Need urgent help - Removing jvmoptions from tomcat service

2014-03-31 Thread Mukul Bhatnagar
-- Forwarded message --
From: Mukul Bhatnagar mukul@gmail.com
Date: Mon, Mar 31, 2014 at 10:59 PM
Subject: Need urgent help - Removing jvmoptions from tomcat service
To: users-h...@tomcat.apache.org


Hi all,

I am using tomcat as Windows service for my application. I created JVM
options. lets say -Djava.library some path.
Now everything runs fine and i do see the java properties using the command
line:

tomcat7w.exe //ES//applId

Now, since everything i am doing is in batch script.When i am uninstalling
the service, the JVMoptions donot get deleted. they stay there forever and
on installing/executing the service, the JVMoptions get duplicated.

how do i remove JVMoptions in my script during uninstalltion of tomcat
service, what is the command line for that?

-- 
Warm Regards,
Mukul Bhatnagar



-- 
Warm Regards,
Mukul Bhatnagar


RE: Need urgent help - Removing jvmoptions from tomcat service

2014-03-31 Thread Jeffrey Janner
 -Original Message-
 From: Mukul Bhatnagar [mailto:mukul@gmail.com]
 Sent: Monday, March 31, 2014 12:40 PM
 To: users@tomcat.apache.org
 Subject: Fwd: Need urgent help - Removing jvmoptions from tomcat
 service
 
 -- Forwarded message --
 From: Mukul Bhatnagar mukul@gmail.com
 Date: Mon, Mar 31, 2014 at 10:59 PM
 Subject: Need urgent help - Removing jvmoptions from tomcat service
 To: users-h...@tomcat.apache.org
 
 
 Hi all,
 
 I am using tomcat as Windows service for my application. I created JVM
 options. lets say -Djava.library some path.
 Now everything runs fine and i do see the java properties using the
 command
 line:
 
 tomcat7w.exe //ES//applId
 
 Now, since everything i am doing is in batch script.When i am
 uninstalling the service, the JVMoptions donot get deleted. they stay
 there forever and on installing/executing the service, the JVMoptions
 get duplicated.
 
 how do i remove JVMoptions in my script during uninstalltion of tomcat
 service, what is the command line for that?
 
 --
 Warm Regards,
 Mukul Bhatnagar
 

How are you installing/uninstalling the service/options?
Normally, the recommending way of working with the windows service runner (aka 
Apache Commons Daemon) will uninstall any added/changed options.
Perhaps reading the documentation on ACD will give you some insight.


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



Tomcat hanging unexpectedly [URGENT]

2013-02-12 Thread Cool Techi
Hi,

We are using tomcat 6.0.26 on windows 2008 web server, with Jdk 1.6.32 
installed on the server.

The
 server seems to be running smoothly most of the time, but suddenly the 
memory used goes very high and tomcat stops responding, the logs don't 
show any out of memory or thread exceptions.

What could be causing this?

Regards,
Ayush 

  1   2   3   >