Is UTF-8 used everywhere for Tomcat 8.5.6?

2016-10-17 Thread R
Hi,

I have a default installation of Tomcat 8.5.6. When I make a POST request
with a tilde character, and the encoding is set to UTF-8, it seems that my
servlet handler is decoding it incorrectly. I have to set the character
encoding on the HttpServletRequest parameter to decode properly, example:

  protected void doPost(HttpServletRequest request, ...) {
  // I have to set this manually.
  request.setCharacterEncoding("UTF-8");

  // Decoding works now.
  String test = request.getParam("test");
  ...
  }

Reading the Tomcat docs, it seems like everything should be UTF-8 by
default. Is there a setting we still have to apply to get UTF-8 to be the
default encoding?

Thanks


Lightweight container for bare "void service(req,res)", maybe through custom Engine implementation?

2024-08-12 Thread r . barclay
Hi,

I have an application which is built on top of Tomcat, currently 10.1.

The part of the application that interfaces with Tomcat is a single custom 
class that extends jakarta.servlet.GenericServlet[1]:

This servlet implements the abstract void "service" method, which
1. reads the request headers, parameters and parts (for multipart requests),
2. does the request processing (through delegated web and business logic 
layers),
3. sets some headers on (Http)ServletResponse and
4. fills the OutputStream of the (Http)ServletResponse.

The application does not use JSP, EL, no filters, ... The web.xml consists of 1 
Servlet definition and 1 Servlet mapping.
The rest of the application is decoupled from the web container technology and 
doesn't know anything from jakarta.servlet.*.

Therefore, I could maybe even switch to NanoHTTPD.[2]

But I love Tomcat being so *perfectly maintained*, proven and reliable! <3 
THANKS SO MUCH!
And Tomcat offers HTTP/1.1 and HTTP/2 Connectors while NanoHTTPD seems to lack 
HTTP/2 support.

But as so much of Tomcat is not used in this specific application, I thought if 
I could build a "shortcut" to reduce the parts involved in request processing 
and speed up reaction times.
Something like building a web app on top of a "light" Tomcat skeleton, with 
only a few stacktrace lines involved for a request to be processed.
From a first look, the Engine component / interface might be a starting point?
And amazingly, with Tomcat we're free to configure custom implementation 
classes for lots of components, e.g. Engine.[3]
So such an approach wouldn't mean to build a horribly to maintain fork with 
custom patches against Tomcat's source tree.

Are you aware if someone did something like the devised "light" container 
before?

Yours,
Reg

[1] 
https://jakarta.ee/specifications/servlet/4.0/apidocs/javax/servlet/genericservlet
[2] https://github.com/NanoHttpd/nanohttpd
[3] 
https://tomcat.apache.org/tomcat-10.1-doc/config/engine.html#Common_Attributes


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



HttpNIO error

2021-08-31 Thread rinilnath r
Hi,

I am using tomcat Http11nio2protocol. I configured it in server XML.

When I start the server it failed to start

UnsupportedOperationException. SO_LINGER not supported

Any help please?

Thanks and Regards,
Rinilnath
Mobile#9786285451


Re: HttpNIO error

2021-08-31 Thread rinilnath r
Hi Chris,

Java : 1.8.0_45
OS : Windows 7

 



Thanks and Regards,
Rinilnath
Mobile#9786285451

On Tue, 31 Aug, 2021, 19:16 Christopher Schultz, <
ch...@christopherschultz.net> wrote:

> Rinilnath,
>
> On 8/31/21 09:23, rinilnath r wrote:
> > I am using tomcat Http11nio2protocol. I configured it in server XML.
> >
> > When I start the server it failed to start
> >
> > UnsupportedOperationException. SO_LINGER not supported
> >
> > Any help please?
>
> Please post:
>
> 1. Your Java version
> 2. Your OS and version
> 3. Your  configuration, minus any secrets you may have
>
> -chris
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: HttpNIO error

2021-08-31 Thread rinilnath r
@chris,

Tomcat 9.0.50

Thanks and Regards,
Rinilnath
Mobile#9786285451

On Tue, 31 Aug, 2021, 19:24 rinilnath r,  wrote:

> Hi Chris,
>
> Java : 1.8.0_45
> OS : Windows 7
>
>   protocol="org.apache.coyote.http11.Http11Nio2Protocol"
> connectionTimeout="6" maxConnections "1" redirect Port="8443"
> enableLookups "false" acceptCount="100" maxPostSize "10485760"
> maxHttpHeaderSize="8192" compression="on" disableUploadrimeout="true"
> compressionMinSize="2048" acceptor ThreadCount="2" compressableMimeType=
> "text/html,text/plain, text/css, application/javascript, application/json,
> application/x-font-ttf, application/x-font-otf, imag e/svg+xml image/jpeg,
> image/png,image/gif, audio/mpeg, video/mp4" URIEncoding="utf-8"
> processorCache="2" tepNoDelay= "true" connectioniLinger="5" server
> ="Server Version 11.0"/>
>
>
>
> Thanks and Regards,
> Rinilnath
> Mobile#9786285451
>
> On Tue, 31 Aug, 2021, 19:16 Christopher Schultz, <
> ch...@christopherschultz.net> wrote:
>
>> Rinilnath,
>>
>> On 8/31/21 09:23, rinilnath r wrote:
>> > I am using tomcat Http11nio2protocol. I configured it in server XML.
>> >
>> > When I start the server it failed to start
>> >
>> > UnsupportedOperationException. SO_LINGER not supported
>> >
>> > Any help please?
>>
>> Please post:
>>
>> 1. Your Java version
>> 2. Your OS and version
>> 3. Your  configuration, minus any secrets you may have
>>
>> -chris
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>


Issues when building native image with GraalVM

2021-12-28 Thread Mar R
Tomcat 10.0.14
Windows 10 x64 21H1 OS Build 19043.1415

openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment GraalVM CE 21.3.0 (build
17.0.1+12-jvmci-21.3-b05)
OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build 17.0.1+12-jvmci-21.3-b05,
mixed mode, sharing)

NetBeans 12.6, maven webapp project
Maven 3.8.4
Ant 1.10.12

Followed guide at https://tomcat.apache.org/tomcat-10.0-doc/graal.html

Sorry in advance if not all issues should be reported here but instead are
graalvm native image related, I'm reporting everything here and on their
github fro completeness.

https://drive.google.com/file/d/17flFW5nlNCdojlvJxCOy23NJBj03p46u/view?usp=sharing
In this link you can find a folder with everything I used from tomcat
stuffed folder downloaded from the github link present in the tomcat AOT
guide, to all commands I put in a script for easier testing purpose, source
webapp, built webapp, screenshots, everything :D

I'll start by saying I'm well aware I could definitely have overlooked
something, anyway I managed to get to the final native image and it works,
BUT:

If you remove .class files from webapps/webappname folder, when you run the
binary file, it won't find those files, only jsps. This is strange because
those files are actually present in the fat jar, and this actually beats
the purpose of builidng a native image if you have to ship it with java
files.

If there is a class extending ServletContextListener (InitClass in this
webapp), when running command with "--catalina -generateCode" parameter,
where you have to access all jsps and servlets, the class extending
ServletContextListener will be initialized/used(?) like 2 times, but the
second time not completly, resetting everything done in the first
initialization.
In this webapp it happens when you access the only servlet present.
Anyway all code is in the google drive link and in InitClass i put some
prints so you can see what I mean.
In another bigger webapp my InitClass initializes a lot of things used by
the webapp basically screwing it.
This issues happens only in this phase becasue in the second phase where
the parameter is "useGeneratedCode" it works normally both with this simple
test webapp and in my other one

When building with native-image command, if
"-J--add-exports=java.management/sun.management=ALL-UNNAMED" isn't used as
additional parameter, errors will pop on run crashing the app. (screenshot
in the google drive link)


Re: Issues when building native image with GraalVM

2021-12-31 Thread Mar R
Il giorno mar 28 dic 2021 alle ore 22:26 Rémy Maucherat 
ha scritto:

> On Tue, Dec 28, 2021 at 7:18 PM Mar R  wrote:
> >
> > Tomcat 10.0.14
> > Windows 10 x64 21H1 OS Build 19043.1415
> >
> > openjdk version "17.0.1" 2021-10-19
> > OpenJDK Runtime Environment GraalVM CE 21.3.0 (build
> > 17.0.1+12-jvmci-21.3-b05)
> > OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build
> 17.0.1+12-jvmci-21.3-b05,
> > mixed mode, sharing)
> >
> > NetBeans 12.6, maven webapp project
> > Maven 3.8.4
> > Ant 1.10.12
> >
> > Followed guide at https://tomcat.apache.org/tomcat-10.0-doc/graal.html
> >
> > Sorry in advance if not all issues should be reported here but instead
> are
> > graalvm native image related, I'm reporting everything here and on their
> > github fro completeness.
> >
> >
> https://drive.google.com/file/d/17flFW5nlNCdojlvJxCOy23NJBj03p46u/view?usp=sharing
> > In this link you can find a folder with everything I used from tomcat
> > stuffed folder downloaded from the github link present in the tomcat AOT
> > guide, to all commands I put in a script for easier testing purpose,
> source
> > webapp, built webapp, screenshots, everything :D
> >
> > I'll start by saying I'm well aware I could definitely have overlooked
> > something, anyway I managed to get to the final native image and it
> works,
> > BUT:
> >
> > If you remove .class files from webapps/webappname folder, when you run
> the
> > binary file, it won't find those files, only jsps. This is strange
> because
> > those files are actually present in the fat jar, and this actually beats
> > the purpose of builidng a native image if you have to ship it with java
> > files.
> >
> > If there is a class extending ServletContextListener (InitClass in this
> > webapp), when running command with "--catalina -generateCode" parameter,
> > where you have to access all jsps and servlets, the class extending
> > ServletContextListener will be initialized/used(?) like 2 times, but the
> > second time not completly, resetting everything done in the first
> > initialization.
> > In this webapp it happens when you access the only servlet present.
> > Anyway all code is in the google drive link and in InitClass i put some
> > prints so you can see what I mean.
> > In another bigger webapp my InitClass initializes a lot of things used by
> > the webapp basically screwing it.
> > This issues happens only in this phase becasue in the second phase where
> > the parameter is "useGeneratedCode" it works normally both with this
> simple
> > test webapp and in my other one
> >
> > When building with native-image command, if
> > "-J--add-exports=java.management/sun.management=ALL-UNNAMED" isn't used
> as
> > additional parameter, errors will pop on run crashing the app.
> (screenshot
> > in the google drive link)
>
> Before looking at it more deeply (later ...), let's take this step by step:
> - Even though you are generating a fat JAR and building a native
> image, the webapps should stay unchanged. All classes and JARs in
> WEB-INF will be needed for annotation scanning and whatever
> "classloading". So this is not a bug. Don't worry, regular Java
> classes that have not been compiled in a native image are never going
> to be magically dynamically loaded and run, since this isn't possible
> at all.
> - Java 17 with Graal is completely untested (Java 11 is) since it's
> very new. Since you seem very adventurous, you can also try to compile
> in the Panama support for OpenSSL.
> - I haven't tested the JMX support, which is fairly new in Graal.
> Adding the module declaration on the command line if needed depending
> on the Java version doesn't seem that surprising. If you were running
> Java 8 you wouldn't need it. For the longest time, JMX was disabled
> with Graal (with no way to enable it). Since it supposedly "works",
> the regular Tomcat standalone defaults are used (so you can use the
> command line to disable it again; to be honest I would probably do
> that ...).
> - You can keep your server.xml (more flexible), but once everything
> works (if you get there then it's good !) you can indeed generate the
> equivalent code for server.xml/context.xml with -generateCode and
> avoid some reflection. This is really completely optional. So it seems
> there's a problem with ServletContextListener then (this is strange
> since it's a web.xml component, for which I never added the actual
> code generation - it was tem

Re: Issues when building native image with GraalVM

2021-12-31 Thread Mar R
I forgot something sorry. Maybe I'm missing something important but, about
classloading, on native image shouldn't it NOT exist? As far as I
understood after you have a native image you have (resources a part)
everything you need inside the binary + libraries, in my case .exe and .dll
files.
Unless I missed something and a graal native image has a jvm or sort of
which will actually run, so now i get why java code outside of the binary
will actually be used, BUT then I don't get why it was designed this way,
this isn't AOT anymore

Il giorno ven 31 dic 2021 alle ore 14:42 Mar R 
ha scritto:

> Il giorno mar 28 dic 2021 alle ore 22:26 Rémy Maucherat 
> ha scritto:
>
>> On Tue, Dec 28, 2021 at 7:18 PM Mar R  wrote:
>> >
>> > Tomcat 10.0.14
>> > Windows 10 x64 21H1 OS Build 19043.1415
>> >
>> > openjdk version "17.0.1" 2021-10-19
>> > OpenJDK Runtime Environment GraalVM CE 21.3.0 (build
>> > 17.0.1+12-jvmci-21.3-b05)
>> > OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build
>> 17.0.1+12-jvmci-21.3-b05,
>> > mixed mode, sharing)
>> >
>> > NetBeans 12.6, maven webapp project
>> > Maven 3.8.4
>> > Ant 1.10.12
>> >
>> > Followed guide at https://tomcat.apache.org/tomcat-10.0-doc/graal.html
>> >
>> > Sorry in advance if not all issues should be reported here but instead
>> are
>> > graalvm native image related, I'm reporting everything here and on their
>> > github fro completeness.
>> >
>> >
>> https://drive.google.com/file/d/17flFW5nlNCdojlvJxCOy23NJBj03p46u/view?usp=sharing
>> > In this link you can find a folder with everything I used from tomcat
>> > stuffed folder downloaded from the github link present in the tomcat AOT
>> > guide, to all commands I put in a script for easier testing purpose,
>> source
>> > webapp, built webapp, screenshots, everything :D
>> >
>> > I'll start by saying I'm well aware I could definitely have overlooked
>> > something, anyway I managed to get to the final native image and it
>> works,
>> > BUT:
>> >
>> > If you remove .class files from webapps/webappname folder, when you run
>> the
>> > binary file, it won't find those files, only jsps. This is strange
>> because
>> > those files are actually present in the fat jar, and this actually beats
>> > the purpose of builidng a native image if you have to ship it with java
>> > files.
>> >
>> > If there is a class extending ServletContextListener (InitClass in this
>> > webapp), when running command with "--catalina -generateCode" parameter,
>> > where you have to access all jsps and servlets, the class extending
>> > ServletContextListener will be initialized/used(?) like 2 times, but the
>> > second time not completly, resetting everything done in the first
>> > initialization.
>> > In this webapp it happens when you access the only servlet present.
>> > Anyway all code is in the google drive link and in InitClass i put some
>> > prints so you can see what I mean.
>> > In another bigger webapp my InitClass initializes a lot of things used
>> by
>> > the webapp basically screwing it.
>> > This issues happens only in this phase becasue in the second phase where
>> > the parameter is "useGeneratedCode" it works normally both with this
>> simple
>> > test webapp and in my other one
>> >
>> > When building with native-image command, if
>> > "-J--add-exports=java.management/sun.management=ALL-UNNAMED" isn't used
>> as
>> > additional parameter, errors will pop on run crashing the app.
>> (screenshot
>> > in the google drive link)
>>
>> Before looking at it more deeply (later ...), let's take this step by
>> step:
>> - Even though you are generating a fat JAR and building a native
>> image, the webapps should stay unchanged. All classes and JARs in
>> WEB-INF will be needed for annotation scanning and whatever
>> "classloading". So this is not a bug. Don't worry, regular Java
>> classes that have not been compiled in a native image are never going
>> to be magically dynamically loaded and run, since this isn't possible
>> at all.
>> - Java 17 with Graal is completely untested (Java 11 is) since it's
>> very new. Since you seem very adventurous, you can also try to compile
>> in the Panama support for OpenSSL.
>> - I haven't tested the JMX support, which is fairly new in Graal

Re: Issues when building native image with GraalVM

2021-12-31 Thread Mar R
I again forgot something, sorry I spent too much time on this I'm a little
tired.

With dev builds, the only difference is that on JAVA 17 there's no need
anymore to use -J--add-exports=java.management/sun.management=ALL-UNNAMED

and github issues link is https://github.com/oracle/graal/issues/4164

Il giorno ven 31 dic 2021 alle ore 14:47 Mar R 
ha scritto:

> I forgot something sorry. Maybe I'm missing something important but, about
> classloading, on native image shouldn't it NOT exist? As far as I
> understood after you have a native image you have (resources a part)
> everything you need inside the binary + libraries, in my case .exe and .dll
> files.
> Unless I missed something and a graal native image has a jvm or sort of
> which will actually run, so now i get why java code outside of the binary
> will actually be used, BUT then I don't get why it was designed this way,
> this isn't AOT anymore
>
> Il giorno ven 31 dic 2021 alle ore 14:42 Mar R 
> ha scritto:
>
>> Il giorno mar 28 dic 2021 alle ore 22:26 Rémy Maucherat 
>> ha scritto:
>>
>>> On Tue, Dec 28, 2021 at 7:18 PM Mar R  wrote:
>>> >
>>> > Tomcat 10.0.14
>>> > Windows 10 x64 21H1 OS Build 19043.1415
>>> >
>>> > openjdk version "17.0.1" 2021-10-19
>>> > OpenJDK Runtime Environment GraalVM CE 21.3.0 (build
>>> > 17.0.1+12-jvmci-21.3-b05)
>>> > OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build
>>> 17.0.1+12-jvmci-21.3-b05,
>>> > mixed mode, sharing)
>>> >
>>> > NetBeans 12.6, maven webapp project
>>> > Maven 3.8.4
>>> > Ant 1.10.12
>>> >
>>> > Followed guide at https://tomcat.apache.org/tomcat-10.0-doc/graal.html
>>> >
>>> > Sorry in advance if not all issues should be reported here but instead
>>> are
>>> > graalvm native image related, I'm reporting everything here and on
>>> their
>>> > github fro completeness.
>>> >
>>> >
>>> https://drive.google.com/file/d/17flFW5nlNCdojlvJxCOy23NJBj03p46u/view?usp=sharing
>>> > In this link you can find a folder with everything I used from tomcat
>>> > stuffed folder downloaded from the github link present in the tomcat
>>> AOT
>>> > guide, to all commands I put in a script for easier testing purpose,
>>> source
>>> > webapp, built webapp, screenshots, everything :D
>>> >
>>> > I'll start by saying I'm well aware I could definitely have overlooked
>>> > something, anyway I managed to get to the final native image and it
>>> works,
>>> > BUT:
>>> >
>>> > If you remove .class files from webapps/webappname folder, when you
>>> run the
>>> > binary file, it won't find those files, only jsps. This is strange
>>> because
>>> > those files are actually present in the fat jar, and this actually
>>> beats
>>> > the purpose of builidng a native image if you have to ship it with java
>>> > files.
>>> >
>>> > If there is a class extending ServletContextListener (InitClass in this
>>> > webapp), when running command with "--catalina -generateCode"
>>> parameter,
>>> > where you have to access all jsps and servlets, the class extending
>>> > ServletContextListener will be initialized/used(?) like 2 times, but
>>> the
>>> > second time not completly, resetting everything done in the first
>>> > initialization.
>>> > In this webapp it happens when you access the only servlet present.
>>> > Anyway all code is in the google drive link and in InitClass i put some
>>> > prints so you can see what I mean.
>>> > In another bigger webapp my InitClass initializes a lot of things used
>>> by
>>> > the webapp basically screwing it.
>>> > This issues happens only in this phase becasue in the second phase
>>> where
>>> > the parameter is "useGeneratedCode" it works normally both with this
>>> simple
>>> > test webapp and in my other one
>>> >
>>> > When building with native-image command, if
>>> > "-J--add-exports=java.management/sun.management=ALL-UNNAMED" isn't
>>> used as
>>> > additional parameter, errors will pop on run crashing the app.
>>> (screenshot
>>> > in the google drive link)
>>>
>>> Before looking at it more deeply (later ...), let's 

Re: Issues when building native image with GraalVM

2022-01-07 Thread Mar R
 >Tomcat is a Jakarta EE container, [...]
>If you don't like that, then you have to look at a framework targeted
>at making native images. My employer happens to make Quarkus.

Thanks for the suggestion, seems like this will close the gap to a full
native image that's bothering me :D


>I don't understand what you mean about the problem with
>ServletContextListener. I don't understand why there would be a
>problem with that. Please try to debug it further if you can.

I don't have any idea how to debug it further, I brought it to the minimum
possible. It's a new project with just 1 servlet, 1 jsp and 1 class
implementing ServletContextListener (InitClass.java). I could only leave
the InitClass but then the issue wouldn't appear because something has to
access it in some way after it's initialized. So at least a servlet or a
jsp has to exist and access it.
As for being an issue, I could be wrong because I don't understand at all
how the -generateCode and --useGeneratedCode part of the process works. I
looked a lot but found zero doc/info about those. The only thing I've
discovered is that those are related  to Tomcat (probably about embedding
Tomcat) and not Graal. (found reference of them in the source code.)
So I could only suppose: -generateCode generates some kind of code/info
upon using the webapp, which will be used by  -useGenerateCode. Considering
-useGenerateCode is used alongside the native image agent I suppose the
previous generated info is needed by the native image agent.
So, based on these suppositions, I've found it strange that if something
access a class implementing ServletContextListener after (obviously) it was
initialized, the webapp workflow goes on like that class didn't even exist.
To debug this I put a simple System.out.println("") in the
static block, in the constructor and in the initializer block. Upon the
start of the webapp all 3 get correctly run, but once soemthing access that
class only the static block gets executed and the previous instance gets
lost. So the effects of whatever code was run before is now lost.
I don't know how to explain this clearly I'm sorry, the fastest and best
way would be to try directly, I provided all the code, files, commands I
used.


