Re: Conditional Branch from Servlet to URL - Continued

2011-08-26 Thread Donald Jolley
> JSPs should be used for output with all processing (and, hopefully,
> anything that can fail) having already been completed by the time the
> JSP runs.

That's a REALLY good point.  The JSP can be thought of as simply bieing a
view with all (or most) of the heavy lifting done elsewhere.  Within the
limited context of handling errors, I think that your point would be
compelling.  However, I can think of many other uses one could make of a
capability to forward from a JSP.  I'm sure that there are even more uses
that haven't occurred to me.  It would just be a real nice capability to
have available.  Accordingly, I would like to play around with it a bit.
I've learned a lot from what I have done so far; and, if nothing else I'm
sure the exercise wiill provide a great learning experience.

I'm sure that I'll be running into difficulty and posting.  However, I think
that the issue that I have raised in this thread has been solved.  If (more
like when) I have other problems I will post in a new thread.  Thanks to all
for all of the great help that I received in this thread.

... doug


Re: SSL issue

2011-08-26 Thread Crypto Sal

On 08/26/2011 11:24 AM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Savitha,

On 8/25/2011 7:01 PM, Savitha Akella wrote:


Okay.


keystoreFile="d:/users/apache-tomcat-7.0.11/keystore/key.keystore"
keyAlias="keyalias" keyPass="changeit"

Okay.

clientAuth="true"
truststoreFile="D:/users/apache-tomcat-7.0.11/keystore/trust.keystore"



truststorePass="changeit"

SSLVerifyClient="require"

Okay.


sslProtocol="TLS"

Should probably be "SSLProtocol", but might not matter. Also, "TLS" is
not a documented valid value for this attribute.

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



Kindly double-check your data. I see that its the default and doesn't 
need to be defined but is probably defined for clarity.




SSLEngine="on"

SSLEngine is not a recognized attribute.



It is for the Listener container. This would turn on/off APR. Seems like 
a simple mistake.




SSLVerifyDepth="4" />

Regards, Savitha On Thu, Aug 25, 2011 at 11:46 AM, Christopher
Schultz<  ch...@christopherschultz.net>  wrote:

Savitha,

On 8/25/2011 12:53 PM, Savitha Akella wrote:

We have given the "trustStorePass" value to point to a
keystore which has only the certificate for our web
services.

Do you mean "truststoreFile"?


Of course the clientAuth parameter is set to true.

Good.

Can you post your  configuration for us? Remember to
remove any passwords from it.

-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.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5Xur0ACgkQ9CaO5/Lv0PC4sACgraqr86G+o/CQ4m4pfn7SRoVy
NkYAoJhi4pR9EVYbeXbEEcYdSAgJ28+b
=jKq/
-END PGP SIGNATURE-

-
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: Error starting Tomcat

2011-08-26 Thread Pratibha S
Hi Konstantin Kolinko,

I had copied servlet-api.jar into the tomcat/lib directory while adding
external jars. Now I have removed that jar file and any other jar files I
have added extra from the tomcat/lib folder. Now, the server is starting.

Thank you for the help.

Regards,
Pratibha

On Fri, Aug 26, 2011 at 7:06 AM, Konstantin Kolinko
wrote:

> 2011/8/26 Pratibha S :
> > Hi Konstantin Kolinko,
> >
> > thank you for the reply.
> > Did you mean tomcat/webapps/examples/WEB-INF/lib?
>
> No.  Do not touch Tomcat installation and return it to its original state.
>
> > There is no servlet-api.jar there. Please correct me if I got it wrong.
>
> You have to start from scratch and describe what exact error it was,
> before you broke your Tomcat installation, and how your project is
> configured.
>
> You should not have servlet-api.jar in your own project - it should be
> only a part of "Apache Tomcat" runtime. It should not be in
> WebContent/WEB-INF/lib.
>
> There is a FAQ on Eclipse + Tomcat somewhere.
>
> Best regards,
> Konstantin Kolinko
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: IPv6 support dropped in Tomcat Native 1.1.22 (on Windows)?

