Re: connectors and port80

2003-06-02 Thread Mirit Naim
Under which account you installed tomcat? If it is not root, you can't
run it at port 80 just like that (maybe there is a forwarding option, I
don't know).

>>> [EMAIL PROTECTED] 06/02/03 04:46PM >>>
I'm trying to get tc to run on a linux 9 server. I've got it working
fine on
port 8080 but when I change my connector to port 80 I get an access
denied
exception (see info below). I'm guessing I got the connector
definition
correct and that its something in linux. Do any of you have any
suggestions?
 
Connector (from server.xml)
 




 
Exception output (from catalina.out)
 
[INFO] Registry - -Creating MBeanServer
java.net.BindException: Permission denied:80
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:280)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11
17)
at org.apache.catalina.core.StandardService.initialize(Unknown
Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown
Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown
Source)
at org.apache.catalina.startup.Catalina.process(Unknown
Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
[ERROR] Http11Protocol - -Error initializing endpoint

Catalina.start: LifecycleException:  Protocol handler initialization
failed:
java.net.BindException: Permission denied:80
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Permission denied:80
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:11
19)
at org.apache.catalina.core.StandardService.initialize(Unknown
Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown
Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown
Source)
at org.apache.catalina.startup.Catalina.process(Unknown
Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Catalina.stop: LifecycleException:  This server has not yet been
started
LifecycleException:  This server has not yet been started
at org.apache.catalina.core.StandardServer.stop(Unknown
Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown
Source)
at org.apache.catalina.startup.Catalina.process(Unknown
Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 

Vincent Fumo
Software Engineer
ACS State and Local Solutions
777 Saw Mill River Rd.
Tarrytown, NY 10591
914-789-6162
AIM : neodem2001
 
 
 
 

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



SSL error 40

2003-06-02 Thread Doug Chamberlin
I just changed the server certificate on a Tomcat 4.04 standalone server 
and now get "Secure connection: fatal error (40) from server. Failed to 
connect to server." errors.

I deleted the old certificate and imported the new one with the same alias 
in the keystore. I then restarted the Tomcat service (this is under WIndows 
2000).

I think some configuration settings were changed since the last time Tomcat 
was restarted because I don't think the certificate change itself would 
cause these errors (but I'm not sure). I did reinstall the old certificate 
and restart the service and still get the errors!

Any pointers to where in the server.xml file I should look for 
changes/settings which directly relate to this error?





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


Re: Invalid command 'JkMount'....

2003-06-02 Thread Graham Smith
Thanks. That worked brilliantly :oD

Sorry if you consider thanks to be cluttering the list.

John Turner wrote:

Your mod_jk module is only loaded if HAVE_JK = TRUE (or is defined).  
In webmin, it probably is, when you start from the command line, it 
probably isn't.  To test, you would do something like:

export HAVE_JK=TRUE

on the command line, then start Apache and see what happens.

In any case, there's no need to be that complex.  Just load the 
module...there's no need to do a an "if" statement.  If you must do an 
"if" statement, don't check an arbitrary environment variable, check 
for mod_jk.c instead:


LoadModule jk_module modules/mod_jk.so

John

On Mon, 02 Jun 2003 14:04:37 +0100, Graham Smith <[EMAIL PROTECTED]> 
wrote:

Hi.

Yesterday I installed the mod_jk module into apache and managed to 
get it configued and doing what I want it to do. The only problem I 
now have is that whenever I start apache from the command line I get 
the error message below.

Invalid command 'JkMount', perhaps mis-spelled or defined by a module 
not included in the server configuration

To initially get the two (apache and tomcat) talking to each other I 
followed the instructiosn that can be found here http://www.linux- 
sxs.org/internet_serving/tomcat-apache.html

Following these instructions I installed the rpm and everything 
seemed to work fine. I modified the mod_jk.conf file and took a look 
at the results. Since I had included a "JkMount /* ajp13" directive 
all requests to apache were getting forwarded to tomcat. What I 
wanted was only requests coming to a particular address to get 
forwarded to tomcat. In other words I wanted to use virtual servers 
with only some sending requests on. I removed the context I had put 
in the mod_jk.conf file and instead defined a virtual server in 
apache and included the context in there thus producing virtual 
server definition below (the hopefully relevent parts of the 
httpd.conf file).

What is strange about this problem is that I can start apache quite 
happily using webmin but it won't start if I do "/etc/init.d/httpd 
start" from a command prompt (I get the error message above). I also 
get that error message it I try and restart it from webmin. I have 
searched about a bit and found quite a few suggestions that the 
location of the LoadModule line makes a large difference. I have 
moved it all over the httpd.conf file and to no avail.

Anybody got any ideas?

TIA
Graham
PS I am using Apache 1.3, Tomcat 4.1.24 and mod_jk 1.2.2 rpm version

---
httpd.conf
---

LoadModule jk_module modules/mod_jk.so
#AddModule  mod_jk.c
Include /etc/httpd/conf/mod_jk.conf


DocumentRoot "/usr/local/tomcat/webapps/xfly/"
ServerName xfly
#tomcat connector config
Alias / "/usr/local/tomcat/webapps/xfly/"

Options Indexes FollowSymlinks

JkMount /* ajp13


AllowOverride None
deny from all

#tomcat connector config - end

-
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]


connectors and port80

2003-06-02 Thread Fumo, Vince








I'm trying to get tc to run on a linux 9
server. I've got it working fine on port 8080 but when I change my
connector to port 80 I get an access denied exception (see info below). I'm
guessing I got the connector definition correct and that its
something in linux. Do any of you have any
suggestions?

 

Connector (from server.xml)

 

className="org.apache.coyote.tomcat4.CoyoteConnector"
redirectPort="8443" bufferSize="2048"
port="80" connectionTimeout="2"
scheme="http" enableLookups="true"
secure="false" protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol"
debug="0" disableUploadTimeout="true"
maxKeepAliveRequests="100" proxyPort="0" tcpNoDelay="true"
maxProcessors="75" minProcessors="5"
acceptCount="100" useURIValidati
onHack="false" connectionLinger="-1"
compression="off"> 

className="org.apache.catalina.net.DefaultServerSocketFactory"/>



 

Exception output (from catalina.out)

 

[INFO] Registry - -Creating MBeanServer

java.net.BindException: Permission
denied:80

    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280)

    at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)

    at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1117)

    at org.apache.catalina.core.StandardService.initialize(Unknown
Source)


   at org.apache.catalina.core.StandardServer.initialize(Unknown
Source)

    at org.apache.catalina.startup.Catalina.start(Unknown
Source)

    at org.apache.catalina.startup.Catalina.execute(Unknown
Source)

    at org.apache.catalina.startup.Catalina.process(Unknown
Source)

    at java.lang.reflect.Method.invoke(Native
Method)

    at org.apache.catalina.startup.Bootstrap.main(Unknown
Source)

[ERROR] Http11Protocol - -Error initializing endpoint 

Catalina.start: LifecycleException: 
Protocol handler initialization failed: java.net.BindException:
Permission denied:80

LifecycleException:  Protocol handler initialization failed: java.net.BindException: Permission denied:80

    at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1119)

    at org.apache.catalina.core.StandardService.initialize(Unknown
Source)

    at org.apache.catalina.core.StandardServer.initialize(Unknown
Source)

    at org.apache.catalina.startup.Catalina.start(Unknown
Source)

    at org.apache.catalina.startup.Catalina.execute(Unknown
Source)

    at org.apache.catalina.startup.Catalina.process(Unknown
Source)

    at java.lang.reflect.Method.invoke(Native
Method)

    at org.apache.catalina.startup.Bootstrap.main(Unknown
Source)

Catalina.stop: LifecycleException: 
This server has not yet been started

LifecycleException:  This server has not yet been started

    at org.apache.catalina.core.StandardServer.stop(Unknown
Source)

    at org.apache.catalina.startup.Catalina.start(Unknown
Source)

    at org.apache.catalina.startup.Catalina.execute(Unknown
Source)

    at org.apache.catalina.startup.Catalina.process(Unknown
Source)

    at java.lang.reflect.Method.invoke(Native
Method)

    at org.apache.catalina.startup.Bootstrap.main(Unknown
Source)

 



Vincent Fumo

Software Engineer

ACS State and Local Solutions

777 Saw Mill River Rd.

Tarrytown,
 NY
 10591

914-789-6162

AIM : neodem2001


 

 

 

 








RE: Why am I recieiving this?

2003-06-02 Thread James Lewis
lol!

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: 02 June 2003 14:39
> To: Tomcat Users List
> Subject: RE: Why am I recieiving this?
> 
> 
> 
> Howdy,
> 
> >Techniacally,my post should only and only goes to  tomcat-user mail
> server
> 
> How did you arrive at that conclusion?  See RFC 3461, 3030.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, and 
> may not be saved, copied, printed, disclosed or used by anyone 
> else.  If you are not the(an) intended recipient, please 
> immediately delete this e-mail from your computer system and 
> notify the sender.  Thank you.
> 
> 
> -
> 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: Realm class, Classloader

2003-06-02 Thread Cox, Charlie
actually it is loaded by tomcat's internal classes, to determine if your
webapp should be called. So the tomcat classes need to be able to see it and
they cannot access classes loaded by the Webapp classloader. Therefore it
belongs in /server/lib as you have seen.

See the classloader doc for more information on classloading in tomcat.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie

> -Original Message-
> From: Oliver Wulff [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 02, 2003 3:23 AM
> To: [EMAIL PROTECTED]
> Subject: Realm class, Classloader
> 
> 
> 
> 
> 
> 
> I'm using Tomcat 4.1.24 and JDK 1.3.1.
> 
> I've created a custom realm which is configured like this:
>   reloadable="true" crossContext="true">
>
> 
> 
> The implementation class "test.RacfRealm" can be found only if it is
> deployed to the server/lib directory.
> 
> If the Realm is configured for the context "sec_test", the 
> class should be
> loaded by the corresponding WebAppClassLoader.
> What do you think?
> 
> 
> 
> 
> 
> 
> *** BITTE BEACHTEN ***
> Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
> möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
> Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
> genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
> irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
> Ausschluss jeder Reproduktion zu zerstören und die absendende Person
> umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Why am I recieiving this?

2003-06-02 Thread Shapira, Yoav

Howdy,

>Techniacally,my post should only and only goes to  tomcat-user mail
server

How did you arrive at that conclusion?  See RFC 3461, 3030.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: -Xincgc, -Xms600, -Xmx600

2003-06-02 Thread Shapira, Yoav

Howdy,
You can enable the -verbose:gc switch and see how often GC is occurring.
Incremental GC will occur all the time pretty much.

Note that your core problem may be deeper.  Why did memory consumption
hit 600MB?  Is that expected?  If so, you should ensure the heap has
more allocated than what you expect to need.

If this is not expected, find out what's holding on to data and modify
the relevant code so that garbage collection can reclaim this space.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jason Efting [mailto:[EMAIL PROTECTED]
>Sent: Sunday, June 01, 2003 9:36 AM
>To: [EMAIL PROTECTED]
>Subject: -Xincgc, -Xms600, -Xmx600
>
>Hi,
>Recently my tomcat (jvm rather) 4 server started running at 100% CPU
>utilization and not service any request for long periods of time. This
must
>be due to the JVM doing garbase collection.
>
>I modified my system register appropriatly and but a few days later
(when
>memory consuption hit 600MB) tomcat started acting funny again.
>
>Here is what I did to modify my register:
>1. Stop "Apache Tomcat" service
>2. Stop "Apache" service.
>3. Modify/Add registry keys.
>4. Start "Apache Tomcat" service
>5. Start "Apache" service
>
>Please not that I did not restart the entire box.
>
>Platform:
>Windows 2000 Server SP3
>Tomcat 4
>1GB Physical RAM
>
>I cannot see any change I the servers behaviour since I modifeid the
>registry. What would you suggest I do to test my new settings and
ensure
>that incremental garbage collection is happening?
>
>Thanks
>Jason
>
>
>-
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat problems every morning.

2003-06-02 Thread Hemendra Rana
The traces that I put yesterday did indeed show that it is the MySQL 
database driver that times out the connection. I have added 
autoReconnect=true to the URL. Lets see if that works. Following is the 
stack trace of the exception that I got:

java.sql.SQLException: Communication link failure: java.io.IOException
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1606)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:886)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:945)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:1809)
   at 
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1458)
   .

Thanks,
Hemendra
Paul (BRI) wrote:

My comment won't be that helpful - but I started out at the same place -
each morning I came in a got a call from staff saying the pages with
content pulled from the dbase was down. 

One thing I know, as others suggested, it has to do with the
JDBC/connection - in our case it happens when the network connection
between our linux box and our sql box os broken at some point - I think
the ISP does late night maintenance on the line (this is setup on an
office DSL line). We are still working to isolate the problem - but it
does seem to be JDBC related. I have tried simply pulling the cable on
the back of one box for a few seconds and the connection does die and
will not reconnect.
I plan to post back to the group when we get a better sense of the
problem - we are still fooling with it. In our case we are using MSSQL
with the MS JDBC driver. I thought I saw a post somewhere that said the
mySQL driver had a autoReconnect=true setting - I think I saw it on the
Apache site.
I hope you figure things out.

Paul

-Original Message-
From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 01, 2003 9:07 PM
To: Tomcat Users List
Subject: Re: Tomcat problems every morning.

On Sun, 01 Jun 2003 18:14:05 -0700, Hemendra Rana wrote
 

Are you using mysql database on the backend too. Someone here
pointed out that by default, mysql driver times out after every 8 
hours. I still needs to verify whether that is the cause of my 
problem though. Will let you know of my finds.
   

Why, yes, I am. And I thought perhaps MySQL was the problem - but I was
told by some people using Oracle and PostgreSQL databases that they'd
seen the problem as well. I tried putting in some code to set the driver
time-out value, but evidently I didn't do it correctly, as the problem
persisted. I don't see the error with versions of Tomcat previous to
4.1.x, tho.
Lynn Hollerman.

-
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: Invalid command 'JkMount'....

2003-06-02 Thread John Turner
Your mod_jk module is only loaded if HAVE_JK = TRUE (or is defined).  In 
webmin, it probably is, when you start from the command line, it probably 
isn't.  To test, you would do something like:

export HAVE_JK=TRUE

on the command line, then start Apache and see what happens.

In any case, there's no need to be that complex.  Just load the 
module...there's no need to do a an "if" statement.  If you must do an "if" 
statement, don't check an arbitrary environment variable, check for 
mod_jk.c instead:


LoadModule jk_module modules/mod_jk.so

John

On Mon, 02 Jun 2003 14:04:37 +0100, Graham Smith <[EMAIL PROTECTED]> 
wrote:

Hi.

Yesterday I installed the mod_jk module into apache and managed to get it 
configued and doing what I want it to do. The only problem I now have is 
that whenever I start apache from the command line I get the error 
message below.

Invalid command 'JkMount', perhaps mis-spelled or defined by a module not 
included in the server configuration

To initially get the two (apache and tomcat) talking to each other I 
followed the instructiosn that can be found here http://www.linux- 
sxs.org/internet_serving/tomcat-apache.html

Following these instructions I installed the rpm and everything seemed to 
work fine. I modified the mod_jk.conf file and took a look at the 
results. Since I had included a "JkMount /* ajp13" directive all requests 
to apache were getting forwarded to tomcat. What I wanted was only 
requests coming to a particular address to get forwarded to tomcat. In 
other words I wanted to use virtual servers with only some sending 
requests on. I removed the context I had put in the mod_jk.conf file and 
instead defined a virtual server in apache and included the context in 
there thus producing virtual server definition below (the hopefully 
relevent parts of the httpd.conf file).

What is strange about this problem is that I can start apache quite 
happily using webmin but it won't start if I do "/etc/init.d/httpd start" 
from a command prompt (I get the error message above). I also get that 
error message it I try and restart it from webmin. I have searched about 
a bit and found quite a few suggestions that the location of the 
LoadModule line makes a large difference. I have moved it all over the 
httpd.conf file and to no avail.

Anybody got any ideas?

TIA
Graham
PS I am using Apache 1.3, Tomcat 4.1.24 and mod_jk 1.2.2 rpm version

---
httpd.conf
---

LoadModule jk_module modules/mod_jk.so
#AddModule  mod_jk.c
Include /etc/httpd/conf/mod_jk.conf


DocumentRoot "/usr/local/tomcat/webapps/xfly/"
ServerName xfly
#tomcat connector config
Alias / "/usr/local/tomcat/webapps/xfly/"

Options Indexes FollowSymlinks

JkMount /* ajp13


AllowOverride None
deny from all

#tomcat connector config - end

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Why am I recieiving this?

2003-06-02 Thread Dan Tran
What I dont understand is why my post went to that host?

Basically, I receive 2 emails for each time I post, one form tomcatcat user
list, and one from that unknown host?

Techniacally,my post should only and only goes to  tomcat-user mail server

Does my outlook behave?

-Dan
- Original Message - 
From: "John Turner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 5:45 AM
Subject: Re: Why am I recieiving this?


>
> Seems pretty self-explanatory to me.
>
> The mail administrator at logicaonline.com (look at the headers in the
> message!!) has blacklisted your email address.
>
> John
>
> On Mon, 2 Jun 2003 00:02:02 -0700, Dan Tran <[EMAIL PROTECTED]> wrote:
>
> > I receive the below text every time I post a message to this group. ??
> >
> >
> > - Original Message - From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 01, 2003 7:47 PM
> > Subject: RE: Re: Filter out certain user accounts
> >
> >
> >> Dear [EMAIL PROTECTED],
> >>
> >> Your recent message to this server regarding `Re: Filter out certain
> >> user
> > accounts`
> >> was not delivered.  Your address is listed in one or more suppression
> > files
> >> on this server or your account is configured to allow local mail
traffic
> > only.
> >> Please contact the postmaster at this domain if additional information
> >> is
> >> required.
> >>
> >> Thank you,
> >>
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> -
> 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: Tomcat 4 and native threads

2003-06-02 Thread Shapira, Yoav

Howdy,

>i think it is because i've got a redhat 9.0 which
>uses new kinds of threads( NPTL ).
>Compatibility problems...

That's a good theory.  I'd be interesting to learn your experience and
opinion regarding this new threading library.  If it gives the JVM
grief, that's not good ;(

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Some thoughts on memory consumption and gc

2003-06-02 Thread Shapira, Yoav

Howdy,

>*) If you have 128 MB heap and 64 MB stack memory assigned, against
which
>will the memory consumption count?

Mostly the heap.  The stack space is used for method overhead and other
miscellaneous information.

>*) According to my experiements Runtime.availableMemory will give me
the
>heap size. How can I determine the stack size (without using a
profiler)

Not possible in a standard way that I know of using the Sun JVMs.  You
are expected to know what it is from your java command arguments.

>*) Given the 2 MB memory consumption per request, does this effectively
>mean that the server will be able to support a maximum of 64 concurrent
>requests?

Likely less than 64 concurrent requests, as there are other things on
the
heap as well.  In general, retrieving whole large data sets into memory
on
demand will reduce the number of concurrent users you can serve and
indicates a pool design from a scalability perspective.

>*) To my mind it seems that the MVC approach doesn't come in very handy
>here, the only solution would be to split the list into smaller parts.

You can make a scrollable design using an MVC approach.

>*) Has anybody practical experience with Garbage collector tuning?

If you search the archives, you will see many many posts on this
topic.  My guess is that among the members of the list there are many
man-years of experience in this area.  Furthermore, there are many
articles on gabrage collection, including tuning and troubleshooting,
on java.sun.com and other sites.

>Currently it seems my gc may come in too late and this will result in
>OutofMemoryExceptions (of course I close all database connections
properly
>and always use finally to free Connections). Does anybody have ideas
how
>to trace such issues?

Use -verbose:gc and a profiler.  Don't look just for SQL objects.
Look to see where you data is held, and for how long.

>(I already tested with Borland Optimizeit and no SQL or Oracle objects
>lurk around in memory longer than needed).

Data could be held elsewhere, preventing its collection.
Using something like OptimizeIt will show you where.

>there you have full memory control and responsibility). With Java
memory
>issues are always hard to track but occur frequently in load tests. Has

I disagree.  I find issue easier to track in Java than almost any
language
I've used, partially due to the availability of excellent tools.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat problems every morning.

2003-06-02 Thread Chong Yu Meng
Hollerman Geralyn M wrote:

Why, yes, I am. And I thought perhaps MySQL was the problem - but I was told
by some people using Oracle and PostgreSQL databases that they'd seen the
problem as well. 

To put it bluntly, don't believe them, Lynn. It seems to me like you've 
done everything necessary to ensure that the problem is not on your 
side. If it looks like a duck, and it quacks like a duck ...

I tried putting in some code to set the driver time-out
value, 

You could write a small program (not a servlet) that polls the database 
(i.e. connect to the database, retrieve some data, disconnect) at 
regular intervals and records to a file both successes and failures. 
Then maybe trigger a server reboot when it detects a connection problem. 
This will add some overhead to both your app server and database server, 
so, be advised. You could run this for a couple of days, just enough to 
collect data to show to the DBA's.

Realistically, though, I doubt that it will change anything. If your DBA 
does not understand the possibility of MySQL dropping/resetting 
connections and hasn't offered to check for you, it's unlikely he will 
accept your results. Maybe I'm just getting bitter and cynical in my 
"old age" :)

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


RE: Invalid command 'JkMount'....

2003-06-02 Thread Morgan Pyne
Hi Graham,

Try enabling server-info in the Apache config and confirming that
mod_jk has actually been loaded.

Your "LoadModule" is wrapped in an "Ifdefined" statement, so it's possible
that some of the mechanisms you are using to start apache do not define
"HAVE_JK", and mod_jk module does not get loaded. In your current
configuration, the webserver would need to be started with a command like:

httpd -D HAVE_JK 

before your jk module will be loaded.

(you might want to check what exact commands are being used in the system
startup scripts and/or the apachectl script to confirm this)

However, your JkMount statement is not wrapped in any conditional statements,
so it will always attempt to execute this, even if mod_jk is not present
(hence the error).

The simplest solution for you is to probably remove the "IfDefined" wrapper
around your LoadModule/AddModule statements, so mod_jk will always be loaded.

Regards,
Morgan

> -Original Message-
> From: Graham Smith [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 02, 2003 15:05
> To: [EMAIL PROTECTED]
> Subject: Invalid command 'JkMount'
> 
> 
> Hi.
> 
> Yesterday I installed the mod_jk module into apache and 
> managed to get 
> it configued and doing what I want it to do. The only problem 
> I now have 
> is that whenever I start apache from the command line I get the error 
> message below.
> 
> Invalid command 'JkMount', perhaps mis-spelled or defined by a module 
> not included in the server configuration
> 
> To initially get the two (apache and tomcat) talking to each other I 
> followed the instructiosn that can be found here 
> http://www.linux-sxs.org/internet_serving/tomcat-apache.html
> 
> Following these instructions I installed the rpm and 
> everything seemed 
> to work fine. I modified the mod_jk.conf file and took a look at the 
> results. Since I had included a "JkMount /* ajp13" directive all 
> requests to apache were getting forwarded to tomcat. What I 
> wanted was 
> only requests coming to a particular address to get forwarded 
> to tomcat. 
> In other words I wanted to use virtual servers with only some sending 
> requests on. I removed the context I had put in the 
> mod_jk.conf file and 
> instead defined a virtual server in apache and included the 
> context in 
> there thus producing virtual server definition below (the hopefully 
> relevent parts of the httpd.conf file).
> 
> What is strange about this problem is that I can start apache quite 
> happily using webmin but it won't start if I do "/etc/init.d/httpd 
> start" from a command prompt (I get the error message above). 
> I also get 
> that error message it I try and restart it from webmin. I 
> have searched 
> about a bit and found quite a few suggestions that the 
> location of the 
> LoadModule line makes a large difference. I have moved it all 
> over the 
> httpd.conf file and to no avail.
> 
> Anybody got any ideas?
> 
> TIA
> Graham
> 
> PS I am using Apache 1.3, Tomcat 4.1.24 and mod_jk 1.2.2 rpm version
> 
> ---
> httpd.conf
> ---
> 
> 
> 
> LoadModule jk_module modules/mod_jk.so
> #AddModule  mod_jk.c
> Include /etc/httpd/conf/mod_jk.conf
> 
> 
> 
> DocumentRoot "/usr/local/tomcat/webapps/xfly/"
> ServerName xfly
> 
> #tomcat connector config
> Alias / "/usr/local/tomcat/webapps/xfly/"
> 
> Options Indexes FollowSymlinks
> 
> 
> JkMount /* ajp13
> 
> 
> AllowOverride None
> deny from all
> 
> #tomcat connector config - end
> 
> 
> 
> -
> 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: Session Snooper

2003-06-02 Thread Shapira, Yoav

Howdy,
It's not often you see someone post a deprecated
solution to this list ;)  Be careful using this page
with non-default encodings.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: bedetrob [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 30, 2003 8:35 AM
>To: Tomcat Users List
>Subject: RE: Session Snooper
>
>Try this one:
>http://www.krasu.ru/server/examples/jsp/snoop.html
>Rob
>
>> -Original Message-
>> From: Francisco J. Bido [mailto:[EMAIL PROTECTED]
>> Sent: Monday, April 21, 2003 8:54 AM
>> To: Tomcat Users List
>> Subject: Re: Session Snooper
>>
>>
>> I see... Any equivalents or close approximations to what Snooper is
to
>> provide?
>>
>> Thanks,
>> -FB
>>
>>
>> On Monday, April 21, 2003, at 07:48  AM, [EMAIL PROTECTED]
wrote:
>>
>> > Sun took the API off because of security concern.  I guess that is
why
>> > it is no longer there anymore.
>> >
>> > Chao
>> >
>> > ---Original Message---
>> > From: "Francisco J. Bido" <[EMAIL PROTECTED]>
>> > Sent: 04/20/03 02:42 AM
>> > To: Tomcat Users List <[EMAIL PROTECTED]>
>> > Subject: Session Snooper
>> >
>> >>
>> >> About a two years ago I was on a project were I used a JSP utility
>> > called Snooper to inspect HttpSession objects.  I figured it was
widely
>> > available but I couldn't find a Google hit for it.   Can anyone
provide
>> > an URL or email a copy?   It's not hard to create one  from scratch
but
>> > Snooper did some very nice rendering of the inspection results and
I
>> > don't have too much time at this moment.
>> >
>> > Thanks!
>> > -FB
>> >
>> >
>> >
-
>> > 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]
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Compilation errors of Servlet.

2003-06-02 Thread Shapira, Yoav

Howdy,

> CLASSPATH=/var/tomcat4/common/lib/servlet.jar

This should work.  (In addition to any other jar your apps might need).

The LE vs. full version has nothing to do with it: they are essentially
the same with respect to compiling and running servlets and JSPs.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jonathan Michael Nowacki [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 30, 2003 8:33 PM
>To: Tomcat Users List
>Subject: Re: Compilation errors of Servlet.
>
>I have the full version of tomcat
>tomcat4-webapps-4.1.24-full.2jpp
>tomcat4-4.1.24-full.2jpp
>tomcat4-admin-webapps-4.1.24-full.2jpp
>are installed
>
>My variables
>
>JAVA_HOME=/usr/java/j2sdk1.4.1_02
>CATALINA_HOME=/var/tomcat4
>
>I've used - none work
>CLASSPATH=/usr/java/j2sdk1.4.1_02/lib/
>CLASSPATH=/var/tomcat4/common/lib/servlet.jar
>CLASSPATH=/var/tomcat4/common/lib/
>
>
>
>On Sat, 31 May 2003, Jason Bainbridge wrote:
>
>> On Sat, 31 May 2003 07:03, Jonathan Michael Nowacki wrote:
>> > When trying to compile a servlet that works on another installation
of
>> > tomcat I get this error.
>>
>> Taking a guess here...
>>
>> Is CATALINA_HOME\common\lib\servlet.jar in your classpath?
>>
>> Have you got the LE lite version of Tomcat or the full one? I don't
think
>the
>> LE version would cause such an error though, but the full version is
>> definitely recommended.
>>
>> Regards,
>> --
>> Jason Bainbridge
>> KDE Web Team - http://kde.org
>> [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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Invalid command 'JkMount'....

2003-06-02 Thread Graham Smith
Hi.

Yesterday I installed the mod_jk module into apache and managed to get 
it configued and doing what I want it to do. The only problem I now have 
is that whenever I start apache from the command line I get the error 
message below.

Invalid command 'JkMount', perhaps mis-spelled or defined by a module 
not included in the server configuration

To initially get the two (apache and tomcat) talking to each other I 
followed the instructiosn that can be found here 
http://www.linux-sxs.org/internet_serving/tomcat-apache.html

Following these instructions I installed the rpm and everything seemed 
to work fine. I modified the mod_jk.conf file and took a look at the 
results. Since I had included a "JkMount /* ajp13" directive all 
requests to apache were getting forwarded to tomcat. What I wanted was 
only requests coming to a particular address to get forwarded to tomcat. 
In other words I wanted to use virtual servers with only some sending 
requests on. I removed the context I had put in the mod_jk.conf file and 
instead defined a virtual server in apache and included the context in 
there thus producing virtual server definition below (the hopefully 
relevent parts of the httpd.conf file).

What is strange about this problem is that I can start apache quite 
happily using webmin but it won't start if I do "/etc/init.d/httpd 
start" from a command prompt (I get the error message above). I also get 
that error message it I try and restart it from webmin. I have searched 
about a bit and found quite a few suggestions that the location of the 
LoadModule line makes a large difference. I have moved it all over the 
httpd.conf file and to no avail.

Anybody got any ideas?

TIA
Graham
PS I am using Apache 1.3, Tomcat 4.1.24 and mod_jk 1.2.2 rpm version

---
httpd.conf
---

LoadModule jk_module modules/mod_jk.so
#AddModule  mod_jk.c
Include /etc/httpd/conf/mod_jk.conf


DocumentRoot "/usr/local/tomcat/webapps/xfly/"
ServerName xfly
#tomcat connector config
Alias / "/usr/local/tomcat/webapps/xfly/"

   Options Indexes FollowSymlinks

JkMount /* ajp13


   AllowOverride None
   deny from all

#tomcat connector config - end

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


Re: Tomcat 4 jk2-2.0.2 with apache2 in solaris 8 configuration

2003-06-02 Thread John Turner
What version of Apache 2 do you have?   The binary of mod_jk2 (and mod_jk) 
is version-sensitive.  It should work for 2.0.43 and up.

John

On Sun, 1 Jun 2003 20:29:38 -0400, Omar Vera <[EMAIL PROTECTED]> 
wrote:

Hi to everybody,
I am trying to configure tomcat 4.1.24 with apache 2 using the connector
jk2-2.0.2 and I get an error message when I am making the mod_jk2.so 
file.
The error message is:
# make
list=' server/apache2'; \
for i in $list; do \
echo "Making $target in $i"; \
if test "$i" != "."; then \
(cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
mkdir -p ../../../build/jk2/apache2
/usr/local/apache2/build/libtool --mode=install  cp
../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2
cp ../../../build/jk2/apache2/.libs/mod_jk2.so
/jakarta-tomcat-connectors-jk2-2.0.2- 
src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.so
chmod +x
/jakarta-tomcat-connectors-jk2-2.0.2- 
src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.so
cp ../../../build/jk2/apache2/.libs/mod_jk2.lai
/jakarta-tomcat-connectors-jk2-2.0.2- 
src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.la
cp ../../../build/jk2/apache2/.libs/mod_jk2.a
/jakarta-tomcat-connectors-jk2-2.0.2- 
src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.a
cp: cannot access ../../../build/jk2/apache2/.libs/mod_jk2.a
*** Error code 2
make: Fatal error: Command failed for target
`../../../build/jk2/apache2/mod_jk2.so'
Current working directory
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2
*** Error code 1
make: Fatal error: Command failed for target `jk2-build'

I also tried to use the compiled .so file from apache for solaris 8, but
when I am starting the apache I got the following error:
# apache start   httpd starting.
Syntax error on line 1019 of /etc/apache/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_jk2-2.0.43.so into server:
ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache2/modules/mod_jk2-2.0.43.so: symbol 
apr_pool_cleanup_null:
referenced symbol not found
/usr/apache/bin/apachectl start: httpd could not be started
Do you know the best way to configure successfully the connector for 
Apache
and Tomcat successfully?
Thanks in advance, I will appreciate your answers and suggestions.
Best regards.
Omar Vera



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Help: Error while opening the workers, jk will not work

2003-06-02 Thread John Turner
In httpd.conf, change JkLogLevel to debug, that should give you more 
information.  Sounds to me like there is something wrong with your 
workers.properties file.

John

On Sun, 1 Jun 2003 10:36:51 -0400, Rob Cartier <[EMAIL PROTECTED]> wrote:

Recently I have been seeing 'Error while opening the workers, jk will not
work'
show up in my httpd/error_log. And when that happens I get Error 500 
codes
and have to reboot my server. Stop and restarting tomcat or httpd doesnt
help

I have running

rh 7.2
tomcat 4.1.24
apache 1.3.27
I just upgraded the mod_jk connector to mod_jk.so.ap1.3.27-eapi.rh72
thinking that was the problem . But that didnt help either.
This system has been working flawlessly until recently.

Is there anything else I can turn on in order to see a more verbose 
mod_jk
error

Also I have noticed that I can re-create the problem . If I shut down
the apache server and restart it.
Also after viewing the logs in mod_jk.log and catalina.out that it 
appears
robots looking for files on my server has caused this problem as well :(

here is an excerpt from my error_log file:

[Sun Jun  1 08:44:52 2003] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux)
mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 
mod_jk/1.2.1
configured -- resuming normal operations
[Sun Jun  1 08:44:52 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Sun Jun  1 08:44:52 2003] [notice] Accept mutex: sysvsem (Default: 
sysvsem)
[Sun Jun  1 08:50:34 2003] [notice] caught SIGTERM, shutting down
[Sun Jun  1 08:50:36 2003] [error] (2)No such file or directory: Error 
while
opening the workers, jk will not work

[Sun Jun  1 08:50:36 2003] [error] (2)No such file or directory: Error 
while
opening the workers, jk will not work

Thanks in advance

Rob Cartier



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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Starting Tomcat without logging in as root?

2003-06-02 Thread John Turner
True, but it doesn't help much if everyone has a Tomcat configured to 
listen on port 80.

If I have 10 students, and they each need their own Tomcat instance, using 
ports less than 1024 doesn't make much sense, as there are other network 
services in that port space.  So using > 1024 doesn't need su.

John

On Mon, 02 Jun 2003 13:45:10 +0300, Mirit Naim <[EMAIL PROTECTED]> wrote:

there is a utility called sudo that enables you to give regular users
permissions to run commands as privileged users. If you use it, your
users will be able to stop/start tomcat, while it is installed in
another account (in your case root), without being able to su to root.
[EMAIL PROTECTED] 06/02/03 02:41PM >>>
On Mon, 2 Jun 2003 19:30, Tim Funk wrote:
If each student runs their own tomcat instance, then just have
tomcat
listen on a port above 1024.
Plus they would each need an instance of Tomcat in their home
directory, I'd say that's where the permission denied is coming from it's 
probably
currently installed in /opt/tomcat4 or some such.

Regards,


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Why am I recieiving this?

2003-06-02 Thread John Turner
Seems pretty self-explanatory to me.

The mail administrator at logicaonline.com (look at the headers in the 
message!!) has blacklisted your email address.

John

On Mon, 2 Jun 2003 00:02:02 -0700, Dan Tran <[EMAIL PROTECTED]> wrote:

I receive the below text every time I post a message to this group. ??

- Original Message - From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 7:47 PM
Subject: RE: Re: Filter out certain user accounts

Dear [EMAIL PROTECTED],

Your recent message to this server regarding `Re: Filter out certain 
user
accounts`
was not delivered.  Your address is listed in one or more suppression
files
on this server or your account is configured to allow local mail traffic
only.
Please contact the postmaster at this domain if additional information 
is
required.

Thank you,

[EMAIL PROTECTED]



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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Thanks to John and Geralyn

2003-06-02 Thread John Turner
On Sun, 1 Jun 2003 14:56:19 +0800, joe <[EMAIL PROTECTED]> wrote:

Hi john and geralyn, thanks for the warmly and prompt reply. I think now 
at
least i know what is going on.However, i'm still unsure of the following
things:

1) Based on John wonderful's Howto, i think you are using both mod_jk.so 
and
mod_jk-2.0.43.so. I was wondering is it a typo or this should be the way.
Kind of confused here when i saw version appearing on it.
It is not a typo...there are many versions of mod_jk.so floating around.  
They are Apache-version sensitive...that is, a version of mod_jk.so for 
Apache 1.3 will not work for Apache 2.0.  Putting the Apache version number 
in the file name is just housekeeping.  When you get it onto your system, 
you can call it whatever you want.

John

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: installing Tomcat without being root

2003-06-02 Thread John Turner
On Mon, 2 Jun 2003 09:44:07 +0200, <[EMAIL PROTECTED]> wrote:

Hello,
thanks to your advice i had been able to install tomcat and run all my
servlets, but I have still 2 problems:
1) Having   installed TomCat standalone as a non-root user, TomCat is
reachable only at port 8080, while the DNS is set for the port 80,
ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do 
is
this case?
Only root can bind a process to port 80.

2) the Host inside (the Engine tag) has still the name "localhost", and 
not
the name it should have www.myhost.com. It works all fine, either 
browsing
the my site remotely and locally. I read through the documentation, and i
did not find what is the difference between having it set to "localhost" 
or
to the right host name ("www.myhost.com"). Any hint?
The name is the name of the virtual host that Tomcat will respond to.  If 
it is "localhost" and Tomcat receives a request for "my.domain.com", then 
Tomcat will not serve it, or will serve it using the default Host and 
Context, which may or may not be what you want.  If you want Tomcat to 
respond to requests for "my.domain.com", then set up a Host container and 
use "my.domain.com" for the name parameter, just as it is done for 
"localhost".

John

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Restrict WebDAV servlet to context subdirectory

2003-06-02 Thread Sven Kuenzler
I would like to use the webdav servlet in the context of another web 
application. In particular, WebDAV only should make files beneath a 
certain subdirectory, say "docs/usr", available.

So I tried:

 
webdav
/docs/usr/*

However, this produces strange behaviour trying to do a PROPFIND on 
several locations.
If I try to access /webapp/docs/usr, PROPFIND returns the files 
contained in the directory. That's what I expected.
But:
If I try to access /webapp/docs/usr/, PROPFIND gives *all* files beneath 
the webapp root.
If I try to access /webapp/docs/usr/foo.txt (which exists in the 
folder), I get an 404 Not Found.

I looked into the WebDAV servlet if I there is a "mount point" parameter 
or something like that. But there is not.

Anything else to try?

Thanks, Sven



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


Re: /admin

2003-06-02 Thread Jason Bainbridge
On Mon, 2 Jun 2003 18:26, Dominic Parry wrote:
> java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission

Is naming-common.jar in your CATALINA_HOME\common\lib ? I'm not sure why it 
wouldn't find it if it is, maybe CATALINE_HOME needs to be explicitly 
declared when running Tomcat in process through JNI?

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

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



Re: Starting Tomcat without logging in as root?

2003-06-02 Thread Mirit Naim
there is a utility called sudo that enables you to give regular users
permissions to run commands as privileged users. If you use it, your
users will be able to stop/start tomcat, while it is installed in
another account (in your case root), without being able to su to root.

>>> [EMAIL PROTECTED] 06/02/03 02:41PM >>>
On Mon, 2 Jun 2003 19:30, Tim Funk wrote:
> If each student runs their own tomcat instance, then just have
tomcat
> listen on a port above 1024.

Plus they would each need an instance of Tomcat in their home
directory, I'd 
say that's where the permission denied is coming from it's probably
currently 
installed in /opt/tomcat4 or some such.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[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: Manager app and HttpURLConnection

2003-06-02 Thread Tim Funk
That is because the manager servlet is protected. A 401 response code is a 
challenge back to the client and the client needs to resend a new request 
with the Header: WWW-Authenticate with the userid and password. More information:
http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html#sec-10.4.2

-Tim

Dominic Parry wrote:
Hi

I'm trying to do this:

try {
 URL url = new URL("http://localhost/manager/reload?path=/DynaServlet";);
   HttpURLConnection con = (HttpURLConnection)url.openConnection();
   BufferedReader in = new BufferedReader(
new InputStreamReader(
con.getInputStream()));
 String inputLine;
while ((inputLine = in.readLine()) != null)
 out.write(inputLine + "");
 in.close();
  } catch (Exception e) {
   out.write(e.toString()+"");
  }
from an HttpServlet. I'm getting:

java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost/manager/reload?path=/DynaServlet

even when I change the URL to something like http://user:[EMAIL PROTECTED]/manager/reload?path=/DynaServet I get the same exception.

Any ideas why?

Thanks

Dom


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


Re: Starting Tomcat without logging in as root?

2003-06-02 Thread Jason Bainbridge
On Mon, 2 Jun 2003 19:30, Tim Funk wrote:
> If each student runs their own tomcat instance, then just have tomcat
> listen on a port above 1024.

Plus they would each need an instance of Tomcat in their home directory, I'd 
say that's where the permission denied is coming from it's probably currently 
installed in /opt/tomcat4 or some such.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

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



jsp evaluation into a stream instead of response?

2003-06-02 Thread Holger Klawitter
Hi there,

I am trying to create a servlet which basically sends an email. I would like 
to create a HTML File as part of that mail. As there is some kind of dynamic 
involved it would be nice to create that HTML data from a JSP file.

My only current idea to is create an artificial HTTP Request and sending it to 
the local server. Is there more direct/elegant way?


Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
[EMAIL PROTECTED]


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



Manager app and HttpURLConnection

2003-06-02 Thread Dominic Parry
Hi

I'm trying to do this:

try {
 URL url = new URL("http://localhost/manager/reload?path=/DynaServlet";);
   HttpURLConnection con = (HttpURLConnection)url.openConnection();
   BufferedReader in = new BufferedReader(
new InputStreamReader(
con.getInputStream()));
 String inputLine;
while ((inputLine = in.readLine()) != null)
 out.write(inputLine + "");
 in.close();
  } catch (Exception e) {
   out.write(e.toString()+"");
  }

from an HttpServlet. I'm getting:

java.io.IOException: Server returned HTTP response code: 401 for URL: 
http://localhost/manager/reload?path=/DynaServlet

even when I change the URL to something like http://user:[EMAIL 
PROTECTED]/manager/reload?path=/DynaServet I get the same exception.

Any ideas why?

Thanks

Dom

Re: Starting Tomcat without logging in as root?

2003-06-02 Thread Tim Funk
If each student runs their own tomcat instance, then just have tomcat listen 
on a port above 1024.

-Tim

[EMAIL PROTECTED] wrote:
Hello,
  My students do not login as root, but I want them to be able to start
Tomcat. Is this possible?
  Right now they get "Permission Denied" message.
  Thanks,

  Ravi Kulkarni
  [EMAIL PROTECTED]
:-)
 


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


Re: Guild on using MOD_JK2

2003-06-02 Thread Tim Funk
I do not know of a conversion guide. mod_jk and mod_jk2 are configured (not 
so) completely differently. The way to go to mod_jk2, is really to read the 
docs on jk2 (which we know are still lacking :( )and start from scratch.

As people create good how-tos on the connectors, I try to link to them from 
the faq.

http://tomcatfaq.sourceforge.net/apache.html

-Tim

joe wrote:
Hi all, i've been playing with mod_jk connector and thanks to this email
chain that i've finally got it to work...However, it seems that i've read
that mod_jk2 connector is much better than mod_jk. Could anyone give me some
update URL/guide or changes i need to make to migrate to use mod_jk2?
Those that i have found on the web or in this mailing lists are all outdated
or it doesn't fit my configuration when i try to follow the step in
building/install the module. I really hope someone could come out with a
more updated links on building and using the latest version of source
available.(i wish i could if i know how to).
Below are the configuration that i'm using.
Red Hat 8.0
J2SDK 1.4.1
Apache 2.0.46
Tomcat 4.1.24
Regards,
Joe


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


Starting Tomcat without logging in as root?

2003-06-02 Thread ravi
Hello,
  My students do not login as root, but I want them to be able to start
Tomcat. Is this possible?
  Right now they get "Permission Denied" message.

  Thanks,

  Ravi Kulkarni
  [EMAIL PROTECTED]
:-)



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



Re: Expression Language question

2003-06-02 Thread Tim Funk
Ooops, sorry, I misread. How's this instead ...


  


  

  
  

  
  

  

-Tim

Nikola Milutinovic wrote:
I think that's the ticket.


Yes, Tim, but I'd like to be able to differentiate between "user not logged in" - session.isNew() and "user logged in, but error in web-app" - !session.isNew() and session.getAttribute( "userID" ) == null.

Is there a way to call a method from EL? Like:



Or would this defeat the purpose of introducing EL?

Nix.




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


Re: /admin

2003-06-02 Thread Dominic Parry
I that case, I can't seem to get it to run. When I try to deploy, I get:

2003-06-02 10:38:24 HostConfig[localhost]: Deploying web application directory admin
2003-06-02 10:38:24 StandardHost[localhost]: Installing web application at context 
path /admin from URL file:C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin
2003-06-02 10:38:24 WebappLoader[/admin]: Deploying class repositories to work 
directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\admin
2003-06-02 10:38:24 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin\WEB-INF\classes
2003-06-02 10:38:25 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\admin\WEB-INF\lib\struts.jar
2003-06-02 10:38:25 HostConfig[localhost] Error deploying web application directory 
admin
java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission
 at 
org.apache.naming.resources.DirContextURLStreamHandler.openConnection(DirContextURLStreamHandler.java:135)
 at java.net.URL.openConnection(URL.java:943)
 at sun.net.www.protocol.jar.JarURLConnection.(JarURLConnection.java:64)
 at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24)
 at java.net.URL.openConnection(URL.java:943)
 at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:903)
 at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)

I'm running tomcat with jk2 on IIS.
  - Original Message - 
  From: Kwok Peng Tuck 
  To: Tomcat Users List 
  Sent: Monday, June 02, 2003 12:30 PM
  Subject: Re: /admin


  No. You may use it even if it is connected to apache or some other webserver

  Dominic Parry wrote:

  >Hi
  >
  >I'm I right to assume that the /admin app is only needed to configure the Tomcat if 
it is used as a standalone web server.
  >
  >Thanks
  >
  >Dom 
  >  
  >


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



Re: /admin

2003-06-02 Thread Kwok Peng Tuck
No. You may use it even if it is connected to apache or some other webserver

Dominic Parry wrote:

Hi

I'm I right to assume that the /admin app is only needed to configure the Tomcat if it is used as a standalone web server.

Thanks

Dom 
 



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


/admin

2003-06-02 Thread Dominic Parry
Hi

I'm I right to assume that the /admin app is only needed to configure the Tomcat if it 
is used as a standalone web server.

Thanks

Dom 

RE: polish chars

2003-06-02 Thread Euan Guttridge
Thanks,

Adding this to the env fixed both Linux and Solaris:

NLS_LANG="AMERICAN_AMERICA.UTF8"; export NLS_LANG

-Original Message-
From: Ari Suutari [mailto:[EMAIL PROTECTED] 
Sent: 02 June 2003 10:53
To: Tomcat Users List; Euan Guttridge; '[EMAIL PROTECTED]'
Subject: Re: polish chars


Hi,

On Monday 02 June 2003 12:52, Euan Guttridge wrote:
> I am getting "??" instead of polish characters. Any config I need to 
> look at? Works fine on NT, not on Linux.
>
> - j2sdk1.4.1
> - tomcat 1.1.24
> - red hat linux 7.2


I had a similar problem on linux. It was
because I was missing the "LANG" environment
variable.


Ari S.

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



Re: polish chars

2003-06-02 Thread Ari Suutari
Hi,

On Monday 02 June 2003 12:52, Euan Guttridge wrote:
> I am getting "??" instead of polish characters. Any config I need to look
> at? Works fine on NT, not on Linux.
>
> - j2sdk1.4.1
> - tomcat 1.1.24
> - red hat linux 7.2


I had a similar problem on linux. It was
because I was missing the "LANG" environment
variable.


Ari S.


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



polish chars

2003-06-02 Thread Euan Guttridge
I am getting "??" instead of polish characters. Any config I need to look
at? Works fine on NT, not on Linux.

- j2sdk1.4.1
- tomcat 1.1.24
- red hat linux 7.2


Thanks

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



page cannot be displayed

2003-06-02 Thread Keith Mastin

Just instaled tomcat on a redhat-7.3 server that's already running
ssl-enabled apache-1.3.27. I can connect via localhost:8080 with lynx, but
when I dial with the ip address:8080 on either mozilla or IE I get a page
cannot be displayed error.

I checked the archives and didn't see this problem.

Firewall allows tcp connections to 8080. As far as I can figure, there
must be some config thing I didn't do or see in the docs. I didn't change
any of the conf files for tomcat yet, not sure that I need to.

Any ideas or pointers would be greatly appreciated.

TIA
-- 
Keith Mastin
BeechTree Information Technology Services Inc.
Toronto, Canada
(416)696 6070



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



JK2 woes

2003-06-02 Thread David Bolshoy
 Hi,

Could someone shed more light on the following JK2 messages:

[Sun Jun 01 18:49:29 2003] (error ) [jk_channel_un.c (422)]  channelUn.receive(): 
error receiving -1 0 Success 859a460 19
Jun 1, 2003 6:49:29 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 12
Jun 1, 2003 6:49:29 PM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   12
[Sun Jun 01 18:49:29 2003] ( info ) [jk_jni_aprImpl.c (472)]  jkInvoke() invoke 
4e2acce8 
[Sun Jun 01 18:49:29 2003] ( info ) [jk_channel_un.c (298)]  channelUn.close(): close 
unix socket 19 

Once in a while, these messages appear and Apache hangs. I have to kill the Apache 
process and start it again!
What about high availability? :(

system settings:
Linux RH 8
Apache 2.0.45
JK2.0.2
Tomcat 4.1.18

Any help will be appreciated.

Thanx!

David


RE: mod_jk.log errors

2003-06-02 Thread Marco Laponder
Sorry, little bug in my mail ;-) The second connector is not commented out
in my current situation ! 

So my server.xml looks this connector:
 



> -Oorspronkelijk bericht-
> Van: Marco Laponder [mailto:[EMAIL PROTECTED]
> Verzonden: maandag 2 juni 2003 9:42
> Aan: 'Tomcat Users List'
> Onderwerp: RE: mod_jk.log errors
> 
> 
> 
> port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" connectionTimeout="0"
>useURIValidationHack="false"
>  
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> 
> 
>  > Van: John Turner [mailto:[EMAIL PROTECTED]
> > Verzonden: woensdag 28 mei 2003 19:18
> > Aan: Tomcat Users List
> > Onderwerp: Re: mod_jk.log errors
> > 
> > 
> > 
> > Search in server.xml for '8009' and see how many times it 
> > comes up, and 
> > whether each occurence is enabled or disabled.
> > 
> > John
> > 
> > On Wed, 28 May 2003 14:51:38 +0200, Marco Laponder 
> > <[EMAIL PROTECTED]> 
> > wrote:
> > 
> > > It must be in the tomcat4 configuration as when I call 
> > netstat -na | grep 
> > > 8009
> > >
> > > I get no output when tomcat is not started, when I start 
> > tomcat and call
> > >
> > > netstat -na | grep 8009
> > >
> > > gives the following output:
> > >
> > > tcp0  0 0.0.0.0:80090.0.0.0:* 
>   
> > > LISTEN
> > >
> > > So my guess is that somewhere in my configuration of 
> > tomcat4 I made a
> > > mistake so it is trying to use port 8009 twice. Anyone an 
> > idea what I did
> > > wrong ?
> > >
> > > Kind regards,
> > > Marco Laponder
> > > mlr AT interchain DOT nl
> > >
> > >> Well, the error message is:
> > >>
> > >> INFO: Port busy 8009 java.net.BindException: Address 
> already in use
> > >>
> > >> That means only one thing: you have something else 
> > listening on port 
> > >> 8009.  Either another version of Tomcat, or something 
> > else.  Only you 
> > >> can discover what that is, as none of us have access to 
> > your machine.  
> > >> Verify that you have nothing starting up automatically 
> > without your 
> > >> knowlege.
> > >>
> > >> John
> > >
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> > 
> > -- 
> > Using M2, Opera's revolutionary e-mail client: 
> http://www.opera.com/m2/
> 
> -
> 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]



JK binaries for Solaris

2003-06-02 Thread Sharon Stahl
Hi everyone,
  I have had problems compiling mod_jk from source and have posted
my message a couple of times to the mail list but no one has responded
to my questions yet.

I have tried to get the binaries but  all the solaris directories
for binaries are empty at the following site.
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/
(I have tried all versions)

I am running apache-1.3.26  with tomcat 4.0.6 and am currently
running the webserver on a Solaris 2.7 OS.  

Do I have to use a library that was compiled on the same OS or can I use 
one say that was built on Solaris 2.6 on a Solaris 2.7 machine?  (not 
that I of those either)

Thank you for any help you can give me.
Aloha, Sharon Stahl
 
*=*
| UH/SOEST-Research Computer Fac  vox: (808) 956-2616 |
| 1680 East West Rd- POST820email: [EMAIL PROTECTED] |
| Honolulu, Hi 96822  fax: (808) 956-5154 |
*=*


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



Re: building mod_proxy Apache 1.3

2003-06-02 Thread Sharon Stahl
 Hi Eric,
   I have not done this but I notice that you don't mention running
   'make' after you did the configure.   configure should have produced
   a Makefile.  When you run make do you get the mod_proxy.so or are
   you getting some kind of error?
   
Aloha, Sharon


> From: Eric fiedler <[EMAIL PROTECTED]>
>
> Has anyone who has integrated Apache and Tomcat built mod_proxy by any
> chance?
> 
> My documentation on the Jakarta tomcat proxy hot-two document says to run
> the following command. I am on a Solaris machine:
> 
>   ./configure --enable-module=proxy
> 
> This creates a file called mod_proxy.o; not mod_proxy.so as the
> documentation says it should. The next step the documentation says is too
> add the line "LoadModule proxy_module libexec/mod_proxy.so" and as stated, I
> have mod_proxy.o
> 
> Anyone know what I am doing wrong or something else that should be done?
> 
> 
> Thanks.
 


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



RE: Jboss to parse exsisting tomcat server.xml ...

2003-06-02 Thread Paul Gregoire
-- this is my 3rd attempt to answer a question please disregard if youve seen it 
already :) --

To make changes to tomcat under jboss you must edit tomcat41-service.xml not 
server.xml; changes made to the server.xml will not be used by tomcat.
The Tomcat bundled with JBoss uses the tomcat41-service.xml file, located in your 
/deploy directory of the selected configuration set. This file should be nearly 
identical to a regular server.xml.

Might i suggest that you purchase the JBoss 3.0 Handbook for further details, this 
book kicks ASS!
http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1045677540/sr=8-1/ref=sr_8_1/104-9967696-6863144?v=glance&s=books&n=507846

And no i dont get any kickbacks.. :(

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 12:55 PM
To: [EMAIL PROTECTED]
Subject: Jboss to parse exsisting tomcat server.xml ...


Hi,
Can any one tell me ( or give me ) an example of how to make jboss
parse my existing tomcat server.xml file ???
jboss 3.0.X and tomcat 4.1.18. ( windows / linux )



Thanks & Regards
Guru :-)



-
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]



Can't find TomcatStarter

2003-06-02 Thread Allen Williams
Attempt to integrate Tomcat- Apache with jk2 on WinNT 4.0.

Getting the following error:
[Mon May 26 20:13:47 2003] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Mon May 26 20:13:47 2003] [error] Can't find class
org/apache/jk/apr/TomcatStarter
[Mon May 26 20:13:47 2003] [notice] vm.detach() ok
[Mon May 26 20:13:47 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup

With the following germane area from the workers2.properties:

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll JVM="E:\Program
Files\Java\jdk1.3.1_07\jre\bin\hotspot\jvm.dll"
OPT=-Djava.class.path="E:\Program Files\Apache Group\Tomcat
4.1\bin\tomcat-jni.jar;E\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar;E:\Program Files\Apache Group\Tomcat
4.1\server\lib\commons-logging.jar"
OPT=-Dtomcat.home=${CATALINA_HOME}
OPT=-Dcatalina.home=${CATALINA_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0

How do I tell it where to find TomcatStarter?

Allen N. Williams
Senior Consultant
[EMAIL PROTECTED]
Voice:  +1.321.728.1995
Fax: +1.321.722.0580





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



RE: Access Log Valve

2003-06-02 Thread Tyndall, David
Thanks Much worked GREAT

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:42 AM
To: Tomcat Users List
Subject: RE: Access Log Valve



Howdy,
Just comment it in server.xml.  It's commented out by default.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tyndall, David [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 29, 2003 10:40 AM
>To: '[EMAIL PROTECTED]'
>Subject: Access Log Valve
>
>
>Ok I have TOMCAT 4.1.8 running with no issues. I have it configured to
>run on a win2k server as a service ( setup this way during install) I
>would like to turn this logging feature on Access Log Valve. I know I
>need to make changes to the registry but not too sure how to go about
>it. located in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\
>Services\ tomcat whatever.
>
>WHAT do I add Someone must have already went through this.
>
>
>Thanks
>
>Dave
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



Cannot recover key" error and SSL

2003-06-02 Thread Dan LeBaron
I'm running Tomcat 3.2 on a Windows 2000 Server.  After following the
instructions in the SSL doc that come 


with tomcat I run startup.bat and get the following error.  Any help
would be greatQQ
 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /examples )
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2003-05-31 11:19:11 - ContextManager: Adding context Ctx(  )
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /test )
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /VISICOM )
2003-05-31 11:19:12 - PoolTcpConnector: Starting HttpConnectionHandler
on 80
FATAL:java.io.IOException: Cannot recover key
java.io.IOException: Cannot recover key
at
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.jav
a:191)
at
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.
java:118)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at
 
Dan
 


Thanks to John and Geralyn

2003-06-02 Thread joe
Hi john and geralyn, thanks for the warmly and prompt reply. I think now at
least i know what is going on.However, i'm still unsure of the following
things:

1) Based on John wonderful's Howto, i think you are using both mod_jk.so and
mod_jk-2.0.43.so. I was wondering is it a typo or this should be the way.
Kind of confused here when i saw version appearing on it.

2) I had tried downloading mod_jk2 source connector from jakarta website but
i have problem building the connectors. I tried to build by first modifying
the workers.properties to suits my configuration and then followed by
invoking 'ant' command on it. It gave me this error, saying
/usr/local/tomcat-jk2-connector/coyote/ not found. My check with the
folder is that there isn't such a folder named coyote. What should be the
proper way to build mod-jk2? or can i just use the binary version available
on apache website which is meant for apache 2.0.42, wherelse i'm using
2.0.46?

Regards,
Joe


- Original Message - 
From: "Geralyn M Hollerman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 8:56 PM
Subject: Re: Need Help in clearing my doubts


> Joe wrote:
> > According to one of the mail which I have received, I saw him putting
> > this in apache : httpd.conf:
> >
> > 
> > 
> >   JkWorkersFile
> > /home/gmh2441/uPortal/Tomcat_4-0-4/conf/workers.properties
> >   JkLogFile /home/gmh2441/uPortal/Tomcat_4-0-4/logs/mod_jk.log
> >   JkLogLevel debug
> >   JkOptions +ForwardDirectories
> >   Alias /examples /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples
> >   
> > Options Indexes FollowSymLinks
> >   
> >   
> > AllowOverride None
> > deny from all
> >   
> > 
> > 
> >
> > I tried putting the same thing into my httpd.conf, and now accessing the
> > example folder on port 80 works!.
>
> Joe,
> 'gmh2441' is me! That was an effort of mine, based on something I'd read
> - I've been to John Turner's site and tried his HOW-TO, but since we
> weren't using the exact same versions, I wasn't sure whether it would
> work or not. What I have read since, in an Apache-Tomcat book at a local
> bookstore, was that I needed that  entry in there. It works
> for you? That's GREAT! It didn't for me - but then again, there may've
> been something else unintended in there - I'll have to look again. I can
> get static files to display, but I can't get .jsps or .class files to
> execute - I see from my apache log that every request gets a 400 (bad
> request) response.
>
>
> > My question is :
> >
> > 1) Based on the above config, it is asking apache to 're-direct' this
> > folder to the tomcat container and thus run on it. In that case, is
> > apache pushing all the jobs to tomcat instead?. What if some of the
> > files in this folder contains some html and is tomcat or apache
> > processing it??
>
> I think there was a "JkMount" directive after all that - I believe that
> would decide which files go to Apache and which to Tomcat.
>
> > 2) Secondly, if I were to have more folders which I need to publish on
> > the web, does it mean that I have to add or of it on this config file in
> > order for it to work?
>
> Try this URL for the answer to this - it's a sample mod_jk.conf file
> from John Turner.
>
> http://www.johnturner.come/howto/mod_jk_conf.html
>
> Basically, if I understand your question right, the answer is yes.
>
> > 3) I would appreciate if there are some kind soul could give me some URL
> > on how to utilize apache tomcat to process both static and jsp content.
>
> Well, for starters, John Turner's site (http://www.johnturner.com) was
> excellent; there were some answers at the apache site
> (http://jakarta.apache.org/tomcat/); some more good advice at
> http://www.serverwatch.com/tutorials; and at
> http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html. There was
> also something I found useful, about mod_jk2, at
> http://www.pubbitch.org/jboss/mod_jk2.html. But the main thing I found
> was that about every site I went to, I had to REALLY look around to find
> what I needed - and more often than not, I had to settle for a partial
> answer to any question I had.
>
> HTH!
>
> -- 
> Lynn Hollerman.
>
> -
> 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]



Guild on using MOD_JK2

2003-06-02 Thread joe
Hi all, i've been playing with mod_jk connector and thanks to this email
chain that i've finally got it to work...However, it seems that i've read
that mod_jk2 connector is much better than mod_jk. Could anyone give me some
update URL/guide or changes i need to make to migrate to use mod_jk2?

Those that i have found on the web or in this mailing lists are all outdated
or it doesn't fit my configuration when i try to follow the step in
building/install the module. I really hope someone could come out with a
more updated links on building and using the latest version of source
available.(i wish i could if i know how to).
Below are the configuration that i'm using.

Red Hat 8.0
J2SDK 1.4.1
Apache 2.0.46
Tomcat 4.1.24

Regards,
Joe



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



RE: Session Snooper

2003-06-02 Thread bedetrob
Try this one:
http://www.krasu.ru/server/examples/jsp/snoop.html
Rob

> -Original Message-
> From: Francisco J. Bido [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 21, 2003 8:54 AM
> To: Tomcat Users List
> Subject: Re: Session Snooper
> 
> 
> I see... Any equivalents or close approximations to what Snooper is to 
> provide?
> 
> Thanks,
> -FB
> 
> 
> On Monday, April 21, 2003, at 07:48  AM, [EMAIL PROTECTED] wrote:
> 
> > Sun took the API off because of security concern.  I guess that is why 
> > it is no longer there anymore.
> >
> > Chao
> >
> > ---Original Message---
> > From: "Francisco J. Bido" <[EMAIL PROTECTED]>
> > Sent: 04/20/03 02:42 AM
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Session Snooper
> >
> >>
> >> About a two years ago I was on a project were I used a JSP utility
> > called Snooper to inspect HttpSession objects.  I figured it was widely
> > available but I couldn't find a Google hit for it.   Can anyone provide
> > an URL or email a copy?   It's not hard to create one  from scratch but
> > Snooper did some very nice rendering of the inspection results and I
> > don't have too much time at this moment.
> >
> > Thanks!
> > -FB
> >
> >
> > -
> > 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]
> 


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



Document contains no data

2003-06-02 Thread gordon
I helped setup TC-4.1.24/Apache-2.0.45/mod-jk2-2.0.2 on RH8.  When I was 
last associated with it, it seemed to work fine with some simple 
servlets.  Some "modifications" were made ( no one seems to know exactly 
what ) and now when requesting a servlet, it grinds awhile and returns 
"Document contains no data"
I tried accessing that TC on port 8080 ( I had left it listening ) and I 
receive the same error.
I installed a new copy of TC-4.1.24, changed CATALINA_HOME to the new 
install and receive the same "Document contains.." when trying to access 
localhost:8080 or localhost:8080/examples, .
Since it does it with the clean install, I figure it is something other 
than the TC.
The only exception in the logs is in localhost_admin_log and the salient 
portion is below.  The other logs indicate nothing wrong and 
catalina.out ends with

Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
May 31, 2003 7:27:30 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
May 31, 2003 7:27:30 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 31, 2003 7:27:30 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=14/242  
config=/usr/local/tomcat4/conf/jk2.properties

I checked the CLASSPATH to ensure that it was getting to the correct 
servlet.jar

I only have access to the machine via telnet when I am on campus, so it 
is a little hard to do too much exploring.

Any help as to where to start looking when I go back will be greatly 
appreciated.

Gordon

From localhost_admin_log:

2003-05-31 19:27:25 org.apache.webapp.admin.ApplicationServlet: init
2003-05-31 19:27:27 StandardContext[/admin]: Servlet /admin threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet action threw 
exception
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)

   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.NoSuchMethodError: 
javax.servlet.ServletConfig.getServletName()Ljava/lang/String;
   at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1408)
   at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
   at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152)
   at javax.servlet.GenericServlet.init(GenericServlet.java:266)

  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2003-05-31 19:27:27 StandardWrapper[/admin:invoker]: Loading container 
servlet invoker
2003-05-31 19:27:27 org.apache.catalina.servlets.InvokerServlet: init
2003-05-31 19:27:27 org.apache.jasper.servlet.JspServlet: init



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


RE: mod_jk.log errors

2003-06-02 Thread Marco Laponder




 Van: John Turner [mailto:[EMAIL PROTECTED]
> Verzonden: woensdag 28 mei 2003 19:18
> Aan: Tomcat Users List
> Onderwerp: Re: mod_jk.log errors
> 
> 
> 
> Search in server.xml for '8009' and see how many times it 
> comes up, and 
> whether each occurence is enabled or disabled.
> 
> John
> 
> On Wed, 28 May 2003 14:51:38 +0200, Marco Laponder 
> <[EMAIL PROTECTED]> 
> wrote:
> 
> > It must be in the tomcat4 configuration as when I call 
> netstat -na | grep 
> > 8009
> >
> > I get no output when tomcat is not started, when I start 
> tomcat and call
> >
> > netstat -na | grep 8009
> >
> > gives the following output:
> >
> > tcp0  0 0.0.0.0:80090.0.0.0:*   
> > LISTEN
> >
> > So my guess is that somewhere in my configuration of 
> tomcat4 I made a
> > mistake so it is trying to use port 8009 twice. Anyone an 
> idea what I did
> > wrong ?
> >
> > Kind regards,
> > Marco Laponder
> > mlr AT interchain DOT nl
> >
> >> Well, the error message is:
> >>
> >> INFO: Port busy 8009 java.net.BindException: Address already in use
> >>
> >> That means only one thing: you have something else 
> listening on port 
> >> 8009.  Either another version of Tomcat, or something 
> else.  Only you 
> >> can discover what that is, as none of us have access to 
> your machine.  
> >> Verify that you have nothing starting up automatically 
> without your 
> >> knowlege.
> >>
> >> John
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> Using M2, Opera's revolutionary e-mail client: 
http://www.opera.com/m2/

-
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: installing Tomcat without being root

2003-06-02 Thread kurtc
Hello,
thanks to your advice i had been able to install tomcat and run all my
servlets, but I have still 2 problems:

1) Having   installed TomCat standalone as a non-root user, TomCat is
reachable only at port 8080, while the DNS is set for the port 80,
ie www.myhost.com:8080 works, but www.myhost.com dont. What should i do is
this case?

2) the Host inside (the Engine tag) has still the name "localhost", and not
the name it should have www.myhost.com. It works all fine, either browsing
the my site remotely and locally. I read through the documentation, and i
did not find what is the difference between having it set to "localhost" or
to the right host name ("www.myhost.com"). Any hint?

Many thanks,
Alex

-Messaggio Originale-
Da: "Scott Reynolds" <[EMAIL PROTECTED]>
A: "Tomcat Users List" <[EMAIL PROTECTED]>
Data invio: domenica 1 giugno 2003 8.11
Oggetto: Re: installing Tomcat without being root


> Just download the .tar.gz (or the .zip) package, untar it into your home
> directory, and run it from there, giving you complete control.  As long as
you
> stick with the default port of 8080, you don't need any special privilages
to
> run it--That's what I do.
>
> Scott Reynolds
>
> --- [EMAIL PROTECTED] wrote:
> > Hello,
> > i would like to install TomCat 4.1.24 on a Linux server, and i'm not a
root
> > user.
> > Actually, the server administrator installed for me TomCat (from .rpm)
as
> > root user,
> > and then gave me the password for the user "tomcat4", but that is not
> > usefull at all, since
> > i need a complete control of the config files of tomcat, and i cannot
> > neither start it.
> > Now i would like to uninstall the current TomCat, and reinstalling it in
the
> > way i have complete control over TomCat.
> >
> > Which steps must i tell to the admin to follow, for installing correctly
> > TomCat for me?
> >
> > Greetings,
> > Alex
> >
> >
> >
> > -
> > 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: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Holger Klawitter

> javac doesn't when I set my class path variable.
>
> $ echo $CLASSPATH
> /var/tomcat4/common/lib/servlet.jar

Perhaps because you didn't
export CLASSPATH
in order to make the environment variable available to child processes of your 
shell (for details: "man bash | less +/^ENV")

Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
[EMAIL PROTECTED]


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



Realm class, Classloader

2003-06-02 Thread Oliver Wulff




I'm using Tomcat 4.1.24 and JDK 1.3.1.

I've created a custom realm which is configured like this:

   


The implementation class "test.RacfRealm" can be found only if it is
deployed to the server/lib directory.

If the Realm is configured for the context "sec_test", the class should be
loaded by the corresponding WebAppClassLoader.
What do you think?






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


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



Problems in Starting Tomcat 4.1 in Windows NT using JDK 1.2.2

2003-06-02 Thread shankar
Hi,

I have encountered this problem while I start to run the catalina.bat in the
current window.

Can anyone see this..

E:\Tomcat\bin>catalina run
Using CATALINA_BASE:   e:\tomcat
Using CATALINA_HOME:   e:\tomcat
Using CATALINA_TMPDIR: e:\tomcat\temp
Using JAVA_HOME:   c:\jdk1.2.2
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java, Compiled Code)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.ja
va, Compiled Code)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
Factory.java, Compiled Code)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java,
Compiled Code)


Thanks in advance,
Shankar


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



Why am I recieiving this?

2003-06-02 Thread Dan Tran
I receive the below text every time I post a message to this group. ??


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 7:47 PM
Subject: RE: Re: Filter out certain user accounts


> Dear [EMAIL PROTECTED],
>
> Your recent message to this server regarding `Re: Filter out certain user
accounts`
> was not delivered.  Your address is listed in one or more suppression
files
> on this server or your account is configured to allow local mail traffic
only.
> Please contact the postmaster at this domain if additional information is
> required.
>
> Thank you,
>
> [EMAIL PROTECTED]
>
>
>

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



Re: Increasing Tomcat JVM setting with Tomcat in service

2003-06-02 Thread shankar
I tried to install without spaces too. It is giving the same problem.

Can anyone suggest what else to do to install this in windows NT having jdk
1.2.2

Warm reg,
shankar


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 2:06 PM
Subject: RE: Increasing Tomcat JVM setting with Tomcat in service


> suggest it to install in a directory without space 
>
>
> -Original Message-
> From: shankar [mailto:[EMAIL PROTECTED]
> Sent: 02 June 2003 07:01
> To: Tomcat Users List
> Subject: Re: Increasing Tomcat JVM setting with Tomcat in service
>
>
> Hi,
>
> I tried to install the Tomcat 4.1 in windows NT and while starting it
stops
> at this point.
>
> E:\Program Files\Apache Group\Tomcat 4.1\bin>startup
> Using CATALINA_BASE:   ..
> Using CATALINA_HOME:   ..
> Using CATALINA_TMPDIR: ..\temp
> Using JAVA_HOME:   c:\jdk1.2.2
> E:\Program Files\Apache Group\Tomcat 4.1\bin>
>
> My jdk version is 1.2.2 as you can see that. Can U let me know as what is
> missing in the setup.
>
> I have installed the tomcat-4.1.24.exe which is meant for windows NT.
>
> Thanks in advance.
>
> Regards,
> shankar
>
>
> -
> 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: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Kwok Peng Tuck
Actually setting the $CLASSPATH should work. I prefer the 'javac 
-classpath' method, as you can specify the jars that you want instead of 
a bunch of directories in the $CLASSPATH variable.  Try combining that 
with a shell script, saves you from typing too many times. Better yet, 
use ant.

Jonathan Michael Nowacki wrote:

Holy cow!!! It worked.  Thank you very much Kwok Peng Tuck

It's still puzzles me why
javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java
works yet
javac doesn't when I set my class path variable.

$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar
$ javac MultiServlet.java
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
the $CLASSPATH variable is the same as whats after -classpath, why does
one work and the other doesn't.
-
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: Increasing Tomcat JVM setting with Tomcat in service

2003-06-02 Thread srinivasan sriram
Hi Shankar,
 
Check whether the port for the tomcat is available and not used by any other 
application.
Normally tomcat operates on 8081 port. If this is not available tomcat will not start. 
So check this out and if the port is not available change the port number and try.

shankar <[EMAIL PROTECTED]> wrote:
Hi,

I tried to install the Tomcat 4.1 in windows NT and while starting it stops
at this point.

E:\Program Files\Apache Group\Tomcat 4.1\bin>startup
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: c:\jdk1.2.2
E:\Program Files\Apache Group\Tomcat 4.1\bin>

My jdk version is 1.2.2 as you can see that. Can U let me know as what is
missing in the setup.

I have installed the tomcat-4.1.24.exe which is meant for windows NT.

Thanks in advance.

Regards,
shankar


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


Regards, 

Sriram Srinivasan  
Mobile : 9841290873 
Email : [EMAIL PROTECTED]



RE: Increasing Tomcat JVM setting with Tomcat in service

2003-06-02 Thread graghupathy
suggest it to install in a directory without space  


-Original Message-
From: shankar [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 07:01
To: Tomcat Users List
Subject: Re: Increasing Tomcat JVM setting with Tomcat in service


Hi,

I tried to install the Tomcat 4.1 in windows NT and while starting it stops
at this point.

E:\Program Files\Apache Group\Tomcat 4.1\bin>startup
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\jdk1.2.2
E:\Program Files\Apache Group\Tomcat 4.1\bin>

My jdk version is 1.2.2 as you can see that. Can U let me know as what is
missing in the setup.

I have installed the tomcat-4.1.24.exe which is meant for windows NT.

Thanks in advance.

Regards,
shankar


-
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: Increasing Tomcat JVM setting with Tomcat in service

2003-06-02 Thread shankar
Hi,

I tried to install the Tomcat 4.1 in windows NT and while starting it stops
at this point.

E:\Program Files\Apache Group\Tomcat 4.1\bin>startup
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\jdk1.2.2
E:\Program Files\Apache Group\Tomcat 4.1\bin>

My jdk version is 1.2.2 as you can see that. Can U let me know as what is
missing in the setup.

I have installed the tomcat-4.1.24.exe which is meant for windows NT.

Thanks in advance.

Regards,
shankar


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



RE: Increasing Tomcat JVM setting with Tomcat in service

2003-06-02 Thread John Corrigan
Edit the Windows Registry.

HKEY_LOCAL_MACHINE
  +  SYSTEM
+  CurrentControlSet
  +  Services
+  Apache Tomcat 4.1
  +  Parameters

Add values like:

JVM Option Number n  =  -Xms256m

Make sure to set the JVM Option Count value correctly.

 

-Original Message-
From: Regis CABARET [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 8:26 PM
To: [EMAIL PROTECTED]
Subject: Increasing Tomcat JVM setting with Tomcat in service


Hi there,

How can I increase the JVM setting when Tomcat is installed in service?

Thanks in advance,

R.

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



Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Jonathan Michael Nowacki
Holy cow!!! It worked.  Thank you very much Kwok Peng Tuck

It's still puzzles me why
javac -classpath /var/tomcat4/common/lib/servlet.jar MultiServlet.java
works yet

javac doesn't when I set my class path variable.

$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar

$ javac MultiServlet.java
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^

the $CLASSPATH variable is the same as whats after -classpath, why does
one work and the other doesn't.


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



Re: Simple question on Unicode URL in Tomcat

2003-06-02 Thread Shawn
Hiho,

try something like:

String s = URLEncoder.encode(s, enc);

s is your URL and enc is the java encoding such as "Shift_JIS".  See 
URLEncoder for more info.

Will work from java 1.4 I believe.

Had the same problem and this seems to solve it just fine.
--
Shawn
Happily using M2, Opera's revolutionary e-mail client: 
http://www.opera.com/m2/

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


Re: Expression Language question

2003-06-02 Thread Nikola Milutinovic
> I think that's the ticket.

Yes, Tim, but I'd like to be able to differentiate between "user not logged in" - 
session.isNew() and "user logged in, but error in web-app" - !session.isNew() and 
session.getAttribute( "userID" ) == null.

Is there a way to call a method from EL? Like:



Or would this defeat the purpose of introducing EL?

Nix.


Antwort: Re: Antwort: Re: JAAS LoginModule ?

2003-06-02 Thread Oliver Wulff




How can I configure an Authenticator implicitly and explicitly?






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


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



Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Kwok Peng Tuck
That's because it's javac -classpath.

Jonathan Michael Nowacki wrote:

I'm compiling with root, 

$ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
javac: invalid flag: -cp
Usage: javac  
and if I change my classpath to:
$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar
I still get the same error

$ javac MultiServlet.java 
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^

Weird isn't it.



On Mon, 2 Jun 2003, Jason Bainbridge wrote:

 

Simplify things... Firstly that extensive CLASSPATH you have created could be 
causing more problems than it is solving, so try removing it.

Then just try:

javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java

Does that work?

If not does the user you are compiling with have rights to access 
/var/tomcat4/common/lib/servlet.jar ?

Regards,
Jason
On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote:
   

This website http://www.sitepoint.com/article/509/3 says all I have to do
is put servlet.jar in my classpath to solve my problems. Unfortunitally,
it doesn't seem to work.
 

This is my error
 

--
---
   

$ javac MultiServlet.java
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
 

--
-
   

THis is my path
$ echo $CLASSPATH
/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res
ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j
ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li
b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4
/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
:/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j
:ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t
omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4
/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4
j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv
er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo
ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat
4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar
:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s
dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us
r/java/j2sdkee1.4/lib/jhall.jar
The actual code is
CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/
naming-resources.jar:/va
r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col
lections.jar:/var/tomcat
4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:
/var/tomcat4/common/lib/
ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j
asper-compiler.jar:/var/
tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom
cat4/common/lib/servlet.
jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib
/jta.jar:/var/tomcat4/co
mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/
server/lib/servlets-comm
on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l
ib/tomcat-http11.jar:/va
r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo
ns-digester.jar:/var/tom
cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var
/tomcat4/server/lib/comm
ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/
server/lib/mx4j-jmx.jar:
/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/serv

Increasing Tomcat JVM setting with Tomcat in service

2003-06-02 Thread Regis CABARET
Hi there,

How can I increase the JVM setting when Tomcat is installed in service?

Thanks in advance,

R.

Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Jonathan Michael Nowacki
I'm compiling with root, 

$ javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
javac: invalid flag: -cp
Usage: javac  

and if I change my classpath to:
$ echo $CLASSPATH
/var/tomcat4/common/lib/servlet.jar

I still get the same error

$ javac MultiServlet.java 
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^

Weird isn't it.




On Mon, 2 Jun 2003, Jason Bainbridge wrote:

> Simplify things... Firstly that extensive CLASSPATH you have created could be 
> causing more problems than it is solving, so try removing it.
> 
> Then just try:
> 
> javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java
> 
> Does that work?
> 
> If not does the user you are compiling with have rights to access 
> /var/tomcat4/common/lib/servlet.jar ?
> 
> Regards,
> Jason
> 
> 
> On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote:
> > This website http://www.sitepoint.com/article/509/3 says all I have to do
> > is put servlet.jar in my classpath to solve my problems. Unfortunitally,
> > it doesn't seem to work.
> >
> > > >This is my error
> > >
> > >--
> > >---
> > >
> > > >$ javac MultiServlet.java
> > > >MultiServlet.java:1: package javax.servlet does not exist
> > > >import javax.servlet.*;
> > > >^
> > > >MultiServlet.java:2: package javax.servlet.http does not exist
> > > >import javax.servlet.http.*;
> > > >^
> > >
> > >--
> > >-
> >
> > THis is my path
> > $ echo $CLASSPATH
> > /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res
> >ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
> > common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j
> >ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
> > ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li
> >b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
> > omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4
> >/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
> >
> > :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j
> > :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
> >
> > lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t
> >omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
> > commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4
> >/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
> > jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4
> >j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
> > lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
> >:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
> > omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv
> >er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
> > mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo
> >ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
> > erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat
> >4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
> > r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar
> >:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
> > htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s
> >dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
> > a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us
> >r/java/j2sdkee1.4/lib/jhall.jar
> >
> > The actual code is
> > CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/
> >naming-resources.jar:/va
> > r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col
> >lections.jar:/var/tomcat
> > 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:
> >/var/tomcat4/common/lib/
> > ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j
> >asper-compiler.jar:/var/
> > tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom
> >cat4/common/lib/servlet.
> > jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib
> >/jta.jar:/var/tomcat4/co
> > mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/
> >server/lib/servlets-comm
> > on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l
> >ib/tomcat-http11.jar:/va
> > r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo
> >ns-digester.jar:/var/tom
> > cat4/server/lib/tomcat-coyote.jar:/var/tomca

jk2.socket permissions

2003-06-02 Thread Chong Yu Meng
I've almost got UNIX sockets to work, but for a rather strange problem 
that could be the result of my configuration.

1. I installed Tomcat as root, and it starts up as root.
2. Apache2 starts up as user apache2 and group apache2
3. I initially created an empty file (did not want to use the jk2.socket 
inside /opt/tomcat/work, instead I created jk2.socket inside /var/run), 
and changed group to apache2
4. When Tomcat starts up, it changes the group back to root, and Apache 
cannot write to the file
5. If I changed the jk2.socket group ownership to apache2 *after* Tomcat 
starts up, the whole configuration works!

So, my question is : what is the proper method of setting the 
permissions on the file. Setting it to global read/write does not work. 
Already tried that.

Regards,
pascal chong




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


"Cannot recover key" error and SSL

2003-06-02 Thread Dan LeBaron
I am using Tomcat 3.2 on a windows 2000 Server.  Importing a signed
Geotrust SSL Cert works fine, but I receive the following error when
running tomcat.   Please help.!!
 
"Cannot recover key" error and SSL 



2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /examples ) 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /admin ) 
Starting tomcat. Check logs/tomcat.log for error messages 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( ) 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /test ) 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /VISICOM ) 
2003-05-31 11:19:12 - PoolTcpConnector: Starting HttpConnectionHandler
on 80 
FATAL:java.io.IOException: Cannot recover key 
java.io.IOException: Cannot recover key 
at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFa
ctory.jav 
a:191) 
at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocke
tFactory. 
java:118) 
at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(Pool
TcpEndpoi 
nt.java:239) 
at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConn
ector.jav 
a:188) 
at org.apache.tomcat.core.ContextManager.start(ContextManager.j ava:527)

at
 
 
Dan
 


RE: Thanks to John and Geralyn

2003-06-02 Thread Joe
Thank you very much, it finally works on my machine!

Thanks Again,
Joe

-Original Message-
From: Michenaud Laurent [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 01, 2003 4:52 PM
To: Tomcat Users List
Subject: Re: Thanks to John and Geralyn

here how i do to build mod_jk2 :

First, i download this package :
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/
jakarta-tomcat-connectors-4.1.24-src.tar.gz

untar then,

cd jk/native2
chmod u+x buildconf.sh
./buildconf.sh
./configure --with-java-home=/u/java --with-apxs2=/u/httpd/bin/apxs
--with-tomcat41=/u/tomcat --with-pcre --with-PACKAGE=yes

Then, i edit the file : server/apache2/Makefile
and i get off the -g option from the line :
EXTRA_CFLAGS= -g -O2 -pthread

Then :
make
cd ../build/jk2/apache2/
cp mod_jk2.so /modules

That's all !

> Hi john and geralyn, thanks for the warmly and prompt reply. I think
now
> at
> least i know what is going on.However, i'm still unsure of the
following
> things:
>
> 1) Based on John wonderful's Howto, i think you are using both
mod_jk.so
> and
> mod_jk-2.0.43.so. I was wondering is it a typo or this should be the
way.
> Kind of confused here when i saw version appearing on it.
>
> 2) I had tried downloading mod_jk2 source connector from jakarta
website
> but
> i have problem building the connectors. I tried to build by first
> modifying
> the workers.properties to suits my configuration and then followed by
> invoking 'ant' command on it. It gave me this error, saying
> /usr/local/tomcat-jk2-connector/coyote/ not found. My check with
the
> folder is that there isn't such a folder named coyote. What should be
the
> proper way to build mod-jk2? or can i just use the binary version
> available
> on apache website which is meant for apache 2.0.42, wherelse i'm using
> 2.0.46?
>
> Regards,
> Joe
>
>
> - Original Message -
> From: "Geralyn M Hollerman" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, May 30, 2003 8:56 PM
> Subject: Re: Need Help in clearing my doubts
>
>
>> Joe wrote:
>> > According to one of the mail which I have received, I saw him
putting
>> > this in apache : httpd.conf:
>> >
>> >
===>
>> > ===> >   JkWorkersFile
>> > /home/gmh2441/uPortal/Tomcat_4-0-4/conf/workers.properties
>> >   JkLogFile /home/gmh2441/uPortal/Tomcat_4-0-4/logs/mod_jk.log
>> >   JkLogLevel debug
>> >   JkOptions +ForwardDirectories
>> >   Alias /examples
/home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples
>> >   
>> > Options Indexes FollowSymLinks
>> >   
>> >   
>> > AllowOverride None
>> > deny from all
>> >   
>> >
===>
>> > ===> >
>> > I tried putting the same thing into my httpd.conf, and now
accessing
>> the
>> > example folder on port 80 works!.
>>
>> Joe,
>> 'gmh2441' is me! That was an effort of mine, based on something I'd
read
>> - I've been to John Turner's site and tried his HOW-TO, but since we
>> weren't using the exact same versions, I wasn't sure whether it would
>> work or not. What I have read since, in an Apache-Tomcat book at a
local
>> bookstore, was that I needed that  entry in there. It
works
>> for you? That's GREAT! It didn't for me - but then again, there
may've
>> been something else unintended in there - I'll have to look again. I
can
>> get static files to display, but I can't get .jsps or .class files to
>> execute - I see from my apache log that every request gets a 400 (bad
>> request) response.
>>
>>
>> > My question is :
>> >
>> > 1) Based on the above config, it is asking apache to 're-direct'
this
>> > folder to the tomcat container and thus run on it. In that case, is
>> > apache pushing all the jobs to tomcat instead?. What if some of the
>> > files in this folder contains some html and is tomcat or apache
>> > processing it??
>>
>> I think there was a "JkMount" directive after all that - I believe
that
>> would decide which files go to Apache and which to Tomcat.
>>
>> > 2) Secondly, if I were to have more folders which I need to publish
on
>> > the web, does it mean that I have to add or of it on this config
file
>> in
>> > order for it to work?
>>
>> Try this URL for the answer to this - it's a sample mod_jk.conf file
>> from John Turner.
>>
>> http://www.johnturner.come/howto/mod_jk_conf.html
>>
>> Basically, if I understand your question right, the answer is yes.
>>
>> > 3) I would appreciate if there are some kind soul could give me
some
>> URL
>> > on how to utilize apache tomcat to process both static and jsp
>> content.
>>
>> Well, for starters, John Turner's site (http://www.johnturner.com)
was
>> excellent; there were some answers at the apache site
>> (http://jakarta.apache.org/tomcat/); some more good advice at
>> http://www.serverwatch.com/tutorials; and at
>> http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html. There
was
>> also something I found usefu

RE: Tomcat problems every morning.

2003-06-02 Thread Paul \(BRI\)
My comment won't be that helpful - but I started out at the same place -
each morning I came in a got a call from staff saying the pages with
content pulled from the dbase was down. 

One thing I know, as others suggested, it has to do with the
JDBC/connection - in our case it happens when the network connection
between our linux box and our sql box os broken at some point - I think
the ISP does late night maintenance on the line (this is setup on an
office DSL line). We are still working to isolate the problem - but it
does seem to be JDBC related. I have tried simply pulling the cable on
the back of one box for a few seconds and the connection does die and
will not reconnect.

I plan to post back to the group when we get a better sense of the
problem - we are still fooling with it. In our case we are using MSSQL
with the MS JDBC driver. I thought I saw a post somewhere that said the
mySQL driver had a autoReconnect=true setting - I think I saw it on the
Apache site.

I hope you figure things out.

Paul

-Original Message-
From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 01, 2003 9:07 PM
To: Tomcat Users List
Subject: Re: Tomcat problems every morning.


On Sun, 01 Jun 2003 18:14:05 -0700, Hemendra Rana wrote
> Are you using mysql database on the backend too. Someone here
> pointed out that by default, mysql driver times out after every 8 
> hours. I still needs to verify whether that is the cause of my 
> problem though. Will let you know of my finds.

Why, yes, I am. And I thought perhaps MySQL was the problem - but I was
told by some people using Oracle and PostgreSQL databases that they'd
seen the problem as well. I tried putting in some code to set the driver
time-out value, but evidently I didn't do it correctly, as the problem
persisted. I don't see the error with versions of Tomcat previous to
4.1.x, tho.

Lynn Hollerman.


-
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: Database setup? - SOLVED

2003-06-02 Thread Kwok Peng Tuck
Yes it does have to be in order :) . Check the dtd that it references.

Terje Hopsø wrote:

Thanks!!

It was out of order. Now it start without errors. I was not aware of that it
had to be in a spesific order.
- Terje

-Original Message-
From: Brian Buchanan [mailto:[EMAIL PROTECTED] 
Sent: 29. mai 2003 14:15
To: Tomcat Users List
Subject: RE: Database setup?



The order of the elements in the web.xml file must be in a specific order.

As the error message states, they must appear in this order:
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref
You probably just have your nested elements out of order.  Perhaps you have
a  or  before your  which is
invalid.
If you want to know more about the format of the web.xml file, you can
download the servlet specification from Sun here:
http://java.sun.com/products/servlet/download.html

Here's a link to the 2.3 specification
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/
and refer to chapter 13 - Deployment Descriptor

Once you have that sorted out you can see what next falls out.

I would also recommend that you learn on the latest version of Tomcat
available which is 4.1.24 right now.
http://jakarta.apache.org/tomcat/

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/

FYI, If you happen to be using Windows I'd also like to offer this advice:

I used to download the .exe version and install it, but I would now
recommend the .ZIP version as it doesn't "fiddle" with your configuration.
Sure, getting it to run as a service is a bit trickier, but for development
the less fiddling the better.
As a zip file I start tomcat from the command line with

SET JAVA_HOME=(whichever jvm I want to use)
SET CATALINA_HOME=(Whever I unzipped tomcat to)
%CATALINA_HOME%\bin\startup.bat
Example:
SET JAVA_HOME=C:\j2sdk1.4.1_02
SET CATALINA_HOME=C:\jakarta-tomcat-4.1.24
%CATALINA_HOME%\bin\startup.bat
This way you can also try different JVM's and different tomcat installs
easily.
Good luck.

._. Brian Buchanan

-Original Message-
From: Terje Hopsø [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 7:45 AM
To: 'Tomcat Users List'
Subject: Database setup?
Hi,

I am trying to setup Tomcat according to the book "JavaServer Pages" page
157. But all I get when starting up tomcat is errors. I also tried JNDI but
that was less understandable so I will first try this simple setup, which I
cant understand why failes.
Anyone got a hint on what I have to to?

I have a standard Tomcat 4.1.18 and JSTL installed.

- Terje

Here is my setup in web.xml:
-

 
  javax.servlet.jsp.jstl.sql.DataSource
 
 
jdbc:mysql://db.server.no:3306/myuser,com.mysql.jdbc.Driver,myusername,mypas
sword
 

-
The error when starting tomcat is:
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
29.mai.2003 13:28:37 org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 28 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref
*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must
match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*)".
   at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
   at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
   at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
   at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37
1)

--
In my jsp-file this works fine but I want to put the datasource parameters
into web.xml instead of each jsp-file where I access a database.
---





---
-
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]

Simple question on Unicode URL in Tomcat

2003-06-02 Thread John Z Yang
Dear all:
I have a simple question regarding to the Unicode URL support in Tomcat.
If I pass a Unicode URL to Tomcat, can it retrieve the targeted content?

Some of our web pages are named under double byte characters. We have tried various 
ways to make it work but all failed. If you have a work around, please let us know.

Many thanks.

John

"Cannot recover key" error and SSL

2003-06-02 Thread Dan LeBaron
I am using Tomcat 3.2 on a windows 2000 Server.  Importing a signed
Geotrust SSL Cert works fine, but I receive the following error when
running tomcat.   Please help.!!
 
"Cannot recover key" error and SSL 


2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /examples ) 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /admin ) 
Starting tomcat. Check logs/tomcat.log for error messages 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( ) 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /test ) 
2003-05-31 11:19:11 - ContextManager: Adding context Ctx( /VISICOM ) 
2003-05-31 11:19:12 - PoolTcpConnector: Starting HttpConnectionHandler
on 80 
FATAL:java.io.IOException: Cannot recover key 
java.io.IOException: Cannot recover key 
at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFa
ctory.jav 
a:191) 
at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocke
tFactory. 
java:118) 
at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(Pool
TcpEndpoi 
nt.java:239) 
at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConn
ector.jav 
a:188) 
at org.apache.tomcat.core.ContextManager.start(ContextManager.j ava:527)

at
 
 
Dan


Re: Tomcat problems every morning.

2003-06-02 Thread Hollerman Geralyn M
On Sun, 01 Jun 2003 18:14:05 -0700, Hemendra Rana wrote
> Are you using mysql database on the backend too. Someone here 
> pointed out that by default, mysql driver times out after every 8 
> hours. I still needs to verify whether that is the cause of my 
> problem though. Will let you know of my finds.

Why, yes, I am. And I thought perhaps MySQL was the problem - but I was told
by some people using Oracle and PostgreSQL databases that they'd seen the
problem as well. I tried putting in some code to set the driver time-out
value, but evidently I didn't do it correctly, as the problem persisted. I
don't see the error with versions of Tomcat previous to 4.1.x, tho.

Lynn Hollerman.


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



Re: Tomcat problems every morning.

2003-06-02 Thread Hemendra Rana
Are you using mysql database on the backend too. Someone here pointed out that by default, mysql driver times out after every 8 hours. I still needs to verify whether that is the cause of my problem though. Will let you know of my finds.

Hemendra

Hollerman Geralyn M wrote:

On Sun, 01 Jun 2003 10:31:15 -0700, Hemendra Rana wrote

 

I am running Tomcat 4.1.24 server on Linux and every morning I get 
the following exception. Things work perfectly fine throughout the 
day after I restart the Tomcat server. Any ideas? Could this be a 
logger issue, because my server logs rotate every night.
   

...
 

2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for 
servlet jsp threw exception
org.apache.jasper.JasperException: Communication link failure: 
java.io.IOException
   

I had this same error using 4.1.12 - it seemed like it would happen after
about every 8 hours - a default timeout, perhaps? I was never able to find the
reason for it - the advice I got was to re-start the server every morning, and
I really don't like doing that...
Any ideas?

Thanks!

Lynn Hollerman.

-
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: Filter out certain user accounts

2003-06-02 Thread Dan Tran
supper!!!

Thanks
- Original Message - 
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 5:35 PM
Subject: Re: Filter out certain user accounts


> You should be able to cast ServletRequest  to HttpServletRequest.
>
> Then you'll have access to getUserPrincipal()
>
> -Tim
>
> Dan Tran wrote:
> > Hello, I would like the build filter to check for a site maintainant
flag set in application context and disallow certain user to passthruand
route them to another page.
> >
> > The problem here, the interface doFilter's ServletRequest does not have
access to getUserPrincipal, so I have no way to find out the actual user.
> >
> > Any work around?
> >
> >
>
>
> -
> 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: Filter out certain user accounts

2003-06-02 Thread Tim Funk
You should be able to cast ServletRequest  to HttpServletRequest.

Then you'll have access to getUserPrincipal()

-Tim

Dan Tran wrote:
Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to another page.

The problem here, the interface doFilter's ServletRequest does not have access to getUserPrincipal, so I have no way to find out the actual user.

Any work around?




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


Tomcat 4 jk2-2.0.2 with apache2 in solaris 8 configuration

2003-06-02 Thread Omar Vera
Hi to everybody,
I am trying to configure tomcat 4.1.24 with apache 2 using the connector
jk2-2.0.2 and I get an error message when I am making the mod_jk2.so file.
The error message is:
# make
list=' server/apache2'; \
for i in $list; do \
echo "Making $target in $i"; \
if test "$i" != "."; then \
(cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
mkdir -p ../../../build/jk2/apache2
/usr/local/apache2/build/libtool --mode=install  cp
../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2
cp ../../../build/jk2/apache2/.libs/mod_jk2.so
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.so
chmod +x
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.so
cp ../../../build/jk2/apache2/.libs/mod_jk2.lai
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.la
cp ../../../build/jk2/apache2/.libs/mod_jk2.a
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2/../../../
build/jk2/apache2/mod_jk2.a
cp: cannot access ../../../build/jk2/apache2/.libs/mod_jk2.a
*** Error code 2
make: Fatal error: Command failed for target
`../../../build/jk2/apache2/mod_jk2.so'
Current working directory
/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache2
*** Error code 1
make: Fatal error: Command failed for target `jk2-build'
 
 
I also tried to use the compiled .so file from apache for solaris 8, but
when I am starting the apache I got the following error:
 
# apache start   
httpd starting.
Syntax error on line 1019 of /etc/apache/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_jk2-2.0.43.so into server:
ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache2/modules/mod_jk2-2.0.43.so: symbol apr_pool_cleanup_null:
referenced symbol not found
/usr/apache/bin/apachectl start: httpd could not be started
 
Do you know the best way to configure successfully the connector for Apache
and Tomcat successfully?
 
Thanks in advance, I will appreciate your answers and suggestions.
 
Best regards.
 
Omar Vera


Filter out certain user accounts

2003-06-02 Thread Dan Tran
Hello, I would like the build filter to check for a site maintainant flag set in 
application context and disallow certain user to passthruand route them to another 
page.

The problem here, the interface doFilter's ServletRequest does not have access to 
getUserPrincipal, so I have no way to find out the actual user.

Any work around?



newbie install question - cannot access Tomcat remotely, only on localhost

2003-06-02 Thread Darren Gates
Hello,

I've setup JDK 1.4, Apache 1.3.26 and Tomcat 4.1.12 on a Windows 2000 server. I am 
able to successfully access:

http://localhost/   (for general web files)

and 

http://localhost:8080/  (for Tomcat jsp files - I get the default index.jsp page that 
comes with Tomcat)

and

http://myipaddress/  (for general web files, accessed remotely)

*but* I am not able to access:

http://myipaddress:8080/   (for Tomcat jsp files, accessed remotely - I get a "The 
page cannot be displayed" error)

There so no software or hardward firewall in place (i.e., port 8080 is accessible by 
external users).

Could anyone suggest a reason why Tomcat is not accessible from external clients?

Thanks,
Darren


Re: Tomcat problems every morning.

2003-06-02 Thread Hollerman Geralyn M
On Sun, 01 Jun 2003 10:31:15 -0700, Hemendra Rana wrote
 
> I am running Tomcat 4.1.24 server on Linux and every morning I get 
> the following exception. Things work perfectly fine throughout the 
> day after I restart the Tomcat server. Any ideas? Could this be a 
> logger issue, because my server logs rotate every night.
...
> 2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for 
> servlet jsp threw exception
> org.apache.jasper.JasperException: Communication link failure: 
> java.io.IOException

I had this same error using 4.1.12 - it seemed like it would happen after
about every 8 hours - a default timeout, perhaps? I was never able to find the
reason for it - the advice I got was to re-start the server every morning, and
I really don't like doing that...

Any ideas?

Thanks!


Lynn Hollerman.


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



Problems building mod_jk and mod_jk2 for apache2, tomcat41 on redhat 6.2

2003-06-02 Thread ajames
Hello tomcat-user experts,

I have been trying to build mod_jk and mod_jk2 for apache 2.0.45 (also
tried 2.0.46), tomcat 4.1.24 on redhat linux 6.2 (kernel 2.2.14-5.0), glibc
2.1.3-21, and libtool 1.3.4-3.  I can get both to configure and make ok,
but there is no resulting .so file(s) in the apache-2.0 directory.  At one
point, I did find an .so file in 1.3 directory (I'm also running 1.3 on
this system), but can not get one to create for 2.0.

On mod_jk 1.2.3, here is the output from buildconf.sh:
$ ./buildconf.sh
libtoolize --force --automake --copy
aclocal
automake -a --foreign -i --copy
automake: configure.in: installing `scripts/build/unix/install-sh'
error while copying

automake: configure.in: installing `scripts/build/unix/mkinstalldirs'
error while copying

automake: configure.in: installing `scripts/build/unix/missing'
error while copying

autoconf
$

Here is the output from configure:
$ ./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-java-home=/usr/local/jdk1.3.1_08 --with-java-platform=2 -enable-jni
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen in -ldl... yes
checking for dlfcn.h... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for test... /usr/bin/test
checking for rm... /bin/rm
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for "apache-2.0"
checking for target platform... unix
no apache given
jni enable (need JDK)
checking for JDK location (please wait)... /usr/local/jdk1.3.1_08
checking Java platform... forced Java 2
checking os_type directory...  linux
updating cache ./config.cache
creating ./config.status
creating Makefile
creating apache-1.3/Makefile
creating apache-1.3/Makefile.apxs
creating apache-2.0/Makefile
creating apache-2.0/Makefile.apxs
creating common/Makefile
creating common/list.mk
creating jni/Makefile
$

Since moving to Apache 2.0.46, I've picked up some libtool errors I don't
remember getting while on 2.0.45.  They happen during link:

$ make
...  ...
make[1]: Entering directory
`/usr/local/jakarta-tomcat-connectors-jk-1.2.3-src/jk/native/jni'
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc
-I/usr/local/apache2/include -g -O2 -DHAVE_JNI -I
/usr/local/jdk1.3.1_08/include -I /usr/local/jdk1.3.1_08/include/linux
-I../common -D_REENTRANT  -c jk_jnicb.c
/bin/sh /usr/local/apache2/build/libtool --silent --mode=link gcc
-I/usr/local/apache2/include -g -O2 -DHAVE_JNI -I
/usr/local/jdk1.3.1_08/includ

Re: Expression Language question

2003-06-02 Thread Tim Funk
I think that's the ticket.

-Tim

Nikola Milutinovic wrote:
 Simple question.

I have a JSP/Servlet combination in which Servlet is used to authenticate user and create a session. A JSP page then checks for the existence of the session and reads neccessary ID from it. I'm switching to JSTL and I'd like to switch to EL, now. Here is the old code, how can I translate it to EL?

OLD CODE
-
<%@ page contentType="text/html; charset=windows-1250"
 ...
 session="true"
 ...
%>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/sql"; prefix="sql" %>
<%
if (session.isNew()) {
  response.sendRedirect( response.encodeRedirectURL( "Error.jsp?reason=Wrong+login" ) 
);
}
%>
NEW CODE (the only thing I can come up with)
-
<%@ page contentType="text/html; charset=windows-1250"
 ...
 session="true"
 ...
%>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/sql"; prefix="sql" %>

  

-
Anybody got a better idea?
Nix. 


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


Re: IIS Authentication pops up after tomcat form base fails?why?

2003-06-02 Thread Dan Tran
Jason, thanks

I went to the connector virtual directory  and unset the basic
authentication.

it works

Thanks for your advice

-Dan
- Original Message - 
From: "Jason Bainbridge" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 12:42 PM
Subject: Re: IIS Authentication pops up after tomcat form base fails?why?


> On Sun, 1 Jun 2003 23:01, Dan Tran wrote:
> > Hello,  I have my tomcat behind IIS5 thru JK2 connector.
> > My tomcat has a form base authentication form.
> >
> > The problem here is if my tomcat form base authentication fails, IIS
pops
> > up its own diaglog window for another authentication.
> >
> > How do I prevent this?
>
> Can't remember much of IIS off the top of my head but in the server
settings
> somewhere, probably under security settings, there is an authentication
mode,
> you want to set it to something like allow anonymous access, it is
probably
> set to basic authentication at the moment. That will of course then need a
> restart of IIS.
>
> Hope that helps.
>
> Regards,
> -- 
> Jason Bainbridge
> KDE Web Team - http://kde.org
> [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: IIS Authentication pops up after tomcat form base fails?why?

2003-06-02 Thread Jason Bainbridge
On Sun, 1 Jun 2003 23:01, Dan Tran wrote:
> Hello,  I have my tomcat behind IIS5 thru JK2 connector.
> My tomcat has a form base authentication form.
>
> The problem here is if my tomcat form base authentication fails, IIS pops
> up its own diaglog window for another authentication.
>
> How do I prevent this?

Can't remember much of IIS off the top of my head but in the server settings 
somewhere, probably under security settings, there is an authentication mode, 
you want to set it to something like allow anonymous access, it is probably 
set to basic authentication at the moment. That will of course then need a 
restart of IIS.

Hope that helps.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

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



Re: Forms and JSPs

2003-06-02 Thread Jeff Knox
It works!

Instead of recompiling Apache 1.3 to use threads I installed Apache 2.0 
and mod_jk2. It took a bit of wrangling to get the configs working with 
my virtual hosts, but now everything is happy and I can use parameters 
on the URL.

Thanks everybody!

Jeff



On Saturday, May 31, 2003, at 01:04  PM, Jeff Knox wrote:

AAAH!  lol

Ok, at first I was using the Warp connector and told to dump it 
because it wasn't supported and mod_jk was the way to go. Now you are 
telling me to go with mod_jk2?! I'll take a look at it. It's times 
like these when I know why I'm a programmer and not a sysadmin.

Thanks for the info,

Jeff

On Saturday, May 31, 2003, at 12:54  PM, Jason Bainbridge wrote:

On Sun, 1 Jun 2003 03:35, Jeff Knox wrote:
OK, I moved the server.xml file from the IDE to the production
instance. Using port 8080 everything works great. I added a connector
for mod_jk and sure enough it doesn't work. Would the problem be in 
the
server.xml, httpd.conf or somewhere else? Here are the two 
connectors:
I'm guessing your problem is more related to mod_jk itself and not 
your
configuration, after a bit of googling it seems a few people had 
similar
problems without any luck and given mod_jk isn't recommended any 
longer you
might well be best to try mod_jk2, that is what I am using without any
problems.

mod_jk2 does seem a bit fickle to setup though but I didn't have much 
trouble
after reading a few howto's and the usual "I really should learn how 
to type
one day" typo's one always seems to make in configuration files.

Regards,
--
Jason Bainbridge
KDE Web Team - http://kde.org
[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]


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


Re: Tomcat problems every morning.

2003-06-02 Thread Jason Bainbridge
On Mon, 2 Jun 2003 01:31, Hemendra Rana wrote:
> I am running Tomcat 4.1.24 server on Linux and every morning I get the
> following exception. Things work perfectly fine throughout the day after
> I restart the Tomcat server. Any ideas? Could this be a logger issue,
> because my server logs rotate every night.
>
> 2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for
> servlet jsp threw exception
> org.apache.jasper.JasperException: Communication link failure:
> java.io.IOException

Don't think it's a logger issue... Are your JSP's accessing a database or a 
remote server for some other reason? Looking through Google that error is 
usually thrown through JDBC, so it could well be something on the database 
end causing it.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

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



Expression Language question

2003-06-02 Thread Nikola Milutinovic
 Simple question.

I have a JSP/Servlet combination in which Servlet is used to authenticate user and 
create a session. A JSP page then checks for the existence of the session and reads 
neccessary ID from it. I'm switching to JSTL and I'd like to switch to EL, now. Here 
is the old code, how can I translate it to EL?

OLD CODE
-
<%@ page contentType="text/html; charset=windows-1250"
 ...
 session="true"
 ...
%>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/sql"; prefix="sql" %>
<%
if (session.isNew()) {
  response.sendRedirect( response.encodeRedirectURL( "Error.jsp?reason=Wrong+login" ) 
);
}
%>

NEW CODE (the only thing I can come up with)
-
<%@ page contentType="text/html; charset=windows-1250"
 ...
 session="true"
 ...
%>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/sql"; prefix="sql" %>

  

-
Anybody got a better idea?

Nix. 

Tomcat problems every morning.

2003-06-02 Thread Hemendra Rana
Hi,

I am running Tomcat 4.1.24 server on Linux and every morning I get the 
following exception. Things work perfectly fine throughout the day after 
I restart the Tomcat server. Any ideas? Could this be a logger issue, 
because my server logs rotate every night.

Any help will be appreciated.

Thanks,
Hemendra
2003-06-01 08:32:31 ApplicationDispatcher[] Servlet.service() for 
servlet jsp threw exception
org.apache.jasper.JasperException: Communication link failure: 
java.io.IOException
   at org.apache.jasper.servlet.JspServletWrapper.service(Unknown 
Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown 
Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown 
Source)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(Unknown Source)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source)
   at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown 
Source)
   at org.apache.jsp.index_jsp._jspService(index_jsp.java:98)
   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at org.apache.jasper.servlet.JspServletWrapper.service(Unknown 
Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown 
Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
   at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown 
Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown 
Source)



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


Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Jason Bainbridge
Simplify things... Firstly that extensive CLASSPATH you have created could be 
causing more problems than it is solving, so try removing it.

Then just try:

javac -cp /var/tomcat4/common/lib/servlet.jar MultiServlet.java

Does that work?

If not does the user you are compiling with have rights to access 
/var/tomcat4/common/lib/servlet.jar ?

Regards,
Jason


On Mon, 2 Jun 2003 00:00, Jonathan Michael Nowacki wrote:
> This website http://www.sitepoint.com/article/509/3 says all I have to do
> is put servlet.jar in my classpath to solve my problems. Unfortunitally,
> it doesn't seem to work.
>
> > >This is my error
> >
> >--
> >---
> >
> > >$ javac MultiServlet.java
> > >MultiServlet.java:1: package javax.servlet does not exist
> > >import javax.servlet.*;
> > >^
> > >MultiServlet.java:2: package javax.servlet.http does not exist
> > >import javax.servlet.http.*;
> > >^
> >
> >--
> >-
>
> THis is my path
> $ echo $CLASSPATH
> /var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-res
>ources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
> common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.j
>ar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
> ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/li
>b/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
> omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4
>/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
>
> :/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.j
> :ar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
>
> lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/t
>omcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
> commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4
>/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
> jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4
>j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
> lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
>:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
> omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/serv
>er/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
> mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invo
>ker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
> erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat
>4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
> r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar
>:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
> htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2s
>dk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
> a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/us
>r/java/j2sdkee1.4/lib/jhall.jar
>
> The actual code is
> CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/
>naming-resources.jar:/va
> r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-col
>lections.jar:/var/tomcat
> 4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:
>/var/tomcat4/common/lib/
> ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/j
>asper-compiler.jar:/var/
> tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tom
>cat4/common/lib/servlet.
> jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib
>/jta.jar:/var/tomcat4/co
> mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/
>server/lib/servlets-comm
> on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/l
>ib/tomcat-http11.jar:/va
> r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commo
>ns-digester.jar:/var/tom
> cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var
>/tomcat4/server/lib/comm
> ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/
>server/lib/mx4j-jmx.jar:
> /var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.r
>enametojar:/var/tomcat4/
> server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:
>/var/tomcat4/server/lib/
> tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/ser
>ver/lib/commons-modeler.
> jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-defau
>lt.jar:/var/tomcat4/serv
> er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/v
>ar/tomcat4/server/lib/to
> mcat-jk.jar:/var/tomc

Re: faulty fix for (javax.servlet does not exist)

2003-06-02 Thread Jonathan Michael Nowacki
This website http://www.sitepoint.com/article/509/3 says all I have to do
is put servlet.jar in my classpath to solve my problems. Unfortunitally, 
it doesn't seem to work.

> >This is my error
>-
> >$ javac MultiServlet.java
> >MultiServlet.java:1: package javax.servlet does not exist
> >import javax.servlet.*; 
> >^
> >MultiServlet.java:2: package javax.servlet.http does not exist
> >import javax.servlet.http.*;
> >^
>---


THis is my path
$ echo $CLASSPATH
/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-resources.jar:/var/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/
common/lib/commons-collections.jar:/var/tomcat4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/l
ib/ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/jasper-compiler.jar:/var/tomcat4/common/lib/activation.jar:/var/t
omcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar
:/var/tomcat4/common/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/server/lib/servlets-common.jar:/var/tomcat4/server/
lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/var/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/
commons-digester.jar:/var/tomcat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var/tomcat4/server/lib/commons-beanutils.
jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4j-jmx.jar:/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/
lib/servlets-ssi.renametojar:/var/tomcat4/server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/t
omcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/server/lib/commons-modeler.jar:/var/tomcat4/server/lib/jaas.jar:/var/to
mcat4/server/lib/servlets-default.jar:/var/tomcat4/server/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/s
erver/lib/tomcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib/tomcat-warp.jar:/usr/java/j2sdk1.4.1_02/lib/dt.jar:/us
r/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eetools.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/
htmlconverter.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib/j2ee.jar:/usr/jav
a/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/usr/java/j2sdkee1.4/lib/jhall.jar

The actual code is
CLASSPATH=/var/tomcat4/common/lib/commons-dbcp.jar:/var/tomcat4/common/lib/naming-resources.jar:/va
r/tomcat4/common/lib/jdbc2_0-stdext.jar:/var/tomcat4/common/lib/commons-collections.jar:/var/tomcat
4/common/lib/naming-factory.jar:/var/tomcat4/common/lib/jasper-runtime.jar:/var/tomcat4/common/lib/
ant.jar:/var/tomcat4/common/lib/naming-common.jar:/var/tomcat4/common/lib/jasper-compiler.jar:/var/
tomcat4/common/lib/activation.jar:/var/tomcat4/common/lib/jndi.jar:/var/tomcat4/common/lib/servlet.
jar:/var/tomcat4/common/lib/commons-logging-api.jar:/var/tomcat4/common/lib/jta.jar:/var/tomcat4/co
mmon/lib/commons-pool.jar:/var/tomcat4/common/lib/mailapi.jar:/var/tomcat4/server/lib/servlets-comm
on.jar:/var/tomcat4/server/lib/commons-fileupload.jar:/var/tomcat4/server/lib/tomcat-http11.jar:/va
r/tomcat4/server/lib/servlets-cgi.renametojar:/var/tomcat4/server/lib/commons-digester.jar:/var/tom
cat4/server/lib/tomcat-coyote.jar:/var/tomcat4/server/lib/mx4j.license:/var/tomcat4/server/lib/comm
ons-beanutils.jar:/var/tomcat4/server/lib/servlets-webdav.jar:/var/tomcat4/server/lib/mx4j-jmx.jar:
/var/tomcat4/server/lib/catalina.jar:/var/tomcat4/server/lib/servlets-ssi.renametojar:/var/tomcat4/
server/lib/jakarta-regexp-1.2.jar:/var/tomcat4/server/lib/catalina-ant.jar:/var/tomcat4/server/lib/
tomcat-jk2.jar:/var/tomcat4/server/lib/commons-logging.jar:/var/tomcat4/server/lib/commons-modeler.
jar:/var/tomcat4/server/lib/jaas.jar:/var/tomcat4/server/lib/servlets-default.jar:/var/tomcat4/serv
er/lib/servlets-invoker.jar:/var/tomcat4/server/lib/servlets-manager.jar:/var/tomcat4/server/lib/to
mcat-jk.jar:/var/tomcat4/server/lib/tomcat-util.jar:/var/tomcat4/server/lib/tomcat-warp.jar:/usr/ja
va/j2sdk1.4.1_02/lib/dt.jar:/usr/java/j2sdk1.4.1_02/lib/j2ee.jar:/usr/java/j2sdk1.4.1_02/lib/j2eeto
ols.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02/lib/htmlconverter.jar:/usr/ja
va/j2sdk1.4.1_02/lib/j2ee-ri-svc.jar:/usr/java/j2sdk1.4.1_02/lib/jhall.jar:/usr/java/j2sdkee1.4/lib
/j2ee.jar:/usr/java/j2sdkee1.4/lib/j2ee-ri-svc.jar:/usr/java/j2sdkee1.4/lib/j2eetools.jar:/usr/java
/j2sdkee1.4/lib/jhall.jar

which is very long so, in short it contains:
All the J2sdk 1.4 jar files
All the J2sdk Enterprise e

when I use a servlet too many times- error

2003-06-02 Thread Munteanu Gabriel
I have a servlet that generates images dynamically.
Examples of requests:
imgChanger?text=Hello
imgChanger?text=Beautiful
etc
I play with it about 10-20 times and after that, in IE, instead of
getting the image I am getting an img square[no image]
and tomcat says:

Jun 1, 2003 6:48:06 PM org.apache.jk.server.JkCoyoteHandler action
INFO: RESET




IIS Authentication pops up after tomcat form base fails?why?

2003-06-02 Thread Dan Tran

Hello,  I have my tomcat behind IIS5 thru JK2 connector.
My tomcat has a form base authentication form.

The problem here is if my tomcat form base authentication fails, IIS pops up its own 
diaglog window for another authentication.  

How do I prevent this?

Regards

-Dan

  1   2   >