>About JMX, Tomcat uses JMX and has it enabled by default. You can
>disable JMX use in Tomcat with --no-jmx (until recently this was done
>internally in Tomcat when using AOT).

Thanks I'll try again this way, as soon as I discover where to use it :D


Il giorno mar 4 gen 2022 alle ore 14:22 Rémy Maucherat  ha
scritto:

> On Fri, Dec 31, 2021 at 2:47 PM Mar R  wrote:
> >
> > I forgot something sorry. Maybe I'm missing something important but,
> about
> > classloading, on native image shouldn't it NOT exist? As far as I
> > understood after you have a native image you have (resources a part)
> > everything you need inside the binary + libraries, in my case .exe and
> .dll
> > files.
> > Unless I missed something and a graal native image has a jvm or sort of
> > which will actually run, so now i get why java code outside of the binary
> > will actually be used, BUT then I don't get why it was designed this way,
> > this isn't AOT anymore
>
> Tomcat is a Jakarta EE container, so it does that and runs regular
> webapps (the main big difference is that the JSPs of the webapp have
> to be precompiled - luckily this has been a feature for a while).
> Graal doesn't remove classloading anyway, the webapp initialization is
> the same, and all components are loaded dynamically from descriptors
> or annotations.
> If you don't like that, then you have to look at a framework targeted
> at making native images. My employer happens to make Quarkus.
>
> As for the issues, you should close
> https://github.com/oracle/graal/issues/4164
>
> I fixed the following issues (will be in the next releases in January):
> - Packaging some now missing resource bundles (you can ignore warnings
> like this)
> - Better escaping for call method rules argument values in generated
> code (this causes a problem with your Windows paths with the watched
> resources)
>
> I don't understand what you mean about the problem with
> ServletContextListener. I don't understand why there would be a
> problem with that. Please try to debug it further if you can.
>
> About JMX, Tomcat uses JMX and has it enabled by default. You can
> disable JMX use in Tomcat with --no-jmx (until recently this was done
> internally in Tomcat when using AOT).
>
> Rémy
>
> >
> > Il giorno ven 31 dic 2021 alle ore 14:42 Mar R <
> marco.robiat...@gmail.com>
> > ha scritto:
> >
> > > Il giorno mar 28 dic 2021 alle ore 22:26 Rémy Mauche

Log format access logs standard

2022-06-06 Thread rinilnath r
Hi,

What's the meaning of this?
%>s

Thanks and Regards,
Rinilnath
Mobile#9786285451


Re: Log format access logs standard

2022-06-07 Thread rinilnath r
Thanks Mark, i corrected that by removing the > symbol

But my next problem is to log the session ID
I tried x-H(requestSessionId), but it is not the correct.
 Please help

Thanks and Regards,
Rinilnath
Mobile#9786285451

On Tue, 7 Jun, 2022, 12:11 Mark Thomas,  wrote:

> On 07/06/2022 07:06, rinilnath r wrote:
> > Hi,
> >
> > What's the meaning of this?
> > %>s
>
> If that appears in the pattern attribute of an AccessLogValve then it is
> an error and you'll see the following in the access log:
>
> ???>???s
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Log format access logs standard

2022-06-07 Thread rinilnath r
%S did solve. Thanks to Mark.


Thanks and Regards,
Rinilnath
Mobile#9786285451

On Tue, 7 Jun, 2022, 20:07 Jalaj Asher, 
wrote:

> Can you try  JSessionID ?
>
> -Original Message-
> From: rinilnath r 
> Sent: Tuesday, June 7, 2022 7:25 AM
> To: Tomcat Users List 
> Subject: Re: Log format access logs standard
>
> [You don't often get email from riniln...@gmail.com. Learn why this is
> important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Attention! - This email has originated from an External Source outside of
> eClinicalWorks. Always use caution when opening attachments, clicking
> links, or when responding to this email. If you feel this is a phishing
> scam, please use the Phish Alert Report button in Outlook.
>
>
> Thanks Mark, i corrected that by removing the > symbol
>
> But my next problem is to log the session ID I tried
> x-H(requestSessionId), but it is not the correct.
>  Please help
>
> Thanks and Regards,
> Rinilnath
> Mobile#9786285451
>
> On Tue, 7 Jun, 2022, 12:11 Mark Thomas,  wrote:
>
> > On 07/06/2022 07:06, rinilnath r wrote:
> > > Hi,
> > >
> > > What's the meaning of this?
> > > %>s
> >
> > If that appears in the pattern attribute of an AccessLogValve then it
> > is an error and you'll see the following in the access log:
> >
> > ???>???s
> >
> > Mark
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>
> CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains
> confidential information belonging to the sender that is legally privileged
> and proprietary and may be subject to protection under the law, including
> the Health Insurance Portability and Accountability Act (HIPAA). If you are
> not the intended recipient of this e-mail, you are prohibited from sharing,
> copying, or otherwise using or disclosing its contents. If you have
> received this e-mail in error, please notify the sender immediately by
> reply e-mail and permanently delete this e-mail and any attachments without
> reading, forwarding or saving them. Thank you.
>
> CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains
> confidential information belonging to the sender that is legally privileged
> and proprietary and may be subject to protection under the law, including
> the Health Insurance Portability and Accountability Act (HIPAA). If you are
> not the intended recipient of this e-mail, you are prohibited from sharing,
> copying, or otherwise using or disclosing its contents. If you have
> received this e-mail in error, please notify the sender immediately by
> reply e-mail and permanently delete this e-mail and any attachments without
> reading, forwarding or saving them. Thank you.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Request for SSL Setup

2022-06-27 Thread Manibharathi R
Dear Team,

Greetings,

I have done keystore generation, import key features and changes done in 
server.xm. But still I am unable to access throught https.

Kindly send me the causes of this issue

Regards,
R.Manibharathi,
AM,Android Mobile App Developer



This email and its attachments may contain confidential, proprietary or legally 
privileged information and is intended solely for the use of the individual or 
entity to whom it is addressed. If you have erroneously received this message, 
please delete it immediately and notify the sender. Any unauthorized review, 
use, disclosure, dissemination, forwarding, printing or copying of this email 
or any action taken in reliance on this e-mail is strictly prohibited and may 
be unlawful. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
incomplete or contain viruses and any views expressed in this message are those 
of the individual sender and no binding nature of the message shall be implied 
or assumed unless the sender does so expressly with due authority of Suguna 
Foods Private Limited, its associates/subsidiaries.


Re: AW: Request for SSL Setup

2022-06-27 Thread Manibharathi R

Thanks for your prompt response.

Could you please send me the procedure that how can we generate certficates
files?

-Original Message-
From: Thomas Hoffmann (Speed4Trade GmbH)
Sent: Tuesday, June 28, 2022 12:13 PM
To: Tomcat Users List
Subject: AW: Request for SSL Setup

This email came from an external source. Please do not click links or open
attachments unless you recognize the sender.


Hello,


-Ursprüngliche Nachricht-
Von: Manibharathi R 
Gesendet: Dienstag, 28. Juni 2022 07:16
An: users@tomcat.apache.org
Betreff: Request for SSL Setup

Dear Team,

Greetings,

I have done keystore generation, import key features and changes done in
server.xm. But still I am unable to access throught https.

Kindly send me the causes of this issue

Regards,
R.Manibharathi,
AM,Android Mobile App Developer





Could you please check all logfiles if there are some errors shown?
Any stacktraces, warnings or errors visible?
Is there a line like "org.apache.coyote.AbstractProtocol.start Starting
ProtocolHandler ["https-openssl-nio-443"]" ?

Greetings, Thomas

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

Regards,
R.Manibharathi,
AM,Android Mobile App Developer




This email and its attachments may contain confidential, proprietary or legally 
privileged information and is intended solely for the use of the individual or 
entity to whom it is addressed. If you have erroneously received this message, 
please delete it immediately and notify the sender. Any unauthorized review, 
use, disclosure, dissemination, forwarding, printing or copying of this email 
or any action taken in reliance on this e-mail is strictly prohibited and may 
be unlawful. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
incomplete or contain viruses and any views expressed in this message are those 
of the individual sender and no binding nature of the message shall be implied 
or assumed unless the sender does so expressly with due authority of Suguna 
Foods Private Limited, its associates/subsidiaries.

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



Apache httpd as reverse proxy in front of Tomcat 10.1 - Different Connectors vs. HTTP request smuggling

2023-05-05 Thread r . barclay
Hello,

I have some questions about HTTP request smuggling in the context of Tomcat 
with Apache httpd as its reverse proxy.

First of all, a few words about my current setup: At the moment I have a few 
applications that are deployed this way:
I use Tomcat 10.1 as my backend server. It only activates its AJP connector (no 
HTTP(S)).
In front, there is an Apache httpd 2.4 with mod_jk as a reverse proxy for my 
Tomcat.
Apache httpd does SSL termination and HSTS redirecting and rejects some trash 
traffic before it could reach Tomcat.
mod_jk is used with the more or less default configuration, which includes 
reuse of backend AJP connections.

Question 1:
Assuming I use the up-to-date package versions in Debian 11, is this setup 
prone to HTTP request smuggling?
If that might be the case, what steps should be taken against?
Do users have to enable "JkOptions +DisableReuse" to prevent HTTP request 
smuggling?
Or is the AJP protocol somewhat "immune" against the confusion about the 
request headers Content-Length, Transfer-Encoding etc.?
I haven't found much about the topic "mod_jk + request smuggling".

Question 2:
In a new application I will have to use websockets.
It seems websockets do not work over AJP / mod_jk.
So I will have to enable Tomcat's HTTP connector and use mod_proxy_wstunnel in 
the Apache httpd reverse proxy.
Therefore, the setup probably won't use AJP / mod_jk at all, but 
mod_proxy_http, connecting to Tomcat's HTTP connector.
What steps does one have to take against HTTP request smuggling in this case?
Do we have to use "disablereuse=on keepalive=off" on the Apache httpd side?

What are your experiences / best practices?

Question 3:
Do the Apache httpd and Apache Tomcat projects coordinate their header 
processing algorithms, header normalization efforts etc. to combat HTTP request 
smuggling?
So is the combination of "Apache httpd + (mod_jk | mod_proxy_*) + Apache 
Tomcat" considered "HTTP request smuggling"-safe in general?

Thanks a lot for any advice!

Reg





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



Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread r . barclay
Hey Jerry,

> Caused by: java.lang.SecurityException: Can not initialize cryptographic 
> mechanism
>      at 
> java.base/javax.crypto.JceSecurity.(JceSecurity.java:120) ... 86 mo
> Caused by: java.lang.SecurityException: Can't read cryptographic policy 
> directory: unlimited

Does this help?
https://stackoverflow.com/a/58183460/

Yours,
Reg


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



RE: UDP Server app

2005-12-27 Thread KJ R
Charles,
 The main reason to run under Tomcat for me would be
when I update the database, I'd like to use a JNDI
connection pool for my dataaccess class.  I'm also
much more familiar with Tomcat than a standalone java
app, although I'm not committed to using it.  Being
able to port it over to another servlet container
would be helpful also.  Most of our clients will have
Sybase's EA Server.  I've changed my UDPServer class
to implement start() stop() and run() methods.  I'd
like to have it be a service that starts when Tomcat
does, but if not, I can access via a webpage and
start/stop it.

Thanks,
Kevin

--- "Caldarale, Charles R"
<[EMAIL PROTECTED]> wrote:

> > From: Pulkit Singhal
> [mailto:[EMAIL PROTECTED] 
> > Subject: Re: UDP Server app
> > 
> > a) I think that since main() is a static method,
> it should 
> > run automagically when you deploy your app into
> webapps and
> > start tomcat.
> 
> At best, that's wishful thinking.  Tomcat is not the
> same as java.exe
> (or the UNIX/Linux equivalent), and that's the only
> thing that calls
> main() automatically.  Please read the Servlet spec.
>  (Providing a
> static public main() API is sometimes useful as a
> means of testing a
> simple webapp outside of Tomcat.)
> 
> In any event, there are standard APIs called at
> webapp initialization
> that can be used for this (again, read the spec),
> but that presumes that
> this application benefits in some way from being run
> under Tomcat.  No
> evidence has been presented so far in this thread
> that such is the case.
> 
>  - 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: UDP Server app

2005-12-27 Thread KJ R
Yes I know JNDI itself is not a Tomcat feature, but
their CONNECTION POOL implementation IS a feature I'm
interested in.  I'm not planning on writing my own
connection pool, I like the way they've done it, as
well as their price!  Tomcat also offers advantages in
ease of debugging, error handling,  and integration
with my development environment - Eclipse.  Also as
I've stated I'm much more familiar with Tomcat then
standalone java apps, so sometimes you go with what
you know.

That being said, I was able to create a webpage to
initiate the start() method on my class.  It looks
like it's probably working because when I tried to use
my "udp_client" web app to test it, got a message
saying the port was already in use and could not bind,
so I'm getting close.  Any other suggestions?

--- "Caldarale, Charles R"
<[EMAIL PROTECTED]> wrote:

> > From: KJ R [mailto:[EMAIL PROTECTED] 
> > Subject: RE: UDP Server app
> > 
> >  The main reason to run under Tomcat for me would
> be
> > when I update the database, I'd like to use a JNDI
> > connection pool for my dataaccess class.
> 
> JNDI is not a feature of Tomcat, it's a capability
> of the Java execution
> environment.  Tomcat merely allows you to configure
> JNDI entries
> non-programmatically.  You can accomplish the same
> thing more simply in
> a standalone app with command line parameters.
> 
> You're still subverting the purpose of Tomcat:  it's
> intended to handle
> web applications using HTTP in a request/response
> mode.  Your app isn't
> anything like that - you have no need of a Servlet
> container or any
> other form of J2EE app server.
> 
>  - 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Please Help! Error in using Packages

2005-12-28 Thread KJ R
Usually, when you solve a problem, it's helpful to
post what the solution was, even if it was something
silly, it could possibly help someone else.

K

--- Teh Noranis Mohd Aris <[EMAIL PROTECTED]>
wrote:

> Dear all,
> I've already solve the problem. Thanks to all who
> had
> contributed.
> 
> TEH
> 
> 
> --- Prasad <[EMAIL PROTECTED]> wrote:
> 
> > Teh,
> > 
> > The web.xml looks fine to me.  Can  you confirm
> that
> > you war file is 
> > packaged correctly i.e
> > its created with proper packages structure and
> > dir/file names.
> > 
> > Also, I was wondering why are you being asked to
> > (explicitly) create a 
> >  element in server.xml. Is it a TC v4.x
> > requirement ?
> > I have used TC 3,4 and 5 but never was I required
> to
> > explicitly create a 
> > context entry in server.xml for any webapp.
> > 
> > I used more of a traditional way of dropping a war
> > file into webapps/ 
> > and re-starting the container and it has been
> > working
> > fine for me so far.
> > 
> > Experts, any thoughts on this one ?
> > 
> > Teh, if you are sure that the deployed WAR is sane
> > then we should wait 
> > for experts to provide an answer.
> > 
> > -Prasad.
> > 
> > Teh Noranis Mohd Aris wrote:
> > 
> > >The web.xml looks like this:
> > >
> > >
> > >
> > > > >PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > >Application 2.3//EN"
> > >   
> > "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
> > >
> > >
> > >
> > >  
> > >MyFirstServlet
> > >   
> >
>
>com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet
> > >  
> > >
> > >  
> > >MyFirstServlet
> > >
> > >  /MyFirstServlet
> > >
> > >  
> > >
> > >
> > >
> > >I placed the web.xml in
> > >c:\jakarta-tomcat-4.1.31\webapps\ch03\WEB-INF
> > >directory.
> > >
> > >How about the server.xml file in
> > >c:\jakarta-tomcat-4.1.31\conf directory? The
> > original
> > >file looks like this:
> > >
> > >.
> > >.
> > >.
> > >
> > > > docBase="examples"
> > >debug="0"
> > > reloadable="true"
> > >crossContext="true">
> > >   > >className="org.apache.catalina.logger.FileLogger"
> > >
> > prefix="localhost_examples_log."
> > >suffix=".txt"
> > > timestamp="true"/>
> > >   > type="Entity"
> > >
> > >home="com.wombat.empl.EmployeeRecordHome"
> > >  
> > >remote="com.wombat.empl.EmployeeRecord"/>
> > >.
> > >.
> > >.
> > >
> > >Should I replace  >  > >path="ch03" and docBase="examples" to
> > >docBase="myfirstwebapp" (the war file for
> > >myfirstwebapp in the
> > >c:\jakarta-tomcat-4.1.31\webapps\ch03 directory)?
> > >Thanks.
> > >
> > >TEH  
> > >
> > >--- Prasad <[EMAIL PROTECTED]> wrote:
> > >
> > >  
> > >
> > >>Can you post your web.xml. I think I can help
> you
> > >>with this but only 
> > >>after looking at your web.xml.
> > >>I think the problem is with  and
> > >> in your 
> > >>web.xml. Moreover as David said, you can find
> all
> > >>the information in the 
> > >>Docs.
> > >>-Prasad.
> > >>
> > >>
> > >>
> > >>
> >
>
>-
> > >  
> > >
> > >>To unsubscribe, e-mail:
> > >>[EMAIL PROTECTED]
> > >>For additional commands, e-mail:
> > >>[EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> >
> >__
> > >Do You Yahoo!?
> > >Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > >http://mail.yahoo.com 
> > >
> >
>
>-
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >  
> > >
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
>   
> __ 
> Yahoo! for Good - Make a difference this year. 
> http://brand.yahoo.com/cybergivingweek2005/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: UDP Server app

2005-12-28 Thread KJ R
Martin and others,
Thanks for the help.  When I was running both the
server and client off my local machine, I was getting
a socketexception on the client - "Address already in
use: Cannot bind" which makes sense, since they were
both trying to bind to the same port.  Once I deployed
my UDPServer to a different machine, I was able send
udp datagrams successfully and process them on the
server running in Tomcat.  Now I just need to figure
out how to stop the component and close the socket.  I
have a while loop depending on a boolean which I'm
changing, but when it's blocking on the
datagramsocket.receive() it won't drop out of the
loop.  I probably need to start a thread and just end
the thread.

K

--- Martin Gainty <[EMAIL PROTECTED]> wrote:

> Agreed..
> To confirm that you are already connected to the
> specified ports I would encourage you to take a look
> at 
> netstat -a which will display all used ports in
> which case you can then grep for the port to
> ascertain its 'in use' status
> 
> To extend on that concept..Take for instance SunOne
> which is a J2EE App Server available from Sun 
> (documentation which is available at
> http://docs-pdf.sun.com/819-1398/819-1398.pdf)
> and note that Sun One AppServer allows the
> specification of Port Range..so that if one port is
> used Sun One auto-fails over to the next port
> for that particular subsystem
> Also BEA supports Port Range scenario for the same
> reason
> You can write your own.. but if the AppServer you
> are using already supports Port Range why bother?
> Anyone else ?
> M
> 
> - Original Message - 
> From: "KJ R" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Tuesday, December 27, 2005 5:22 PM
> Subject: RE: UDP Server app
> 
> 
> > Yes I know JNDI itself is not a Tomcat feature,
> but
> > their CONNECTION POOL implementation IS a feature
> I'm
> > interested in.  I'm not planning on writing my own
> > connection pool, I like the way they've done it,
> as
> > well as their price!  Tomcat also offers
> advantages in
> > ease of debugging, error handling,  and
> integration
> > with my development environment - Eclipse.  Also
> as
> > I've stated I'm much more familiar with Tomcat
> then
> > standalone java apps, so sometimes you go with
> what
> > you know.
> > 
> > That being said, I was able to create a webpage to
> > initiate the start() method on my class.  It looks
> > like it's probably working because when I tried to
> use
> > my "udp_client" web app to test it, got a message
> > saying the port was already in use and could not
> bind,
> > so I'm getting close.  Any other suggestions?
> > 
> > --- "Caldarale, Charles R"
> > <[EMAIL PROTECTED]> wrote:
> > 
> >> > From: KJ R [mailto:[EMAIL PROTECTED] 
> >> > Subject: RE: UDP Server app
> >> > 
> >> >  The main reason to run under Tomcat for me
> would
> >> be
> >> > when I update the database, I'd like to use a
> JNDI
> >> > connection pool for my dataaccess class.
> >> 
> >> JNDI is not a feature of Tomcat, it's a
> capability
> >> of the Java execution
> >> environment.  Tomcat merely allows you to
> configure
> >> JNDI entries
> >> non-programmatically.  You can accomplish the
> same
> >> thing more simply in
> >> a standalone app with command line parameters.
> >> 
> >> You're still subverting the purpose of Tomcat: 
> it's
> >> intended to handle
> >> web applications using HTTP in a request/response
> >> mode.  Your app isn't
> >> anything like that - you have no need of a
> Servlet
> >> container or any
> >> other form of J2EE app server.
> >> 
> >>  - 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:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I create/configure a jsp servlet without a .jsp extension

2006-05-30 Thread Tamilselvan R

Hi Sumeet Keswani,
   We can configure the JSP files in web.xml as
like we do for servlets.
Syntax is explained in the following link

http://edocs.bea.com/wls/docs70/webapp/components.html#145275

Hope this solves your problem. :)



On 5/31/06, Giorgio Clavelli <[EMAIL PROTECTED]> wrote:


I'm not an expert, but considering that JSPs are basically servlets, I'm
pretty sure you should find a solution, to satisfy your requirement, by
configuring the JSP equivalent  of  a  in the web.xml of
your application.

On 5/31/06, Sumeet Keswani <[EMAIL PROTECTED]> wrote:
>
>
> This is a very simple question and i hope someone can give me a answer.
>
> I have a file called search.jsp that does some trivial search through a
> database.
>
> I want it to be accessible as follows
> http://www.domain.com/search?LookForThis
>
> Currently I have it working like
> http://www.domain.com/search.jsp?LookForThis
>
> However getting rid of the .jsp extension is critical.
>
> Is there a specific configuration that will make it work
>
> Note: the closest i got was create a new dir called search and renaming
> search.jsp to index.jsp. unfortunately this does not really work for me,
> use of the slash breaks the client accessing this URL
> http://www.domain.com/search/?LookForThis
>
> thanks
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Regards
Tamilselvan R
More About Me
http://www.freewebs.com/tamilselvan_guru


Re: How can I create/configure a jsp servlet without a .jsp extension

2006-05-31 Thread Tamilselvan R

welcome... keep in touch...
(if possible give me small intro about you to my personal id
[EMAIL PROTECTED])


On 5/31/06, Sumeet Keswani <[EMAIL PROTECTED]> wrote:


Perfect.
This worked.

Thanks
sumeet


-Original Message-
From: Tamilselvan R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 12:43 AM
To: Tomcat Users List
Subject: Re: How can I create/configure a jsp servlet without a .jsp
extension

Hi Sumeet Keswani,
We can configure the JSP files in
web.xml as
like we do for servlets.
Syntax is explained in the following link

http://edocs.bea.com/wls/docs70/webapp/components.html#145275

Hope this solves your problem. :)



On 5/31/06, Giorgio Clavelli <[EMAIL PROTECTED]> wrote:
>
> I'm not an expert, but considering that JSPs are basically servlets,
I'm
> pretty sure you should find a solution, to satisfy your requirement,
by
> configuring the JSP equivalent  of  a  in the web.xml
of
> your application.
>
> On 5/31/06, Sumeet Keswani <[EMAIL PROTECTED]> wrote:
> >
> >
> > This is a very simple question and i hope someone can give me a
answer.
> >
> > I have a file called search.jsp that does some trivial search
through a
> > database.
> >
> > I want it to be accessible as follows
> > http://www.domain.com/search?LookForThis
> >
> > Currently I have it working like
> > http://www.domain.com/search.jsp?LookForThis
> >
> > However getting rid of the .jsp extension is critical.
> >
> > Is there a specific configuration that will make it work
> >
> > Note: the closest i got was create a new dir called search and
renaming
> > search.jsp to index.jsp. unfortunately this does not really work for
me,
> > use of the slash breaks the client accessing this URL
> > http://www.domain.com/search/?LookForThis
> >
> > thanks
> >
> >
> >
-----
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Regards
Tamilselvan R
More About Me
http://www.freewebs.com/tamilselvan_guru

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





--
Regards
Tamilselvan R
More About Me
http://www.freewebs.com/tamilselvan_guru


problem after mod_jk update

2006-10-20 Thread Torsten R.

hi,

i used tomcat 5.0.27 with mod_jk 1.2.13 an apache 2.0.58 and everything 
worked fine. tomcat's task is to serve several (about 1.000) 
chatstreams, so the tomcat-connections are open a long time.


now, i updated to mod_jk 1.2.19 and the chat-users just see a "white 
page" while they are logged in. however, when they logout, suddenly all 
the html-output appears. while the chatstream is active (the connection 
is open), i can post as many messages as i want, i see none of them, 
just the "white page". when i logout and tomcat closes the connection, 
then _all_ the messages appear within a second.


for now, i packported to mod_jk 1.2.13 and everything is fine again. 
however, i don't want to use 1.2.13 all time long, so i hope anybody can 
give me some help!


torsten

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



Re: problem after mod_jk update

2006-10-25 Thread Torsten R.

hi rainer,

perfect! with +flushpakets everything works well, even with 1.2.19. i 
didn't thought it would be that easy ;-)


thanks a lot!
torsten

Rainer Jung schrieb:

Hi Torsten,

you could try the FlushPakets JkOption from

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

Please let us know, if this helps. If not, please open a bugzilla ticket
and include your config and a simple test case.

Regards,

Rainer


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



Performance tuning parameters

2007-02-15 Thread j r

I have searched for exact documentation on this, and I always find
conflicting info.  Therefore I am reaching out to this list.  I have the
following info and questions:

- we are running tomcat 5.5.20
- we have the following configs in server.xml:
  

Re: Performance tuning parameters

2007-02-15 Thread j r

The reason it is hitting its limits is easy: traffic.  We easily get enough
website traffic to overflow the connection limits unless I have many boxes
available to serve.  I know these can be configured to handle more
connections.  I know that we should be able to do this in the tomcat
server.  That is why I need those tweaking parameters defined.



Thanks,
j

On 2/15/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


First you should investigate why tomcat is hitting its limits.
Why do you think it does? Which resource is the limit?
Do you have/use any monitoring software? moskito? lambdaprobe?
tomcat-manager?

regards
Leon

On 2/15/07, j r <[EMAIL PROTECTED]> wrote:
> I have searched for exact documentation on this, and I always find
> conflicting info.  Therefore I am reaching out to this list.  I have the
> following info and questions:
>
> - we are running tomcat 5.5.20
> - we have the following configs in server.xml:
>enableLookups="false" redirectPort="8443" debug="0"
>maxThreads="750" minSpareThreads="100"
maxSpareThreads="250"
>acceptCount="100" connectionTimeout="5000"
> tomcatAuthentication="
>false"
>
> - we have extra capacity (mem, cpu, etc.) on the servers, yet tomcat is
> hitting connection limits
> - we feel that tomcat can serve more, so what do we tune to make it do
so?
> - maxThreads?
> - minSpareThreads?
> - maxSpareThreads?
> - acceptCount?
>
>
> Honestly, I would rather love an exact definition of what each of those
> would do to the tomcat server if tweaked.  Knowing that would be nirvana
for
> tuning.
>
>
>
> -j
>

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




Re: Performance tuning parameters

2007-02-15 Thread j r

The focus should be on the tomcat tweaking.  We get errors in the tomcat
error logs that say tomcat has reached its connection limits.  I never said
that it was serving slow.  It hits connection limits which means that the
app will not serve any more traffic until connections clear.

If a box definitely has more capacity (dual core, dual procs), then my best
guess is that tomcat is not tuned perfectly to allow the max amount of
connections in.  We have raised MaxThreads in the past to allow more
connections in.  This works, but surely other knobs are important to be
tweaked.

I am looking for good definitions and/or best practices on which knobs to
tweak to allow the max connections in before exhausting the jvm native
memory allocation or cpu on the box.



Thanks,
J

On 2/15/07, Andrew Miehs <[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear J'

What do you mean you are hitting connection limits?! Are you getting
errors? What are you seeing that makes you think that is slow?
Is there a database involved in this application?

I assume you are running linux on your server, with a 2.6 kernel.

run the following commands while your box

1)  ps auxH
2)  ps auxH |grep -c java
3)  vmstat 5 5
4)  iostat 5 3