2011-08-26 Thread Konstantin Kolinko
2011/8/23 Konstantin Preißer :
> Hi all,
>
> while reading the thread "Tomcat 5.5.28 on 64 bit windows server 2008.", I 
> was experimenting with various Tomcat versions and noticed that IPv6 support 
> seems to have been dropped in the Windows version (32 bit as well as 64 bit) 
> of TC Native 1.1.22 (which is included in Tomcat 7.0.20).
> I tested on Windows 7 (32 bit), Sun/Oracle JDK 1.7.0.
>
> INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
> Aug 23, 2011 5:57:40 AM org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters 
> [false], random [true].

Confirming.

IPv6 capability check is "case 0:" in "TCN_IMPLEMENT_CALL(jboolean,
Library, has)" in jnilib.c.  That returns false if APR_HAVE_IPV6 was
not defined at build time.

> Now with TC Native 1.1.20, IPv6 seems to work fine. (Well, almost. ...)

Best regards,
Konstantin Kolinko

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



Re: manager / deploy context file

2011-08-26 Thread Johannes Ernst
> The documentation has to be updated. Please file an issue.

https://issues.apache.org/bugzilla/show_bug.cgi?id=51727

Personally I feel the documentation is correct and the code is wrong. What 
point is there to have a path parameter in context.xml if it has to be 
specified (redundantly) as a URL argument as well? 

I'd like to be able to say
.../deploy?config=mycontext.xml

and then also, symmetrically:
.../undeploy?config=mycontext.xml

This API makes a lot more sense IMHO.  ;-)

Thanks for your help.


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



Re: Need help regarding removing port number from URL

2011-08-26 Thread Pid
On 26/08/2011 17:02, Shanmukha Venkata Sri ChandraSekhar Nallapati wrote:
> Hi,
> 
> I need a help regarding removing port number from URL.
> 
> For example:
> Supposing my URL is, http://abcd.com:4040/context-path/gui/.
> I wish Apache Tomcat to handle the request on same tomcat process, when
> using the url: http://abcd.com/context-path/gui/.

> Please help me how i can achieve this and by making what configurations on
> what configuration files.

Change the Connector configuration from 4040 to 80.

> Tomcat Version:Apache-tomcat-6.0.18,
> OS:Red Hat 3.4.6-8,
> JDK: jdk1.6.0_07

Upgrade your Tomcat & upgrade your Java.  You have bugs & security
vulnerabilities.


p


> Thank you in advance,
> Chandrashekhar
> 




signature.asc
Description: OpenPGP digital signature


Re: SSL issue

2011-08-26 Thread Marvin Addison
If you've got the container to request and accept a client cert, the
connector configuration is likely correct and it's an SSL trust
problem.  Please post the output of the following command:

keytool -list -keystore
D:/users/apache-tomcat-7.0.11/keystore/trust.keystore -storePass
changeit

Also, please post some evidence that the client is sending the cert
you think it is.  OpenSSL s_client is a good choice if you don't
already have a good tool for SSL troubleshooting.

M

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



Need help regarding removing port number from URL

2011-08-26 Thread Shanmukha Venkata Sri ChandraSekhar Nallapati
Hi,

I need a help regarding removing port number from URL.

For example:
Supposing my URL is, http://abcd.com:4040/context-path/gui/.
I wish Apache Tomcat to handle the request on same tomcat process, when
using the url: http://abcd.com/context-path/gui/.
Please help me how i can achieve this and by making what configurations on
what configuration files.

Tomcat Version:Apache-tomcat-6.0.18,
OS:Red Hat 3.4.6-8,
JDK: jdk1.6.0_07

Thank you in advance,
Chandrashekhar


Re: Cannot build mod_jk.1.2.32

2011-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Casper,

On 8/26/2011 2:50 AM, Casper Wandahl Schmidt wrote:
> Well as I said in my first post configure complained about a
> missing WebServer - maybe because I installed apache from apt-get
> and not from source?

Hmm... I've never had to install the source. The headers are all that
are necessary (which come with apaache2-threaded-dev). I'll check on
my Debian system to see what I've got installed.

> If I don't run make with sudo it complains about permissions,
> probably because I unpacked the tar.gz with sudo so the directory
> has root as owner. Or it might be because I uploaded the tar.gz
> from ftp which puts it in a directory owned by the ftp user and not
> my ssh user :)

Okay. You should chown everything and not run make as root, though.

> Well I tried make > make.log but only the first few lines gets
> written to the file, the rest is output to the shell.

Try:

$ make > make.log 2>&1

That redirects stderr to stdout, and then you already know what > does.

