RE: --add-opens gives me unknown module

2023-03-10 Thread Neil Aggarwal
I have a lot of dependencies.

I guess I am going to have to start a test project and them to it
one at a time.



Thank you,

  Neil



--

Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com

We offer 30 year loans on single family houses!


--add-opens gives me unknown module

2023-03-09 Thread Neil Aggarwal
Hey everyone:



I am trying to deploy a Spring Boot 3.0.4 application to a Tomcat 10.1.7

server.  The machine has java 17 installed.



When I try to loan tomcat, it gives me this error:

java.lang.reflect.InaccessibleObjectException: Unable to make field private
static final java.lang.reflect.Method jdk.proxy3.$Proxy74.m0 accessible:
module jdk.proxy3 does not "opens jdk.proxy3" to unnamed module @14022c95



It seems strange to me the module can’t pen itself.  But, I added these
lines in setenv.sh to
try to work around it:

JAVA_OPTS="$JAVA_OPTS --add-opens jdk.proxy3/jdk.proxy3=ALL-UNNAMED"

export JAVA_OPTS



But, now, when I run tomcat, I get this:

WARNING: Unknown module: jdk.proxy3 specified to --add-opens



And I still get the exception.



Any ideas what I need to do here?



Thank you,

  Neil



--

Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com

We offer 30 year loans on single family houses!


RE: Compatibility, 32 bit ..

2022-10-24 Thread Neil Aggarwal
I use AlmaLinux.  I like it for servers.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

-Original Message-
From: John Dale (DB2DOM) [mailto:jcdw...@gmail.com]
Sent: Monday, October 24, 2022 2:04 PM
To: Tomcat Users List
Subject: Re: Compatibility, 32 bit ..

Mark and Chris - do you guys have a favorite flavor of Linux that has
yielded good results?

Anyone else?

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



RE: Slow startup first time after reboot

2022-09-28 Thread Neil Aggarwal
> Sadly, that line doesn't appear either with or without the
> java.security.egd option.

OK, well, at least we diagnosed it is not that problem.
I hope you are able to find a solution.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Slow startup first time after reboot

2022-09-27 Thread Neil Aggarwal
> Are there perhaps
> some log levels I could change that would provide more detailed
> information about what step it's hung up on for loading these web apps?

I just tested this on a dev sever.
I removed the java.security.egd option and rebooted my server.

Once I waited for Tomcat to finish starting up, catalina.out had this line:
WARNING [main]
org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation
of SecureRandom instance for session ID generation using [SHA1PRNG] took
[222,741] milliseconds.

Check if your log has something similar.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Slow startup first time after reboot

2022-09-27 Thread Neil Aggarwal
Is this related to the random number generator?

Take a look at this:
https://docs.oracle.com/cd/E13209_01/wlcp/wlss30/configwlss/jvmrand.html

I read somewhere to use this so I put in in my JVM args:
-Djava.security.egd=file:/dev/./urandom

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

-Original Message-
From: Jerry Malcolm [mailto:techst...@malcolms.com]
Sent: Tuesday, September 27, 2022 4:43 PM
To: users@tomcat.apache.org
Subject: Slow startup first time after reboot

I'm running Tomcat 9.0.56 in a production environment on AWS Linux2.  My
environment is 4 virtual hosts with about 9-10 web applications on
each.  The web apps are already expanded in the webapps folder.  So
there are no war file expansions involved. The first time after I reboot
the server each web app takes ~15-20 seconds to start up which is an
eternity to get the full Tomcat up.  But if I stop TC and restart it,
everything starts up in just a few seconds.  This same situation happens
on my local windows development machine with eclipse.  After starting
eclipse, the first TC start I watch the stdout log creep along saying it
loaded webapp xyz in 18 seconds... then loads the next web app in 16
seconds, etc.  But if I stop TC and restart, immediate quick load.  No
errors or anything.  No messages about taglib searches that I've seen.
Simply starting a web app msg, wait 18 seconds completed.   It's now
gotten so bad in production TC taking so long to start that the heath
checks are failing, terminating the server, spinning up a new one, and
the process repeats again.

Any ideas what might be causing this?

Thanks.

Jerry



-
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: Rename version 10.1 to 11

2022-03-14 Thread Neil Aggarwal
> Christopher Schultz wrote:
> So we're sorry if our decisions about the version numbering scheme are
> disturbing you.

Just to add another data point:
I don’t care about the numbering scheme as long as the code does what
I need it to do.  Tomcat works for me and does it very well.

I have to believe there are many other users that feel the same way.

Tomcat is a great product with amazing support from *volunteers*
who choose to spend them time helping others.  Thank you to all for that.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



Re: is too quick to respond