Then we will have a bit of an idea what is going on.

Andrew




On 15/02/2007, at 9:36 PM, j r wrote:

> The reason it is hitting its limits is easy: traffic.  We easily
> get enough
> website traffic to overflow the connection limits unless I have
> many boxes
> available to serve.  I know these can be configured to handle more
> connections.  I know that we should be able to do this in the tomcat
> server.  That is why I need those tweaking parameters defined.
>
>
>
> Thanks,
> j
>
> On 2/15/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>>
>> First you should investigate why tomcat is hitting its limits.
>> Why do you think it does? Which resource is the limit?
>> Do you have/use any monitoring software? moskito? lambdaprobe?
>> tomcat-manager?
>>
>> regards
>> Leon
>>
>> On 2/15/07, j r <[EMAIL PROTECTED]> wrote:
>> > I have searched for exact documentation on this, and I always find
>> > conflicting info.  Therefore I am reaching out to this list.  I
>> have the
>> > following info and questions:
>> >
>> > - we are running tomcat 5.5.20
>> > - we have the following configs in server.xml:
>> >> >enableLookups="false" redirectPort="8443" debug="0"
>> >maxThreads="750" minSpareThreads="100"
>> maxSpareThreads="250"
>> >acceptCount="100" connectionTimeout="5000"
>> > tomcatAuthentication="
>> >false"
>> >
>> > - we have extra capacity (mem, cpu, etc.) on the servers, yet
>> tomcat is
>> > hitting connection limits
>> > - we feel that tomcat can serve more, so what do we tune to make
>> it do
>> so?
>> > - maxThreads?
>> > - minSpareThreads?
>> > - maxSpareThreads?
>> > - acceptCount?
>> >
>> >
>> > Honestly, I would rather love an exact definition of what each
>> of those
>> > would do to the tomcat server if tweaked.  Knowing that would be
>> nirvana
>> for
>> > tuning.
>> >
>> >
>> >
>> > -j
>> >
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFF1NaFW126qUNSzvURAuxZAJ4ugkLObXKHJZsSIfX3SWzZzv5vlQCdHXeV
jSPVOQqZXoxvlQc7Q94vMlA=
=YSSz
-END PGP SIGNATURE-

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




Re: Performance tuning parameters

2007-02-16 Thread j r

I am gleaning from your comments that MaxThreads is the only thing to
tweak.  Yes I do really have a connection issue.  I have millions and
millions of connection requests on a very small pool of servers.  The app
has been tuned constantly over years.  I am either bound to buy more servers
or tweak tomcat to get more throughput.  In reality, I probably need to do
both.

On a large pageview day, we will overflow the 750 MaxThreads.  This is
noticed by the MaxThreads limit being exceeded error message.  We have
tweaked all pieces of the tomcat config.  I was hoping a post here could get
more explanation of the parameters.  We have our experience to fall back on,
but I was hoping for more.

If MaxThreads is the main thing to tweak, we will continue doing so.  There
is a limit to this though.  You should create the funnel for customer
requests (webserver limits, mod_jk limits, and tomcat limits).  Exploding
MaxThreads to a large number just to be large does not seem to fit with
having an acceptCount value or the funnel that should be created.


Thanks,
J

On 2/16/07, Andrew Miehs <[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear J,

The focus should be on your application, and configuring everything
thing around that.

If you REALLY have an out of  connection problem, increase Max
Threads to 1, but I don't
think that will really help you. The problem is usually that each
individual request takes
tooo long, which again, points back to your application - There isn't
that much to tweak
in tomcat. Once you have configured your application, then you can
start looking at the
kernel - but these only bring small % improvements.

Without more information - ie: current number of threads being used,
it is very
hard to answer your question.

Cheers

Andrew

On 16/02/2007, at 4:43 AM, j r wrote:

> The focus should be on the tomcat tweaking.  We get errors in the
> tomcat
> error logs that say tomcat has reached its connection limits.  I
> never said
> that it was serving slow.  It hits connection limits which means
> that the
> app will not serve any more traffic until connections clear.
>
> If a box definitely has more capacity (dual core, dual procs), then
> my best
> guess is that tomcat is not tuned perfectly to allow the max amount of
> connections in.  We have raised MaxThreads in the past to allow more
> connections in.  This works, but surely other knobs are important
> to be
> tweaked.
>
> I am looking for good definitions and/or best practices on which
> knobs to
> tweak to allow the max connections in before exhausting the jvm native
> memory allocation or cpu on the box.
>
>
>
> Thanks,
> J
>
> On 2/15/07, Andrew Miehs <[EMAIL PROTECTED]> wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Dear J'
>>
>> What do you mean you are hitting connection limits?! Are you getting
>> errors? What are you seeing that makes you think that is slow?
>> Is there a database involved in this application?
>>
>> I assume you are running linux on your server, with a 2.6 kernel.
>>
>> run the following commands while your box
>>
>> 1)  ps auxH
>> 2)  ps auxH |grep -c java
>> 3)  vmstat 5 5
>> 4)  iostat 5 3
>>
>> Then we will have a bit of an idea what is going on.
>>
>> Andrew
>>
>>
>>
>>
>> On 15/02/2007, at 9:36 PM, j r wrote:
>>
>> > The reason it is hitting its limits is easy: traffic.  We easily
>> > get enough
>> > website traffic to overflow the connection limits unless I have
>> > many boxes
>> > available to serve.  I know these can be configured to handle more
>> > connections.  I know that we should be able to do this in the
>> tomcat
>> > server.  That is why I need those tweaking parameters defined.
>> >
>> >
>> >
>> > Thanks,
>> > j
>> >
>> > On 2/15/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>> >>
>> >> First you should investigate why tomcat is hitting its limits.
>> >> Why do you think it does? Which resource is the limit?
>> >> Do you have/use any monitoring software? moskito? lambdaprobe?
>> >> tomcat-manager?
>> >>
>> >> regards
>> >> Leon
>> >>
>> >> On 2/15/07, j r <[EMAIL PROTECTED]> wrote:
>> >> > I have searched for exact documentation on this, and I always
>> find
>> >> > conflicting info.  Therefore I am reaching out to this list.  I
>> >> have the
>> >> > following info and questions:
>> >> >
>> >> > - we are runn

Dynamic jsp includes

2005-10-15 Thread j r
All,

This is perhaps a very easy question for many of you, but here it goes:

What has changed from tomcat 4.1.30 to tomcat 5.5 that would make dynamic
jsp includes not work? I have tried setting the following settings to ensure
that it works: development=false, reloading=true, checkInterval=900


Any help on this would be greatly appreciated.


-j


Re: mod_jk2 under heavy load

2005-10-19 Thread j r
We handle 1-2million hits per hour using mod_jk-1.2.13. No special config
setup. It just worked out of the box.

jr

On 10/19/05, Steve Gaunt <[EMAIL PROTECTED]> wrote:
>
> HI,
>
> Has anyone else had any issue using mod_jk under heavy load..
>
> It seems after a period of time(or large no. opf requests) under heavy
> load AJP connetor just hangs. It's crazy.
> All the ajp connections seem to be hanging in service mode, and the only
> way to recover this is to restart tomcat. I'm really stuck with this.
> Has anyone got success stories with jk2(mod)jk) under heavey load. Around
> 1/2-1 million hits/day.
>
> Steve
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>


Dynamically included jsp's

2005-10-19 Thread j r
All,

This is perhaps a very easy question for many of you, but here it goes:

What has changed from tomcat 4.1.30 to tomcat 5.5 that would make dynamic
jsp includes not work? I have tried setting the following settings to ensure
that it works: development=false, reloading=true, checkInterval=900


Any help on this would be greatly appreciated.


-j


Re: mod_jk2 under heavy load

2005-10-20 Thread j r
Steve,

I use tomcat 5.5 with jvm 1.5 on linux. I allocate 1.4G of ram also. Your
configs look like mine for the property files.


-jr

On 10/19/05, Steve Gaunt <[EMAIL PROTECTED]> wrote:
>
> HI
>
> We are using IIS with JBoss 4.01(tomcat 5)
> What verion of tomcat are you using??
>
> We are using windows 2003 servres, with 4G ram. JVM is 1.42 and we
> allocate 1.4G of ram to it when running Jboss.
>
> These are my property files, Can you see anything wrong??
>
> worker.insight.port=8009
> worker.insight.type=ajp13
> worker.insight.cachesize=200
>
> # worker.insight.cache_timeout=60
> # worker.insight.recycle_timeout=60
> worker.insight.socket_keepalive=1
> worker.insight.socket_timeout=60
>
> # if the "retries" value is greater than three,
> # there will be a pause of 100 ms between each retry
> # so this would be a good value if your average response
> # time is 1.7 seconds:
> worker.insight.retries=20
>
>
> Property for tomcat
>
>  enableLookups="false" redirectPort="8443" debug="0" minProcessors="75"
> maxProcessors="200" protocol="AJP/1.3"/>
>
>
> -Original Message-
> From: j r [mailto:[EMAIL PROTECTED]
> Sent: Thu 20/10/2005 03:03
> To: Tomcat Users List
> Cc:
> Subject: Re: mod_jk2 under heavy load
>
>
>
> We handle 1-2million hits per hour using mod_jk-1.2.13. No special config
> setup. It just worked out of the box.
>
> jr
>
> On 10/19/05, Steve Gaunt <[EMAIL PROTECTED]> wrote:
> >
> > HI,
> >
> > Has anyone else had any issue using mod_jk under heavy load..
> >
> > It seems after a period of time(or large no. opf requests) under heavy
> > load AJP connetor just hangs. It's crazy.
> > All the ajp connections seem to be hanging in service mode, and the only
> > way to recover this is to restart tomcat. I'm really stuck with this.
> > Has anyone got success stories with jk2(mod)jk) under heavey load.
> Around
> > 1/2-1 million hits/day.
> >
> > Steve
> >
> > __
> > This email has been scanned by the MessageLabs Email Security System.
> > For more information please visit http://www.messagelabs.com/email
> > __
> >
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Performance tuning parameters

2007-02-17 Thread j r

Alan,

Thanks for the definitions.  This is good info!



-j

On 2/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


J.

This is what I've learnt in the last couple of months:

- maxThreads
The maximum number of http worker threads that tomcat will create.  This
is the limit of the number of concurrent http requests that the server can
be servicing at any given moment.  If the thread is waiting for a database
or webservice call , then the thread is just blocked but it is still part
of the maxThreads count (750 in your example).  Tomcat will create more
threads to do the other stuff that needs to be done.

- minSpareThreads
The number of new threads that tomcat will start when the threadpool has
become full.We have the number set down to 20 because it appears that
the request that triggered the increase waits for all the threads to be
created (i.e. the pool to get the new stock of threads), before the
request is handed to one of those threads.

- maxSpareThreads
When the number of threads that have nothing to do in the threadpool gets
to this number, tomcat will start removing threads from the threadpool,
and killing them.

- acceptCount
This is the number of TCP connections that will be accepted even though
there may not be a Thread immediately available to service them.  This
means that in your example you could have 850 incoming request at any
momemt, Request number 851 will be refused (received a connection
refused).   We have the acceptCount set to half of the number of threads,
so that there can be a "big" pile up of work, if our database suddenly
gets a hickup.


Alan M




"Andrew Pliszka" <[EMAIL PROTECTED]>
02/16/2007 11:06 AM
Please respond to
"Tomcat Users List" 


To
"Tomcat Users List" 
cc

Subject
Re: Performance tuning parameters






Hi,

Do you have any load balancer? I am sorry if this is a trivial
questions, but I have worked with cases that people have no load
balancer and connections are just killing them.

Now, if you do not have a load balancer you might consider NetScaler, it
might lower your number of connections considerably.

Andrew Pliszka
j r wrote:

> I am gleaning from your comments that MaxThreads is the only thing to
> tweak.  Yes I do really have a connection issue.  I have millions and
> millions of connection requests on a very small pool of servers.  The
app
> has been tuned constantly over years.  I am either bound to buy more
> servers
> or tweak tomcat to get more throughput.  In reality, I probably need
> to do
> both.
>
> On a large pageview day, we will overflow the 750 MaxThreads.  This is
> noticed by the MaxThreads limit being exceeded error message.  We have
> tweaked all pieces of the tomcat config.  I was hoping a post here
> could get
> more explanation of the parameters.  We have our experience to fall
> back on,
> but I was hoping for more.
>
> If MaxThreads is the main thing to tweak, we will continue doing so.
> There
> is a limit to this though.  You should create the funnel for customer
> requests (webserver limits, mod_jk limits, and tomcat limits). Exploding
> MaxThreads to a large number just to be large does not seem to fit with
> having an acceptCount value or the funnel that should be created.
>
>
> Thanks,
> J
>
> On 2/16/07, Andrew Miehs <[EMAIL PROTECTED]> wrote:
>
>>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Dear J,
>>
>> The focus should be on your application, and configuring everything
>> thing around that.
>>
>> If you REALLY have an out of  connection problem, increase Max
>> Threads to 1, but I don't
>> think that will really help you. The problem is usually that each
>> individual request takes
>> tooo long, which again, points back to your application - There isn't
>> that much to tweak
>> in tomcat. Once you have configured your application, then you can
>> start looking at the
>> kernel - but these only bring small % improvements.
>>
>> Without more information - ie: current number of threads being used,
>> it is very
>> hard to answer your question.
>>
>> Cheers
>>
>> Andrew
>>
>> On 16/02/2007, at 4:43 AM, j r wrote:
>>
>> > The focus should be on the tomcat tweaking.  We get errors in the
>> > tomcat
>> > error logs that say tomcat has reached its connection limits.  I
>> > never said
>> > that it was serving slow.  It hits connection limits which means
>> > that the
>> > app will not serve any more traffic until connections clear.
>> >
>> > If a box definitely has more capacity (dual core, dual procs), then
>> > my best
>> > guess is that tomcat is not tuned perf

Launching Tomcat at boot

2007-03-25 Thread dimitryous r .

Hello,

Is there a way for me to launch my Apache Tomcat server automatically  
at each boot?
Right now I have to launch Terminal.app and then type "/usr/local/bin/ 
start_tomcat" (or paste the stuff).

Result ok at http://192/168/0/1:8080 .

I tried to put the the following code - the file name is tomcat.plist  
- in the "/Library/LaunchDaemons/" root folder, but after reboot,  
nothing in browser at the above address.


 *** no success ***

beg code ___

www.apple.com/DTDs/PropertyList-1.0.dtd">



tomcat.plist
apache-tomcat-5.5.20
ProgramArguments

/usr/local/bin/start_tomcat

RunAtLoad

OnDemand



end code ___