> The first line I can see in the shell is mod_jk.c:692: error:
> expected '=', ',', ';', 'asm' or '__attribute__' before
> 'get_content_length'

Hmm.

$ svn checkout https://svn.apache.org/repos/asf/tomcat/jk/tags/JK_1_2_32
$ cd JK_1_2_32/native
$ ./buildconf.sh  (you don't need to do this if you didn't use svn)
$ which apxs2
/usr/bin/apxs2
$ ./configure --with-apxs=/usr/bin/apxs2

...
config.status: creating common/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory

That's not good. Trunk has the same problem. Yours didn't bomb this way?

Let's try to compile, anyway.

$ make
...
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `./JK_1_2_32/native/apache-2.0'

Looks like it builds for me.

I'm on Debian Squeeze:

$ dpkg -l  | grep apache2 \
   | sed -e "s/^\([^ ]\+[ ]\+[^ ]\+[ ]\+[^ ]\+\).*/\1/"
ii  apache2  2.2.16-6+squeeze1
ii  apache2-mpm-worker   2.2.16-6+squeeze1
ii  apache2-threaded-dev 2.2.16-6+squeeze1
ii  apache2-utils2.2.16-6+squeeze1
ii  apache2.2-bin2.2.16-6+squeeze1
ii  apache2.2-common 2.2.16-6+squeeze1

$ /usr/sbin/apache2ctl -V
Server version: Apache/2.2.16 (Debian)
Server built:   Mar 22 2011 20:56:34
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture:   32-bit
Server MPM: Worker
  threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"

> Being a computer science student I really should be able to take
> on tasks as compiling stuff myself. It is partly because I'm lazy
> and partly because I don't have time to mess with compiling errors
> like this that I haven't done anything like this before :) I bought
> my fit-pc2 box about 2 years ago so I have only played a little
> with Linux so far :) (being setting up stuff - crashing the server
> by accident and starting all over again)

It's a good way to learn. Honestly, I wouldn't hire a developer onto
my team if they couldn't compile an OSS project from source.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5XweQACgkQ9CaO5/Lv0PDupgCdGlKZNJCB+8MHYXcFraNQPKCY
0AcAnA2QKZJthSlJ2YXeohzEr6xUV3w4
=aTmZ
-END PGP SIGNATURE-

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



Re: Conditional Branch from Servlet to URL - Continued

2011-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Donald,

Glad you got things working.

On 8/25/2011 8:57 PM, Donald Jolley wrote:
> Having gotten this far, my next question is this:  Is there any way
> that I can get this to work within the context of a jsp?

Yes, but I would recommend against it.

JSPs should be used for output with all processing (and, hopefully,
anything that can fail) having already been completed by the time the
JSP runs. Sure, JSP has tag libraries for accessing databases and all
kinds of crazy stuff, but that's not good architecture IMHO.

> I have a catch block to handle the exception.  What I'd like to do
> is to jump (on the occurrence of an exception) from the jsp that
> has the method-throwing exception to a different error-handling
> jsp.  Is there a way that I can do that?

There are try/catch taglibs available, but again I'd recommend against
using them.

> public class Test2 extends HttpServlet { public void
> doGet(HttpServletRequest request, HttpServletResponse response) 
> throws ServletException, IOException { 
> response.setContentType("text/html"); PrintWriter out =
> response.getWriter(); out.println(""); 
> out.println("Test 2"); 
> out.println(""); out.println("Hello, world!"); if
> (request.getParameter("jump") != null ) {
> 
> request.getRequestDispatcher(request.getParameter("jump")).forward(request,
>
> 
response);
> } out.println(""); out.println(""); } }

This looks like using RequestDispatcher.include() might be more
appropriate. When you use forward(), you should let the other servlet
generate the /entire/ response.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5XvEcACgkQ9CaO5/Lv0PC7XwCgtddXawbUy3Jeb4gsoOykSsgi
0wsAoLoQz02NaV3Br75UGo2eXNrkTZZH
=XN0a
-END PGP SIGNATURE-

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



Re: SSL issue

2011-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Savitha,

I sent prematurely.

On 8/26/2011 11:24 AM, Christopher Schultz wrote:
> SSLVerifyDepth="4" />

How long are your certificate chains? If they are longer than 4, then
you might not be checking up the chain far enough to get to your
trusted certificates.

You might want to check out this thread from the archives. I was
trying to do something slightly different, but there is good
information in there:

http://markmail.org/thread/ri3w5w444ynwsatt

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5Xu54ACgkQ9CaO5/Lv0PCYiwCcD4WRGcaHq1BNnjVB4U8pVkGe
fuEAoLDP1kTtCStCXo1pfx9gvK77tjSs
=YrGe
-END PGP SIGNATURE-

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



Re: manager / deploy context file

2011-08-26 Thread Konstantin Kolinko
2011/8/26 Johannes Ernst :
>
> On Aug 26, 2011, at 4:10, Konstantin Kolinko wrote:
>
>> 2011/8/26 Johannes Ernst :
>>> I'd like to do this in Tomcat 6:
>>
>> Which exactly version of Tomcat 6.0.x you are using?
>>
>>>
>>> Is there some way I can debug this?
>>>
>>
>> Yes. Debugging is described in FAQ.
>> Also see WEB-INF/web.xml for the name of the servlet that performs
>> processing of this URL + read the source code.
>
> Well, the code seems to be here:
>
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_22/java/org/apache/catalina/manager/ManagerServlet.java
>
> Method deploy( PrintWriter writer, String config, String path, String war, 
> boolean update ). Which says:
>        if (path == null || path.length() == 0 || !path.startsWith("/")) {
>            writer.println(sm.getString("managerServlet.invalidPath",
>                                        RequestUtil.filter(path)));
>            return;
>        }
>
> which seems to contradict the documentation, which claims that I don't need 
> to specify path if I give it a context.xml file. (And why should I if 
> context.xml contains a path?)

The code copies the context file into conf///.xml  and in that context file the path attribute cannot
be specified. Thus you actually cannot specify it in your context.xml
and need to use the path parameter.


The documentation has to be updated. Please file an issue.

Best regards,
Konstantin Kolinko

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



Re: SSL issue

2011-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Savitha,

On 8/25/2011 7:01 PM, Savitha Akella wrote:
>  port="443" maxThreads="150" scheme="https" secure="true"
> SSLEnabled="true"

Okay.

> keystoreFile="d:/users/apache-tomcat-7.0.11/keystore/key.keystore" 
> keyAlias="keyalias" keyPass="changeit"

Okay.
> clientAuth="true" 
> truststoreFile="D:/users/apache-tomcat-7.0.11/keystore/trust.keystore"
>
> 
truststorePass="changeit"
> SSLVerifyClient="require"

Okay.

> sslProtocol="TLS"

Should probably be "SSLProtocol", but might not matter. Also, "TLS" is
not a documented valid value for this attribute.

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

> SSLEngine="on"

SSLEngine is not a recognized attribute.


> SSLVerifyDepth="4" />
> 
> Regards, Savitha On Thu, Aug 25, 2011 at 11:46 AM, Christopher
> Schultz < ch...@christopherschultz.net> wrote:
> 
> Savitha,
> 
> On 8/25/2011 12:53 PM, Savitha Akella wrote:
 We have given the "trustStorePass" value to point to a
 keystore which has only the certificate for our web
 services.
> 
> Do you mean "truststoreFile"?
> 
 Of course the clientAuth parameter is set to true.
> 
> Good.
> 
> Can you post your  configuration for us? Remember to
> remove any passwords from it.
> 
> -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.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5Xur0ACgkQ9CaO5/Lv0PC4sACgraqr86G+o/CQ4m4pfn7SRoVy
NkYAoJhi4pR9EVYbeXbEEcYdSAgJ28+b
=jKq/
-END PGP SIGNATURE-

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



Re: TC on Windows Server Core

2011-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 8/25/2011 6:02 PM, André Warnier wrote:
> Just in case, my question was not purely academical, and not trying
> to start a flame.

Belgians don't start flame wars, do they?

> We build small systems for specialised applications, running on 
> disk-less, fan-less boxes similar to the one here : 
> http://www.hacom.net/catalog/legacy-products/lex-neo (don't know
> the supplier, but that's the box). These things are economical,
> ecological (low-power, low-noise), very reliable (no moving parts),
> boot and do everything from an SSD device etc.. (*)

Disk-less box boots from SSD? Maybe you meant "no spinning disk"?

> But they have a limited amount of RAM. So far, we use a basic Linux
> install, on top of which we run whatever else we need.

Just curious: which distro do you use? Something like DSL or just
Debian/RedHat/whatever with most packages not installed?

> I think memory is really relevant when one talks about Java (and
> Tomcat).

Yup. Depending on the application, you can get away with a
(relatively) modest heap size. We operated in production with a "mere"
64MiB heap for years before our user base grew to the point where we
were suffering OOMEs. (Actually, in our last release, we significantly
decreased the amount of memory ever required by a single user by
changing the way we page-through db search results and our memory
usage curves are much gentler than they used to be).

> (*) the only problem is : they are small, noiseless, they do not
> fit in a standard rack, they have no blinking lights etc.. so
> people tend to set them up on a windowsill and forget about what
> they do.

Aah... "magic box that you shouldn't touch". I've seen those, before.
Usually not on window sills, but the point is the same.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5XuaEACgkQ9CaO5/Lv0PBxtgCfVVV/LkJpAOTapkEo6qR6yB0X
NDEAnRVLrouNNUX5Sf0YzO9lP5++EXB9
=O0l2
-END PGP SIGNATURE-

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



Re: manager / deploy context file

2011-08-26 Thread Johannes Ernst

On Aug 26, 2011, at 4:10, Konstantin Kolinko wrote:

> 2011/8/26 Johannes Ernst :
>> I'd like to do this in Tomcat 6:
> 
> Which exactly version of Tomcat 6.0.x you are using?
> 
>> 
>> Is there some way I can debug this?
>> 
> 
> Yes. Debugging is described in FAQ.
> Also see WEB-INF/web.xml for the name of the servlet that performs
> processing of this URL + read the source code.

Well, the code seems to be here:

http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_22/java/org/apache/catalina/manager/ManagerServlet.java

Method deploy( PrintWriter writer, String config, String path, String war, 
boolean update ). Which says:
if (path == null || path.length() == 0 || !path.startsWith("/")) {
writer.println(sm.getString("managerServlet.invalidPath",
RequestUtil.filter(path)));
return;
}

which seems to contradict the documentation, which claims that I don't need to 
specify path if I give it a context.xml file. (And why should I if context.xml 
contains a path?)


> 
> Best regards,
> Konstantin Kolinko
> 
> -
> 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: manager / deploy context file

2011-08-26 Thread Johannes Ernst

On Aug 26, 2011, at 4:10, Konstantin Kolinko wrote:

> 2011/8/26 Johannes Ernst :
>> I'd like to do this in Tomcat 6:
> 
> Which exactly version of Tomcat 6.0.x you are using?

Standard issue Ubuntu Lucid which apparently is 6.0.24.
http://packages.ubuntu.com/lucid/tomcat6


>> Is there some way I can debug this?
>> 
> 
> Yes. Debugging is described in FAQ.
> Also see WEB-INF/web.xml for the name of the servlet that performs
> processing of this URL + read the source code.
> 
> Best regards,
> Konstantin Kolinko
> 
> -
> 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: Re: Re: Configured root path in META-INF/context.xml ignored

2011-08-26 Thread Konstantin Kolinko
2011/8/26 Oliver Wulff :
>
> I'm asking whether this would be an intrusive way thus I would raise a
> request.
>

Try to write a patch and you'll find that it is easier to rename your war.

The feature you are asking will seriously confuse auto-deployment.

Best regards,
Konstantin Kolinko

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



Antwort: Re: Re: Configured root path in META-INF/context.xml ignored

2011-08-26 Thread Oliver Wulff

http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif"; />
I know I can't configure it right now :-(
I'm asking whether this would be an intrusive way thus I would raise a
request.

Thanks
Oliver




   
 Konstantin
 Kolinko   
 Tomcat Users List  
  
 08/26/2011 02:01Kopie 
 PM
 Thema 
Re: Re: Configured root path in
  Bitte antworten   META-INF/context.xml ignored   
an 
   "Tomcat Users   
   List"   
   
   
   





2011/8/26 Oliver Wulff :
> I'd very much like to be able to deploy my war in webapps and configure
> either the path in META-INF/context.xml to "/"

You cannot configure those attributes in META-INF/context.xml at all.

> or define docBase in
> conf/Catalina/localhost/ROOT.xml.

It is possible but only if your application is outside of webapps.
You cannot have both at the same time.

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








*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.

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



Re: Re: Configured root path in META-INF/context.xml ignored

2011-08-26 Thread Konstantin Kolinko
2011/8/26 Oliver Wulff :
> I'd very much like to be able to deploy my war in webapps and configure
> either the path in META-INF/context.xml to "/"

You cannot configure those attributes in META-INF/context.xml at all.

> or define docBase in
> conf/Catalina/localhost/ROOT.xml.

It is possible but only if your application is outside of webapps.
You cannot have both at the same time.

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



Antwort: Re: Configured root path in META-INF/context.xml ignored

2011-08-26 Thread Oliver Wulff

http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif"; />
I'm aware of the context container reference doc and the following wiki
page:
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application.3F

I raised this request because whatever approach I choose I've find a hint
in the documentation which doesn't recommend to do so.

First, I don't like to rename my web application into ROOT.war or copy the
content into the ROOT directory. I very much like the approach to define
context information in META-INF/context.xml or conf/Catalina/localhost.
It's not best practise to define context information in server.xml which I
fully support also.

Method 2.1 and 2.2 are kind of hacky.

I'd very much like to be able to deploy my war in webapps and configure
either the path in META-INF/context.xml to "/" or define docBase in
conf/Catalina/localhost/ROOT.xml.

Wouldn't that make sense?

Thanks
Oliver




   
 Konstantin
 Kolinko   
 Tomcat Users List  
  
 08/26/2011 01:02Kopie 
 PM
 Thema 
Re: Configured root path in
  Bitte antworten   META-INF/context.xml ignored   
an 
   "Tomcat Users   
   List"   
   
   
   





2011/8/26 Oliver Wulff :
>
> I've tried to add a context.xml in META-INF/context.xml which is part of
> myweb.war:
> 

docBase and path attributes are invalid here

> Have I missed anything?

1) FAQ
2) search mailing list archives
3) See docs for Context element in Configuration reference.

Best regards,
Konstantin Kolinko

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








*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.

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



Re: manager / deploy context file

2011-08-26 Thread Konstantin Kolinko
2011/8/26 Johannes Ernst :
> I'd like to do this in Tomcat 6:

Which exactly version of Tomcat 6.0.x you are using?

>
> Is there some way I can debug this?
>

Yes. Debugging is described in FAQ.
Also see WEB-INF/web.xml for the name of the servlet that performs
processing of this URL + read the source code.

Best regards,
Konstantin Kolinko

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



Re: Error starting Tomcat

2011-08-26 Thread Konstantin Kolinko
2011/8/26 Pratibha S :
> Hi Konstantin Kolinko,
>
> thank you for the reply.
> Did you mean tomcat/webapps/examples/WEB-INF/lib?

No.  Do not touch Tomcat installation and return it to its original state.

> There is no servlet-api.jar there. Please correct me if I got it wrong.

You have to start from scratch and describe what exact error it was,
before you broke your Tomcat installation, and how your project is
configured.

You should not have servlet-api.jar in your own project - it should be
only a part of "Apache Tomcat" runtime. It should not be in
WebContent/WEB-INF/lib.

There is a FAQ on Eclipse + Tomcat somewhere.

Best regards,
Konstantin Kolinko

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



Re: Configured root path in META-INF/context.xml ignored

2011-08-26 Thread Konstantin Kolinko
2011/8/26 Oliver Wulff :
>
> I've tried to add a context.xml in META-INF/context.xml which is part of
> myweb.war:
> 

docBase and path attributes are invalid here

> Have I missed anything?

1) FAQ
2) search mailing list archives
3) See docs for Context element in Configuration reference.

Best regards,
Konstantin Kolinko

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



Configured root path in META-INF/context.xml ignored

2011-08-26 Thread Oliver Wulff

http://zdownload.zurich.com/mailimages/ZHP_MailHeader.gif"; />

Hi there

I'm trying to run my web application (myweb.war) in Tomcat 6.0.32 under the
root context.

I've tried to add a context.xml in META-INF/context.xml which is part of
myweb.war:


But the application isn't accessible using /index.html.

I've also tried to not specify docBase but it doesn't work either.

I've also tried to add myweb.xml to conf/Catalina/localhost but without
success.

Have I missed anything?

Thanks
Oliver







*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.

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