2022-02-20 Thread Neil Aggarwal
I think it's a bad idea to design a solution based on the file type.  A
webapp can contain all kinds of files.

On Sun, Feb 20, 2022, 12:16 PM Simon Matter  wrote:

>
> I may be wrong but I thought .war files are zip files. Wouldn't it be
> possible to just wait until the file has a consistent content and then
> extract it?
>


RE: is too quick to respond

2022-02-20 Thread Neil Aggarwal
> as what was mentioned earlier, different OS(s) may handle this
> differently, but the
> JAVA NIO API watchevents point you in the right direction in watching a
> file/folder
> in a loop for a "create" or "modify" or "delete" event to occur and fire
> off.

That is a very good point.  Using an event driven system is a much better
approach
than polling.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: is too quick to respond

2022-02-19 Thread Neil Aggarwal
John:

> If anyone has a moment, can you have a quick look and see if what I am
> proposing seems acceptable.

Thinking about when a large file (Such as a war file) is being uploaded
to the server, we don't want Tomcat to reload it until after the file has
completed upload and is fully formed.

How does Tomcat test if a file has been updated?
I assume it uses File.lastModified() or something similar.

Does anyone know the detailed nuts and bolts of how that works?
Does last modified keep changing as the file is uploading or is it just
changed at the start of the upload?  Is the behavior the same or different
across platforms?

These questions should be taken into account when designing the solution.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Can't stop tomcat - connection refused

2022-02-16 Thread Neil Aggarwal
Glad you figured it out!

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Can't stop tomcat - connection refused

2022-02-15 Thread Neil Aggarwal
Looks like tomcat is dying or getting killed.
That is strange.  I am running tomcat on a VPS with no problems.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Can't stop tomcat - connection refused

2022-02-15 Thread Neil Aggarwal
Use something like lynx or curl from the command line to
try to connect to the Tomcat instance.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Can't stop tomcat - connection refused

2022-02-15 Thread Neil Aggarwal
Maybe better to back up one more step:

Are you sure Tomcat started up correctly?

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Can't stop tomcat - connection refused

2022-02-15 Thread Neil Aggarwal
> I cannot connect to tomcat (port 8080) externally

Can you connect to it from the local machine?
If that is the case, it may be only listening for local connections.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Odd EL resolution issue - java.lang.NoClassDefFoundError: package/Class1 (wrong name: package/class1)

2022-02-07 Thread Neil Aggarwal
Robert:

> Caused by: java.lang.NoClassDefFoundError: package1/Class1 (wrong name:
> package1/class1)

This seems to be the source of your problem.
Java does not like that the case is different.
Make sure everything matches, including the capitals.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Tomcat is hanging up when I try to access local host:8080

2022-01-27 Thread Neil Aggarwal
Jim:

> java.net.BindException: Address already in use

This means there is some other process which has already
grabbed port 8080 so your Tomcat can't get it.

Make sure you have nothing else running that will compete
for the port.

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: How to do a catch-all Host?

2022-01-06 Thread Neil Aggarwal
Chris:

I figured out the problem.

I put quotes around the secret in workers.properties since I had
copied and pasted it from server.xml.

I removed them and everything worked.

Thanks for your help!

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: How to do a catch-all Host?

2022-01-05 Thread Neil Aggarwal
Christopher:

> What is the defaultHost for the ?

It is localhost.

> ... which means it should already be the default (catch-all) host.
> 403 means "unauthorized" which could mean something other than "I can't
> find the host".

Ahh.  Got it.

> What are the contents of the pare returned to the web
> browser when you get that 403?

Pare?  I am not sure what you mean, please give me more details on
how to get what you want.

> With a domain name like "propfinancing", please also make sure to get
> the TLS working properly ;)

Yes, eventually!

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



How to do a catch-all Host?

2022-01-05 Thread Neil Aggarwal
Hello all:

If I access a simple html file from the command line
using lynx:
lynx http://127.0.0.1:8080/www/

I get the page and this entry in the localhost_access_log:
0:0:0:0:0:0:0:1 - - [05/Jan/2022:16:21:22 -0600] "GET /www/index.html
HTTP/1.0" 200 19

But if I try to do that through the web by visiting
http://dev.propfinancing.com/www/index.html

I get a Forbidden page.  I see this in the localhost_access_log:
nn.nnn.nnn.nnn - - [05/Jan/2022:16:21:46 -0600] "GET /www/index.html
HTTP/1.1" 403 619

I tried to set my Host tag in server.xml to capture everything:

  
*

Any idea what I did wrong?

Thank you,
  Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

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



RE: Tomcat 8.0.9 native library not found

2014-08-20 Thread Neil Aggarwal
Mark:

> About the only difference I see is that the configure command is
> different