My start_tomcat contain the following code:
beg code ___
#!/bin/sh
export CATALINA_HOME=/usr/local/apache-tomcat-5.5.20
export JAVA_HOME=/usr
$CATALINA_HOME/bin/startup.sh
end code ___

Is there someting wrong with my code(s)?
Wrong approach?

TIA

MacBookPro: MacOSX 10.4.9

Re: Launching Tomcat at boot, at boot, at boot

2007-03-25 Thread dimitryous r .

Hello Hassan,

My question was "Launching Tomcat automatically at boot" ...

The fact is:
either "export JAVA_HOME=/usr"
or "export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5.0/Home"
are both OK. Seem Apple is promoting the 1st one? Strange but will  
not challenge them.


Problem is: I'm tired to open terminal.app and "usr/local/bin/ 
start_tomcat" when I reboot/restart my Mac. This is the way I do it  
now and http://192.168.0.1:8080 give me the expected result.


Here is my new code for "start_tomcat":
beg code ___
#!/bin/sh
export CATALINA_HOME=/usr/local/apache-tomcat-5.5.20
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ 
1.5.0/Home

$CATALINA_HOME/bin/startup.sh
echo "The start_tomcat script ran." >>/Users/der/ 
start_tomcat_out.txt		// (that is /usr/local/ 
tart_tomcat_out.txt ...)

end code ___

(I'm a Java developer and has to travel a lot with my MacBook_Pro,  
home and abroad.
In order to speed up things, I would prefer to have the server  
launched at startup without copy/paste some stuff in the terminal.app.)


The link http://www.macdevcenter.com/pub/a/mac/2002/06/18/tomcat.html? 
page=last is proposing a way to do it, but don't work.


Then I tried to put some code - a file named "tomcat.plist" in / 
Library/LaunchDaemons/ but I get an error...

Here is my new code for "tomcat.plist":
beg code ___

www.apple.com/DTDs/PropertyList-1.0.dtd">



tomcat
apache-tomcat-5.5.20
ProgramArguments

/usr/local/bin/start_tomcat

RunAtLoad

OnDemand



end code ___

When I test with "launchctl load /Library/LaunchDaemons/tomcat.plist"  
in terminal.app the error is:

Last login: Mon Mar 26 08:07:45 on console
sudo sh -s
Welcome to Darwin!
MacBook-Pro:~ der$ sudo sh -s
Password:
sh-2.05b# launchctl load /Library/LaunchDaemons/tomcat.plist
launchctl: missing the Label key: /Library/LaunchDaemons/ 
tomcat.plist		???

nothing found to load   
???
sh-2.05b#

Sure that if I restart My Mac, will get nothig out of this...

Please help...

And thank you for all the answers I received.
Keep on the good work.
On 26 mars 07, at 04:01, Hassan Schroeder wrote:


On 3/25/07, David Harrison <[EMAIL PROTECTED]> wrote:


Either way works but Apple seems to promote the JAVA_HOME=/usr
alternative:


Um, an article citing Tomcat *4.0.1* as "the latest"? OK

Let's just say: my startup script works, the OP's doesn't. You're more
than welcome to adhere to the approach of your choice. :-)

--
Hassan Schroeder  [EMAIL PROTECTED]

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






Re: Launching Tomcat at boot = Problem solved.

2007-03-26 Thread dimitryous r.

Thank you Edoardo, it works fine...

Problem solved.

Thank you all
On 26 mars 07, at 09:33, Edoardo Panfili wrote:


dimitryous r. wrote:

Hello Hassan,
My question was "Launching Tomcat automatically at boot" ...
The fact is:
either "export JAVA_HOME=/usr"
or "export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5.0/Home"
are both OK. Seem Apple is promoting the 1st one? Strange but will  
not challenge them.
Problem is: I'm tired to open terminal.app and "usr/local/bin/ 
start_tomcat" when I reboot/restart my Mac. This is the way I do  
it now and http://192.168.0.1:8080 give me the expected result.

Here is my new code for "start_tomcat":
beg code ___
#!/bin/sh
export CATALINA_HOME=/usr/local/apache-tomcat-5.5.20
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5.0/Home

$CATALINA_HOME/bin/startup.sh
echo "The start_tomcat script ran."  >>/Users/der/ 
start_tomcat_out.txt// (that is /usr/local/ 
tart_tomcat_out.txt ...)

end code ___
(I'm a Java developer and has to travel a lot with my MacBook_Pro,  
home and abroad.
In order to speed up things, I would prefer to have the server  
launched at startup without copy/paste some stuff in the  
terminal.app.)
The link http://www.macdevcenter.com/pub/a/mac/2002/06/18/ 
tomcat.html?page=last is proposing a way to do it, but don't work.
Then I tried to put some code - a file named "tomcat.plist" in / 
Library/LaunchDaemons/ but I get an error...

Here is my new code for "tomcat.plist":
beg code ___

"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>



tomcat
apache-tomcat-5.5.20
ProgramArguments

/usr/local/bin/start_tomcat

RunAtLoad

OnDemand



end code ___
When I test with "launchctl load /Library/LaunchDaemons/ 
tomcat.plist" in terminal.app the error is:

Last login: Mon Mar 26 08:07:45 on console
sudo sh -s
Welcome to Darwin!
MacBook-Pro:~ der$ sudo sh -s
Password:
sh-2.05b# launchctl load /Library/LaunchDaemons/tomcat.plist
launchctl: missing the Label key: /Library/LaunchDaemons/ 
tomcat.plist???

nothing found to load???
sh-2.05b#
Sure that if I restart My Mac, will get nothig out of this...
Please help...
And thank you for all the answers I received.
Keep on the good work.
On 26 mars 07, at 04:01, Hassan Schroeder wrote:

On 3/25/07, David Harrison <[EMAIL PROTECTED]> wrote:


Either way works but Apple seems to promote the JAVA_HOME=/usr
alternative:


Um, an article citing Tomcat *4.0.1* as "the latest"? OK

Let's just say: my startup script works, the OP's doesn't. You're  
more

than welcome to adhere to the approach of your choice. :-)

--

I use Tomcat 5.5 on Mac OS X 10.3.9
This is the way that I use to start Tomcat as boot time.

Place a new directory "Tomcat" in /System/Library/StartupItems
In that directory there are 2 files

StartupParameters.plist---
{
  Description = "Tomcat Servlet container";
  Provides= ("Servlet container");
  Requires= ("postgres");
  Uses= ("Network time");
  OrderPreference = "Last";
  Messages =
  {
start = "Starting Tomcat";
stop  = "Stopping Tomcat";
  };
}
--
You can remove "Requires= ("postgres");"
but I need it

and

Tomcat
#!/bin/sh

. /etc/rc.common

export JAVA_HOME=/usr/

StartService ()
{
if [ "${SERVLETCONTAINER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Starting servelt container"
/usr/local/tomcat/bin/startup.sh
fi
}

StopService ()
{
ConsoleMessage "Stopping servlet container"
/usr/local/tomcat/bin/shutdown.sh
}

RunService "$1"
--

in /etc/hostconfig there is a line:
SERVLETCONTAINER=-YES-

I hope that it works also for 10.4
Edoardo


--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

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





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



Tomcat Administration

2007-03-31 Thread dimitryous r.

Hello,
I just finished my upgrade to Apache Tomcat/5.5.20.

I know that for security reasons, using the administration webapp is  
restricted to users with role "admin".


The is correct in "/usr/local/apache-tomcat-5.5.20/conf/tomcat- 
users.xml" file (I'm admin and manager) but still I get the message:
"Tomcat's administration web application is no longer installed by  
default. Download and install the "admin" package to use it."


Then downloaded the package at http://archive.apache.org/dist/tomcat/ 
tomcat-5/v5.5.20/bin/.


Just don't know where to put (? directory) the extracted files in.

Help me please,

TIA

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



Re: Tomcat Administration

2007-03-31 Thread dimitryous r .

Hello,

I did what you suggested:
so now I have :

in the directory /usr/local/apache-tomcat-5.5.20/conf/Catalina/ 
localhost/

conf/___
___Catalina
__localhost
_admin.xml
_host-manager.xml
_manager.xml

and in /usr/local/apache-tomcat-5.5.20/server/webapps/

server/__
___webapps
__/admin/
admin.css
admin.xml
etc...
__/host-manager/
etc...
__/manager/
etc...

But when I http://192.168.0.1:8080/admin/ I get the same message as  
before... (after restarting the server).
This message is coming from /usr/local/apache-tomcat-5.5.20/webapps/ 
ROOT/admin/index.html


Will not change the link but have (in the file .../ROOT/admin/ 
index.html) to redirect to xxx. jsp?


There is no index.jsp in the directory .../server/webapps/admin/ so  
what do I have to do?


Is my configuration ok?

Thank you.

Unfortunately there is no guidelines as to what to do when you  
download the admin stuff. Not a word !!!.

On 31 mars 07, at 14:19, Tim Lucia wrote:




-Original Message-
From: dimitryous r. [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 8:04 AM
To: Apache Tomcat
Subject: Tomcat Administration

Hello,
I just finished my upgrade to Apache Tomcat/5.5.20.

I know that for security reasons, using the administration webapp is
restricted to users with role "admin".

The is correct in "/usr/local/apache-tomcat-5.5.20/conf/tomcat-
users.xml" file (I'm admin and manager) but still I get the message:
"Tomcat's administration web application is no longer installed by
default. Download and install the "admin" package to use it."

Then downloaded the package at http://archive.apache.org/dist/tomcat/
tomcat-5/v5.5.20/bin/.

Just don't know where to put (? directory) the extracted files in.


Take the 'conf' directory from the zip and install it over the conf
directory of your installed tomcat area (this provides
conf/Catalina/localhost/admin.xml).  Take the 'server' directory  
from the

zip and ...

Tim



Help me please,

TIA

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





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






Re: Ajax xmlhttprequest

2007-04-13 Thread dimitryous r.

Hi,

I can't give you a response.

But would like to know how you manage to be able to get a index.php  
(for example) page out of your Apache Tomcat server.


Sould I recompile the whole stuff? Should I add some xxx.so file to  
my Apache config?


TIA

dimitryous.
On 8 avr. 07, at 14:55, Richard Dunne wrote:

I have a php webpage which is hosted on my laptop (XP and tomcat  
localhost:8080). My webpage is executing a php script via an  
xmlhttprequest which queries a database and sends back the info to  
the webpage.   I have an a few alerts in my request to see the  
http.readystate and the http.status as they change.  In windows  
(IE7), when I execute the request I can see the readystate changing  
1,2,3,4 and the status 200.  In tomcat when I execute the request,  
I am getting 1 alert, that is readystate 1, and thats as far as it  
goes.  Can anyone suggest a possible solution, or have an idea as  
to what the problem might be.


Richard.



__ 
__

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at  
Yahoo! Games.

http://videogames.yahoo.com/platform?platform=120121



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r.
I have a php webpage which is hosted on my laptop (XP and tomcat  
localhost:8080).


Hello,
Please tell me more about your configuration:
if your Apache Tomcat server is running on port 8080 how come do you  
get something out of a xxx.php script?
You mean: at http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)  
this script call http://localhost/anyfile.php (Apache 1.3.xx with php/ 
MySQL built-in)???


Is this the way you do it?

Thank you much.

On 8 avr. 07, at 14:55, Richard Dunne wrote:

I have a php webpage which is hosted on my laptop (XP and tomcat  
localhost:8080). My webpage is executing a php script via an  
xmlhttprequest which queries a database and sends back the info to  
the webpage.   I have an a few alerts in my request to see the  
http.readystate and the http.status as they change.  In windows  
(IE7), when I execute the request I can see the readystate changing  
1,2,3,4 and the status 200.  In tomcat when I execute the request,  
I am getting 1 alert, that is readystate 1, and thats as far as it  
goes.  Can anyone suggest a possible solution, or have an idea as  
to what the problem might be.


Richard.



__ 
__

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at  
Yahoo! Games.

http://videogames.yahoo.com/platform?platform=120121



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



Re: AW: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r.

But believe you will not get much out of it.
The day Tomcat parse php pages is far away - in my opinion -.
If you do succeed, tell us.
Think Java.
On 13 avr. 07, at 16:35, Richard Dunne wrote:

If you take any .html file and rename it .php for instance, the  
file will change to the php icon.  PHP is installed of course (I  
have PHP5)  It renders exactly the same as an html page does.  Once  
the file is within your context folder, it will be listed in the  
context dir in localhost under that path http://localhost:8080/your- 
context-folder-name.  Assuming your environment variable path is  
set correctly.


Richard.


- Original Message 
From: Pid <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Friday, April 13, 2007 3:08:53 PM
Subject: Re: AW: Ajax xmlhttprequest


I'm going to ask a potentially stupid question here: how have you
configured / are you running PHP code on Tomcat?

Have you called the PHP file directly to see what output it generates?


p



Konstantin Breu wrote:
You can try to use a tool like fiddler, to see better what happens  
at the

requests. Have you tried to change the xmlhttprequest call so that it
requests a static html file from tomcat? Does that work? Which  
progid do you
use to instantiate the xmlhttprequest object (if you instantiate  
it via new

ActiveXObject)?

-Ursprüngliche Nachricht-
Von: Richard Dunne [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 13. April 2007 14:25
An: Tomcat Users List
Betreff: Re: Ajax xmlhttprequest

My php webpage renders just like an html page on localhost:8080,  
but when I
run an xmlhttprequest against the tomcat (jakarta) server from  
within the
webpage, the request shows a readystate of 1, and thats as far as  
it gets.
The request goes throught the reaystates 1-4 and status 200 in  
winodws. I'm
not using asp or jsp, just php and Ajax/javascript. cant post code  
at the

moment, at work u c.

Richard.



- Original Message 
From: Johnny Kewl <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Friday, April 13, 2007 12:56:30 PM
Subject: Re: Ajax xmlhttprequest


OK... more than a little confused

I think you saying when you run it against Apache Server... it works
But when you run the script again tomcat it doesnt...

Show us the Script in the web page
and show us the Servlet or JSP in tomcat
You can also show us the php if u want...

Then we can help u


- Original Message -
From: "Richard Dunne" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, April 08, 2007 2:55 PM
Subject: Ajax xmlhttprequest



I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080). My webpage is executing a php script via an  
xmlhttprequest


which queries a database and sends back the info to the  
webpage.   I have

an a few alerts in my request to see the http.readystate and the
http.status as they change.  In windows (IE7), when I execute the  
request I


can see the readystate changing 1,2,3,4 and the status 200.  In  
tomcat when


I execute the request, I am getting 1 alert, that is readystate  
1, and
thats as far as it goes.  Can anyone suggest a possible solution,  
or have

an idea as to what the problem might be.

Richard.




_ 
___



Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at  
Yahoo!

Games.
http://videogames.yahoo.com/platform?platform=120121



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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



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



Re: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r .

Hi Richard,

As said earlier the only way to parse php files out of Apache Tomcat  
is something like:

http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)
calling http://localhost/anyfile.php (Apache 1.3.xx with php/MySQL  
built-in)

This means 2 servers running on the same machine.

This way you will be able to run: http://www.yoursite_1.com:8080/ 
myfile.jsp (inside the jsp script - Apache Tomcat 5.5.20 JSP -)  
calling http://www.yoursite_2.com/anyfile.php (- Apache 2.2.32 HTTP -  
running php5 with MySQL databases) (sorry for derby). It is possible  
from this server to bounce-back (and forth) - with the appropriate  
javascript codes - to applets running on server_1.
From now on it is the only way to do it - in my opinion -. Ajax  
don't do that.

If not please let us know.
On 17 avr. 07, at 01:10, Richard Dunne wrote:

Learn something new everyday.  OK developers, something to maybe  
look forward to in the future perhaps?



- Original Message 
From: Hassan Schroeder <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Tuesday, April 17, 2007 12:00:57 AM
Subject: Re: Ajax xmlhttprequest


On 4/16/07, Richard Dunne <[EMAIL PROTECTED]> wrote:


I can query the database with a php script on its own.



...one of my webpages is trying to execute the same php script
via an Ajax xmlhttprequest,



Is there any particular/obvious reason why the request is breaking
down in tomcat?


Uh, because Tomcat has no facility for parsing/interpreting PHP? :-)

Caveat: unless you've ported over the old PHP4 servlet that no longer
comes with the PHP 5 source, in which case we'd need a wee bit more
info... :-)
--
Hassan Schroeder  [EMAIL PROTECTED]

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



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



Re: Applet Help

2007-04-16 Thread dimitryous r.
If you are going to make several test with your applet you better off  
to turn off caching of all xxx.class and/or xxx.jar files in your JVM  
preferences ( Java 1.x.x Plugin Settings preferences).

Once all is OK, turn it back to on.
No need to switch your server on/off/on etc... Your server is just  
serving.

On 17 avr. 07, at 02:27, jub jub jedi wrote:



I have made a simple website on Tomcat.  I have an applet on it,  
and when I
loaded it for the very first time, it turned out like I expected it  
to.  I
have made a modification that should be VERY obvious, but when I  
reload the
page, it shows the applet just like when it was first compiled.   
How do I
get it to show the new version of the applet?  I have tried  
restarting the

web server, too.
--
View this message in context: http://www.nabble.com/Applet-Help- 
tf3588156.html#a10027383

Sent from the Tomcat - User mailing list archive at Nabble.com.


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






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



Re: IDE

2007-04-17 Thread dimitryous r.

Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX).  
Deplyoment is very easy.


I don't know how to pull out this version with a more recent one  
5.0.20 ...


Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:


I'm sure this question has been asked many times.  So, I apologize in
advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



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



Re: Ajax xmlhttprequest

2007-04-17 Thread dimitryous r.

Here is a useful link:
http://sourceforge.net/project/downloading.php? 
group_id=117793&use_mirror=ovh&filename=php-java- 
bridge_4.0.8a_j2ee.zip&80307299


Hope.

On 17 avr. 07, at 10:14, Martin Heiden wrote:



Richard!

  As you said: You installed PHP separately installed on your laptop.
  Tomcat can't interpret PHP out of the box. If you only want to use
  PHP without any Java, install the Apache HTTPD (httpd.apache.org)
  with mod_php5 enabled. If you also want to use Java, you've got
  three choices:

  1) Run PHP on Apache HTTPD and Java on Tomcat. Setup communication
 via http - calls between the two servers.

  2) Run PHP on Apache HTTPD and use the PHP-Java Bridge. You don't
 need Tomcat.

  3) You can interpret PHP on Tomcat if you use the reference
 implementation for JSR-223 (Scripting for the Java Platform)
 http://jcp.org/aboutJava/communityprocess/pr/jsr223/index.html

  With the scenario you described, I'd recommend to just switch from
  Tomcat to the Apache HTTPD.

regards,

  Martin

am Dienstag, 17. April 2007 um 00:44 schrieben Sie:


I have Mozila Firefox, Jakarta Tomcat v5.0.28, PHP5 and PostgreSQL
8.2.3-1 installed seperately on my laptop, also have MySQL installed
but using Postgres for project purpose.  All of my php files are
listed under http://localhost:8080/ProjectFolder.  Some of my php
files are webpages and most are scripts.  I have a database and a
few tables created.  So far in DOS, I can query the database with a
php script on its own.  In Windows, (Editplus text editor) one of my
webpages is trying to execute the same php script via an Ajax
xmlhttprequest, using alerts I have gone through the http
readystates 1,2,3,4 and http status 200, but am having problems
accessing/parsing responseText.  In tomcat, I am getting as far as
readystate 1, (firewall turned off).  Is there any
particular/obvious reason why the request is breaking down in tomcat?



Richard.




- Original Message 
From: dimitryous r. <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Monday, April 16, 2007 10:58:16 PM
Subject: Re: Ajax xmlhttprequest




I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080).



Hello,
Please tell me more about your configuration:
if your Apache Tomcat server is running on port 8080 how come do you
get something out of a xxx.php script?
You mean: at http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x)
this script call http://localhost/anyfile.php (Apache 1.3.xx with  
php/

MySQL built-in)???



Is this the way you do it?



Thank you much.



On 8 avr. 07, at 14:55, Richard Dunne wrote:



I have a php webpage which is hosted on my laptop (XP and tomcat
localhost:8080). My webpage is executing a php script via an
xmlhttprequest which queries a database and sends back the info to
the webpage.   I have an a few alerts in my request to see the
http.readystate and the http.status as they change.  In windows
(IE7), when I execute the request I can see the readystate changing
1,2,3,4 and the status 200.  In tomcat when I execute the request,
I am getting 1 alert, that is readystate 1, and thats as far as it
goes.  Can anyone suggest a possible solution, or have an idea as
to what the problem might be.

Richard.



 
__

__
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at
Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121




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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





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





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



Re: Applet Help

2007-04-17 Thread dimitryous r.
Please tell us more about your configuration: OS, JVM xxx, Java  
version etc...

Should help with that.
On 17 avr. 07, at 12:43, jub jub jedi wrote:



I tried that, it doesn't work.  Also, when I just pull up the HTML  
file from
the hard drive, it works as expected.  When I try to access that  
same file

over the web server, I have the original problem.

Martin Gainty wrote:


the applet wont be freshly downloaded as long as you have a ref in  
cache

place some clear browser cache meta tags in e.g.







Martin
This email message and any files transmitted with it contain  
confidential
information intended only for the person(s) to whom this email  
message is

addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message -
From: "jub jub jedi" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 16, 2007 8:27 PM
Subject: Applet Help




I have made a simple website on Tomcat.  I have an applet on it,  
and when

I
loaded it for the very first time, it turned out like I expected  
it to.

I
have made a modification that should be VERY obvious, but when I  
reload

the
page, it shows the applet just like when it was first compiled.   
How do I
get it to show the new version of the applet?  I have tried  
restarting

the
web server, too.
--
View this message in context:
http://www.nabble.com/Applet-Help-tf3588156.html#a10027383
Sent from the Tomcat - User mailing list archive at Nabble.com.


 
-

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





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





--
View this message in context: http://www.nabble.com/Applet-Help- 
tf3588156.html#a10032991

Sent from the Tomcat - User mailing list archive at Nabble.com.


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





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



Re: Applet Help

2007-04-17 Thread dimitryous r.
In order for us to help you do that please: http://localhost:/  
and tell us what you get out of this URL. The version of Tomcat is  
located at the upper left corner of your screen.


On WinXP, you get your java version in Config panel/java then first  
tab and then about (the first button)...


Java 1.6 = no
Tomcat 2.0 = no

Sorry.
On 17 avr. 07, at 13:44, Rashmi Rubdi wrote:


On 4/17/07, jub jub jedi <[EMAIL PROTECTED]> wrote:


Ok... I have Windows XP Home Edition, Java version 1.6.0, Tomcat  
version 2.0

(I think)



Are you sure about the version of Tomcat, may be its 4.x, 5.x, 6.x ?
Tomcat 2.0 with JDK 1.6.0 looks odd to me.

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





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



Re: IDE

2007-04-17 Thread dimitryous r .

Hi there

Here is a partial list of my ports:

	 Open TCP Port: 	80			http://192.168.0.1/			Apache HTTPD 1.3.33 +  
php5 + MySQL

 ...
 Open TCP Port: 3306
jdbc:mysql://192.168.0.1:3306/javatest?" +

"user=the_user&password=the_pswd"

MySQL

 Open TCP Port: 3700???
 Open TCP Port: 3820???
 Open TCP Port: 3920???
	 Open TCP Port: 	4848		http://192.168.0.1:4848/	Sun Java™ System  
Application Server Admin Console

 Open TCP Port: 7676???
 Open TCP Port: 8009???
 Open TCP Port: 8080http://192.168.0.1:8080/
Apache Tomcat 5.5.20
 Open TCP Port: 8081http://192.168.0.1:8081/
Apache Tomcat 5.5.17
	 Open TCP Port: 	8181		https://192.168.0.1:8181/	idem for ssl  
connections

 Open TCP Port: 8686???

As you see, the Apache Tomcat 5.5.17 is useless as the first one is  
running at boot time.


? Is there a way to avoid to launch Apache Tomcat 5.5.17 when I  
launch NetBeans 5.5 ?


? Will try change some of the code within NetBeans ?

On 17 avr. 07, at 18:34, David Short wrote:


NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 17, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: IDE

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server  
version is

cool.
Stick it somewhere on one of your hard-drives.

Go to TOOLS -> SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between  
them if

you want.

Enjoy


- Original Message -----
From: "dimitryous r." <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE



Hello, NetBeans 5.5 at http://www.netbeans.org does it.
But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX).
Deplyoment is very easy.

I don't know how to pull out this version with a more recent one   
5.0.20

...

Any ideas?

TIA
On 6 avr. 07, at 02:47, David Short wrote:

I'm sure this question has been asked many times.  So, I  
apologize in

advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave



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





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



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






Re: IDE

2007-04-17 Thread dimitryous r.

Hi,
Thanks you for your reply.
If I'm reading you correctly, my approach is useless.
Its actually amazing because when you debug... it use the NEW  
tomcat... you will be able to tell straight away because when you  
compile a servel, if it is in the new tomcat, it will dissapear  
because netbeans wants it to use the BUILD code.


NetBeans, just for fun??? Don't want to install 10 Tomcat servers. If  
the build-in can't afford new versions from beginning to end then the  
functionality is useless. So become NetBeans.
Had a look to your URL: great. Have to do the same for my MacOSX  
10.4.9 i386 platform then. Unix is not Linux - unfortunately -.

If I ever succeed, wil keep you informed.
My tool is Xcode but it is not an IDE as NetBeans is.
I'm positive telling you somebody did the correct swap from build-in  
5.0.17 to 5.0.20 or even 6.x.x, but it is not just a copy/paste action.

These Netbean Tomcat dudes are flippin smart
Is NetBeans.org a subsidiary of Sun or an independent organization  
like Apache.org?



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



Batik

2007-05-01 Thread dimitryous r.

Hello,

I'm a newbie with Batik and xmlgraphics.
I just succeed downloading source code for batik 1.7 beta.
Compilation OK
Squiggle OK.
Run with http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx? 
name=JSPX

OK

But how to recompile textRotate.java as there is no such file.

I miss something evidently.

TIA

Re: Tomcat 5.5.25, SSL and "invalid keystore format"

2007-10-22 Thread Vinny R.

Werner,

After having the same problem, I discovered that by default "keytool"
defaults to GNU Classpath, whereas what you want is Java's identically-named
keytool.  Try this:

$JAVA/keytool -genkey -alias tomcat -keyalg RSA -keystore
/tmp/tomcat.keystore

Where $JAVA is your java install's bin directory.

Good luck.


Werner Schalk wrote:
> 
> debian:~# keytool -genkey -alias tomcat -keyalg RSA -keystore
> /tmp/tomcat.keystore
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5.25%2C-SSL-and-%22invalid-keystore-format%22-tf4619882.html#a13350116
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Tomcat startup error

2007-08-08 Thread R Y
 I install tomcat 5.5 package on Ubuntu, it run server on port 8180 by
default.

I start Tomcat 5.5 by running /etc/init.d/tomcat script, it responses:
* Starting Tomcat servlet engine tomcat5.5  [ OK
]

but when check its running status, it is:

 * Tomcat servlet engine is not running.

I have read all tomcat document , still can't find the reason why tomcat
can't boot successfully, could anyone kindly give me a hint
about that.

thanks


my server.xml

http://pastebin.com/m411d5f59 <[EMAIL PROTECTED]>


Here is my tomcat log:

http://pastebin.com/m4177eae4


Problem with Unix script to start remote Tomcat

2008-02-07 Thread Sharmila R
I have Tomcat installed on a Unix box and I need to start it remotely
from another Unix box.

Tomcat is started using a script. When this script is run locally
everything is fine. When I run the same script from remote box, tomcat
starts but the command running the script does not terminate.

I need it to terminate and return the result. Please help.

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



Unable to start Tomcat

2008-05-21 Thread R. Sriram

Hello,
I just downloaded apache-tomcat-6.0.16.zip, unbundled it and set 
TOMCAT_HOME and CATALINA_HOME appropriately in the User Variables in 
System Environment Variables. I also downloaded and installed JDK and 
set JAVA_HOME and included in PATH in System Variables appropriately.


When I run startup to get Tomcat started in Command Prompt, the Command 
Prompt window disappears and Tomcat doesn't start.

What do I need to do to get Tomcat started
Thanks...rs

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



Re: Unable to start Tomcat

2008-05-21 Thread R. Sriram

Hello,
I corrected TOMCAT_HOME and CATALINA_HOME. Now when I do the startup of 
Tomcat, I get the message JAVA_HOME environment variable is not defined 
correctly.

I have set the JAVA_HOME to "C:\Program Files\JSDK2.0".
Thanks...rs
--
R. Sriram wrote:

Hello,
I just downloaded apache-tomcat-6.0.16.zip, unbundled it and set 
TOMCAT_HOME and CATALINA_HOME appropriately in the User Variables in 
System Environment Variables. I also downloaded and installed JDK and 
set JAVA_HOME and included in PATH in System Variables appropriately.


When I run startup to get Tomcat started in Command Prompt, the 
Command Prompt window disappears and Tomcat doesn't start.

What do I need to do to get Tomcat started
Thanks...rs

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





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



Re: Unable to start Tomcat

2008-05-21 Thread R. Sriram
Chuck, I had pointed it to a wrong directory. Once I set JAVA_HOME to 
"C:\Program Files\Java\jdk1.6.0_06", I am able to start Tomcat. 
Thank-you...rs


Caldarale, Charles R wrote:

From: R. Sriram [mailto:[EMAIL PROTECTED]
Subject: Re: Unable to start Tomcat

I have set the JAVA_HOME to "C:\Program Files\JSDK2.0".



And what exactly is installed in "C:\Program Files\JSDK2.0"?  That's not a 
known JVM naming convention.  Sounds like you may need to install a proper one (JRE or 
JDK); download it from:
http://java.sun.com/javase/downloads

You need at least version 1.5, but 6 would be 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



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



Debugging a Web application

2008-05-22 Thread R. Sriram

Hello,
I am using Tomcat 6.0.16 and JDK 1.6. I am using IntelliJ IDEA as my IDE 
to develop a Web application.
What Port(s) does Tomcat Listen to. I am unable to connect to 
localhost:5005.
The command Line args I have set in the IDE is: -Xdebug -Xnoagent 
-Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

Transport: Socket
Debugger Mode: Attach
Host: localhost
Port: 5005
Thanks...Sriram

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



Re: Debugging a Web application

2008-05-23 Thread R. Sriram

http is working fine on Port 8080.
I am unable to connect to Tomcat from my IDE for debugging. In my old 
computer it worked fine with Port 5005. I had to reinstall in a new 
computer after the old one crashed. Now the IDE is not able to connect.

I am wondering any Port Tomcat will listen to.

Leon Rosenberg wrote:

are you asking us on which port you can connect to the jvm or to
tomcat via http? If its the later try 8080.

leon

On Fri, May 23, 2008 at 1:29 AM, R. Sriram <[EMAIL PROTECTED]> wrote:
  

Hello,
I am using Tomcat 6.0.16 and JDK 1.6. I am using IntelliJ IDEA as my IDE to
develop a Web application.
What Port(s) does Tomcat Listen to. I am unable to connect to
localhost:5005.
The command Line args I have set in the IDE is: -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
Transport: Socket
Debugger Mode: Attach
Host: localhost
Port: 5005
Thanks...Sriram

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





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



  



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



Enabling Basic Authentication and SSL for the same WebApplication on Tomcat 6

2009-03-02 Thread Bharath R
Hi,

I am new to web development. We have a servlet for which both Basic
Authentication and SSL has to be enabled. We are using tomcat 6 to host our
web application. I would like to know how do we configure the same
application to enable both authentication. Say, if the users access the
application from HTTP, it should request for username and password (Basic
authentication) and if the users use https, it should authenticate using
certificate. We are able to enable only one at a time, ie. either BASIC or
SSL. How do we enable both for the same authentication?

Thanks for your help in advance.


Regards,
Bharath


Running an applet when tomcat starts

2009-08-13 Thread Aditya R

Hello,

I'm trying to run a swing applet in a jar executable as soon as tomcat
starts. I tried to put the following command inside startup.sh  'java
-jar frontend2.jar'. I'm able to run the script by running the mentioned
command from my own shell script file. But trying to run it inside
startup.sh is not working. It justs starts tomcat as usual. Is thus the
correct way to achieve this? Please Help.

Aditya 
-- 
View this message in context: 
http://www.nabble.com/Running-an-applet-when-tomcat-starts-tp24953735p24953735.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: javax.naming.NameNotFoundException with JAXWS RI 2.5 and Tomcat 6.0

2009-05-14 Thread Bharath R
>>Tomcat 6.0 supports version 2.5 of the servlet spec, whereas Tocmat 5.5
uses 2.4; the 2.5 spec includes resource >>annotations, whereas 2.4 doesn't.
 You didn't bother to specify a spec version in your web.xml.

Do you suggest I put the 2.4 servlet spec version in web.xml?

>>so Tomcat chose the one appropriate for its level; Tomcat 6.0 honored your
annotations while Tomcat 5.5 ignored them. >>Since the declared resources
weren't available, you received the appropriate error messages.

 Resource.class is present in lib directory under annotations-api.jar.
WebServiceContext.class is also present under the $CATALINA_HOME/lib
directory. Do you see any version problem in these classes?


--Bharath


Replacing the default ROOT application

2009-06-01 Thread R Ravichandran
Hello,

I would like to deploy a Spring MVC application that I developed as the ROOT
application on Tomcat. I also configured the Tomcat server to run on port
80. My Spring application has JNDI references to Java mail sessions. I am
unable to figure out how to get this configured. Here is what I did:

_ In the server.xml file,  I created a special  element under the
 element. I added a  element for the mail server inside
this.





But I get this following error message when the application starts:

Jun 1, 2009 6:34:53 PM org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'mailSession' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: Name mail is not bound in
this Context

Any suggestions on how to attach JNDI resources for Default web application
for Tomcat.

Thanks.


Apache Tomcat connection question

2009-06-09 Thread R Ravichandran
Hello,

This is an urgent request. Any feedback is really appreciated.

I have two web applications (let us call main app., and helper app.) running
on Tomcat with an Apache server in from of Tomcat. Both Apache and Tomcat
are running on the same host. The first web app on Tomcat is running as ROOT
webapp.

I have two websites mapped to the single IP address of the host. I want the
right application accessed depending on the domain name used.

- For example, for the domain name "www.app1.com, I want the first tomcat
web app reached.
- for the domain name "www.app2.com" I want the second web app reached.

Here is the config, I am using:
=
In Apache httpd.conf file:

NameVirtualHost *:80


  ServerName www.app1.com
  ProxyPreserveHost On
  ProxyPass / http://localhost:8080/app1
  ProxyPassReverse / http://localhost:8080/app1



ServerName www.app2.com
  ProxyPreserveHost On
  ProxyPass /totelistm http://localhost:8080/app2
  ProxyPassReverse /totelistm http://localhost:8080/app2



Here is the uriworkmap.properties file for mod_jk
worker.list=loadbalancer,status

/=loadbalancer
/*=loadbalancer

/app2=loadbalancer
/app2/*=loadbalancer

Thanks


/


Re: Apache Tomcat connection question

2009-06-10 Thread R Ravichandran
Rainer,
Here is my problem. I have a host with one IP address mapped to two domain
names, let us say www.app1.com and www.app2.com served by two web apps
running on Tomcat say webapp1 and webapp2.

I have Apache Tomcat config. setup to forward any requests coming for any of
these two domain names to be routed to Tomcat.

My problem is both of these web apps need to be the ROOT applications on
Tomcat, and somehow the right app must be executed based on the incoming
domain name. How do I setup both apps. as root context and Vhost on Tomcat.

Thanks

Ravi



On Wed, Jun 10, 2009 at 12:58 AM, Rainer Jung wrote:

> On 10.06.2009 06:00, R Ravichandran wrote:
> > Hello,
> >
> > This is an urgent request. Any feedback is really appreciated.
> >
> > I have two web applications (let us call main app., and helper app.)
> running
> > on Tomcat with an Apache server in from of Tomcat. Both Apache and Tomcat
> > are running on the same host. The first web app on Tomcat is running as
> ROOT
> > webapp.
> >
> > I have two websites mapped to the single IP address of the host. I want
> the
> > right application accessed depending on the domain name used.
> >
> > - For example, for the domain name "www.app1.com, I want the first
> tomcat
> > web app reached.
> > - for the domain name "www.app2.com" I want the second web app reached.
> >
> > Here is the config, I am using:
> > =
> > In Apache httpd.conf file:
> >
> > NameVirtualHost *:80
> >
> > 
> >   ServerName www.app1.com
> >   ProxyPreserveHost On
> >   ProxyPass / http://localhost:8080/app1
> >   ProxyPassReverse / http://localhost:8080/app1
> > 
> >
> > 
> > ServerName www.app2.com
> >   ProxyPreserveHost On
> >   ProxyPass /totelistm http://localhost:8080/app2
> >   ProxyPassReverse /totelistm http://localhost:8080/app2
> > 
> >
> >
> > Here is the uriworkmap.properties file for mod_jk
> > worker.list=loadbalancer,status
> >
> > /=loadbalancer
> > /*=loadbalancer
> >
> > /app2=loadbalancer
> > /app2/*=loadbalancer
>
> You forgot to tell us, what your actual problem is.
>
> Remarks:
>
> - I don't understand, why you want to use mod_proxy *and* mod_jk. Choose
> one of them, not both.
>
> - You can use virtual hosts in Tomcat too and put each webapp as the
> ROOT context in the respective vhost.
>
> - When using mod_proxy make sure to use ProxyPreserveHost to forward the
> original Hosts header, so that Tomcat can choose the correct vhost.
>
> Regards,
>
> Rainer
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat Performance Turning.

2011-09-02 Thread R Batchelor
Have you ruled out issues with db connection pooling?

You might consider setting your dbcp maxWait to 8000 or less and watch 
for "timeout waiting for idle object" exceptions.  Also, you could 
monitor database connections/active-users on the DB side to see if your 
dbcp pools are max'd but all the database users/connections are idle.  
These can be symptoms of an application mis-managing its dbcp pools.



From: Leon Rosenberg 
To: Tomcat Users List 
Sent: Friday, September 2, 2011 7:55 AM
Subject: Re: Tomcat Performance Turning.

Hello Talha,

well... the quickshots are through.
You should really create some threaddumps after each other (for
example with jstack) and try to find out which thread is slowing the
app down.
For starters you could try with code you changed for tomcat
adaptations if any. The problem seems to lie beneath the surface, so
you will have to start
performance monitoring and look into the inside.
However, time difference of 17 seconds must be something very very
obvious like a synchronized block in a valve/filter, db lock (have you
checked the db locks?), or an if (tomcat)
Thread.sleep(1000L*60*17);

regards
Leon

On Fri, Sep 2, 2011 at 4:21 PM, Talha Fazal  wrote:
> Hi Leon,
>
> Please see any answers in CAPS below.
>
>
>
> -Original Message-
> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com]
> Sent: Friday, September 02, 2011 9:06 AM
> To: Tomcat Users List
> Subject: Re: Tomcat Performance Turning.
>
> Hello Talha,
>
> seems that your tomcats are fine.
> Question, you mention that the tomcat do not perform, but you don't
> tell us how you come to this conclusion except for cpu load. ANSWER: LOOKING 
> INTO THE TOMCAT ACCESS LOGS, THE RESPONSE TIME (%D) IS HORRIBLE).
> What is the difference in response times between weblogic and tomcat? ANSWER: 
> FOR PAGES THAT WEBLOGIC SERVES IN 500 ms ON AVERAGE, TOMCAT IS TAKING 17000 
> ms ON AVERAGE.
> Maybe your tomcat just perform the job MUCH faster ;-)
> The thread dump you posted in another reply indicates that your
> tomcats are idling.
> Do you have manager installed? NO. With manager you could monitor active
> connections and requests.
> Do you have probe installed? YES, WE HAVE IT INSTALLED. A LOT OF THREADS ARE 
> IDLING IS WHAT WE OBSERVE.
> Finally, if you really want to profile your application, do you have
> moskito installed? :-) (the one i initially wrote
> -moskito.anotheria.net, therefore the shameless advertisement). :-) SURE WILL 
> GIVE IT A TRY [TIME PERMITTING].
>
> In the last case I can offer you to provide support getting it running. WILL 
> LET YOU KNOW IF WE ARE INTERESTED. THANKS.
>
> regards
> Leon
>
> On Fri, Sep 2, 2011 at 3:50 PM, Talha Fazal  wrote:
>> Plz. see my answers below in UPPERCAPS.
>>
>> Thanks!
>>
>> -Original Message-
>> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com]
>> Sent: Friday, September 02, 2011 8:35 AM
>> To: Tomcat Users List
>> Subject: Re: Tomcat Performance Turning.
>>
>> Hello Talha,
>>
>> from a quick glance at your post, do you have the same 30 max threads
>> limit in weblogic? YES.
>> Because sending 525 users through 2x30=60 max threads seems a little
>> bottlenecky. I FORGOT TO MENTION THAT ON EACH TOMCAT SERVER, WE ARE RUNNING 
>> 3 INSTANCES OF TOMCAT ON EACH OF OUR TOMCAT SERVERS (2 SERVERS), THUS 
>> 2*3*30=180 maxThreads. WE EVEN INCREASED THE maxThreads TO 120 FOR EACH 
>> INSTANCE (thus 120*6=720 maxThreads), AND MATCHED maxActive IN JNDI RESOURCE 
>> TO 120, BUT WE STILL DIDN'T SEE CONSIDERABLE IMPROVEMENT. THE CPU USAGE 
>> INCREASED FROM 7% to 10%.
>>
>> Which software are you using to produce the load? LOADRUNNER. Does it 
>> keepalive the connections? YES.
>>
>> regards
>> Leon
>>
>> On Fri, Sep 2, 2011 at 3:31 PM, Talha Fazal  wrote:
>>> Background:
>>>
>>> We have a moderately high traffic web application (between 8 to 21 million 
>>> hits/day) running Apache to serve static content (also to load balance and 
>>> create a DMZ) and Weblogic to serve dynamic content (Struts 1.1 based Java 
>>> web application).
>>> We are trying to replace Weblogic with Tomcat and we have ported our code 
>>> to work with Tomcat. All works well in Tomcat in the DEV, QA, and STAGING 
>>> environment as long as there is no real load.
>>>
>>> The Issue - Load Testing:
>>>
>>> In our staging environment for load testing, when we run the load test 
>>> using 525 concurrent users, the app doesn't perform at all. The CPU usage 
>>> (on Apache and Tomcat Servers) hovers between 7% to 8%. The database server 
>>> CPU usage is also between 4 and 5%.
>>>
>>> Setup for Load Testing:
>>>
>>> We have setup 2 apache web servers (4 Quad Processors i.e. 16 CPUs each), 2 
>>> Tomcat (version 6.0.29) servers (4 Quad Processors i.e. 16 CPUs each). Each 
>>> server has 32 Gb ram. We are using AJP 1.3 to connect Tomcat and Apache.
>>>
>>> Mentioned below is the version information:
>>> Apache Version 2.2.14 (with mod_jk module)
>>> Tomcat: 

Survivor space fine tuning

2011-12-21 Thread Pandian R
Hi,
This is the problem I am facing.

I have a tomcat 7 server running on JDK 7 - Win2008 32 bit.

I am monitoring all the memory areas. I am seeing the Survivor Space is
highly consumed almost all times. I have reduced the survivor ratio to 6.
But unfortunately no improvements. I have changed the MaxPermSize as 256
from 64 (Not sure is this a right one). Can you please suggest me a correct
option to increase the survivor space? Any help will be highly appreciated.

Here is my setting.

-Xmx1024M
-XX:SurvivorRatio=6
-XX:MaxPermSize=256

*Tomcat configration*

[image: mem06.png]

*
*
*Memory Usage on Survivor Space*


[image: java01.png]


MaxPermSize increased to 256 recently.

[image: java02.png]

Pandian R
---
*Free* software is a matter of liberty not price. You should think of
"free" as in "free speech".
Proud user of Ubuntu 11.10 - X64


FW: problem with org.apache.catalina.core.ApplicationHttpRequest method.

2010-06-30 Thread Ranjix R

Hi guys, sorry for the bother. I do have a question related to how a certain 
feature was implemented in Tomcat (6.0, probably 
all of them), that's why I address the question to the dev-list and the 
user-list. 
I do have a fairly complicated case, in which I have a filter for jsp's, and I 
use a custom request wrapper in the respective filter. 
My request wrapper overrides setAttribute and getAttribute (does some internal 
management, not relying on the "super"), 
and I had the surprise to see that the setAttribute from my wrapper doesn't get 
called from the 
org.apache.catalina.core.ApplicationHttpRequest setAttribute, at least not for 
the "special attributes" (and I need the 
javax.servlet.include attributes, which Tomcat considers "special"). 

The code that I find is problematic is copied underneath (the if(!setSpecial) 
part), and the question is "why doesn't the 
getRequest.setAttribute get called ALL THE TIME". The problem manifests when I 
do a jsp:include, and when the
filter on the included jsp checks my wrapper, can't find the 
javax.servlet.include.* attributes. This is somewhat bothering, 
considering that I don't have this issue with Weblogic and Websphere, both do 
call my wrapper's set/getAttribute... 

p.s. the code I believe is at fault is:

org.apache.catalina.core.ApplicationHttpRequest
...
public  void setAttribute(String name,
Object value) 
{
if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) {
dispatcherType = value;
return;
} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
requestDispatcherPath = value;
return;
}
if (!setSpecial(name, value)) {
getRequest().setAttribute(name, value);
}
}So, the questions are: 

1. do you think is a big issue if I remove the "if" and I just use instead to 
instructions - 
- setSpecial(name, attribute);
- getRequest().setAttribute...
In my tests it seemed to work fine, but maybe I don't grasp all the 
implications. 

2. any particular reason for calling the getRequest().setAttribute only for 
some (non-special) attributes, but not for others (javax.servlet.include.*)? 

thanks for any suggestion/
ranjix 



  
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more.  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Exclude url from authorized access-web.xml

2012-06-14 Thread Rahul R
Hi All,

I have an issue with allowing access to a page which is secured using
active directory authentication. I want some pages/content to be excluded
from this. Following is my web.xml file under conf of tomcat.


[code=java]



Protected
Area
/*



<--! These are the groups in AD -->
Engineering
Migration Expert
Developers




  
   
  /update/*
   
  


BASIC
Services Portal


[/code]

As per my understanding, this should allow url's with a content "update"
and allow other pages only with AD credentials. But this is not working for
me now. Its asking for the credentials even for the url with "update".

Tomcat Version:7
Env:Linux
Url:http://myserver.com:8080/solar/index.jsp. Here its asking the
credentials, its fine and as expected.

url with "update" in the address: http://myserver.com:8080/solar/site/update.
When I access this url, its still asking for the credentials.

I am not really sure why this is happening. Could anyone here can help me
on this?


-- 
Thanks,
Regards,
Rahul R


Re: Exclude url from authorized access-web.xml

2012-07-11 Thread Rahul R
How can I add an email id to auth instead of adding a whole group? Is that
possible? I don't want to give the access to all the members of the groups
in the AD. Following is the web.xml of my tomcat.



Protected
Area
/*



<--! These are the groups in AD -->
Engineering
Migration Expert
Developers




  
   
  /update/*
   
  


BASIC
Services Portal



On Thu, Jun 14, 2012 at 8:00 PM, Pid  wrote:

> On 14/06/2012 15:06, Rahul R wrote:
> > Hi All,
> >
> > I have an issue with allowing access to a page which is secured using
> > active directory authentication. I want some pages/content to be excluded
> > from this. Following is my web.xml file under conf of tomcat.
> >
> >
> > [code=java]
> >
> > 
> > 
> > Protected
> > Area
> > /*
> > 
> >
> > 
> > <--! These are the groups in AD -->
> > Engineering > name>
> > Migration Expert
> > Developers
> >
> > 
> > 
> >
> >   
> >
> >   /update/*
> >
> >   
> >
> > 
> > BASIC
> > Services Portal
> > 
> >
> > [/code]
> >
> > As per my understanding, this should allow url's with a content "update"
> > and allow other pages only with AD credentials. But this is not working
> for
> > me now. Its asking for the credentials even for the url with "update".
> >
> > Tomcat Version:7
> > Env:Linux
> > Url:http://myserver.com:8080/solar/index.jsp. Here its asking the
> > credentials, its fine and as expected.
> >
> > url with "update" in the address:
> http://myserver.com:8080/solar/site/update.
> > When I access this url, its still asking for the credentials.
>
> This:
>  /solar/site/update
>
> does not match this pattern:
>  /update/*
>
>
> the pattern would have to be:
>  /site/update/*
>
>
> p
>
> > I am not really sure why this is happening. Could anyone here can help me
> > on this?
> >
> >
>
>
> --
>
> [key:62590808]
>
>


-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


server.xml for ldap connection

2012-07-23 Thread Rahul R
Hi All,


This is the snippet from my server.xml of my tomcat which takes care of
ldap connection.

ldap://global.ad.myCompany.com:389";
userBase="dc=Global,dc=ad,dc=myCompany,dc=com"
userSearch="(sAMAccountName={0})"

roleBase="OU=Groups,OU=PROD,DC=Global,DC=ad,DC=myCompany,DC=com"
roleName="cn"
roleSearch="(&(objectClass=group)(member={0}))"
 />

But I have different environments like development, qa, staging etc. Hence
the functional a/c which connects to the ldap changes accordingly. Is there
any way to use some variable which reads the username/password from a file?
So that who ever owns that environment can simply change the
username/password in that file. There is already a property file in the
conf folder of the tomcat which is used for taking some environment
specific values by a jsp file, which is under webapps folder. Can I make
use of that for having these values? It would be a great help if some one
can help me here.


Regards,
Rahul R


Tomcat 5.5.30 and Spring Framework

2011-03-07 Thread Aureliusz R.
I know this is not a typical tomcat question but please bear with me.
All Spring integrations call for placing configuration xmls in
/WEB-INF/ of an application. The tomcat that I'm forced to work with
has a weird configuration where there are no applications under
$TOMCAT_HOME/webapps folder. There is one folder where all of the
servlets go, and the invoker servlet is mapped to it:


  invoker
  /servlets/*


My question is, how do I know where the context (default context?) in
such a situation is, so that I could place my spring configuration
files in there? Is spring usage even possible with such configuration?

Thanks
Aurir_

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



Re: Tomcat 5.5.30 and Spring Framework

2011-03-11 Thread Aureliusz R.
Borut,

your instructions were spot on. I was able to track down my docBase
folder (it was specified in $TOMCAT_HOME/conf/servlet.xml ,
and I verified that it's the correct location by adding some context
parameters to the web.xml in my docBase, and then retrieving them from
a JSP.

Now I have another problem though. For some reason, my
DispatcherSetvlet (for the spring framework) is not being loaded at
all. I tried placing the piece of XML below in the
$TOMCAT_HOME/conf/web.xml and my docBase/WEB-INF/web.xml. I also
specified invalid fully qualified name for my DispatcherServlet to get
some kind of exception, but I don't get anything. Is there anything
that would prevent this servlet from being loaded?


spring

org.springframework.web.servlet.DispatcherServlet

1



spring
*.htm


 It's ridiculous because some time ago when I placed it in
$TOMCAT_HOME/conf/web.xml I was getting the exception below, and
that's the reason why I wanted to know where my docBase is in the
first place. Now that I know where it is, the DispatcherServlet
doesn't seem to be loaded at all. Is there anything that would prevent
this servlet from being loaded?

org.springframework.beans.factory.BeanDefinitionSt oreException:
IOException parsing XML document from ServletContext resource
[/WEB-INF/spring-servlet.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/spring-servlet.xml]

Thanks,
Aurir_

On Tue, Mar 8, 2011 at 2:47 AM, Borut Hadžialić
 wrote:
> The piece of xml you posted looks like something from
> $TOMCAT_HOME/conf/web.xml file. This file contains some default
> configuration that is applied to all web applications and you usually
> don't change it.
>
> What you need to find is the /WEB-INF directory of your web
> application. /WEB-INF directory resides in the root directory of your
> web application. This directory is also called Context Root / Document
> Base - its the directory that contains all files of your app. You
> usually put spring config files in the /WEB-INF directory of your web
> application.
>
>
> It doesn't matter where individual applications are on the disk (where
> their Context Root / Document Base directories are). Applications can
> be in $TOMCAT_HOME/webapps, or in some other directories anywhere on
> the filesystem.
>
> To figure out where your application's Context Root / Document Base is
> you can do this:
> 1. use find to search for WEB-INF directories on your filesystem
> 2. find your Tomcat's instance conf directory ($TOMCAT_HOME/conf) and
> go trough the config files there: first look at server.xml - look for
>  elements and see if it has a appBase attribute defined. Then
> check if the  element has any  child elements. If it
> does, their docBase attribute points to document base of an
> application.
> If you don't find it there, look for subdirectories in conf directory
> - for example there might be subdirectories Catalina/localhost that
> contain individual application xml config files. Those files also
> contain  elements - look for their docBase attribute.
>
> On Tue, Mar 8, 2011 at 4:47 AM, Aureliusz R.  wrote:
>> I know this is not a typical tomcat question but please bear with me.
>> All Spring integrations call for placing configuration xmls in
>> /WEB-INF/ of an application. The tomcat that I'm forced to work with
>> has a weird configuration where there are no applications under
>> $TOMCAT_HOME/webapps folder. There is one folder where all of the
>> servlets go, and the invoker servlet is mapped to it:
>>
>> 
>>  invoker
>>  /servlets/*
>> 
>>
>> My question is, how do I know where the context (default context?) in
>> such a situation is, so that I could place my spring configuration
>> files in there? Is spring usage even possible with such configuration?
>>
>> Thanks
>> Aurir_
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
>
> --
> Why?
> Because YES!
>
> -
> 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 5.5.30 and Spring Framework

2011-03-11 Thread Aureliusz R.
Borut,

thanks again. You were correct, it was lazy initialization. Pretty
much at this point I got the spring part working.

I've encountered yet another issue with mapping requests from apache2
web server to tomcat. It seems to have something to do with SSL, as I
don't have this issue for http.

The situation looks as follows:
The docBase for my app is /usr/local/jsp/
I've placed my spring test JSP in /usr/local/jsp/testSpring/testSpring.jsp

apache2/httpd.conf has the following mod_jk mappings:
JkMount /servlet/* worker1
JkMount /*.jsp worker1
JkMount /jsp/* worker1

When I invoke this JSP directly through tomcat, or through apache
httpd server but over http, it works fine:
http://server.domain.com:8080/jsp/testSpring/testSpring.htm
http://server.domain.com/jsp/testSpring/testSpring.htm

When I invoke this JSP through apache httpd over https, it's actually
looking for the static htm file. It doesn't go through tomcat at all.
https://server.domain.com/jsp/testSpring/testSpring.htm

Not Found
The requested URL /jsp/testSpring/testSpring.htm was not found on this server.

Would you be able to point me in the right direction? I searched
through some of the ssl config files, but I didn't find anything that
would prevent /jsp/**/*.htm requests from being sent to tomcat.

Thanks,
aurir_

On Fri, Mar 11, 2011 at 9:30 AM, Borut Hadžialić
 wrote:
> Do not put anything in $TOMCAT_HOME/conf/web.xml - leave that file as
> it is when you unpack a fresh Tomcat distribution.
>
> Why the servlet is not being loaded?  - not 100% about this, but I
> would first check if it is maybe being lazy loaded/initialized. After
> your tomcat starts up, try to browse http://localhost:8080/test.htm -
> that http request will be mapped to your spring servlet, and it will
> trigger the initialization of your spring servlet (if that was the
> problem in the first place, but i think it is).
>
> The exception you were getting meant that your DispatcherServlet
> couldn't find and load its configuration file at startup.
> A DispatcherServlet's configuration file is by default
> /WEB-INF/-servlet.xml'.  is 'spring' in
> your case - that is how you named it inside web.xml:
>
> 
>        spring
>     
> 
>
> So your DispatcherServlet instance that you named 'spring' tried to
> load the file /WEB-INF/spring-servlet.xml, which wasn't there and you
> got the exception:
> java.io.FileNotFoundException: Could not open ServletContext resource
> [/WEB-INF/spring-servlet.xml]
>
> Make sure you have 'spring' DispatcherServlet's configuration in a
> file /WEB-INF/spring-servlet.xml, or use some other file with
> configuration like this:
>
> 
>        spring
>        
>            org.springframework.web.servlet.DispatcherServlet
>        
>  
>    contextConfigLocation
>    /WEB-INF/foo/bar-servlet.xml
>  
>        1
>    
>
> On Fri, Mar 11, 2011 at 4:08 PM, Aureliusz R.  wrote:
>> Borut,
>>
>> your instructions were spot on. I was able to track down my docBase
>> folder (it was specified in $TOMCAT_HOME/conf/servlet.xml ,
>> and I verified that it's the correct location by adding some context
>> parameters to the web.xml in my docBase, and then retrieving them from
>> a JSP.
>>
>> Now I have another problem though. For some reason, my
>> DispatcherSetvlet (for the spring framework) is not being loaded at
>> all. I tried placing the piece of XML below in the
>> $TOMCAT_HOME/conf/web.xml and my docBase/WEB-INF/web.xml. I also
>> specified invalid fully qualified name for my DispatcherServlet to get
>> some kind of exception, but I don't get anything. Is there anything
>> that would prevent this servlet from being loaded?
>>
>>
>>    
>>        spring
>>        *.htm
>>    
>>
>>  It's ridiculous because some time ago when I placed it in
>> $TOMCAT_HOME/conf/web.xml I was getting the exception below, and
>> that's the reason why I wanted to know where my docBase is in the
>> first place. Now that I know where it is, the DispatcherServlet
>> doesn't seem to be loaded at all. Is there anything that would prevent
>> this servlet from being loaded?
>>
>> org.springframework.beans.factory.BeanDefinitionSt oreException:
>> IOException parsing XML document from ServletContext resource
>> [/WEB-INF/spring-servlet.xml]; nested exception is
>> java.io.FileNotFoundException: Could not open ServletContext resource
>> [/WEB-INF/spring-servlet.xml]
>>
>> Thanks,
>> Aurir_
>>
>> On Tue, Mar 8, 2011 at 2:47 AM, Borut Hadžialić
>>  wrote:
>>> The piece of xml you posted looks like som

Re: Tomcat 5.5.30 and Spring Framework

2011-03-14 Thread Aureliusz R.
It's all working now.

Thank You for your help!
Aurir_

On Sat, Mar 12, 2011 at 4:49 AM, Borut Hadžialić
 wrote:
>> The docBase for my app is /usr/local/jsp/
>> I've placed my spring test JSP in /usr/local/jsp/testSpring/testSpring.jsp
>
> You probably want your's app docBase to be something like
> /usr/local/myapp, and then have your jsp's in a directory
> /usr/local/myapp/WEB-INF/jsp/ - eg.
> /usr/local/myapp/WEB-INF/jsp/testSpring/testSpring.jsp
>
>
> On Sat, Mar 12, 2011 at 5:42 AM, Aureliusz R.  wrote:
>> Borut,
>>
>> thanks again. You were correct, it was lazy initialization. Pretty
>> much at this point I got the spring part working.
>>
>> I've encountered yet another issue with mapping requests from apache2
>> web server to tomcat. It seems to have something to do with SSL, as I
>> don't have this issue for http.
>>
>> The situation looks as follows:
>
>>
>> apache2/httpd.conf has the following mod_jk mappings:
>> JkMount /servlet/* worker1
>> JkMount /*.jsp worker1
>> JkMount /jsp/* worker1
>>
>> When I invoke this JSP directly through tomcat, or through apache
>> httpd server but over http, it works fine:
>> http://server.domain.com:8080/jsp/testSpring/testSpring.htm
>> http://server.domain.com/jsp/testSpring/testSpring.htm
>>
>> When I invoke this JSP through apache httpd over https, it's actually
>> looking for the static htm file. It doesn't go through tomcat at all.
>> https://server.domain.com/jsp/testSpring/testSpring.htm
>>
>> Not Found
>> The requested URL /jsp/testSpring/testSpring.htm was not found on this 
>> server.
>>
>> Would you be able to point me in the right direction? I searched
>> through some of the ssl config files, but I didn't find anything that
>> would prevent /jsp/**/*.htm requests from being sent to tomcat.
>>
>> Thanks,
>> aurir_
>>
>> On Fri, Mar 11, 2011 at 9:30 AM, Borut Hadžialić
>>  wrote:
>>> Do not put anything in $TOMCAT_HOME/conf/web.xml - leave that file as
>>> it is when you unpack a fresh Tomcat distribution.
>>>
>>> Why the servlet is not being loaded?  - not 100% about this, but I
>>> would first check if it is maybe being lazy loaded/initialized. After
>>> your tomcat starts up, try to browse http://localhost:8080/test.htm -
>>> that http request will be mapped to your spring servlet, and it will
>>> trigger the initialization of your spring servlet (if that was the
>>> problem in the first place, but i think it is).
>>>
>>> The exception you were getting meant that your DispatcherServlet
>>> couldn't find and load its configuration file at startup.
>>> A DispatcherServlet's configuration file is by default
>>> /WEB-INF/-servlet.xml'.  is 'spring' in
>>> your case - that is how you named it inside web.xml:
>>>
>>> 
>>>        spring
>>>     
>>> 
>>>
>>> So your DispatcherServlet instance that you named 'spring' tried to
>>> load the file /WEB-INF/spring-servlet.xml, which wasn't there and you
>>> got the exception:
>>> java.io.FileNotFoundException: Could not open ServletContext resource
>>> [/WEB-INF/spring-servlet.xml]
>>>
>>> Make sure you have 'spring' DispatcherServlet's configuration in a
>>> file /WEB-INF/spring-servlet.xml, or use some other file with
>>> configuration like this:
>>>
>>> 
>>>        spring
>>>        
>>>            org.springframework.web.servlet.DispatcherServlet
>>>        
>>>  
>>>    contextConfigLocation
>>>    /WEB-INF/foo/bar-servlet.xml
>>>  
>>>        1
>>>    
>>>
>>> On Fri, Mar 11, 2011 at 4:08 PM, Aureliusz R.  wrote:
>>>> Borut,
>>>>
>>>> your instructions were spot on. I was able to track down my docBase
>>>> folder (it was specified in $TOMCAT_HOME/conf/servlet.xml ,
>>>> and I verified that it's the correct location by adding some context
>>>> parameters to the web.xml in my docBase, and then retrieving them from
>>>> a JSP.
>>>>
>>>> Now I have another problem though. For some reason, my
>>>> DispatcherSetvlet (for the spring framework) is not being loaded at
>>>> all. I tried placing the piece of XML below in the
>>>> $TOMCAT_HOME/conf/web.xml and my docBase/WEB-INF/web.xml. I also
>>>> speci

Unable to unpack war under webapps

2014-05-06 Thread Rahul R
Hi

I have put ROOT.war under webapps folder of tomcat. When I start the
instance I am getting the below error on catalina.out.

INFO: Deploying web application archive /opt/tomcat-proxy/webapps/ROOT.war
May 06, 2014 6:28:22 PM org.apache.catalina.startup.ContextConfig
beforeStart
SEVERE: Exception fixing docBase for context [/ROOT]
java.io.IOException: Unable to create the directory
[/opt/tomcat-proxy/webapps/ROOT]

I am not sure why this is happening. Checked the permissions on webapps
folder as well as the war file. Its 755.

P.S: I am able to use jar to unpack it manually under webapps.

Any help would be much appreciated.


-- 
Thanks,
Regards,
Rahul R


Re: Unable to unpack war under webapps

2014-05-06 Thread Rahul R
Thanks Daniel.. That clue helped... tomcat was running as a different user
and I tried to start using root.


On Tue, May 6, 2014 at 7:38 PM, Daniel Mikusa  wrote:

> On May 6, 2014, at 9:25 AM, Rahul R  wrote:
>
> > Hi
> >
> > I have put ROOT.war under webapps folder of tomcat. When I start the
> > instance I am getting the below error on catalina.out.
> >
> > INFO: Deploying web application archive
> /opt/tomcat-proxy/webapps/ROOT.war
> > May 06, 2014 6:28:22 PM org.apache.catalina.startup.ContextConfig
> > beforeStart
> > SEVERE: Exception fixing docBase for context [/ROOT]
> > java.io.IOException: Unable to create the directory
> > [/opt/tomcat-proxy/webapps/ROOT]
> >
> > I am not sure why this is happening. Checked the permissions on webapps
> > folder as well as the war file. Its 755.
> >
> > P.S: I am able to use jar to unpack it manually under webapps.
>
> What about the owner of webapps?  Is that the same as the user you’re
> using to run Tomcat?  Can that user extract the files?
>
> Dan
>
> >
> > Any help would be much appreciated.
> >
> >
> > --
> > Thanks,
> > Regards,
> > Rahul R
>
>
> -----
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


CGI script to work on Tomcat

2014-06-20 Thread Rahul R
Hi

 I am trying to migrate something which was working under apache to tomcat.
I had an html form which takes user input values and pass those values and
executes some cgi scripts. But when I moved html and cgi under tomcat, the
html form is loading properly, but when I click submit, its giving 404
error for the cgi execution.

I have my html files under ROOT and cgi scripts under ROOT/WEB-INF/cgi
Tomcat Version: 7.0.54

And in my html form I have mentioned the cgi location as


I followed the steps mentioned in the below url.

http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html

I don't see anything in the catalina.out or any other logs. Kindly me help
to fix this issue.


-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
Thanks Mark for your suggestion. But by privileged, did you mean to add an
entry like below on context.xml?






On Fri, Jun 20, 2014 at 5:46 PM, Mark Thomas  wrote:

> On 20/06/2014 12:49, Rahul R wrote:
> > Hi
> >
> >  I am trying to migrate something which was working under apache to
> tomcat.
> > I had an html form which takes user input values and pass those values
> and
> > executes some cgi scripts. But when I moved html and cgi under tomcat,
> the
> > html form is loading properly, but when I click submit, its giving 404
> > error for the cgi execution.
> >
> > I have my html files under ROOT and cgi scripts under ROOT/WEB-INF/cgi
> > Tomcat Version: 7.0.54
> >
> > And in my html form I have mentioned the cgi location as
> > 
> >
> > I followed the steps mentioned in the below url.
> >
> >
> http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html
> >
> > I don't see anything in the catalina.out or any other logs. Kindly me
> help
> > to fix this issue.
>
> Try using the real Tomcat documentation rather than some random Google
> result that doesn't even bother to mention which version of Tomcat it
> was written for (hint: it wasn't written for Tomcat 7).
>
> Given how you have configured Tomcat, the behaviour you are seeing is
> exactly as expected. If you want your script to work with the minimum of
> changes you need to:
> - Make your web application privileged
> - Use 
>
> Mark
>
> -----
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
More info:

http://localhost:8180/toggle_read.html is html. But after using

in the html the url loading is http://localhost:8180/read_toggle.cgi and
again its giving 404 error. :(


On Fri, Jun 20, 2014 at 5:59 PM, Rahul R  wrote:

> Thanks Mark for your suggestion. But by privileged, did you mean to add an
> entry like below on context.xml?
>
> 
> 
>
>
>
> On Fri, Jun 20, 2014 at 5:46 PM, Mark Thomas  wrote:
>
>> On 20/06/2014 12:49, Rahul R wrote:
>> > Hi
>> >
>> >  I am trying to migrate something which was working under apache to
>> tomcat.
>> > I had an html form which takes user input values and pass those values
>> and
>> > executes some cgi scripts. But when I moved html and cgi under tomcat,
>> the
>> > html form is loading properly, but when I click submit, its giving 404
>> > error for the cgi execution.
>> >
>> > I have my html files under ROOT and cgi scripts under ROOT/WEB-INF/cgi
>> > Tomcat Version: 7.0.54
>> >
>> > And in my html form I have mentioned the cgi location as
>> > 
>> >
>> > I followed the steps mentioned in the below url.
>> >
>> >
>> http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html
>> >
>> > I don't see anything in the catalina.out or any other logs. Kindly me
>> help
>> > to fix this issue.
>>
>> Try using the real Tomcat documentation rather than some random Google
>> result that doesn't even bother to mention which version of Tomcat it
>> was written for (hint: it wasn't written for Tomcat 7).
>>
>> Given how you have configured Tomcat, the behaviour you are seeing is
>> exactly as expected. If you want your script to work with the minimum of
>> changes you need to:
>> - Make your web application privileged
>> - Use 
>>
>> Mark
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> Thanks,
> Regards,
> Rahul R
>
>   .~.
>   /V\
>  // \\
> /(   )\
>  ^`~'^
>
> Mob: 09008030921
>



-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
This is from my conf/web.xml

 
cgi

org.apache.catalina.servlets.CGIServlet

  debug
  0


  cgiPathPrefix
  WEB-INF/cgi


 passShellEnvironment
 true
 

  executable
  perl


 5




cgi
/cgi-bin/*



Please let me know what do you mean by privileged usage.


On Fri, Jun 20, 2014 at 6:17 PM, André Warnier  wrote:

> Rahul R wrote:
>
>> More info:
>>
>> http://localhost:8180/toggle_read.html is html. But after using
>> 
>> in the html the url loading is http://localhost:8180/read_toggle.cgi and
>> again its giving 404 error. :(
>>
>
> Are you listening to what you are told ?
> Did you read https://tomcat.apache.org/tomcat-7.0-doc/cgi-howto.html ?
> Did you understand it, and did you do all that is mentioned there ?
>
> To prove it, copy and paste here the content of your conf/web.xml file :
> -- start here --
>
>
> -- end here --
>
>
>
>>
>> On Fri, Jun 20, 2014 at 5:59 PM, Rahul R  wrote:
>>
>>  Thanks Mark for your suggestion. But by privileged, did you mean to add
>>> an
>>> entry like below on context.xml?
>>>
>>> 
>>> 
>>>
>>>
>>>
>>> On Fri, Jun 20, 2014 at 5:46 PM, Mark Thomas  wrote:
>>>
>>>  On 20/06/2014 12:49, Rahul R wrote:
>>>>
>>>>> Hi
>>>>>
>>>>>  I am trying to migrate something which was working under apache to
>>>>>
>>>> tomcat.
>>>>
>>>>> I had an html form which takes user input values and pass those values
>>>>>
>>>> and
>>>>
>>>>> executes some cgi scripts. But when I moved html and cgi under tomcat,
>>>>>
>>>> the
>>>>
>>>>> html form is loading properly, but when I click submit, its giving 404
>>>>> error for the cgi execution.
>>>>>
>>>>> I have my html files under ROOT and cgi scripts under ROOT/WEB-INF/cgi
>>>>> Tomcat Version: 7.0.54
>>>>>
>>>>> And in my html form I have mentioned the cgi location as
>>>>> 
>>>>>
>>>>> I followed the steps mentioned in the below url.
>>>>>
>>>>>
>>>>>  http://www.wellho.net/solutions/java-running-cgi-
>>>> scripts-in-apache-tomcat.html
>>>>
>>>>> I don't see anything in the catalina.out or any other logs. Kindly me
>>>>>
>>>> help
>>>>
>>>>> to fix this issue.
>>>>>
>>>> Try using the real Tomcat documentation rather than some random Google
>>>> result that doesn't even bother to mention which version of Tomcat it
>>>> was written for (hint: it wasn't written for Tomcat 7).
>>>>
>>>> Given how you have configured Tomcat, the behaviour you are seeing is
>>>> exactly as expected. If you want your script to work with the minimum of
>>>> changes you need to:
>>>> - Make your web application privileged
>>>> - Use 
>>>>
>>>> Mark
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>>
>>>>
>>>>
>>> --
>>> Thanks,
>>> Regards,
>>> Rahul R
>>>
>>>   .~.
>>>   /V\
>>>  // \\
>>> /(   )\
>>>  ^`~'^
>>>
>>> Mob: 09008030921
>>>
>>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Thanks,
Regards,
Rahul R

  .~.
  /V\
 // \\
/(   )\
 ^`~'^

Mob: 09008030921


Single Sign On Replication with New Tomcat Cluster Nodes

2014-12-04 Thread Aaron R
Hello,

I have a Tomcat cluster (7.0.42) that is configured to use the DeltaManager
for session replication. It also uses the ClusterSingleSignOn valve for SSO
and for propagating authentication to the other nodes in the cluster. If I
log into Tomcat1, the session state and the single sign on state are
successfully replicated to Tomcat2, so that when Tomcat1 goes down, the
load balancer switches me to Tomcat2, and I am still authenticated and am
able to access other applications on the server.

The problem I'm having is that if a new node (Tomcat3) is then brought up
after I have logged in, that new node does not appear to get any SSO state
replicated to it, as I get a 403 error when trying to access a different
application on the server. The regular session state is correctly
replicated to it, but I don't seem to have SSO authentication on this new
server.

Should this scenario work? Is it possible to get the single sign on state
propagated to nodes that come online after the user has logged in?

I see one instance of someone mentioning a similar issue in passing a while
back (
http://mail-archives.apache.org/mod_mbox/tomcat-users/200809.mbox/%3C15060d5e0809211745s522af93bv153367d9183c6e5e%40mail.gmail.com%3E),
but I didn't see any followup after that.

Thanks,
Aaron


Re: Single Sign On Replication with New Tomcat Cluster Nodes

2014-12-10 Thread Aaron R
Great, thanks for taking a look. I've submitted a bug report for
replicating the SingleSignOnEntry cache data here:
https://issues.apache.org/bugzilla/show_bug.cgi?id=57338

On Tue, Dec 9, 2014 at 9:23 PM, Keiichi Fujino  wrote:

> I examined the code of ClusterSingleSignOn.
> This behavior seems to be bug.
> There seems to be some other problems.
> a) When a new node is started, SingleSignOnEntry of cache is not
> replicated. (you mentioned.)
> b) ClusterSingleSignOn does not implement ClusterValve.
> c) Unsupported to BackupManager.
> d) There are no documents.
>
> In order to resolve this problem(a), it must be synchronized between
> cluster nodes cache of SingleSignOnEntry at startup.
> Please open a bug entry for a).
>
> 2014-12-05 3:35 GMT+09:00 Aaron R :
>
> > Hello,
> >
> > I have a Tomcat cluster (7.0.42) that is configured to use the
> DeltaManager
> > for session replication. It also uses the ClusterSingleSignOn valve for
> SSO
> > and for propagating authentication to the other nodes in the cluster. If
> I
> > log into Tomcat1, the session state and the single sign on state are
> > successfully replicated to Tomcat2, so that when Tomcat1 goes down, the
> > load balancer switches me to Tomcat2, and I am still authenticated and am
> > able to access other applications on the server.
> >
> > The problem I'm having is that if a new node (Tomcat3) is then brought up
> > after I have logged in, that new node does not appear to get any SSO
> state
> > replicated to it, as I get a 403 error when trying to access a different
> > application on the server. The regular session state is correctly
> > replicated to it, but I don't seem to have SSO authentication on this new
> > server.
> >
> > Should this scenario work? Is it possible to get the single sign on state
> > propagated to nodes that come online after the user has logged in?
> >
> > I see one instance of someone mentioning a similar issue in passing a
> while
> > back (
> >
> >
> http://mail-archives.apache.org/mod_mbox/tomcat-users/200809.mbox/%3C15060d5e0809211745s522af93bv153367d9183c6e5e%40mail.gmail.com%3E
> > ),
> > but I didn't see any followup after that.
> >
> > Thanks,
> > Aaron
> >
> > --
> > Keiichi.Fujino
> >
>


Help setting up sqlite data source

2015-02-24 Thread nandy r
Hello,
I wanted to setup tomcat+hibernate+JOTM+sqlite but could not find any 
information on sqlite setup.
I did read a document on setting up datasources and also one tomcat document 
relating to mysql, postgresql. 
It appears I need to supply a resource name, auth, factory, driver class and 
url, which could be:
resource name- any name I want to supply
auth-does this apply to sqlite
factory -whats the factory for sqlite???
driverclass-class of jdbc driver lib
url-connection string

So please let me know how to setup the sqlite database and if you have a 
working configuration that would be great!

TIA,
nandy



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



Re: Help setting up sqlite data source

2015-02-28 Thread nandy r
dear Dan
Thanks a ton for the detailed info I will try it out in a couple of days. This 
email had got into my spam folder and I had missed it till today

rgds,
nandy

On Wed, 2/25/15, Daniel Mikusa  wrote:

 Subject: Re: Help setting up sqlite data source
 To: "Tomcat Users List" 
 Date: Wednesday, February 25, 2015, 4:48 AM
 
 On Wed, Feb 25, 2015 at
 2:19 AM, nandy r 
 wrote:
 
 >
 Hello,
 > I wanted to setup
 tomcat+hibernate+JOTM+sqlite but could not find any
 > information on sqlite setup.
 > I did read a document on setting up
 datasources and also one tomcat
 >
 document relating to mysql, postgresql.
 >
 It appears I need to supply a resource name, auth, factory,
 driver class
 > and url, which could
 be:
 > resource name- any name I want to
 supply
 > auth-does this apply to
 sqlite
 >
 
 Set this to `Container`.
 
 
 > factory -whats the
 factory for sqlite???
 >
 
 Omit the `factory` attribute
 and you'll use the default.  It's almost
 certainly what you want.  The factory
 attribute is used to specify a
 different
 connection pool implementation.  Using the default is OK,
 unless
 you have a strong preference as to
 which implementation you use.
 
 
 > driverclass-class of jdbc
 driver lib
 >
 
 This needs to be the name of the JDBC Driver
 class that you'll use.   I
 haven't used SQLite so I can't say what
 it would be.  This is also one of
 the few
 properties that are specific to your database of choice.
 
 
 >
 url-connection string
 >
 
 This is the second commonly
 used property that will be specific to your
 database.  You'd need to look at the docs
 for the SQLite JDBC driver to see
 what the
 URL should look like.  Generally it'll start with
 "jdbc:...".
 
 
 >
 > So please let me know
 how to setup the sqlite database and if you have a
 > working configuration that would be
 great!
 >
 
 1.) Download your JDBC driver.  Put it into
 the "lib" directory of your
 Tomcat
 server.
 2.) Edit
 "conf/server.xml".  Locate the
  tag.  Add a
 new  within this block. [1]
 3.) Here's a minimal example, you just need
 to fill in the blanks.  For
 more options,
 see here [2].
 
 
 
 4.) Create a file in the
 `conf/Catalina/localhost/` directory with the same
 name as your application, but with the
 ".xml" extension.  For example, if
 my WAR file is called `superCoolApp.war`. 
 I'd create
 `conf/Catalina/localhost/superCoolApp.xml`. 
 This will store configuration
 specific to
 your app.  In that file, add the following. [3]
 
 
     
 
 
 This configuration will tell Tomcat that your
 app is allowed to use the
 global Resource we
 defined above.
 
 5.) Restart
 your Tomcat server.  This will pick up the changes in
 "conf/server.xml".
 
 6.) In your application, use
 JNDI to retrieve a connect.  Example of this
 here [4].
 
 You
 should also check out the docs here.  While they're not
 specific to
 your database, much of the
 information is still valid.  Sections like the
 "Preventing database connection pool
 leaks", "Common Problems" and the code
 samples for accessing a db connection are not
 DB specific.
 
 Dan
 
 Alternatively, you can skip
 steps #2 & #3 above and just put the
  tag directly into the
 `conf/Catalina/localhost` 
 block, in place of the 
 tag.  I prefer the steps above which
 create
 a global, shared resource.  This alternative creates a pool
 specific
 to your app.
 
 [1] -
 
http://tomcat.apache.org/tomcat-8.0-doc/jndi-resources-howto.html#Global_configuration
 [2] - http://commons.apache.org/proper/commons-dbcp/configuration.html
 [3] -
 http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Resource_Links
 [4] -
 
http://tomcat.apache.org/tomcat-8.0-doc/jndi-resources-howto.html#Using_resources
 [5] -
 http://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html
 
 
 > TIA,
 >
 nandy
 >
 >
 >
 >
 -
 > 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



Error:Could not load [sun.rmi.transport.ObjectTable]

2015-03-15 Thread nandy r
Hello, I am trying to setup tomcat+jotm+sqlite and I get this exception stack:
java.lang.IllegalStateException: Illegal access: this web application instance 
has been stopped already. Could not load [sun.rmi.transport.ObjectTable]. The 
following stack trace is thrown for debugging purposes as well as to attempt to 
terminate the thread which caused the illegal access.
    at 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1327)
    at 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1313)
    at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1196)
    at 
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
    at 
org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.unexportObject(JUnicastRemoteObject.java:138)
    at 
org.objectweb.carol.rmi.multi.JrmpPRODelegate.unexportObject(JrmpPRODelegate.java:107)
    at 
org.objectweb.carol.rmi.multi.MultiPRODelegate.unexportObject(MultiPRODelegate.java:107)
    at 
javax.rmi.PortableRemoteObject.unexportObject(PortableRemoteObject.java:132)
    at 
org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.java:1584)
    at org.objectweb.jotm.SubCoordinator.doRollback(SubCoordinator.java:1370)
    at org.objectweb.jotm.SubCoordinator.rollback(SubCoordinator.java:330)
    at org.objectweb.jotm.TransactionImpl.rollback(TransactionImpl.java:668)
    at org.objectweb.jotm.Current.rollback(Current.java:538) 

This seems more a java rmi issue although I am not sure. I googled but could 
not find anything of
interest so any help much appreciated.


nandy

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



Re: Error:Could not load [sun.rmi.transport.ObjectTable]

2015-03-16 Thread nandy r
I decided to startup tomcat and check the first request -since the problem 
seems to be with
references from a previous load. I got this exception:
java.lang.NoSuchMethodError: 
sun.rmi.transport.ObjectTable.getStub(Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub;

org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.unexportObject(JUnicastRemoteObject.java:138)

org.objectweb.carol.rmi.multi.JrmpPRODelegate.unexportObject(JrmpPRODelegate.java:107)

org.objectweb.carol.rmi.multi.MultiPRODelegate.unexportObject(MultiPRODelegate.java:107)

javax.rmi.PortableRemoteObject.unexportObject(PortableRemoteObject.java:132)

org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.java:1584)
org.objectweb.jotm.SubCoordinator.doRollback(SubCoordinator.java:1370)
org.objectweb.jotm.SubCoordinator.rollback(SubCoordinator.java:330)
org.objectweb.jotm.TransactionImpl.rollback(TransactionImpl.java:668)
org.objectweb.jotm.Current.rollback(Current.java:538)

On Mon, 3/16/15, Mark Thomas  wrote:

 Subject: Re: Error:Could not load [sun.rmi.transport.ObjectTable]
 To: "Tomcat Users List" 
 Date: Monday, March 16, 2015, 2:31 AM
 
 On 16/03/2015 02:55,
 nandy r wrote:
 > Hello, I am trying to
 setup tomcat+jotm+sqlite and I get this exception stack:
 > java.lang.IllegalStateException: Illegal
 access: this web application instance has been stopped
 already.
 
 
 
 > This seems more a java rmi issue although
 I am not sure. I googled but could not find anything of
 > interest so any help much
 appreciated.
 
 The root
 cause looks pretty obvious. You are trying to use a web
 application that has already been stopped. It
 is possible you have some
 sort of memory
 leak. This should help you track that down:
 
 
http://people.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf
 
 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



JDBC Connection pooling

2016-01-22 Thread R. Sriram

Hello I am trying to establish connection pooling.
Should I be using dbcp?


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



Re: [SECURITY] CVE-2016-6797 Apache Tomcat Unrestricted Access to Global Resources

2016-11-01 Thread R Paul
Hi Mark
met you at pivotal...in toronto..
i have been watching these forums for some time..and just seeing the
quantity of emails
are these people experiencing a normal number of issues with gettting
tomacat to work with their software? Can you catergorize some of those
issues to me..as student studying security i am curious...
richard


On Thu, Oct 27, 2016 at 8:17 AM, Mark Thomas  wrote:

> CVE-2016-6797 Apache Tomcat Unrestricted Access to Global Resources
>
> Severity: Low
>
> Vendor: The Apache Software Foundation
>
> Versions Affected:
> Apache Tomcat 9.0.0.M1 to 9.0.0.M9
> Apache Tomcat 8.5.0 to 8.5.4
> Apache Tomcat 8.0.0.RC1 to 8.0.36
> Apache Tomcat 7.0.0 to 7.0.70
> Apache Tomcat 6.0.0 to 6.0.45
> Earlier, unsupported versions may also be affected.
>
> Description
> The ResourceLinkFactory did not limit web application access to global
> JNDI resources to those resources explicitly linked to the web
> application. Therefore, it was possible for a web application to access
> any global JNDI resource whether an explicit ResourceLink had been
> configured or not.
>
> Mitigation
> Users of affected versions should apply one of the following mitigations
> - Upgrade to Apache Tomcat 9.0.0.M10 or later
> - Upgrade to Apache Tomcat 8.5.5 or later
> - Upgrade to Apache Tomcat 8.0.37 or later
> - Upgrade to Apache Tomcat 7.0.72 or later
>   (Apache Tomcat 7.0.71 has the fix but was not released)
> - Upgrade to Apache Tomcat 6.0.47 or later
>   (Apache Tomcat 6.0.46 has the fix but was not released)
>
> Credit:
> This issue was discovered by the Apache Tomcat Security Team.
>
> References:
> [1] http://tomcat.apache.org/security-9.html
> [2] http://tomcat.apache.org/security-8.html
> [3] http://tomcat.apache.org/security-7.html
> [4] http://tomcat.apache.org/security-6.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: [SECURITY] CVE-2016-6797 Apache Tomcat Unrestricted Access to Global Resources

2016-11-01 Thread R Paul
Excellent mark..thankyou..i am just trying to learn as much as i can and
that gives me so good data to evaluate paths of understanding...
look forward to communicating again..
rich

On Tue, Nov 1, 2016 at 4:30 PM, Mark Thomas  wrote:

> On 01/11/2016 19:56, R Paul wrote:
> > Hi Mark
> > met you at pivotal...in toronto..
> > i have been watching these forums for some time..and just seeing the
> > quantity of emails
> > are these people experiencing a normal number of issues with gettting
> > tomcat to work with their software?
>
> I think what you see on the users list is fairly typical. Only a
> minority of the issues are actually bugs. Most questions are usage /
> configuration questions or are really application issues. You'll see a
> similar pattern on Stack Overflow.
>
> > Can you catergorize some of those
> > issues to me..as student studying security i am curious...
>
> There are lots of different ways you could categorize the questions. By
> Tomcat component, by root cause, by experience level of user...
>
> The classification I care most about is bug / non-bug and the metric I
> care most about is open bugs (excluding enhancement requests). That
> currently sits around 10 and those are nearly all waiting for more info
> from the reporter before we can fix it. Overall, I'm proud of the fact
> that Tomcat is very stable and that reported bugs get fixed quickly -
> typically a release with a fix is available within a month.
>
> Mark
>
>
> > richard
> >
> >
> > On Thu, Oct 27, 2016 at 8:17 AM, Mark Thomas  wrote:
> >
> >> CVE-2016-6797 Apache Tomcat Unrestricted Access to Global Resources
> >>
> >> Severity: Low
> >>
> >> Vendor: The Apache Software Foundation
> >>
> >> Versions Affected:
> >> Apache Tomcat 9.0.0.M1 to 9.0.0.M9
> >> Apache Tomcat 8.5.0 to 8.5.4
> >> Apache Tomcat 8.0.0.RC1 to 8.0.36
> >> Apache Tomcat 7.0.0 to 7.0.70
> >> Apache Tomcat 6.0.0 to 6.0.45
> >> Earlier, unsupported versions may also be affected.
> >>
> >> Description
> >> The ResourceLinkFactory did not limit web application access to global
> >> JNDI resources to those resources explicitly linked to the web
> >> application. Therefore, it was possible for a web application to access
> >> any global JNDI resource whether an explicit ResourceLink had been
> >> configured or not.
> >>
> >> Mitigation
> >> Users of affected versions should apply one of the following mitigations
> >> - Upgrade to Apache Tomcat 9.0.0.M10 or later
> >> - Upgrade to Apache Tomcat 8.5.5 or later
> >> - Upgrade to Apache Tomcat 8.0.37 or later
> >> - Upgrade to Apache Tomcat 7.0.72 or later
> >>   (Apache Tomcat 7.0.71 has the fix but was not released)
> >> - Upgrade to Apache Tomcat 6.0.47 or later
> >>   (Apache Tomcat 6.0.46 has the fix but was not released)
> >>
> >> Credit:
> >> This issue was discovered by the Apache Tomcat Security Team.
> >>
> >> References:
> >> [1] http://tomcat.apache.org/security-9.html
> >> [2] http://tomcat.apache.org/security-8.html
> >> [3] http://tomcat.apache.org/security-7.html
> >> [4] http://tomcat.apache.org/security-6.html
> >>
> >> -
> >> 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
>
>


debian 9 and tomcat 8 error at startup

2017-09-25 Thread r . bottoni

Hi,
i have installed tomcat 8 on a Debian server using aptitude command.
but when tomcat starts, I get this strange error :


26-Sep-2017 07:47:14.613 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version:
Apache Tomcat/8.5.14 (Debian)
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server built:  
Sep 3 2017 17:51:58 UTC
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server number: 
8.5.14.0
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Name:   
Linux
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
4.9.0-3-amd64
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Architecture:  
amd64
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Java Home: 
/usr/lib/jvm/java-8-oracle/jre
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:   
1.8.0_144-b01
26-Sep-2017 07:47:14.614 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
Oracle Corporation
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: 
/var/lib/tomcat8
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: 
/usr/share/tomcat8
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: 
-Djava.util.logging.config.file=/var/lib/tomcat8/conf/logging.properties
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Djava.awt.headless=true
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -XX:+UseConcMarkSweepGC
26-Sep-2017 07:47:14.615 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Djdk.tls.ephemeralDHKeySize=2048
26-Sep-2017 07:47:14.616 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
26-Sep-2017 07:47:14.616 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Dcatalina.base=/var/lib/tomcat8
26-Sep-2017 07:47:14.616 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Dcatalina.home=/usr/share/tomcat8
26-Sep-2017 07:47:14.616 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Command line 
argument: -Djava.io.tmpdir=/tmp/tomcat8-tomcat8-tmp
26-Sep-2017 07:47:14.616 INFO [main] 
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR 
based Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
26-Sep-2017 07:47:14.764 INFO [main] 
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler 
["http-nio-8080"]
26-Sep-2017 07:47:14.789 INFO [main] 
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a 
shared selector for servlet write/read
26-Sep-2017 07:47:14.791 INFO [main] 
org.apache.catalina.startup.Catalina.load Initialization processed in 
684 ms
26-Sep-2017 07:47:14.826 INFO [main] 
org.apache.catalina.core.StandardService.startInternal Starting service 
Catalina
26-Sep-2017 07:47:14.826 INFO [main] 
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet 
Engine: Apache Tomcat/8.5.14 (Debian)
26-Sep-2017 07:47:14.843 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory /var/lib/tomcat8/webapps/ROOT
26-Sep-2017 07:47:15.141 WARNING [localhost-startStop-1] 
org.apache.tomcat.util.scan.StandardJarScanner.scan Failed to scan 
[file:/usr/share/java/el-api-3.0.jar] from classloader hierarchy
 java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such 
file or directory)

at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.jar.JarFile.(JarFile.java:166)
at java.util.jar.JarFile.(JarFile.java:130)
	at 
org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:60)
	at 
org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49)
	at 
org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:338)
	at 
org.apache.tomcat.util.scan.StandardJarSc

Intermittently a Tomcat’s 7's response loses all (non-Coyote-added) headers

2018-05-03 Thread R Mundell
Attention Tomcat developers who know how the Coyote bit of Tomcat works… I’ve 
got a tricky one for you! :-)

We’re struggling with a puzzling problem where intermittently, calls to a 
servlet are delivered back to the client with all of the headers missing except 
the ones that Coyote adds.

In roughly 9,999 out of 10,000 attempts the response returns correctly (which 
includes a number of headers which are added by filters, a body response which 
is gzipped by the servlet and a “Content-Encoding” header which indicates it’s 
gzipped, and the correct “Content-Length” header).

But, intermittently, approximately 1 time out of 10,000 requests, the response 
back to the client contains only 3 headers: “Date”, “Server”, and a 
“Transfer-Encoding” header set to “chunked” (even though the response body is 
not chunked). The result of this is that the gzipped body is presented back to 
the client with the “Content-Encoding” header missing so it’s rendered 
unreadable by the browser, and all of the other headers are missing. (We’ve 
determined this by being able to capture a couple of instances of this issue in 
Fiddler).

Looking at the Coyote source code it would appear that if the “Content-Length” 
header isn’t presented to Coyote from the upstream handling of the filters and 
servlet then it’ll default to a chunked encoding, which explains why the 
response is getting chunked!

So, basically - the filters run without error, the servlet runs without error, 
but the when the response is received back into Coyote’s 
AbstractHttp11Processor.process() method, the headers have disappeared!

Annoyingly we can’t find a recreatable test case, but anecdotally it’s when the 
server is heavily loaded, but there are still plenty of pooled workers 
available, and plenty of memory. This is a very high volume server (probably 
millions of requests a day) so adding verbose logging within Coyote isn’t a 
realistic option.

I don’t believe it’s actually possible for the filters or the servlet to remove 
headers even if they want to (they don’t appear to have any access to the 
MimeHeaders of the Coyote “Response” object, and the HttpServletResponse object 
doesn’t have any methods which allow header removal).

The only clue we have is occasionally we see “INFO: Encountered a non-recycled 
response and recycled it forcedly.” in the logs, but these errors are 
infrequent compared to the number of instances of the problem, and the 
timestamps of these errors don’t correspond to when users have reported the 
error.

My best guess would be somehow the Coyote “Request” object is accidentally 
accessed by two threads concurrently to service two requests, and one request 
is calling the Request.recycle() (which is calling headers.recycle() which 
removes all of the headers) but I’m struggling to see how that could happen. 
Note we are not using async servlets.

I appreciate 7.0.72 isn’t the very latest and greatest version but I can’t find 
anything in the change log for later 7.x, 8.x, 8.5.x or 9.x releases which 
indicate this is a known issue or resolved.

Any ideas about how to further diagnose this would be very gratefully received. 
Otherwise our next step is to blindly update to later versions and just hope it 
goes away.

Thanks,

Richard


error 0 issue

2019-06-24 Thread Kumar R
Hi Team,
I am facing server 0 issue while starting tomcat 5 service after increase
the heap size from 1024 to 2048.

Server:-
Windows 32
Jre:-
1.5.0_15-h04, mixed mode sharing
Tomcat:-
5.5
Error:-
Jakarta log:- create JavaVM failed, failed initializing java.
Event log:-
The Apache Tomcat service terminated with services-specific error 0(0x0)
Thanks
Rajib


Re: error 0 issue

2019-06-24 Thread Kumar R
Hi,
Thanks for the help.
Thanks & Regards
Rajib

On Tue, Jun 25, 2019, 1:14 AM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
>
> Am 24. Juni 2019 21:23:24 MESZ schrieb Kumar R :
> >Hi Team,
> >I am facing server 0 issue while starting tomcat 5 service after
> >increase
> >the heap size from 1024 to 2048.
> >
> >Server:-
> >Windows 32
> >Jre:-
> >1.5.0_15-h04, mixed mode sharing
>
> The 32 bit version of Java under windows can't use more than about 1.5 GB
> of ram.
>
> Note that the versions of Java and tomcat are way out of date. Please do
> yourself a favor and update them.
>
> Felix
>
>
> >Tomcat:-
> >5.5
> >Error:-
> >Jakarta log:- create JavaVM failed, failed initializing java.
> >Event log:-
> >The Apache Tomcat service terminated with services-specific error
> >0(0x0)
> >Thanks
> >Rajib
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: error 0 issue

2019-06-26 Thread Kumar R
Hi Team,
Is it possible to go for higher version of JDK(64 bit) and Tomcat(64bit) on
32 bit window 2003 architecture.
If so, kindly let me know the possible difficulties.
Thanks
Rajib

On Tue, Jun 25, 2019, 1:17 AM Kumar R  wrote:

> Hi,
> Thanks for the help.
> Thanks & Regards
> Rajib
>
> On Tue, Jun 25, 2019, 1:14 AM Felix Schumacher <
> felix.schumac...@internetallee.de> wrote:
>
>>
>>
>> Am 24. Juni 2019 21:23:24 MESZ schrieb Kumar R :
>> >Hi Team,
>> >I am facing server 0 issue while starting tomcat 5 service after
>> >increase
>> >the heap size from 1024 to 2048.
>> >
>> >Server:-
>> >Windows 32
>> >Jre:-
>> >1.5.0_15-h04, mixed mode sharing
>>
>> The 32 bit version of Java under windows can't use more than about 1.5 GB
>> of ram.
>>
>> Note that the versions of Java and tomcat are way out of date. Please do
>> yourself a favor and update them.
>>
>> Felix
>>
>>
>> >Tomcat:-
>> >5.5
>> >Error:-
>> >Jakarta log:- create JavaVM failed, failed initializing java.
>> >Event log:-
>> >The Apache Tomcat service terminated with services-specific error
>> >0(0x0)
>> >Thanks
>> >Rajib
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>


Re: error 0 issue

2019-06-26 Thread Kumar R
Hi,
Thanks for your help.
Thanks
Rajib

On Wed, Jun 26, 2019, 10:56 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> John,
>
> On 6/26/19 13:18, John Larsen wrote:
> > Why windows - especially from 2003. If app is in java you'll get
> > huge performance boost moving to linux.
>
> [Citation Needed]
>
> - -chris
>
> > On Wed, Jun 26, 2019 at 11:11 AM Kumar R 
> > wrote:
> >
> >> Hi Team, Is it possible to go for higher version of JDK(64 bit)
> >> and Tomcat(64bit) on 32 bit window 2003 architecture. If so,
> >> kindly let me know the possible difficulties. Thanks Rajib
> >>
> >> On Tue, Jun 25, 2019, 1:17 AM Kumar R 
> >> wrote:
> >>
> >>> Hi, Thanks for the help. Thanks & Regards Rajib
> >>>
> >>> On Tue, Jun 25, 2019, 1:14 AM Felix Schumacher <
> >>> felix.schumac...@internetallee.de> wrote:
> >>>
> >>>>
> >>>>
> >>>> Am 24. Juni 2019 21:23:24 MESZ schrieb Kumar R
> >>>> :
> >>>>> Hi Team, I am facing server 0 issue while starting tomcat 5
> >>>>> service after increase the heap size from 1024 to 2048.
> >>>>>
> >>>>> Server:- Windows 32 Jre:- 1.5.0_15-h04, mixed mode sharing
> >>>>
> >>>> The 32 bit version of Java under windows can't use more than
> >>>> about 1.5
> >> GB
> >>>> of ram.
> >>>>
> >>>> Note that the versions of Java and tomcat are way out of
> >>>> date. Please do yourself a favor and update them.
> >>>>
> >>>> Felix
> >>>>
> >>>>
> >>>>> Tomcat:- 5.5 Error:- Jakarta log:- create JavaVM failed,
> >>>>> failed initializing java. Event log:- The Apache Tomcat
> >>>>> service terminated with services-specific error 0(0x0)
> >>>>> Thanks Rajib
> >>>>
> >>>> ---
> - --
> >>>>
> >>>>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >>>> For additional commands, e-mail:
> >>>> users-h...@tomcat.apache.org
> >>>>
> >>>>
> >>
> >
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl0Tqq8ACgkQHPApP6U8
> pFgz1xAAoUIZqeeLFRjApi2WXdmOCOugEQ9mA0ZODdQ5ZxeoU0kvavPLWknlqgdK
> aPxY3fO2mggEyLbD6603KkY/OeuFBMteZLnTSCNKDUh8m6LYg32r0BaL0HH9nhr6
> X7v8ra/EUpfnNNqR1y8sFz5M/CFCBy3tXYvTZNNMF99tGNaWNw4/GpoTb/thlYr/
> 3nZLa16++maZOkC8WGAoP6wZWVTWTnAwiPf1OrjK0znAmuaNOHi2y/Wifcq8h43b
> u/NwJwR0QdimYRcVLv1i4f47n1keK2TAAgFI8fcks+2XFsXK4N1j1Keyy2n3/bG1
> ZmJNd3nH37wA/TzmurJknmT/q1hkOu8kc+0CDD9VWVv1+By46CRMr75fiBjbvIfk
> 5Ar1MUuPWttMqbb5rjB3Vl9+KQx3YiujPvcgcMqxHYtKZ2qu5dir0ez2+ipOAlN5
> IdZfkmBEdXGEPbm6IwV5LJ3OcT7GWM2/8qHslZSEismGyHUzqnmFwu2D8zo3o3Nb
> ot0tEdvmLhegNfoPuwKdJ+mLJUfvjUcPTdeJfIkAq1bKbmr/pRpXOXn51b4fk71Q
> /xzH4vKs+ikl0SNyukF2825CgVCgA2PsB0Ed4X6aFB9m8gOfMc6lEra0FCzACtc6
> BICYcg8iyc7PHqEfAfLWh7HYVmWWaqxaJL6DagPBqKGeFdog6eU=
> =ZnUP
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: error 0 issue

2019-06-26 Thread Kumar R
Hi,
Thanks for your reply...!
As the application is available for users, also cost is involved for new
Linux VM.

Is it possible with existing window VM 32 bit.

Thanks
Rajib

On Wed, Jun 26, 2019, 10:49 PM John Larsen  wrote:

> Why windows - especially from 2003. If app is in java you'll get huge
> performance boost moving to linux.
>
> John Larsen
>
>
> On Wed, Jun 26, 2019 at 11:11 AM Kumar R  wrote:
>
> > Hi Team,
> > Is it possible to go for higher version of JDK(64 bit) and Tomcat(64bit)
> on
> > 32 bit window 2003 architecture.
> > If so, kindly let me know the possible difficulties.
> > Thanks
> > Rajib
> >
> > On Tue, Jun 25, 2019, 1:17 AM Kumar R  wrote:
> >
> > > Hi,
> > > Thanks for the help.
> > > Thanks & Regards
> > > Rajib
> > >
> > > On Tue, Jun 25, 2019, 1:14 AM Felix Schumacher <
> > > felix.schumac...@internetallee.de> wrote:
> > >
> > >>
> > >>
> > >> Am 24. Juni 2019 21:23:24 MESZ schrieb Kumar R  >:
> > >> >Hi Team,
> > >> >I am facing server 0 issue while starting tomcat 5 service after
> > >> >increase
> > >> >the heap size from 1024 to 2048.
> > >> >
> > >> >Server:-
> > >> >Windows 32
> > >> >Jre:-
> > >> >1.5.0_15-h04, mixed mode sharing
> > >>
> > >> The 32 bit version of Java under windows can't use more than about 1.5
> > GB
> > >> of ram.
> > >>
> > >> Note that the versions of Java and tomcat are way out of date. Please
> do
> > >> yourself a favor and update them.
> > >>
> > >> Felix
> > >>
> > >>
> > >> >Tomcat:-
> > >> >5.5
> > >> >Error:-
> > >> >Jakarta log:- create JavaVM failed, failed initializing java.
> > >> >Event log:-
> > >> >The Apache Tomcat service terminated with services-specific error
> > >> >0(0x0)
> > >> >Thanks
> > >> >Rajib
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > >> For additional commands, e-mail: users-h...@tomcat.apache.org
> > >>
> > >>
> >
>


Re: Tomcat Clustering Roadmap And Max Node Limit

2025-04-03 Thread r . barclay
Hi Tim,

If you have an HTTP load balancer that supports "sticky sessions", you can have 
a cluster of as many Tomcat instances as you like as backend, without having to 
rely on any clustering feature of Tomcat.

Yours,
Reg


> Gesendet: Freitag, den 04.04.2025 um 02:57 Uhr
> Von: "Tim N" 
> An: "Tomcat Users List" 
> Betreff: Tomcat Clustering Roadmap And Max Node Limit
> 
> For a long time up to the latest version 11 documentation, there has been a
> recommended maximum limit of 4 nodes per cluster.
> 
> https://tomcat.apache.org/tomcat-11.0-doc/cluster-howto.html
> "This works great for smaller clusters, but we don't recommend it for
> larger clusters — more than 4 nodes or so."
> 
> Are there any plans to improve this?
> 
> It's a pity to have to change the architecture when going from, say, 3
> notes to 8 by introducing farms. What is the next simplest free cluster to
> move to? Redis? Any idea how cluster farming compares with redis?
> 
> What other options are there?

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



Troubleshoot with registered libraries after startup

2021-04-27 Thread Glorius, R. (RPD)
Hello,

I've got a question for a troubleshoot with my Tomcat (10.0.5):

My war-file contains liblaries like Jersey and Jackson in the latest version 
for a JSON-REST API.

After Deployment my Tomcat starts very well without some Exceptions oder 
Failures inside logging. That's fine.
My REST-Service is also working.

But random the registered JSON-Converter/Formatter (JacksonFeature) don't 
works. It seems that the feature hasn't registered by loading the war-file 
inside the Webapps-folder. After multiple redeploy or stop/start actions the 
JSON-Converter from the same war-file works as expected.

Is this a known bug on the latest tomcat version?
Best regards,
Robert Glorius



AW: Troubleshoot with registered libraries after startup

2021-04-27 Thread Glorius, R. (RPD)
I've also tried to put it in the webapps-javaee directory. The convertion 
works, but same problem on converter-handling.

It feels like a random thing on startup the war file. Because after multiple 
cleanup and restart with exactly the "same" war-file it sometimes works.

Is it possibel that a wrong order in the classpath structure is the problem 
(non fixed - only lib-folder is added in javac ant generation file)?
Does the tomcat have an internal priority handling for the referenced libraries 
inside the war? 

Robert

-Ursprüngliche Nachricht-
Von: Mark Thomas  
Gesendet: Dienstag, 27. April 2021 10:24
An: users@tomcat.apache.org
Betreff: Re: Troubleshoot with registered libraries after startup

Have you converted the WAR file for Jakarta EE? If not, put it in the 
webapps-javaee directory rather than webapps and Tomcat will convert your WAR 
file for you.

Mark


On 27/04/2021 09:12, Glorius, R. (RPD) wrote:
> Hello,
> 
> I've got a question for a troubleshoot with my Tomcat (10.0.5):
> 
> My war-file contains liblaries like Jersey and Jackson in the latest version 
> for a JSON-REST API.
> 
> After Deployment my Tomcat starts very well without some Exceptions oder 
> Failures inside logging. That's fine.
> My REST-Service is also working.
> 
> But random the registered JSON-Converter/Formatter (JacksonFeature) don't 
> works. It seems that the feature hasn't registered by loading the war-file 
> inside the Webapps-folder. After multiple redeploy or stop/start actions the 
> JSON-Converter from the same war-file works as expected.
> 
> Is this a known bug on the latest tomcat version?
> Best regards,
> Robert Glorius
> 
> 


-
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



  1   2   3   4   5   6   7   8   9   10   >