I tried deleting the tcnative files in /usr/local/apr/lib and the
tomcat native source directory.  I untarred it again and ran these commands:
./configure --with-apr=/usr --with-java-home=/usr/lib/jvm/java-1.7.0-openjdk
make
make install
Everything seemed to build fine, but I still get the warning about the
native library not being found when I start Tomcat so it seems the configure 
command
difference is not the problem.

> Does CentOS 7 change how APR is set up?

It does not seem like it changed but who knows.  There have been many changes
to the system when they went from v6 to v7, maybe they broke something.

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.


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



RE: Tomcat 8.0.9 native library not found

2014-08-20 Thread Neil Aggarwal
Mark:

> CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"

I already have this in my startup script:
CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib -Djava.awt.headless=true 
-Xmx2048m"

And the log has this:

INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: /
usr/local/apr/lib

I think /usr/local/apr/lib is already in the java.library.path variable.

Thanks,
  Neil


--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.


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



RE: Tomcat 8.0.9 native library not found

2014-08-19 Thread Neil Aggarwal
Christopher:

> Do the tcnative*.so files have the execute bit set?

Doing a ls -lah gives me this:
-rw-r--r-- 1 root root 1.7M Aug 17 08:57 libtcnative-1.a
-rwxr-xr-x 1 root root 1.1K Aug 17 08:57 libtcnative-1.la
lrwxrwxrwx 1 root root   23 Aug 17 08:57 libtcnative-1.so -> 
libtcnative-1.so.0.1.31
lrwxrwxrwx 1 root root   23 Aug 17 08:57 libtcnative-1.so.0 -> 
libtcnative-1.so.0.1.31
-rwxr-xr-x 1 root root 713K Aug 16 23:02 libtcnative-1.so.0.1.30
-rwxr-xr-x 1 root root 980K Aug 17 08:57 libtcnative-1.so.0.1.31
drwxr-xr-x 2 root root   26 Aug 17 14:56 pkgconfig

It seems like the execute bits are set.

> file /usr/local/apr/lib/libtcnative-1.so

That gives me:
/usr/local/apr/lib/libtcnative-1.so: symbolic link to `libtcnative-1.so.0.1.31'

file /usr/local/apr/lib/libtcnative-1.so.0.1.31 gives me:
/usr/local/apr/lib/libtcnative-1.so.0.1.31: ELF 64-bit LSB shared object, 
x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x56885899f70761
f7a250dbc6560a69131dc9e950, not stripped

> All users should have "read" and "execute" privileges on the file
> itself

The file is world read and execute, so that should be OK.

> Tomcat user requires "execute" privileges on every
> directory between / and /usr/local/apr/lib. You might also 
> need Tomcat to have "read" privileges on those directories

I just checked /, /usr, /usr/local, /usr/local/apr, and /usr/local/apr/lib and
they are all world read and execute bits set.

Any other ideas?

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.


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



RE: Tomcat 8.0.9 native library not found

2014-08-19 Thread Neil Aggarwal
Christopher:

> ldd /usr/local/apr/lib/libtcnative-1.so
linux-vdso.so.1 =>  (0x7fff145fe000)
libssl.so.10 => /lib64/libssl.so.10 (0x7f5642498000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x7f56420b3000)
libapr-1.so.0 => /lib64/libapr-1.so.0 (0x7f5641e83000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x7f5641c67000)
libdl.so.2 => /lib64/libdl.so.2 (0x7f5641a63000)
libc.so.6 => /lib64/libc.so.6 (0x7f56416a1000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x7f5641457000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x7f5641177000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x7f5640f72000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x7f5640d3d000)
libz.so.1 => /lib64/libz.so.1 (0x7f5640b27000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x7f5640921000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x7f56406ea000)
/lib64/ld-linux-x86-64.so.2 (0x7f5642932000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x7f56404dc000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x7f56402d7000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x7f56400bd000)
libfreebl3.so => /lib64/libfreebl3.so (0x7f563fe3d000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x7f563fc18000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x7f563f9b7000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x7f563f791000)


> echo $LD_LIBRARY_PATH

This gives me nothing back.

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.


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



RE: Tomcat 8.0.9 native library not found

2014-08-17 Thread Neil Aggarwal
Chuck:

> The mode (32- or 64-bit) of the APR and tcnative libraries must match that
of the 
> JVM you are using.  Is that the case?

I am not sure how to check.

If I run:  java -version, I get back this:
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el7_0-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

So, the JVM is 64 bit.

If I run: /usr/bin/apr-1-config --srcdir, I get back this:
/usr/lib64/build

So, it seems apr is 64 bit.

Is there anything else I should check?

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Sunday, August 17, 2014 9:18 AM
To: Tomcat Users List
Subject: RE: Tomcat 8.0.9 native library not found

> From: Neil Aggarwal [mailto:n...@jammconsulting.com] 
> Subject: RE: Tomcat 8.0.9 native library not found

> I downloaded it and built it.
> /usr/local/apr/lib now contains these items:
> libtcnative-1.a  libtcnative-1.la  libtcnative-1.so  libtcnative-1.so.0  
> libtcnative-1.so.0.1.30  libtcnative-1.so.0.1.31  pkgconfig

> I still get the warning about the native library not found.

> I can do /usr/bin/apr-1-config and I get the usage page for APR.
> I assume that means it is there.


 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.


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


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



RE: Tomcat 8.0.9 native library not found

2014-08-17 Thread Neil Aggarwal
Carl:

> don't use tomcat-native-1.1.30, use tomcat-native-1.1.31

I downloaded it and built it.
/usr/local/apr/lib now contains these items:
libtcnative-1.a  libtcnative-1.la  libtcnative-1.so  libtcnative-1.so.0  
libtcnative-1.so.0.1.30  libtcnative-1.so.0.1.31  pkgconfig

I still get the warning about the native library not found.

> Is APR really installed, and really there?

I can do /usr/bin/apr-1-config and I get the usage page for APR.
I assume that means it is there.

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.


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



Tomcat 8.0.9 native library not found

2014-08-16 Thread Neil Aggarwal
Hello:

I am trying to set up Tomcat 8.0.9 on my system running CentOS 7.

I downloaded the tomcat source tarball and compiled it.
I then built the native library using these commands:
  cd /usr/local/tomcat/bin
  tar zxf tomcat-native.tar.gz
  cd tomcat-native-1.1.30-src/jni/native
  ./configure --with-apr=/usr/bin/apr-1-config
--with-java-home=/usr/lib/jvm/java-1.7.0-openjdk
  make
  make install

When I run tomcat, I see this line in the output file:

INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/local/apr/lib

When I look in /usr/local/apr/lib, I see these files:
libtcnative-1.a  libtcnative-1.la  libtcnative-1.so  libtcnative-1.so.0
libtcnative-1.so.0.1.30  pkgconfig

So, it looks like something was built and put in the library path.

Any ideas how I can debug this problem?

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.




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



RE: How to access multiple virtual hosts with a single SSL instance?

2014-08-12 Thread Neil Aggarwal
Hello all:

> How to use multiple virtual hosts with a single SSL instance
> running on the standard https port.

I just came across SNI which allows me to use separate SSL
certificates for each virtual server.

Unfortunately, it looks like Tomcat does not yet support it.

I guess I am sticking to using Apache in front of Tomcat.

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.


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



How to access multiple virtual hosts with a single SSL instance?

2014-08-12 Thread Neil Aggarwal
Hello:

Up until now, I have always run Apache in front of Tomcat.
I am wondering if I should change to using Tomcat as a standalone server.

My concern is how to use multiple virtual hosts with a single SSL instance
running on the standard https port.

With httpd server, I can access my webapp using the directory name in
the URL.  For example, if I have an app called app1, it uses URLs that
look like this:
http://www.app1.com/app1/index.html
https://ssl.example.com/app1/index.html

If I have another app, it would use urls like this:
http://www.app2.com/app2/index.html
https://ssl.example.com/app2/index.html

This is because mod_jk will forward anything with the app name as the
first part of the URL to Tomcat.

>From what I am reading in the documentation, Tomcat uses the hostname
to determine the webapp to use.  That won't work since they need to
use the same hostname in ssl mode.

Thanks,
  Neil

--
Neil Aggarwal, (972) 834-1565
We lend money to investors to buy or refinance single family rent houses.
No origination fees, quick approval, no credit check.




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



RE: Application stops responding, jk worker in error state

2010-06-19 Thread Neil Aggarwal
Rainer:

> would you mind opening an issua in Bugzilla, attaching your 
> log snippet 
> and possibly your workers.properties

I created bug 49468 in bugzilla, included my log snippet and
attached the workers.properties file.

> You can also open a second issue concering the obvisouly wrong 
> connection count shown in the status worker.

I created bug 49469 in bugzilla and attached my screenshot
showing the negative number of connections.

> Thanks and sory for the trouble

Thank you for being so responsive!  

I hope we are able to fix the lock-up problem soon since this 
is a production system.  I sincerely appreciate your help.

Thanks,
    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
FREE trial: Tomcat 6 virtual server with unmetered bandwidth
http://UnmeteredVPS.net/tomcat


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



RE: Application stops responding, jk worker in error state

2010-06-18 Thread Neil Aggarwal
Rainer:

> Hmmm, errno 11 is often EAGAIN. What platform are you using 
> (OS, version)?

I am using CentOS 5.5 freshly installed, not an upgrade.
I tried that as a fix to this problem.  I wiped the server
clean and reinstalled everything from scratch.  It was on
CentOS 5.4 before and I had the same behavior.

> > What is really strange is the JK Status page says -48 
> connections.  It seems
> > like that number should always be positive or zero but not negative.
> 
> That should be unrelated (and yes: it's not OK).

It seems to me if jk is confused about the number of
backend connections, it may not be connecting correctly
to Tomcat.  That seems like it would cause the behavior
I am experiencing.

Thanks,
Neil

--
Neil Aggarwal, (281)846-8957
FREE trial: Virtualmin VPS with unmetered bandwidth
http://UnmeteredVPS.net/virtualmin 


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



RE: Application stops responding, jk worker in error state

2010-06-18 Thread Neil Aggarwal
Rainer:

> I am attaching the properties for my jk configuation and a 
> screen shot of the JK Status in case it helps.

It looks like the mailing list software stripped the
attachments from my email.

Here is the list of jk properties:

worker.server_name=tweb1.retcgroup.com
worker.server_port=80
worker.time_datetime=20100618152329
worker.time_tz=CDT
worker.time_unix=1276892609
worker.web_server=Apache/2.2.3 (CentOS)
worker.jk_version=mod_jk/1.2.30
worker.ajp_count=1
worker.tomcat.list=tomcat
worker.tomcat.type=ajp13
worker.tomcat.host=localhost
worker.tomcat.port=8009
worker.tomcat.address=127.0.0.1:8009
worker.tomcat.connection_pool_timeout=600
worker.tomcat.ping_timeout=1
worker.tomcat.connect_timeout=0
worker.tomcat.prepost_timeout=0
worker.tomcat.reply_timeout=0
worker.tomcat.retries=2
worker.tomcat.connection_ping_interval=0
worker.tomcat.recovery_options=0
worker.tomcat.max_packet_size=8192
worker.tomcat.used=6043
worker.tomcat.errors=57
worker.tomcat.client_errors=36
worker.tomcat.reply_timeouts=0
worker.tomcat.transferred=1571835650
worker.tomcat.read=65081493100
worker.tomcat.busy=2
worker.tomcat.max_busy=21
worker.tomcat.connected=-39
worker.tomcat.map_count=2
worker.tomcat.last_reset_at=1276866423
worker.tomcat.last_reset_ago=26186
worker.tomcat.error_time_datetime=20100618151913
worker.tomcat.error_time_tz=CDT
worker.tomcat.error_time_unix seconds=1276892353
worker.tomcat.error_time_ago seconds=256
worker.tomcat.map.1.server=tweb1.retcgroup.com
worker.tomcat.map.1.uri=/thymeleweb/*
worker.tomcat.map.1.type=Wildchar
worker.tomcat.map.1.source=JkMount
worker.tomcat.map.1.reply_timeout=-1
worker.tomcat.map.1.fail_on_status=
worker.tomcat.map.1.active=
worker.tomcat.map.1.disabled=
worker.tomcat.map.1.stopped=
worker.tomcat.map.1.use_server_errors=0
worker.tomcat.map.2.server=tweb1.retcgroup.com [_default_:443]
worker.tomcat.map.2.uri=/thymeleweb/*
worker.tomcat.map.2.type=Wildchar
worker.tomcat.map.2.source=JkMount
worker.tomcat.map.2.reply_timeout=-1
worker.tomcat.map.2.fail_on_status=
worker.tomcat.map.2.active=
worker.tomcat.map.2.disabled=
worker.tomcat.map.2.stopped=
worker.tomcat.map.2.use_server_errors=0
worker.result.type=OK
worker.result.message=Action finished

The screenshot of my jk status page is at:
http://tweb1.retcgroup.com/screenshot.gif

Thanks,
Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
FREE trial: Tomcat 6 VPS with unmetered bandwidth
http://UnmeteredVPS.net/tomcat


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



RE: Application stops responding, jk worker in error state

2010-06-18 Thread Neil Aggarwal
Rainer:

> If you are going to post part of your log file, please also 
> do provide 
> your mod_jk configuration and version information.

I am using mod_jk 1.2.30 which I built from the source tarball.

My application just locked up so I did a tail -f
on the mod_jk log and made a request to it.

Here is what generated in the log:

[Fri Jun 18 15:30:17.614 2010] [394:47652193829632] [info]
ajp_connection_tcp_get_message::jk_ajp_common.c (1230): (tomcat) can't
receive the response header message from tomcat, network problems or tomcat
(127.0.0.1:8009) is down (errno=11)
[Fri Jun 18 15:30:17.614 2010] [394:47652193829632] [error]
ajp_get_reply::jk_ajp_common.c (2055): (tomcat) Tomcat is down or refused
connection. No response has been sent to the client (yet)
[Fri Jun 18 15:30:17.614 2010] [394:47652193829632] [info]
ajp_service::jk_ajp_common.c (2540): (tomcat) sending request to tomcat
failed (recoverable),  (attempt=1)
[Fri Jun 18 15:31:19.711 2010] [394:47652193829632] [info]
ajp_connection_tcp_get_message::jk_ajp_common.c (1230): (tomcat) can't
receive the response header message from tomcat, network problems or tomcat
(127.0.0.1:8009) is down (errno=11)
[Fri Jun 18 15:31:19.711 2010] [394:47652193829632] [error]
ajp_get_reply::jk_ajp_common.c (2055): (tomcat) Tomcat is down or refused
connection. No response has been sent to the client (yet)
[Fri Jun 18 15:31:19.711 2010] [394:47652193829632] [info]
ajp_service::jk_ajp_common.c (2540): (tomcat) sending request to tomcat
failed (recoverable),  (attempt=2)
[Fri Jun 18 15:31:19.711 2010] [394:47652193829632] [error]
ajp_service::jk_ajp_common.c (2559): (tomcat) connecting to tomcat failed.
[Fri Jun 18 15:31:19.711 2010] [394:47652193829632] [info]
jk_handler::mod_jk.c (2618): Service error=0 for worker=tomcat

I took a look at the tomcat catalina.out and do not see any errors there.  
The CPU is empty and the RAM is available.

I telnet to 127.0.0.1 port 8009 on the machine, I get a connection, 
so something is listening on the port.

If I do a ps aux | grep java, I see two processes for tomcat which is
normal.

I checked the mysql log and do not see any errors.  I did a show innodb
status and do not see any deadlocks in the database.

I am attaching the properties for my jk configuation and a screen shot of
the 
JK Status in case it helps.

What is really strange is the JK Status page says -48 connections.  It seems
like that number should always be positive or zero but not negative.

I appreciate any help you can offer.

Thanks,
    Neil

--
Neil Aggarwal, (281)846-8957
FREE trial: Tomcat 6 VPS with unmetered bandwidth
http://UnmeteredVPS.net/tomcat


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

Application stops responding, jk worker in error state

2010-06-17 Thread Neil Aggarwal
Hello:

I have Tomcat 6.0.26 running behind Apache and am using the 
JK Connector to communicate between them.

My application stops responding on occasion.

I added the jk status page to the web server and checked it
when the application becomes non-responsive.

The tomcat worker has this info:

Worker Status for tomcat
Type Hostname Address:Port Connection Pool Timeout Connect Timeout Prepost
Timeout Reply Timeout Retries Recovery Options Max Packet Size
ajp13 localhost 127.0.0.1:8009 600 0 0 0 2 0  

State Acc Err CE RE Wr Rd Busy Max LR LE 
ERR 6 (0/sec) 2 0 0 4.8K (7 /sec) 12K (18 /sec) 0 2 663 Fri, 18 Jun 2010
00:06:17 CDT 

Note the state is ERR.

Does this mean the worker crashed or does it mean my application is
locked up?

Any ideas how to diagnose this?

Thanks,
Neil

--
Neil Aggarwal, (281)846-8957
FREE trial: Virtualmin VPS with unmetered bandwidth
http://UnmeteredVPS.net/virtualmin


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



RE: Tomcat Config Question

2009-12-09 Thread Neil Aggarwal
> The global conf/context.xml file should have a 
>  element for WEB-INF/web.xml; Tomcat should 
> automatically restart the webapp unless you've removed that 
> or disabled deployOnStartup in the  element.

In my experience, Tomcat has problems reloading webapps
on occasion.  This may work 80% of the time, but you
are still going to have to restart Tomcat fairly often.

    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day free trial, Google Checkout


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



RE: Tomcat performance benchmark

2009-12-07 Thread Neil Aggarwal
Hello:

> I would like to know if anybody could provide me with a 
> unbiased "tomcat vs
> others" peformance benchmark

Here is one that is somewhat dated:
http://www.webperformanceinc.com/library/reports/ServletReport/

    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day free trial, Google Checkout


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



RE: Manage log files in a cluster

2009-12-01 Thread Neil Aggarwal
> I want to manage the log's files on a centralized basis

Does this help?
http://linux.die.net/man/1/mergelog

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day free trial, Google Checkout 


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



RE: Tomcat and MySQL

2009-11-18 Thread Neil Aggarwal
Giocarmine:

> It seems that the connection with MySQL it's closed by the 
> driver due to a
> timeout.

Have you set autoReconnect=true in your JDBC url?

jdbc:mysql://localhost:3306/dbName?autoReconnect=true

    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Newbie, tomcat performance tuning

2009-11-18 Thread Neil Aggarwal
Bruce:

> Can you guide me where and what parameters that  I can tweak in tomcat
> to get high performance? for eg, JVM memory, threads, etc etc

Have you seen this page:
http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: http and/or ajp connectors

2009-11-17 Thread Neil Aggarwal
Jeffrey:

> Recently, I used the cheap and easy http redirects from my apache  
> server to my tomcat
> server.  I ran into two issues, that I hope someone is able to guide  
> me to a better solution

I think you need to use mod_jk.  That will allow
you to use connections to port 80 and 443 for
both apache and tomcat and you wont have to use
redirects.

    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: synchronizing in tomcat

2009-11-17 Thread Neil Aggarwal

> Does tomcat offer any mechanism for locking servlet executions?

I think you are going to have to take care of this in your
application code.

At first thought, I would create a class
with synchronized static methods to do each of your
processing tasks.  That way, you are guaranteed
only one method is executing at a time.

You have to be careful to avoid deadlock
so you better call the methods in a pre-set
order.

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: https and port numbers

2009-11-17 Thread Neil Aggarwal
> It works fine but as it stands https requests have the form 
> https://mydomain.com:8443. I would like to set it up so like 
> most secure internet sites there is no port number in the URL 
> even when using https. Can anyone point me in the right 
> direction or at some documentation that will help?

For that, you need to have your firewall forward port
443 to port 8443 on Tomcat.

    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Cannot Start Apache Tomcat 6 service

2009-11-16 Thread Neil Aggarwal
> [994 prunsrv.c] [error] failed creating java c:\program
> files\\java\jre6\bin\server\jmv.dll

You have two backlashes after program files, that might
be a problem.

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Tomcat - Xms and Xmx size

2009-11-16 Thread Neil Aggarwal
Chuck:

> Not quite true; a 32-bit Windows environment normally has a 2 
> GB process space, and everything has to fit within that - 
> Java heap, C heap, code, stacks, etc.
> 
> > If you have 3.5 GB RAM in the machine, I would set
> > the heap no larger than 3 GB.
> 
> Not possible on a 32-bit Windows system.

You are correct.  

Everything I do is on 64 bit systems now so
I don't pay attention to those limits anymore.

Thanks for keeping me honest!

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Tomcat - Xms and Xmx size

2009-11-16 Thread Neil Aggarwal
Abdul:

>  Please let me know whether maximum and minimum heap size can 
> be configured to 512MB.  What is the upper limit? I am using 
> RAM 3.5GB.

You can set the heap size to whatever you want.
There is no restriction from Tomcat.

If you have 3.5 GB RAM in the machine, I would set
the heap no larger than 3 GB.  Considering you
are at 256 MB now, set the max to 1 GB and it should
be plenty large for you.  If you stil run out of
RAM, you probably have a memory leak in your
application.

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Some advice on apache tomcat

2009-11-16 Thread Neil Aggarwal
Tony:

> using Tomcat. This is good, how do you handle ssl? Does 
> Apache terminate any SSL, all ssl or only static pages?

Apache terminates the SSL connection and I use JkMount to
push JSP/Servlet stuff into Tomcat.

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4613 (20091116) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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



RE: Some advice on apache tomcat

2009-11-16 Thread Neil Aggarwal
Anthony:

> I am researching porting my site to Apache 2.2 and Tomcat, and hope to
> gain the following.
> 1. Serve the static content from apache e.g. images, clips sound, text
> files etc.

I do that will all of my JSP apps.  I set up Apache on the
front end and use mod_jk to push JSP/servlet stuff into Tomcat.
It works very well and scales nicely.

> 2. Install a CMS to offload content managment to others and also blog
> functionality, Wordpress seems to be the tool of choice for ease of
> usage and widespread usage, this seems to work fine in my test
> environment.

That should be no problem.  Wordpress is just a php app in front
of MySQL.

> 3. Maintain current servlet and jsp (including xml) functionality on
> tomcat. Instead of one super application I can deploy servlets as
> seperate applications and update them seperately.

Are you talking about having multiple service in one webapp or
servlets in different webapps?

> 4. Use connectors such as mod_jk to load balance and provide 
> failover.

Like you said, this works very well.

> My main issue now is about how the authentication works between Tomcat
> and Apache.
> I would like to use both Form based and http basic authentication on
> protected resources running on both apache and tomcat.
> i.e. Form based for humans and httpbasic for XML requests over ssl.
> I have a user database in mysql containing username and 
> password, roles
> are in another table but these could be merged if required.

I put all protected info in Tomcat and only use Apache for
sending public content.  If there is a static file that
needs protecting, I use a servlet that checks if they are
logged in and then opens and streams the file back to the
user.  It works well.

> In terms of single sign on how can I make the user experience seamless
> between static content-managed pages and jsp/servlets?

If you use one webapp with multiple servlets and serve
your protected static content from Tomcat, SSO is very
easy.

I hope this helps,
Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Deployment of war file into a common locatiion

2009-11-16 Thread Neil Aggarwal
Ajay:

> I don't think that would be a solution because that 
> application is fetching
> some  values  from database also and through the google app 
> engine I may not
> be able to get those values from the database.

You will need to put both your database and tomcat
app on a server that supports servlets.

    Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: Error starting the web server

2009-11-16 Thread Neil Aggarwal
John:

> It appears that we have several JDK's loaded on our file 
> system (up to jdk
> 1.5). what apache configuration files need to be modified to 
> point to the
> correct jdk? i've modified the workers.properties. any other 
> locations I
> should modify?

I choose a JDK by setting a JAVA_HOME
environment variable in /etc/init.d/tomcat.

Here is a sample:
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout 
 


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



RE: search engine

2009-11-16 Thread Neil Aggarwal
Jill:

> Is there any search engine you would recommend that could 
> search public, and non public( page needs login) pages?

If your pages are HTML, you can use something like 
HtDig:
http://www.htdig.org/

If your pages are part of a web app, I have done
this in the past:
1. Write some code to pull the text content from
each page and store them in a MySQL table
with a full text index.
2. When your users perform a search, you run
a full text search query and return
the result.

I hope this helps,
  Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your tomcat app on a CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


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



RE: JkMount for status working not getting triggered

2009-10-15 Thread Neil Aggarwal
Chris:

That worked.  

Thanks for the help,
Neil

--
Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
Will your e-commerce site go offline if you have
a DB server failure, fiber cut, flood, fire, or other disaster?
If so, ask about our geographically redundant database system. 

> Try replacing the above with:
> JkMount /jkstatus jkstatus


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



JkMount for status working not getting triggered

2009-10-14 Thread Neil Aggarwal
Hello:

I am trying to enable the status page for mod_jk.

I set my workers.properties file to:

worker.list=tomcat,jkstatus
worker.tomcat.type=ajp13
worker.tomcat.host=localhost
worker.tomcat.port=8009
worker.tomcat.lbfactor=1
worker.tomcat.connection_pool_timeout=600
worker.tomcat.socket_keepalive=True
worker.tomcat.socket_timeout=60
worker.jkstatus.type=status
worker.jkstatus.read_only=True

I then added this to my httpd.conf file in the global directives:

# Mount the jk status application

  JkMount jkstatus
  Order allow,deny
  Allow from all


When I go to http://[myserver]/jkstatus
I get an error that the page cannot be displayed.

Also, in the httpd error_log, I see this:
File does not exist: /var/www/html/jkstatus

So, it looks like the JkMount is not getting triggered and
Apache is looking for a file in the html directory.

Any idea why this is happening?

Thanks,
Neil


--
Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
Will your e-commerce site go offline if you have
a DB server failure, fiber cut, flood, fire, or other disaster?
If so, ask about our geographically redundant database system.


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



Error-page directive not working

2007-09-10 Thread Neil Aggarwal
Hello:

I added this error-page directive in my web.xml for an
app I am developing using Struts 2:

  
java.lang.Exception
/error.action
  

The error.action exists and loads correctly:
http://cbsweb.jammconsulting.com/cbsweb/error.action

I then created a jsp which throws an exception:
<%throw new Exception("Testing error handling");%>

Which I linked to this url:
http://cbsweb.jammconsulting.com/cbsweb/createError.action

When I load that url, I get an error in the tomcat log
but the error page does not come up on the browser.

Any ideas what went wrong?

Here is the output in catalina.out:

Sep 2, 2007 4:04:58 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.Exception: Testing error handling
at
org.apache.jsp.createError_jsp._jspService(createError_jsp.java:54)
// Rest of trace removed

Any ideas how to correct this?

Thanks,
    Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.


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



Connectors configure can't find apxs, but it is there

2006-02-13 Thread Neil Aggarwal
Hello:

I am running Apache 1.3 on a Linux box and when I try to configure
the JK 1.2.15 connectors, I do these commands:

cd /usr/local/jakarta-tomcat-connectors-1.2.15-src/jk/native
./configure --with-apxs=/usr/sbin/apxs

I get this error:

could not find /usr/sbin/apxs
configure: error: You must specify a valid --with-apxs path

When I try to list that file:

ls -la /usr/sbin/apxs

I see it is there:
-rwxr-xr-x1 root root22180 Nov  5  2001 /usr/sbin/apxs

Any ideas why this is failing?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com 


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