Re: Wish: add a header in mail subject

2005-10-08 Thread Kyle



Seak, Teng-Fong wrote:


   Sure, this can be used, but it's not always appropriate.  You see,
my address is at Yahoo and I receive mails in Thunderbird at home.  When
I'm not at home, I read mails in Yahoo mail, of course.  But then I
can't apply any filter (or could I?) because I need them all in the
Inbox so that Thunderbird could fetch them all later on when I'm back
home.  Well, you see the problem?  When I'm using Yahoo mail, if the
mailing-list messages contain the header, I could click on the subject
to sort them.  But now without the header, I've to read through all
message subject to see if there's anything important.

 


Surely Yahoo mail allows you to click on and sort by recipient too?


Set up a Tomcat-User contact in your Yahoo Address Book and all mail 
coming in from Tomcat should display that just like it does in 
Thunderbird, shouldn't it?


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



Re: Tracking Datasource Connection Usage?

2005-10-07 Thread Kyle



Brian Cook wrote:


JWM wrote:

Two things you can do here.

   1. Set both removeAbandoned and logAbandoned  parameters to 
true.  This will reclaim most lost connections.  And log a trace of 
what code called a connection that was never closed.



See, I don't get all this removeAbandoned discussion.

I seem to recall reading somewhere that it doesn't actually do anything 
and the commons api docs seem to indicate the getter/setter's for 
removeAbandoned are deprecated. As is apparently logAbandoned.


K

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



Re: Getting tomcat instance information into webapp

2005-10-03 Thread Kyle



David Kerber wrote:



Then how do I isolate the instances of tomcat (and their respective 
server.xml's?  Do I need multiple installations of tomcat on my disk?


Start each 'instance' of tomcat with separate CATALINA_BASE env. vars. 
This enables a different server.xml for each instance thereby allowing a 
different connector port for each instance. As for the webapp, you can 
still re-use the same code via the docBase and appBase variables by 
specifiying absolute paths. (read RUNNING.TXT with your install)


Does that work?

Alternatively, IF you can use the scenario where the users are 
connecting to the same app, but under different sub-directories of your 
domain, e.g.;


www.example.com/appA
www.example.com/appB
www.example.com/appC

Then, you can still have different contexts and/or realms (if 
necessary). But in this scenario, you wouldn't need multiple instances 
running on different ports would you? Just the one instance listening on 
the one port, with TC (as far as TC is concerned) serving up different 
webapps which all happen to point to the same absolute docBase/appBase, 
just with different jdbc connection params in their respective contexts 
connecting them to their relevant database. Surely, that's an acceptable 
solution if the only difference in your scenario is to have them 
connecting on different ports. This way there are also less ports open 
if in a secure environment.



USUAL DISCLAIMER: etc. etc. etc. i.e. I may not have the faintest idea 
of what I'm talking about and everything written above should be taken 
with a pinch of salt until proven to work AND perform in your environment.


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



Re: Getting tomcat instance information into webapp

2005-10-02 Thread Kyle
I may be misunderstanding the question, but it seems to me that this 
shouldn't really be an issue.


You have multiple instances of tamcat running. This means you will have 
multiple server.xml's (meaning multiple Engines in which you can set 
up your multiple realms and direct each different realm to whichever db 
you want to direct it to. As server.xml is unique (in std. format 
config.) to a tomcat instance, you have complete control over which 
port-instance looks at which db.


Again, because you have multiple instances, you will (should) have 
multiple contexts/context.xml's (dependent upon your tomcat version) in 
which you can set up your jdbc resources and the various connect 
criteria for the different db's.


I may be mistaken, but if the app. is written correctly _and_  the 
different resources in the different contexts are all set up with the 
same names, you could even then get away with just having the one 
context root/appbase with the one jdbcURL context-param in web.xml. In 
this way, the same code would hit and serve up the different data 
dependent upon which port-instance of tomcat it was hitting.


DISCLAIMER: I haven't tried this and I'm no tomcat expert, but I 
personally, at my lvl of expertise, am unaware of any reason why this 
wouldn't work.


Hopefully, someone more knowledgeable will jump in and correct me if I'm 
way off base.


K.


David Kerber wrote:

This question is part tomcat and part java; I'm running on a Windows 
2000 server.


I have a situation where I am going to need to run multiple instances 
of tomcat on a single machine, listening on different ports, but 
running the same application and hitting a different instance of an 
identical database (same schema, but on a different server).  So what 
I will need to do is be able to tell each instance of the application 
on its respective instance of tomcat which database to hit.
Can I pass a parameter into tomcat from a conf file based on what port 
that instance of tomcat is listening on, and then get that parameter 
into my application?  If so, how?


Another option is for my application to grab the machine name and port 
that it is handling, and hit a common database to get the 
information on what copy of the production to use.  But again, I need 
my app to be able to find port information from tomcat, and I don't 
know how to do that.


It seems like a 3rd option might be to run each instance of tomcat as 
a service, logged on with different accounts, and use a user DSN 
instead of a system DSN, with the same DSN name, but different 
connection info.  Is that possible?


If necessary, I could install multiple instances of my app at 
different context paths, but I still don't know how to tell them to 
pick up the correct database connection info.  I guess I could make a 
code change in the first page they hit, the logon.jsp, for each 
instance, but I'd rather not have to do that unless there really is no 
other way, because that would be easy to screw up when making changes 
later on...


Any suggestions as to which of the above approaches would be the best, 
or another one I haven't thought of?


Thanks!
DAve



-
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: Getting tomcat instance information into webapp

2005-10-02 Thread Kyle

Ah! Yes.

See! I did mention I wasn't an expert. :)   Yes, multiple instances, in 
my outlaid scenario equates to multiple installs. Whereas, multiple 
running instances doesn't necessarily.  Sorry.


Let me have a think about that for an hour or 4. 

How do you tell tomcat which port to listen on unless you have separate 
server.xml's (with defined connectors) each mentioning the port on which 
TC should listen?


K


David Kerber wrote:

You have multiple instances of tamcat running. This means you will 
have multiple server.xml's (meaning multiple Engines in which you 
can set up your multiple realms and direct each different realm to 
whichever db you want to direct it to. As server.xml is unique (in 
std. format config.) to a tomcat instance, you have complete control 
over which port-instance looks at which db.


Then how do I isolate the instances of tomcat (and their respective 
server.xml's?  Do I need multiple installations of tomcat on my disk?




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



Re: db-connectin is working fine, but is it pooling?

2005-09-22 Thread Kyle
Print out your Connection Object .toString() to stdout or on a page and 
you should see that it is a Pool(ed|able) Connection object.


K

Trond Hersløv wrote:


Everything works just fine, but I'm a little bit concerned that maybe I am 
generating a singel connection to the DB and not a pool of connections.
As I run  netstat -a on the machine hosting the DB, I expected to find
a lot of connections to port 3306, which my MySQL server listens to, but there 
is only one single connection. Even when I press F5 for a long time to refresh 
my IE window like a 100 times or with more windows open at the same time there 
is just this one connection to be found.
 




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



Re: Configure multiple number of aliases / sub-domains

2005-09-21 Thread Kyle
You'll have to programmatically update your 'hosts' file to add in each 
and every new sub-domain(i.e. virtualhost name) as they signup and make 
sure your machine is set to check 'hosts' for dns before going anywhere 
else.


That should do the trick.

Disclaimer: I've done this on Windows, but haven't tried it on linux.

Kyle

Assaf wrote:


Hi,

I am trying to have a host configured to pickup all
alias/ sub-domains such as 


xxx.domain.com
yyy.domain.com
xxt.domain.com 


etc. etc. etc.

The number of subdomains / aliases is very large and
can be changed frequently (therefore cannot be
configured in the server.xml file). I was hoping to
map something like:

*.domain.com

 




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



How to get process URL in different context?

2005-09-19 Thread Kyle

Hi,

I need to get hold of and process an http-encoded URL (effectively an 
operational servlet) within a different context on the same machine and 
read back the response it provides.


e.g.

from the root Context within a doPost, I need to execute 
/abc/api/action.do?param1=123param2=abc and retrieve a String response


I have tried getServletContext().getContext() to get hold of the other 
context, but that appears to return null. I can only presume this is a 
security constraint setup somewhere. ... Or is there some simple 
programming trick I appear to be missing. Can someone point me in the 
right directon as to what to read to find out how to get tomcat to let 
me do this please?

--

Kind Regards

Kyle


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



Can anyone help with a MySQL ConnectorJ prob pls?

2005-09-15 Thread Kyle

Hi All,

I am using the com.mysql.jdbc.Driver to connect to MySQL.

I have managed to retrieve an apache.commons.dbcp.PoolableConnection to 
my MySQL server and retrieve results with a server.xml Resource like so;


Resource name=jdbc/iws auth=Container 
type=javax.sql.DataSource/

 ResourceParams name=jdbc/iws
   parameter
 namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

   /parameter
   parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
   /parameter

However I don't seem to be able to pull up a MysqlPooledConnection when 
I replace that factory with;


   parameter
 namefactory/name
 
valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory/value

   /parameter


Can anyone tell me what I am missing pls?


--

Kind Regards

Kyle


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



What does Wrong Message Format mean?

2005-08-25 Thread Kyle

Anybody .. ??

pls...

K

Kyle wrote:
Hi people, 


I'm a bit stumped as to what to track/trace in this instance. Can
someone point me in the right direction please?

Apache 2.0.54
Tomcat 5.5.9  4.1.30
mod_jk 1.2.14

I am trying to integrate Apache with the 2 different versions of Tomcat
into 2 different Apache VirtualHosts. I am as far as;

Apache is integrated with TC_5.5.9 (on :8080) and works.
mod_jk connector listening on :8009

TC_4.1.30 installed and working stand-alone on :9080 
mod_jk connector listening on :9009


Each Tomcat instance has it's own user and startup script in
/etc/init.d, creating its own CATALINA_HOME, etc. envvar's. 


catalina.out in each instance tells me the server is started without
errors. 

Workers.properties looks like; 


worker.list=ajp13Wkr, cdnWkr

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=host1.Apache-VHost1.com
worker.ajp13Wkr.type=ajp13

worker.cdnWkr.port=9009
worker.cdnWkr.host=host2.Apache-VHost2.com
worker.cdnWkr.type=ajp13
-

httpd.conf
--
JkWorkersFile /opt/httpd/conf/workers.properties
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkRequestLogFormat %w %V %T
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info

And an Include directive for the JkMount mappings in each
VirtualHost tag.



Yet when I try to access a jsp on host2.apache-VHost2.com, I get the
errors below and I really have no idea where to start looking. 


I suspect it's trying to look on 8009 for the worker as opposed to 9009,
but can't confirm it. 


Can you point me in the right direction please?


mod_jk.log offers up this;


[Wed 24 Aug 2005 13:33:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:33:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:34:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:35:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=3
[Wed 24 Aug 2005 13:35:58] [error] ajp_service::jk_ajp_common.c (1758):
Error connecting to tomcat. Tomcat is probably not started or is
listening on the wrong port. worker=cdnWkr failed
[Wed 24 Aug 2005 13:35:58] [info]  jk_handler::mod_jk.c (1971): Service
error=0 for worker=cdnWkr



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



Is Ajp14 in use?

2005-08-25 Thread Kyle
When Googling, there a a number of references to Ajp14 (in conjunction 
with Ajp13), but no actual documentation on it. Not even on Jakarta.org.


I ask in relation to my problem listed in the email below;

However, one the very few references I _did_ find to ajp14 was in a CVS 
archive of jk_ajp_common.c (here: 
http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg71655.html) 
which as you can see from my error msgs below is the very file which 
appears to be throwing up the errors I'm getting. Certainly the errors 
I'm seeing are in that source file.


I also found a couple of sites attempting to show how to integrate 
Tomcat 4.1.x with Apache wherein they were  adding workers of type=ajp14 
in their workers.properties. But again, I haven't seen it documented 
anywhere. And certainly no mention of a connector / being configured 
in server.xml for Tomcat.


Finally I stumbled onto the Tomcat developers' list wherein they have a 
long discussion on AJP14 being an evolution of AJP13, but again, nothing 
conclusive.


Do I need to configure something to do with AJP14 in Tomcat 4.1.30 in 
order to get it integrated with Apache?


If so where/what can I find it? Do I need to compile something?

I could really use the assistance of those in the know pls.

K

=

Kyle wrote:
Hi people, 


I'm a bit stumped as to what to track/trace in this instance. Can
someone point me in the right direction please?

Apache 2.0.54
Tomcat 5.5.9  4.1.30
mod_jk 1.2.14

I am trying to integrate Apache with the 2 different versions of Tomcat
into 2 different Apache VirtualHosts. I am as far as;

Apache is integrated with TC_5.5.9 (on :8080) and works.
mod_jk connector listening on :8009

TC_4.1.30 installed and working stand-alone on :9080 
mod_jk connector listening on :9009


Each Tomcat instance has it's own user and startup script in
/etc/init.d, creating its own CATALINA_HOME, etc. envvar's. 


catalina.out in each instance tells me the server is started without
errors. 

Workers.properties looks like; 


worker.list=ajp13Wkr, cdnWkr

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=host1.Apache-VHost1.com
worker.ajp13Wkr.type=ajp13

worker.cdnWkr.port=9009
worker.cdnWkr.host=host2.Apache-VHost2.com
worker.cdnWkr.type=ajp13
-

httpd.conf
--
JkWorkersFile /opt/httpd/conf/workers.properties
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkRequestLogFormat %w %V %T
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info

And an Include directive for the JkMount mappings in each
VirtualHost tag.



Yet when I try to access a jsp on host2.apache-VHost2.com, I get the
errors below and I really have no idea where to start looking. 


I suspect it's trying to look on 8009 for the worker as opposed to 9009,
but can't confirm it. 


Can you point me in the right direction please?


mod_jk.log offers up this;


[Wed 24 Aug 2005 13:33:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:33:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:34:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:35:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=3
[Wed 24 Aug 2005 13:35:58] [error] ajp_service::jk_ajp_common.c (1758):
Error connecting to tomcat. Tomcat is probably not started or is
listening on the wrong port. worker=cdnWkr failed

Wrong Message Format

2005-08-23 Thread Kyle
Hi people, 

I'm a bit stumped as to what to track/trace in this instance. Can
someone point me in the right direction please?

Apache 2.0.54
Tomcat 5.5.9  4.1.30
mod_jk 1.2.14

I am trying to integrate Apache with the 2 different versions of Tomcat
into 2 different Apache VirtualHosts. I am as far as;

Apache is integrated with TC_5.5.9 (on :8080) and works.
mod_jk connector listening on :8009

TC_4.1.30 installed and working stand-alone on :9080 
mod_jk connector listening on :9009

Each Tomcat instance has it's own user and startup script in
/etc/init.d, creating its own CATALINA_HOME, etc. envvar's. 

catalina.out in each instance tells me the server is started without
errors. 

Workers.properties looks like; 

worker.list=ajp13Wkr, cdnWkr

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=host1.Apache-VHost1.com
worker.ajp13Wkr.type=ajp13

worker.cdnWkr.port=9009
worker.cdnWkr.host=host2.Apache-VHost2.com
worker.cdnWkr.type=ajp13
-

httpd.conf
--
JkWorkersFile /opt/httpd/conf/workers.properties
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkRequestLogFormat %w %V %T
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info

And an Include directive for the JkMount mappings in each
VirtualHost tag.



Yet when I try to access a jsp on host2.apache-VHost2.com, I get the
errors below and I really have no idea where to start looking. 

I suspect it's trying to look on 8009 for the worker as opposed to 9009,
but can't confirm it. 

Can you point me in the right direction please?


mod_jk.log offers up this;


[Wed 24 Aug 2005 13:33:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:33:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:34:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:35:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=3
[Wed 24 Aug 2005 13:35:58] [error] ajp_service::jk_ajp_common.c (1758):
Error connecting to tomcat. Tomcat is probably not started or is
listening on the wrong port. worker=cdnWkr failed
[Wed 24 Aug 2005 13:35:58] [info]  jk_handler::mod_jk.c (1971): Service
error=0 for worker=cdnWkr


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



Re: WebDav on Port 80

2005-08-22 Thread Kyle

On 5.5.9,

I can get http://localhost/webdav/index.html to serve up the webdav home 
page. If I just put /webdav in, I get the directory index. Though, I 
suspect I could get it to serve it up straight away if I play with the 
mapping.


AH!!! Just occured to me. I'm picking it up through Apache as opposed to 
Tomcat standalone.


K

Marius Hanganu wrote:

The problem can be reproduced. There is already a bug describing this
issue:

http://issues.apache.org/bugzilla/show_bug.cgi?id=26449

Regards,
Marius 


-Original Message-
From: George Francis [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 21, 2005 7:07 PM

To: tomcat-user@jakarta.apache.org
Subject: WebDav on Port 80

Hello,
If I downloaded the latest Tomcat 5.0 or 5.5, WebDav works 'straight out
of the box' by starting the server and opening 'localhost:8080/webdav'
as a web folder.
Great!
If I then go in to server.xml and change the port to 80; the WebDav
functionality is lost - I get a message from IE saying Cannot open
'localhost:80/webdav' as a web folder - would you like to see it's
default view instead.
Can anyone else reproduce this?  Are you all able to run webdav on port
80 without issues?  Is there any trick Im missing?
Any help greatly appreciated!.
G

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



--

Kind Regards

Kyle Lange

Tel: +61 (0)431 88 3978


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



Re: mod_jk Apache Permission Problem

2005-08-18 Thread Kyle
I dunno if it's the same in Apache 1.3, but in Apache 2.x the example 
httpd.conf file has a pair of small IfModule tags showing how to run 
Apache under non-root user for diff. OS's.


Basically you have to start Apache as root and it will then switch over, 
or so the example file says. To do this irrespecitve of the modules 
being present or otherwise, I just deleted the IfModule Tags.


K

Jeshua Lacock wrote:


Greetings,

I can't seem to make mod_jk connect successfully with Apache. Apache and 
Tomcat both works fine on their own (apache on :80 Tomcat on :8080), but 
I seem to be getting a permissions problem using mod_jk. I am able start 
Tomcat without special privileges, but when I try and start Apache as a 
non-privileged user (after starting Tomcat), I get the following error:


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



Apache/Tomcat integration - What am I doing wrong?

2005-08-16 Thread Kyle

Hi,

I really hope you folk can help me, cause I'm tearing my hair out.

Apache 2.0.54
Tomcat 5.5.9
JK 1.2.14.1

I have Apache serving multiple VHosts. I want to (eventually) integrate 
different versions of Tomcat into different VHosts, but for now, I'd 
settle for just 5.5.9 working with my default Apache VHost.


Apache works dandy alone on :80.
Tomcat works just fine on :8080.

I have the jsp-examples and servlets-examples pages displaying from 
host.domain.com/..


But I have not yet managed to get 
www.host.domain.com/prefix-examples/this_or_that_example to work 
without returning a 500 Error.


Likewise, I am unable to get the host.domain.com/admin, 
host.domain.com/manager/html or host.domain.com/manager/status to 
display over :80


Various errors I am seeing are;

File does not exist /opt/www/root/jsp-examples/this_or_that_example
File does not exist /opt/www/root/admin

or

/admin just displays the index.

Files look like this;



httpd.conf
==

ServerName host.domain.com:80
UseCanonicalName Off
DocumentRoot /opt/www/root
..
..

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
ServerName host.domain.com
ErrorLog logs/host-defaulthost-error_log
CustomLog logs/host-defaulthost-access_log common

Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf-hostname

/VirtualHost
--

server.xml
==

.

   Connector port=8009 enableLookups=false protocol=AJP/1.3/

Engine name=Catalina defaultHost=host.domain.com

	Host name=host.domain.com appBase=webapps  unpackWARs=true 
autoDeploy=true

   xmlValidation=false xmlNamespaceAware=false

Aliaslocalhost/Alias

/Host

	Listener className=org.apache.jk.config.ApacheConfig 
modJk=/opt/httpd/modules/mod_jk.so
	   workersConfig=/opt/jakarta-tomcat-5.5.9/conf/workers.properties 
forwardAll=false

   jkLog=/var/log/httpd/mod_jk.log jkDebug=info 
jkWorker=ajp13Wkr/

/Engine

  /Service

/Server
--

workers.properties
==

workers.tomcat_home=/opt/jakarta-tomcat-5.5.9
#workers.tomcat_home=/opt/tomcat

workers.java_home=/opt/java

ps=/

# The workers that your plugins should create and work with
#
worker.list=ajp13Wkr, inprocess

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=host.domain.com
worker.ajp13Wkr.type=ajp13
worker.ajp13Wkr.lbfactor=1
worker.ajp13Wkr.cachesize=30

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13Wkr

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
-


and the included file in the httpd.conf VHost above

mod-jk.conf-hostname


JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

# Static files
Alias /admin /opt/jakarta-tomcat-5.5.9/server/webapps/admin

Directory /opt/jakarta-tomcat-5.5.9/server/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
Order allow,deny
Allow from All
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /admin/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /admin/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /admin/j_security_check  ajp13Wkr
JkMount /admin/index.jsp  ajp13Wkr
JkMount /admin/host/hosts.jsp  ajp13Wkr
JkMount /admin/saved.jsp  ajp13Wkr
JkMount /admin/server/server.jsp  ajp13Wkr
JkMount /admin/resources/dataSource.jsp  ajp13Wkr

..

###
# with lots more mappings as generated by tomcat. #
###

# Static files
Alias /jsp-examples /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples

Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
Order allow,deny
Allow from all
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /jsp-examples/WEB-INF/*
AllowOverride None
deny from all
/Location


Re: Apache/Tomcat integration - What am I doing wrong?

2005-08-16 Thread Kyle

Darryl,

thanks the reply.

Responses inline

Darryl L. Miles wrote:

Kyle wrote:

I have Apache serving multiple VHosts. I want to (eventually) 
integrate different versions of Tomcat into different VHosts, but for 
now, I'd settle for just 5.5.9 working with my default Apache VHost.


Apache works dandy alone on :80.
Tomcat works just fine on :8080.

I have the jsp-examples and servlets-examples pages displaying from 
host.domain.com/..


But I have not yet managed to get 
www.host.domain.com/prefix-examples/this_or_that_example to work 
without returning a 500 Error.



First is it apache or tomcat that is returning the 500 ?


I'll leave the 500 question till I can be certain of the answer. I 
thought it could only be Apache. Will however ensure now.


Then breaking the ServerName and ServerAlias 
configuration in apache (restarting apache inbetween) 


Not certain I understand what you mean here. Break them ... ?? Do you 
simply mean give the default VHost a diff. name to the general 
ServerName directive above?




I would revise your JkMount to look like:

JkMount  /admin/*  ajp13Wkr

This will pass-thru apache everything for the webapp to TC.


The multiple jkMount Directives are auto-generated by Tomcat. I could 
revise. I just thought it best to just leave them. I suspect they are so 
that IF I were to put any static content in those directories, Apache 
would pick it up instead.




Once you have that established you can then work on your JkMount 
settings and Tomcat.  Have you checked out, understood and implement the 
information in 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases 
?

Interesting question. Read it, I have.

It is not however clear to me as to whether or not TC _MUST_ have a 
_Different_ VirtualHost Name than the default VHost name in Apache or 
whether it should be the same. And then whether or not an Alias can or 
cannot be the same as some other name for that same machine.


Does this mean effectively there should be 3 different names for the 
same machine to function in this manner? I.e.

The ServerName directive in httpd.conf
The ServerName for the default VHost AND
yet ANother different defaultHost/Host name for Tomcat

I suspect your only remaining problem now is to get Apache and Tomcat to 
see the same website document roots for the same URLs.  This maybe a 
problem if you are using deployed WARs since tomcat can and will delete 
the directory from under apache during the deployment process.


So far, I am only trying to view the examples and default admin app.s 
that come bundled with TC. If I understand you correctly here, you are 
effectively saying that the auto-conf file generated by TC is not up to 
the job and I should dump it in favour of manual inline config.


MTiA

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



Re: Apache/Tomcat integration - Update

2005-08-16 Thread Kyle

Ok,

One step at a time. Thanks so far Darryl.

I now have it working across the internal network, but not externally. 
The next step is what do I now need to do so that I can see the 
jsp/servlets-examples pages externally??


Also, as I understand it, this format means that TC 5.5.9 will be the 
only one available to ALL VHosts. I need to set up different Tomcat 
versions with the different VHosts. Another day's question for now.



{For reference, I have included the changes made to my originally mailed 
config at the bottom.}



As follow up to earlier questions;

You need to confirm that requests for the vhost are being correctly 
routed into the VirtualHost section of the apache config.  If they are 
not then there is no sense looking at the JkMount configuration yet.  ...


logging is set up differently for the global config and the default 
VHost. It is the VHost error log which is displaying the File does not 
exist errors. This file registered these internally initially and it is 
now still this file which is registering the same error for external calls.


So if you want to a single hostname in the URL then you need to 
configure both Apache (ServerName/ServerAlias) and Tomcat (Host / 
Alias) to responsd to the same hostname.



it is precisely this combo which didn't work.
Engine defaultHost=same_as_Apache_ServerName__Default_VHost
Host name=same_as_Apache_ServerName__Default_VHost
Aliaslocalhost/Alias

I have now switched them (see below) and it appears to work.



I suspect your only remaining problem now is to get Apache and Tomcat 
to see the same website document roots for the same URLs.  This maybe 
a problem if you are using deployed WARs since tomcat can and will 
delete the directory from under apache during the deployment process.


How do you mean TC can and will delete the directory from under 
Apache? Which directory do you mean? At this point, I am only trying to 
view the WARs bundled with TC. I am starting TC before Apache with the 
apps already deployed (so far).


Thanks again.

Kyle

==

httpd.conf now looks like;
--

ServerName host.domain.com:80
.

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
ServerName host.domain.com
ErrorLog logs/host-defaulthost-error_log
CustomLog logs/host-defaulthost-access_log common
/VirtualHost

Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

server.xml has been switched (localhost now defaultHost - surely this 
can't be right)

--

Engine name=Catalina defaultHost=localhost

Host name=localhost appBase=webapps  unpackWARs=true 
autoDeploy=true

   xmlValidation=false xmlNamespaceAware=false

Aliashost.domain.com/Alias

and mod_jk.conf is almost the std. auto-generated file from TC with the 
minor additions of;



Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
ADDED IN
Order allow,deny
Allow from all
/ADDED IN
/Directory
And
JkMount /jsp-examples/* ajp13Wkr



Also del'd the JNI worker in workers.properties as suggested.



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



Re: Apache/Tomcat integration - Update

2005-08-16 Thread Kyle



Darryl L. Miles wrote:


Do you have a line in Apache:

NameVirtualHost *:80

I dont think ServerName should have the port number after it.  This and 
ServerAlias are Host: header matching values.




Darryl,

yes I do.

However the ServerName directive I have been referring to in all msgs is 
the global ServerName directive that comes in much further up the file 
(example file anyway). The actual Hostname of the machine. It is this 
name I have been putting into the VirtualHost tag as the default VHost.


I.e. It is this name I want the machine to respond with rather than 
www as a default.


I'm beginning to wonder whether this is the right thing to be doing.

--
Kind Regards

Kyle


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



Re: Testing/Development environment setups..

2004-10-22 Thread Kyle Adams
To build on what others have said...

Several things I'd recommend:

1) Automate your testing and do it up front.  Project managers who
still think in terms of the waterfall approach to development tend to
place testing at the end of the project.  Inevitably timelines get tight
and testing gets cut.

That's called short term gain for long term loss, because automated
tests save SO much time when making changes in the various environments.
 A project that doesn't have automated tests will have to do days or
weeks of manual testing when a change comes through (upgrading to a new
version of Tomcat for a security patch, for example).

2) Automate, automate, automate.  This goes beyond testing to all parts
of your development, deployment, and promotion (moving from dev to test
to staging to production) process.  I would recommend using a good
scripting language that has strong integration with Java.  Ant has the
strong integration but is a bad scripting language (in large part
because it's a build tool).  Jython or the new kid on the block Groovy,
perhaps making calls to Ant classes, are better choices for automating
your deployment and promotion processes.  The more repeatable and
automated they are, the less chance for human error, the less chance for
downtime in production.

3) Production should have a maintenance window, a time when users know
there may be changes going in.  A window brings consistency to upgrades
and eases the communication to the users as to when a particular change
will go in.  For example, some of our production servers have a
maintenance window for 6 AM - 7 AM on Saturday morning, because that's
the period of least use.  Any changes to those servers go in during that
time period, unless it's an absolute emergency (in which case there's a
whole alternate approval/communication/notification process to follow).

Hope those help.

Kyle

_

Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162

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



Apps to Instances Ratio

2004-10-22 Thread Kyle Adams
We're looking at moving some of our apps from WebLogic to Tomcat.  In
WebLogic, there's a pretty low ratio of apps to managed server--many of
our applications have their own managed server (each managed server is a
separate JVM).  Things are setup that way to allow our support teams
more freedom with the servers.  They can restart the server as needed
without having to coordinate with othe support teams or impact other
running applications.

In looking at Tomcat, one of the questions I've come across is: how
many apps should run in a Tomcat instance?  That said, I know that it
varies per situation, but I'm interested in what sort of guidelines
people typically use in determining how many apps to run on one
instance.

Thanks,
Kyle

_

Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162

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



Service and Multiple Instances

2004-10-20 Thread Kyle Adams
BACKGROUND:

We're investigating migration from WebLogic 7 to Tomcat 5.  As of
WebLogic 7, BEA separates out configuration info, their equivalent of
webapps, and other data into a separate directory, much like setting
CATALINA_BASE to a different directory does for Tomcat.  BEA did this to
isolate patches and upgrades to the application code (in one directory)
from the web apps running on the server (in the other directory).

The nice thing is that this approach fit right in with the directory
standards for our servers, which separates out the application (the
server), the data (the webapps in this case), and the logs into three
separate directories: */apps/*, */data/*, */logs/*.

THE SETUP:

I'd like to do the same thing with Tomcat using CATALINA_BASE, like
so:

CATALINA_HOME - */apps/tomcat
CATALINA_BASE - */data/tomcat/${service.name}

I'd use the Service name=* attribute to differentiate between
different Tomcat instances.

THE PROBLEM:

The only problem I can see with that approach is that it would limit me
to one Service per instance.  Is that even problem?  Would there be
times when you'd want more than one Service defined in a server.xml? 
Any thoughts on this directory structure in general?

Thanks,
Kyle

_

Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162

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



Intalling Tomcat 5.0 on AIX

2004-10-08 Thread Kyle Boyd
I am trying to install Tomcat 5.0 on aix with apache. When I run the 
make file I get an error message stating mod_jk2.so does not exist. I 
would appreciate any help.

AIX 5.1
Apache 1.3.19.3
jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2, run make:
Making  in server/apache13
make[1]: Entering directory 
`/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache13'
mkdir -p ../../../build/jk2/apache13//usr/HTTPServer/libexec
/bin/sh ../../libtool --mode=install /usr/bin/cp 
../../../build/jk2/apache13/mod_jk2.la 
`pwd`/../../../build/jk2/apache13//usr/HTTPServer/libexec
/usr/bin/cp ../../../build/jk2/apache13/.libs/mod_jk2.lai 
/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.la
/usr/bin/cp ../../../build/jk2/apache13/.libs/mod_jk2.a 
/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.a
ranlib 
/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.a
chmod 644 
/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.a
libtool: install: warning: remember to run `libtool --finish 
/usr/HTTPServer/libexec'
/usr/bin/cp 
../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.so 
../../../build/jk2/apache13/mod_jk2.so
cp: ../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.so: A 
file or directory in the path name does not exist.
make[1]: *** [../../../build/jk2/apache13/mod_jk2.so] Error 1
make[1]: Leaving directory 
`/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/ 
apache13'
make: *** [jk2-build] Error 1

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


RE: jk2 over non-default port

2004-09-24 Thread Kyle Adams
From the download page, http://httpd.apache.org/download.cgi (odd that
it's not on the front page):

Important: Version 2.0.51 has a problem processing Satisfy directives
that may allow access to otherwise restricted areas. Please apply the
patch to fix this problem before using this version. A new release
incorporating the patch will be available shortly.

Kyle

_

Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162

 [EMAIL PROTECTED] 09/24/04 03:59AM 

what type of problems does 2.0.51 have??


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



RE: jk2 over non-default port

2004-09-23 Thread Kyle Adams
 add under your [channel.socket:localhost:60002]
 host=localhost
 port=60002

According to the documentation at
http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/configwebcom.html
(under channel.socket):

The name of the channels should be: channel.socket:HOST:PORT, where
HOST and PORT are the tomcat Ajp location. You could use other names and
explicitely set HOST and PORT, but this is discouraged. In most cases,
you don't need to set any other config - just add a line like
[channel.socket:localhost:8009] and all other things will have good
defaults.

So according to the documentation, I don't need to set host and port
explicitly.  But at this point, I'm willing to try anything.  So I tried
it, same result:

[Thu Sep 23 09:40:42 2004] [error] channelSocket.open() connect failed
localhost:8009 146 Connection refused
[Thu Sep 23 09:40:42 2004] [error] ajp13.connect() failed
ajp13:localhost:60002

It's almost as if Apache 2.0.51 is ignoring the settings for the
channel.socket.  I might think it wasn't finding workers2.properties
(even though I have it in the default location, under Apache's conf/
directory), except that it's picking up the URI mappings just fine. 
Might this be a bug in mod_jk2 and/or Apache HTTPD 2.0.51?

Kyle

_

Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162

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



RE: jk2 over non-default port

2004-09-23 Thread Kyle Adams
 One thought is that your port number may be too high. I'm not 
 sure what port range jk2 supports, but you may want to try something

 less than 32767.

Ding ding ding!  That was the ticket!

Port 32767 works fine.  Port 32768, and channelSocket.open() reverts
back to using the default 8009.  Boy, I hope others with high port
number find this thread, because it'll save them quite a bit of time.

BTW, thanks for the heads up on 2.0.51 having problems.  I'll have to
recompile with the patch provided on the Apache site.

Kyle


_

Kyle Adams | Java Developer  |  Gordon Food Service  |  616-717-6162

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



jk2 over non-default port

2004-09-22 Thread Kyle Adams
I've been able to get jk2 running if I use the default port; however, I
get these error messages if I try to switch to a non-default port:

[Wed Sep 22 09:26:07 2004] [error] channelSocket.open() connect failed
localhost:8009 146 Connection refused
[Wed Sep 22 09:26:07 2004] [error] ajp13.connect() failed
ajp13:localhost:60002
[Wed Sep 22 09:26:07 2004] [error] ajp13.service() failed to connect
endpoint errno=146 Connection refused
[Wed Sep 22 09:26:07 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:60002 1 1
[Wed Sep 22 09:26:07 2004] [error] lb.service() worker failed 12
for ajp13:localhost:60002

The odd thing above is that the initial channelSocket.open() is the
only thing using the default 8009.  Everything else is using the correct
60002 (see below for all relevant log and config file snippets).  All of
the examples/forum posts/mailing lists I've google'd over show the same
port throughout the error messages.

I'm just trying to setup a single apache instance connecting to a
single tomcat instance.  No load balancing, clustering, failover or
anything fancy like that.  I'm using the jsp-examples that came with
Tomcat as my test URI.

Here's my environment:

Solaris 8
JDK 1.4.2_05
Apache 2.0.51
Tomcat 5.0.28

I had problems building the connector from source, so I downloaded the
binary at
http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk2/binaries/solaris/
; even though it says it's for apache 2.0.43, it appears to work fine
with 2.0.51 when using default ports.

Here are all relevant config files, in their current state (I've tried
a myriad of variations):

* My jk2.properties has everything commented out.  I've also tried it
with channelSocket.port uncommented and set to 60002.

* server.xml snippet

  Service name=Catalina
!-- This is here for compatibility only, not required --
Connector port=60002 protocol=AJP/1.3/

Engine name=Catalina defaultHost=localhost
jvmRoute=localhost:60002
  Logger className=org.apache.catalina.logger.FileLogger /

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase /

  Host name=localhost appBase=webapps /
/Engine
  /Service

* workers2.properties (taken from
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/conf/workers2.properties.minimal?rev=1.1view=auto
with only minor modifications to make URIs work under default port):

#
# This is the minimal JK2 connector configuration file.
# 

[logger]
info=Native logger
level=ERROR

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests.
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=${serverRoot}/logs/jk2.shm
debug=0

[workerEnv:]
info=Global server options
timing=0
debug=0

[lb:lb]
info=Default load balancer.
debug=0

[channel.socket:localhost:60002]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:60002

[uri:/admin/*]
info=Tomcat HTML based administration web application.
debug=0

[uri:/manager/*]
info=A scriptable management web application for the Tomcat Web
Server.
debug=0

[uri:/jsp-examples/*]
info=JSP 2.0 Examples.
debug=0

[uri:/servlets-examples/*]
info=Servlet 2.4 Examples.
debug=0

[uri:/*.jsp]
info=JSP Extension mapping.
debug=0

* catalina.out, a snippet from the startup sequence:

Sep 22, 2004 9:25:33 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:60002
Sep 22, 2004 9:25:33 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/173 
config=/lcl/apps/tomcat/conf/jk2.properties
Sep 22, 2004 9:25:33 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7307 ms

* error_log, the startup sequence:

[Wed Sep 22 09:25:49 2004] [error] jk2_init() Can't find child 3965 in
scoreboard
[Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 0
[Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 -2
[Wed Sep 22 09:25:49 2004] [error] jk2_init() Can't find child 3967 in
scoreboard
[Wed Sep 22 09:25:49 2004] [error] mod_jk child init 1 -2
[Wed Sep 22 09:25:49 2004] [notice] Apache/2.0.51 (Unix) DAV/2
mod_jk2/2.0.2 configured -- resuming normal operations

Any ideas?

Thanks,
Kyle


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



Location of third party jar files.

2004-09-08 Thread Kyle A. Boyd
We are using a couple of third party jar files. I can only get our 
application to see them if I add them to the tomcat/common/lib/ 
directory. This is inconvenient for our setup. Is there any other way 
for Tomcat to find the jar files in the classpath (works with Tomcat 
3.2), a .xml file, or with a symbolic link?

We are using Tomcat 5.0.27.
Thanks,
Kyle
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Location of third party jar files.

2004-09-08 Thread Kyle A. Boyd
Ok, I moved them to tomcat/webapps/MyServer/WEB-INF/lib/ and I am now 
getting a java.lang.NoClassDefFoundError

Kyle
Shapira, Yoav wrote:
Hi,
The right and best way is to include copies of them in your WEB-INF/lib
directory.  Don't symlink, don't put them in common/lib or shared/lib,
don't put them on the bootstrap classpath.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Kyle A. Boyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 1:19 PM
To: [EMAIL PROTECTED]
Subject: Location of third party jar files.
We are using a couple of third party jar files. I can only get our
application to see them if I add them to the tomcat/common/lib/
directory. This is inconvenient for our setup. Is there any other way
for Tomcat to find the jar files in the classpath (works with Tomcat
3.2), a .xml file, or with a symbolic link?
We are using Tomcat 5.0.27.
Thanks,
Kyle
-
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]


Re: Location of third party jar files.

2004-09-08 Thread Kyle A. Boyd
Here is the exception:
2004-09-08 12:40:30 StandardWrapperValve[invoker]: Servlet.service() for 
servlet invoker threw exception
java.lang.NoClassDefFoundError: javax/mail/MessagingException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at com.brit.comm.EmailManager.addSender(EmailManager.java:646)
at com.brit.comm.EmailManager.readPropertiesFile(EmailManager.java:618)
at com.brit.comm.EmailManager.init(EmailManager.java:82)
at com.brit.MiniRIS.Comm.Email.init(Email.java:91)
at 
com.brit.MiniRIS.Servlet.MiniRisMonitor.getEmailManager(MiniRisMonitor.java:359)
at 
com.brit.MiniRIS.Servlet.AdminServlet.showAdminServlet(AdminServlet.java:633)
at 
com.brit.MiniRIS.Servlet.AdminServlet.parseHeader(AdminServlet.java:345)
at com.brit.MiniRIS.Servlet.AdminServlet.doGet(AdminServlet.java:221)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:169)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:479)

Kyle
Shapira, Yoav wrote:
Hi,
What's the stack trace for the NoClassDefFoundError?  Don't mistake that
for a ClassNotFoundException.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Kyle A. Boyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 2:51 PM
To: Tomcat Users List
Subject: Re: Location of third party jar files.
Ok, I moved them to tomcat/webapps/MyServer/WEB-INF/lib/ and I am now
getting a java.lang.NoClassDefFoundError
Kyle
Shapira, Yoav wrote:

Hi,
The right and best way is to include copies of them in your
WEB-INF/lib
directory.  Don't symlink, don't put them in common/lib or
shared/lib,
don't put them on the bootstrap classpath.
Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Kyle A. Boyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 1:19 PM
To: [EMAIL PROTECTED]
Subject: Location of third party jar files.
We are using a couple of third party jar files. I can only get our
application to see them if I add them to the tomcat/common/lib/
directory. This is inconvenient for our setup. Is there any other way
for Tomcat to find the jar files in the classpath (works with Tomcat
3.2), a .xml file, or with a symbolic link?
We

Re: Location of third party jar files.

2004-09-08 Thread Kyle A. Boyd
Yes, it is in tomcat/webapps/MyServer/WEB-INF/lib/. If I move it to 
tomcat/common/lib/ and restart Tomcat everything works ok.

Kyle
Shapira, Yoav wrote:
Hi,
And, is Sun's mail.jar in WEB-INF/lib?
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Kyle A. Boyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 3:57 PM
To: Tomcat Users List
Subject: Re: Location of third party jar files.
Here is the exception:
2004-09-08 12:40:30 StandardWrapperValve[invoker]: Servlet.service()
for
servlet invoker threw exception
java.lang.NoClassDefFoundError: javax/mail/MessagingException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:115)
   at com.brit.comm.EmailManager.addSender(EmailManager.java:646)
   at
com.brit.comm.EmailManager.readPropertiesFile(EmailManager.java:618)
   at com.brit.comm.EmailManager.init(EmailManager.java:82)
   at com.brit.MiniRIS.Comm.Email.init(Email.java:91)
   at
com.brit.MiniRIS.Servlet.MiniRisMonitor.getEmailManager(MiniRisMonitor.
java
:359)
   at
com.brit.MiniRIS.Servlet.AdminServlet.showAdminServlet(AdminServlet.jav
a:63
3)
   at
com.brit.MiniRIS.Servlet.AdminServlet.parseHeader(AdminServlet.java:345
)
   at
com.brit.MiniRIS.Servlet.AdminServlet.doGet(AdminServlet.java:221)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet
.jav
a:419)
   at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:1
33)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:237)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:157)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:214)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
xt.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
   at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo
ntex
tValve.java:198)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:152)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
xt.java:104)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:13
7)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
xt.java:104)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:11
7)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
xt.java:102)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:109)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
xt.java:104)
   at
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve
.jav
a:169)
   at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
xt.java:102)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
   at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
   at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
   at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java
:675
)
   at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
va:683)
   at java.lang.Thread.run(Thread.java:479)
Kyle
Shapira, Yoav wrote:

Hi,
What's the stack trace for the NoClassDefFoundError?  Don't mistake
that
for a ClassNotFoundException.
Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Kyle A. Boyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 2:51 PM
To: Tomcat Users List
Subject: Re: Location of third party jar files.
Ok, I moved them to tomcat/webapps/MyServer/WEB-INF/lib/ and I am now
getting a java.lang.NoClassDefFoundError
Kyle
Shapira, Yoav wrote:

Hi,
The right and best way is to include copies of them in your
WEB-INF/lib

directory.  Don't symlink, don't put them in common/lib or
shared/lib,

don't put them on the bootstrap classpath.
Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Kyle A. Boyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08

Tomcat 5.0.27 -- Servlet.service() for servlet invoker threw exception

2004-08-05 Thread Kyle A. Boyd
I recently upgraded from Tomcat 5.0.25 to Tomcat 5.0.27. Now at times my 
client application is getting a 500 Internal Server Error.

I found the following exception in localhost_log.2004-08-05.txt. Does 
anyone know what is causing the exception considering the same code 
works fine under Tomat 5.0.25.

2004-08-05 09:20:47 StandardWrapperValve[invoker]: Servlet.service() for 
servlet invoker threw exception
java.lang.AbstractMethodError
   at com.brit.MiniRIS.Servlet.DB.executeBatch(DB.java:423)
   at com.brit.MiniRIS.Servlet.UserDB.updateUser(UserDB.java:1395)
   at 
com.brit.MiniRIS.Servlet.MRISServlet.updateUser(MRISServlet.java:9249)
   at 
com.brit.MiniRIS.Servlet.MRISServlet.doPost(MRISServlet.java:2432)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
   at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:169)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
   at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
   at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:479)

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


RE: Best versions - of Tomcat to run with apache

2003-06-19 Thread Kyle J. Lange

Yoav,

Do you (have to for your app.) also run a certificate and or any HTTPS
pages? Or do I genuinely need Apache for such things?

MTiA


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 5:29 PM
To: Tomcat Users List
Subject: RE: Best versions - of Tomcat to run with apache



Howdy,
I did the standard apache2 - tomcat mod_jk configuration once, just to try
it out.  But I run tomcat standalone, including in production, as I find
its performance more than adequate and don't need any apache features.

Yoav Shapira
Millennium ChemInformatics



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



_Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Kyle Lange
Hi,

If this has come through 2ce now, please forgive. The 1st one I sent came back
with the signup response. 


I'm hoping someone can help me out here pls.

Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my 
sendmail is configured to listen on a different port to 25.

Is there any way, without having to rewrite code, to configure 
server.xml to contact sendmail on a port different to 25?

I would've thought I could add the port nr. to the end of the host decl. in my
mail.smtp.host resource-param, but it doesn't appear to like that.

If I've missed a piece of documentation, please just point it out.

MTiA

K



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



RE: _Not_ Port 25. Configuring Tomcat for sendmail

2003-06-13 Thread Kyle Lange
Works like a charm.

Thank you Yoav. 

Is that documented somewhere and I just plain missed it?

K

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 3:01 PM
To: Tomcat Users List
Subject: RE: _Not_ Port 25. Configuring Tomcat for sendmail 



Howdy,
Does specifying a mail.smtp.port work?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kyle Lange [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:50 AM
To: [EMAIL PROTECTED]
Subject: _Not_ Port 25. Configuring Tomcat for sendmail

Hi,

If this has come through 2ce now, please forgive. The 1st one I sent
came
back
with the signup response.


I'm hoping someone can help me out here pls.

Using Tomcat 4.1.24, I'm trying to sendmail from a .jsp app. However my 
sendmail is configured to listen on a different port to 25.

Is there any way, without having to rewrite code, to configure 
server.xml to contact sendmail on a port different to 25?

I would've thought I could add the port nr. to the end of the host
decl. in
my
mail.smtp.host resource-param, but it doesn't appear to like that.

If I've missed a piece of documentation, please just point it out.

MTiA

K



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



_Not_ Port 25. Configuring Tomcat for sendmail; SORRY 'bout the Rcpt.

2003-06-13 Thread Kyle Lange
It's set up by default and forgot to switch it off. 


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



RE: Cannot Update MYSQL Database

2003-03-25 Thread Kyle Lange
I think you probably need to do one of the following;

Insert into info set referer = ?

Or

Insert into info (referer) values (?)

But I could be wrong. 



-Original Message-
From: jsp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 25 March 2003 07:17
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: Cannot Update MYSQL Database


I'm running this code with no errors but it's not inserting the string
into the database ?

public void addInfo( String referer )
  throws SQLException, Exception {
 if (con != null) {
try{

   PreparedStatement updateInfo;
   updateInfo = con.prepareStatement(
insert into info(?));
   updateInfo.setString(1, referer )
   updateInfo.execute();



}
   catch (SQLException sqle){ 
  sqle.printStackTrace();
   }
 }
 else {
error = Connection with database was lost.;
throw new Exception( error );
 }
  }

This is my database
mysql desc info;
+-+---+--+-+-+---+
| Field   | Type  | Null | Key | Default | Extra |
+-+---+--+-+-+---+
| ID  | int(11)   |  | PRI | 0   |   |
| REFERER | char(200) | YES  | | NULL|   |
+-+---+--+-+-+---+
2 rows in set (0.00 sec)

Any Idea why nothing is showing up. Referer is a String its printing out
on the page but not updating the database?

Thanks anyone
-wiley

   


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


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



RE: logging

2002-10-31 Thread Pearsall, Kyle
I removed all Loggers from the server.xml file, and the catalina log no longer shows 
up in the log directory.  Thank you!

Now, is there anyway to turn off the access logging and the standard error and output 
loggging?  stderr.log, stdout.log, and localhost_access_log.2002-10-31.txt still 
appear in the logs directory.  How can I turn these functions off?

Thank you in advance for the help,
Kyle P.

-Original Message-
From: Dave Patton [mailto:dave;mymobile.info]
Sent: Wednesday, October 16, 2002 11:11 AM
To: Tomcat Users List
Subject: Re: logging


Remove all Loggers from the server.xml file

On Wed, 2002-10-16 at 09:41, Pearsall, Kyle wrote:
 I would like to be able to turn off all logging as possible on Tomcat.  What is the 
best way to do this?
 
 Thanks,
 Kyle
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: logging

2002-10-31 Thread Pearsall, Kyle
That worked...Thanks!  Any ideas for stopping the logging to stderr.log and stdout.log?

Thanks,
Kyle P.

-Original Message-
From: Shapira, Yoav [mailto:Yoav.Shapira;mpi.com]
Sent: Thursday, October 31, 2002 1:41 PM
To: Tomcat Users List
Subject: RE: logging


Hi,
You can turn off the access logging by commenting out the AccessLogValve
in server.xml.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Pearsall, Kyle [mailto:Kyle.Pearsall;cda.canon.com]
Sent: Thursday, October 31, 2002 4:39 PM
To: Tomcat Users List
Subject: RE: logging

I removed all Loggers from the server.xml file, and the catalina log
no
longer shows up in the log directory.  Thank you!

Now, is there anyway to turn off the access logging and the standard
error
and output loggging?  stderr.log, stdout.log, and
localhost_access_log.2002-10-31.txt still appear in the logs directory.
How can I turn these functions off?

Thank you in advance for the help,
Kyle P.

-Original Message-
From: Dave Patton [mailto:dave;mymobile.info]
Sent: Wednesday, October 16, 2002 11:11 AM
To: Tomcat Users List
Subject: Re: logging


Remove all Loggers from the server.xml file

On Wed, 2002-10-16 at 09:41, Pearsall, Kyle wrote:
 I would like to be able to turn off all logging as possible on
Tomcat.
What is the best way to do this?

 Thanks,
 Kyle

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


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


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


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




logging

2002-10-16 Thread Pearsall, Kyle

I would like to be able to turn off all logging as possible on Tomcat.  What is the 
best way to do this?

Thanks,
Kyle

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




Tomcat service -- it won't start

2002-09-04 Thread Pearsall, Kyle

I attempted to start Apache Tomcat 4.0.4 from the services panel in Windows.  But a 
message came up...

The Apache Tomcat service on Local Computer started and then stopped.  Some services 
stop automatically if they have no work to do, for example, the Performance Logs and 
Alerts service.

I have used Tomcat many times before, but I have never gotten this message.  I am 
using XP professional.  But I have previously had no problem getting the service to 
start on XP pro.  Also, I can load up Tomcat just fine from the Startup.bat file.  I 
installed Tomcat with the minimal settings, with only the Tomcat program and the 
service installed.  No documentation, examples or anything else.

Does anyone know why this might be happening?  Should I look for anything particular 
in the log files?  I looked in them and didn't find anything that seemed important.  
What should I do?

Thank you for the help,
Kyle P.

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




PATH issue

2002-07-10 Thread Pearsall, Kyle

I have set up Tomcat with an addition to the PATH in startup.bat (set 
PATH=..\webapps\TestServlet\dll;%PATH%).  When Tomcat starts from this batch file, 
the servlet can access files in this directory.  However, when Tomcat runs as a 
service, the servlet can't access the files in this directory.  Tomcat produces 
javax.servlet.ServletException and java.lang.UnsatisfiedLinkError messages.  It seems 
the NT Tomcat service bypasses startup.bat.  
How can I set up the NT service to load the PATH statement above?  Is this possible?  
Considering the nature of the product, I can't update the path manually in the Windows 
environment variables (although this does work).  And I would like to keep the files 
inside the servlet, and not in the Tomcat\bin directory (I tried this and it works as 
well).
What can I do?
Thank you in advance for your help.
Kyle Pearsall

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




local machine access only?

2002-07-03 Thread Pearsall, Kyle

Is there a way a simple way to set up Tomcat so that only the local machine 
(localhost) can access the web site?

Thank you,

Kyle Pearsall

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




RE: local machine access only?

2002-07-03 Thread Pearsall, Kyle

That worked!

Thanks,

Kyle

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 10:15 AM
To: Tomcat Users List
Subject: Re: local machine access only?


When declaring your connectors in server.xml add address=127.0.0.1.
EG:
Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
address=127.0.0.1 enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/


Pearsall, Kyle wrote:
 Is there a way a simple way to set up Tomcat so that only the local machine 
(localhost) can access the web site?
 
 Thank you,
 
 Kyle Pearsall
  


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


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




RE: JasperException: Unable to compile class for JSP

2002-06-21 Thread Pearsall, Kyle

Thank you for your reply.

I am using Tomcat 4.0.4 with JDK 1.3.1.  They were both clean installs.  Does Tomcat 
4.0.4 have any issues with this JDK?  Should I upgrade to JDK 1.4?

I will look into this further.

Kyle

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 11:50 PM
To: Tomcat Users List
Subject: AW: JasperException: Unable to compile class for JSP



Your error message sounds as if pageContext.handlePageException() 
is is defined to accept just an Instance of Exception not Throwable.
That could be caused be a jar file that contains an older version
of the jsdk. (servlet.jar, ...) Have a look at your jar files
that are used for your tomcat. (Don't forget {JAVA_HOME}\jre\lib\ext !)

- Which Version of tomcat do you use ?  

 -Ursprüngliche Nachricht-
 Von: Pearsall, Kyle [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Juni 2002 02:00
 An: Tomcat (E-mail)
 Betreff: JasperException: Unable to compile class for JSP
 
 
 Now I get a different problem.  The jsp files can't compile 
 correctly at runtime.  This code works properly on Weblogic 
 5.1.  Do I need to fix something in Tomcat?  Any suggestions?
 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.j
 ava:689: Incompatible type for method. Explicit cast needed 
 to convert java.lang.Throwable to java.lang.Exception.
   if (pageContext != null)  pageContext.handlePageException(t);
  ^

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


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




RE: JasperException: Unable to compile class for JSP

2002-06-20 Thread Pearsall, Kyle

I'm not convinced yet that I've done everything I can with Tomcat yet to get my JSPs 
to work properly.  The error below (and others like it from different JSP pages) don't 
appear in other web servers, such as Weblogic 5.1.  The same JSPs compile properly on 
these other web servers.  I've made no modifications to the code.  I'm sure numerous 
exceptions will appear over many JSP pages on Tomcat as it is now.  What I am 
wondering is whether there may be a way to customize tomcat with a different JSP 
compiler.

I do admit I am a newbie at this...there is alot to Tomcat and JSP I don't understand 
yet.

Your help is most appreciated.

Thank you,

Kyle P.

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 5:27 PM
To: 'Tomcat Users List'
Subject: RE: JasperException: Unable to compile class for JSP


I think your answer is right in the output:

Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception

instead of:
--
if (pageContext != null) pageContext.handlePageException(t);
--

Try this:
--
if (pageContext != null) pageContext.handlePageException((Exception) t);
--


-Andrew Conrad



-Original Message-
From: Pearsall, Kyle [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 19, 2002 8:00 PM
To: Tomcat (E-mail)
Subject: JasperException: Unable to compile class for JSP

Thank you for the help with Tomcat and SQL server 2000.

Now I get a different problem.  The jsp files can't compile correctly at
runtime.  This code works properly on Weblogic 5.1.  Do I need to fix
something in Tomcat?  Any suggestions?

Thank you,

Kyle P.

org.apache.jasper.JasperException: Unable to compile class for JSP
D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.java:689:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error


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


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




Re: Using Tomcat with MSAccess

2001-08-09 Thread Kyle Wayne Kelly

I was talking about String.equals().
Kyle Wayne Kelly
(504)391-3985
http://www.cs.uno.edu/~kkelly
- Original Message -
From: Beth Kelly [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 9:50 AM
Subject: Re: Using Tomcat with MSAccess



 Kyle Wayne Kelly
 (504)391-3985
 http://www.cs.uno.edu/~kkelly
 - Original Message -
 From: William Kaufman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 7:14 AM
 Subject: RE: Using Tomcat with MSAccess


   snip /
 .equals(passwd)
 rather than
 passwd.equals(  )
   snip /
No you shouldn't. That's totally evil. For a start, you're
creating another String object by doing 
   snip/
   remark
 As  is a constant string, it is created just once. So there
 is not much overhead.
 
  True, other than the overhead of calling String.intern() when the class
is
  loaded (JLS 3.10.5).
 
 (.equals might be even faster, because
 the jit can inline the method call, as the address of the object
 and the equals method is constant in this case.
 
  False.  If the compiler can inline equals(), it can inline length(),
too.
  (In fact, it's more likely to inline length(), since it's a far simpler
  method.)
 I wonder if equals() is implemented with a bitwise and.  If that were
the
 case, then the first invocation of equals would be simpler than the length
 method (that is with delayed lazy evaluation).
 
  (And take a look at the source for String.equals(): at best, with
 comparable
  inlining of the two methods, you've added an instanceof and a
downcast,
  which likely swamps any time taken for the rest of the comparison.)
 
  -- Bill K.







Re: TESTING Tomcat and Apache together........

2001-08-04 Thread Kyle Wayne Kelly

Open a static page on your server, and then open a JSP or servlet.

Kyle Wayne Kelly
(504)391-3985
http://www.cs.uno.edu/~kkelly
- Original Message - 
From: Paul Davies [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 04, 2001 10:54 AM
Subject: TESTING Tomcat and Apache together


 Hi, 
 how can I test that Apache and Tomcat are properly
 connected to each other.  As I understand, Apache
 takes care of static pages, and passes dynamic ones to
 tomcat.  How can I test this?
 Cheers,
 Paul
 
 
 
 Do You Yahoo!?
 Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
 or your free @yahoo.ie address at http://mail.yahoo.ie
 





Re: Is there a way to get the Referrer information from a request?

2001-08-02 Thread Kyle Wayne Kelly

Nothing is to obvious for me.

Kyle Wayne Kelly
(504)391-3985
http://www.cs.uno.edu/~kkelly
- Original Message - 
From: Jim Seach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 3:39 PM
Subject: Re: Is there a way to get the Referrer information from a request?


 Sorry if this is too obvious, but is the request the result of a normal
 browser following a link embedded in a web page to get to your
 servlet/jsp?
 
 If you type the URL in the browser location bar, or use a custom client
 that doesn't set the header, it won't be there.
 
 Jim
 
 --- Beth Kelly [EMAIL PROTECTED] wrote:
  Good points.  I printed out all of the headers fields, and values. 
  The
  header does not contain a Referrer, Referer, referer, or referrer
  field.
  
  
  Kyle Wayne Kelly
  (504)391-3985
  http://www.cs.uno.edu/~kkelly
  - Original Message -
  From: Dan Garcia [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 02, 2001 3:20 PM
  Subject: Re: Is there a way to get the Referrer information from a
  request?
  
  
   On Thu, 2 Aug 2001, Beth Kelly wrote:
I have read that a million times, but that field is not in the
  header
either.
  
   I notice you keep writing it as referrer in your emails, however
  the
  proper
   spelling fr the -header- is referer - one r :)
  
   Note: that sometimes there won't be a referer...
  
   --Dg
  
Kyle Wayne Kelly
(504)391-3985
http://www.cs.uno.edu/~kkelly
- Original Message -
From: Corey A. Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 3:05 PM
Subject: Re: Is there a way to get the Referrer information from
  a
  request?
   
   
 this will do it:

 request.getHeader(referer);

 purposely misspell referrer.

 Kyle Wayne Kelly wrote:

  I printed out the html header, and it did not include the
  referrer
field.
  Is there another way to get the referrer field?
 
  Kyle Wayne Kelly
  (504)391-3985
  http://www.cs.uno.edu/~kkelly

 --
 corey a. johnson  cni  1.321.259.1984 
  1.800.264.5547


   
   
  
  
  
 
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/
 





RE: Tomcat and container question

2001-06-04 Thread Dayle and Kyle



One of 
those emails with "UNSUBSCRIBE" in the body is bound to 
work, eh Jerry?

  -Original Message-From: Jerry Villamizar 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 04, 2001 4:29 
  PMTo: [EMAIL PROTECTED]Subject: Re: Tomcat 
  and container question
  UNSUBSCRIBE
  
- Original Message - 
From: 
Martin 
Kock 
To: [EMAIL PROTECTED] 

Sent: Monday, June 04, 2001 4:32 
PM
Subject: Tomcat and container 
question

I use Tomcat with JSP pages only. Does the 
Tomcat webserver run with both the servlet container and the JSP container, 
or only one of them?? I would also like to know something about in which 
situation which container is used.

Thanks in advance,
Martin 
Kock


RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet

2001-05-25 Thread Kyle Burke

LOL! now that's rich!

-Original Message-
From: Leon Palermo [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet


Clearly then you would not be the expert I was looking for :)

Leon

 
 
  Hello All,
 
  Let me preface this email by saying that I only put 'EXPERTS ONLY'
  so you hot shot programmers would actually read this email.  If you
  are reading this, it worked!
 [ ... ]
 
 What if we stopped reading it here?
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]




FW: Include question...

2001-05-24 Thread Kyle Burke

Jann,
Turns out that it wasn't that at all.  I just overlooked a missing }.
Sorry for the inconvenience to the group.

Oh, and Waldemar, thanks for forwarding it along.

Thanks to all,
Kyle

-Original Message-
From: Strubinski,Waldemar W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 5:43 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Include question...


I think you were the target recipient for this

 -Original Message-
 From: Jann VanOver [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 2:37 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: Include question...

 Kyle, make sure you read up on your JSP includes -- the one that Joel is
 giving your works DIFFERENTLY than the include you were using before.
 Specifically, in your original example, it didn't work because the @
 include happens during COMPILATION -- not during RUNTIME.  Your problem
 was
 that you were trying to branch at runtime and that was just too late for a
 @ include.

 The include shown in Joel's code happens at runtime, that is why it works.
 However, it won't have any local variables available to it unless the are
 put into the request or into the session and retrieved on the next page
 (index.jsp, anotherPage.jsp, or yetAnother.jsp in Joel's example)

 There's quite a bit written about different JSP includes ... do some
 studying!

 -Original Message-
 From: Joel Kozlow [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 12:12 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Include question...


 Sure it is...just do this...

 %
   String sPage = index.jsp;

   if (myCondition()) {
   sPage = anotherPage.jsp;
   }
   else if (anotherCondition()) {
   sPage = yetAnother.jsp;
   }
 %
 jsp:include page=%= sPage % flush=true /


 Hope that helps.

 - Joel Kozlow


 -Original Message-
 From: Kyle Burke [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 10:40 AM
 To: Tomcat-Users
 Subject: Include question...


 Is this possible (see CODE)?  I have a file that depends on the query
 string for display.  Can I have include files based on that query string
 too?

 If action=edit show the data in form fields otherwise show it in formatted
 text.

 When the files are included vs. when the page is compiled and executed
 (see
 EXCEPTION).  Thanks peops!


 EXCEPTION
 Unable to compile class
 'try' without 'catch' or 'finally'
 but I dont have any exception handling in the page.
 /EXCEPTION

 CODE
 %
 if(action.equals(edit)){
 %
 %@ include file=includes/edit_staff.jsp%
 %
}else{
 %
  %@ include file=includes/view_staff.jsp%
 %
 }
 %
 /CODE


 Kyle Burke




RE: I'm really getting tired of these messages...

2001-05-24 Thread Kyle Burke

I agree.  It is very tedious.  It's definitely people who signed up for the
list with a web-based mail account and just stopped using it.  It gets shut
off because it's neglected and everyone on the list pays the price.

Can we report these bogus emails to the moderator so they can remove that
email?

Kyle

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 8:48 PM
To: [EMAIL PROTECTED]
Subject: RE: I'm really getting tired of these messages...


It's only when I send a message to the maillinglist and that's a lot
lately.. Maby that email needs to be unsubscribed by someone.. (it's not
mine...)

Mvgr,
Martin

 -Original Message-
 From: Guido Medina [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 2:44 AM
 To: [EMAIL PROTECTED]
 Subject: Re: I'm really getting tired of these messages...


 Maybe two Email that are subscribe that don't exists already...
 - Original Message -
 From: Martin van den Bemt [EMAIL PROTECTED]
 To: jakarta-tomcat-user [EMAIL PROTECTED]
 Sent: Thursday, May 24, 2001 8:26 PM
 Subject: I'm really getting tired of these messages...


  Is something wrong on the maillinglist??
 
 






Include question...

2001-05-23 Thread Kyle Burke

Is this possible (see CODE)?  I have a file that depends on the query
string for display.  Can I have include files based on that query string
too?

If action=edit show the data in form fields otherwise show it in formatted
text.

When the files are included vs. when the page is compiled and executed (see
EXCEPTION).  Thanks peops!


EXCEPTION
Unable to compile class
'try' without 'catch' or 'finally'
but I dont have any exception handling in the page.
/EXCEPTION

CODE
%
if(action.equals(edit)){
%
%@ include file=includes/edit_staff.jsp%
%
   }else{
%
 %@ include file=includes/view_staff.jsp%
%
}
%
/CODE


Kyle Burke




RE: Include question...

2001-05-23 Thread Kyle Burke

This was an 'Internal Servlet Error' by the way.  Stack trace follows.
Thanks.

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_
0002ejspedit_0005fstaff_jsp_25.java:140: 'catch' without 'try'.
} catch (Exception ex) {
  ^
D:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_000
2ejspedit_0005fstaff_jsp_25.java:149: 'try' without 'catch' or 'finally'.
}
^
D:\tomcat\work\localhost_8080%2Fadmin\_0002faboutus_0002fedit_0005fstaff_000
2ejspedit_0005fstaff_jsp_25.java:149: '}' expected.
}
 ^
3 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Kyle Burke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 1:40 PM
To: Tomcat-Users
Subject: Include question...


Is this possible (see CODE)?  I have a file that depends on the query
string for display.  Can I have include files based on that query string
too?

If action=edit show the data in form fields otherwise show it in formatted
text.

When the files are included vs. when the page is compiled and executed (see
EXCEPTION).  Thanks peops!


EXCEPTION
Unable to compile class
'try' without 'catch' or 'finally'
but I dont have any exception handling in the page.
/EXCEPTION

CODE
%
if(action.equals(edit)){
%
%@ include file=includes/edit_staff.jsp%
%
   }else{
%
 %@ include file=includes/view_staff.jsp%
%
}
%
/CODE


Kyle Burke




RE: I am looking for a comprehensive set of documentation.

2001-05-23 Thread Dayle and Kyle
Title: I am looking for a comprehensive set of documentation.



Fred,
I'm 
not sure if there are docs out there, but you can run javadoc on the src files 
in the %TOMCAT_HOME%\src\ directory and subsequent child directories. 


Seems 
to be well commented.

  -Original Message-From: Fred Huelsbeck 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 
  12:42 PMTo: [EMAIL PROTECTED]Subject: I am 
  looking for a comprehensive set of documentation.
  Is there anything available in print? Is there more than 
  what is included, the "overview" stuff? 
  Thanks in advance, 
  Fred 


RE: Instantiating Beans on Tomcat

2001-04-10 Thread Kyle Tippetts

Hmm...then I'm not sure what's going on...so is there a package statement in
InfoBean?

As for a setting in tomcat, I don't think you have to set anything to get a
bean to instantiate. I wonder if it has anything to do with Jann mentioned.
I've always put my jsp's in /webapps/mycontext and my beans in
/webapps/mycontext/WEB-INF/classes/package_path and not had any problems
with instantiation. 

Also, check your case on the jsp directive. I noticed you've got
jsp:useBean.../, and if you copied/pasted that into your original message,
then you've got that part correct. However, in one I was trying to do, I
thought I had the case correct, but I actually had jsp:usebean/ and
that was why I couldn't get it to instantiate.

--Kyle


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 5:48 PM
To: [EMAIL PROTECTED]
Subject: RE: Instantiating Beans on Tomcat


It is in a package, but it is at the very top level.  It is not a classpath
issue, I have tried to move it to a different directory which is off the
classpath.  When I do that, the error says that it can't find the class at
all.  This error says the class is found, but for some reason can't create a
bean out of it.  I would think that my problem is that I don't have a
constructor with no parameters, but that is not the case.  I'm thinking
there are some permission settings to run a bean or something maybe.  ???

Brandon

-Original Message-
From: Kyle Tippetts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 6:38 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Instantiating Beans on Tomcat


Is InfoBean in a package? If it is, you need to put the fully-qualified name
in the class= attribute.

It could also be a classpath issue. For example, if your jsp sits at
/jakarta-tomcat/webapps/app, and your bean sits at
/jakarta-tomcat/webapps/app/WEB-INF/classes/com/foo, then you do need to put
/jakarta-tomcat/webapps/app/WEB-INF/classes on the classpath...at least
that's what I've found I have to do to get the beans to instantiate from a
jsp

--Kyle

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Instantiating Beans on Tomcat


Yeah, there must be something I'm missing, maybe there's some setting in
tomcat which allows me to use beans or something, but I can't find where
that would be.

Brandon

-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 6:00 PM
To: Tomcat User List
Subject: Re: Instantiating Beans on Tomcat


I was getting those but it was because my bean didn't have a constructor
that took no args but it looks like yours does...

Not sure...

Hunter

 From: "Brandon Cruz" [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Tue, 10 Apr 2001 17:54:24 -0500
 To: [EMAIL PROTECTED]
 Subject: Instantiating Beans on Tomcat

 I am trying to instantiate a very simple bean on Tomcat in a JSP using the
 directive...

 jsp:useBean id="sessionBean" scope="session" class="InfoBean" /

 Everytime I try to run it, I get the following exception...

 javax.servlet.ServletException:  Cannot create bean of class InfoBean




RE: ERROR WITH mod_jk.so module

2001-04-09 Thread Kyle Tippetts

Even though they've got a mod_jk.so for linux, more often than not it
doesn't work, giving the error you reported. So, you need to build mod_jk.so
for your linux installation:

1. Download the jakarta-tomcat source from
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/src/
2. Uncompress the source, then look at the /doc/mod_jk-howto.html for
instructions on how to build it.

--Kyle
[EMAIL PROTECTED]

-Original Message-
From: Ruben Domene [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 4:01 PM
To: [EMAIL PROTECTED]
Subject: ERROR WITH mod_jk.so module


I have Red Hat 6.2 with Apache 1.3.14 and Tomcat 3.2.1.
In the httpd.conf file i add the follow line: "Include
/usr/programas/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto". When i execute
"apachectl start" and then show me the next message:
"Syntax error on line 9 of
/usr/programas/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so
is garbled - perhaps this is not an Apache  module DSO?"

What is the problem??
Thank you for your help and excuse me by my english.



RE: tomcat 3.2.1 and URL rewriting

2001-04-05 Thread Kyle Tippetts

Yes, but if you turn off cookies in the browser and then hit a servlet where
you're using URL rewriting, it still returns the identical string that you
passed to response.encodeURl().

I seem to remember that Tomcat 3.1 had problems with URL rewriting that I
thought were supposed to be fixed in 3.2.1, but I can't get it to work

--Kyle

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 4:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: tomcat 3.2.1 and URL rewriting


From the JSDK 2.2 spec
(
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServ
letResponse.html#encodeURL(java.lang.String) ):

Encodes the specified URL by including the session ID in it, or, if encoding
is not needed, returns the URL unchanged. The implementation of this method
includes the logic to determine whether the session ID needs to be encoded
in the URL. For example, if the browser supports cookies, or session
tracking is turned off, URL encoding is unnecessary. 

For robust session tracking, all URLs emitted by a servlet should be run
through this method. Otherwise, URL rewriting cannot be used with browsers
which do not support cookies.



-- Bill K.


 -Original Message-
 From: Calin Duma [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 05, 2001 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat 3.2.1 and URL rewriting
 
 
 Hello,
 
 I have an issue with URL rewriting - and I could not find an answer in
 the mailing list archive.
 
 Basically when I print out the string returned by a
 response.encodeUrl(..) - it is identical to the original string.  I do
 have an http session active.
 
 Any ideeas ?
 
 Thanks,
 
 Calin
 



RE: Tomcat Configuration

2001-04-04 Thread Kyle Tippetts

Are you using mod_jserv or mod_jk? How is the context set up
(tomcat-apache.conf if mod_jserv, mod_jk.conf-auto if mod_jk, or added
directly to your httpd.conf).
What's in your web.xml file for this context?

--Kyle

-Original Message-
From: Noone Anil Kumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 2:21 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat Configuration 


Hi ,

I am running  my servlet:" MarsDm" on the following set up:

Apache 1.3.12
Tomcat 3.2.1
WinNt 4.0

When i started Apache  Tomcat i do see the following error message on
Tomcat 3.2 server console :

" Ctx( /webSnm ): Mapping with unregistered servlet MarsDm"

where webSnm is a dir under webApps and MarsDm is the servlet name...

Could you please let me what could be reason for this error message???

Thanks in advance,
Anil





RE: 2nd Post: Servlets and mod_jk problem -- thanks!

2001-04-03 Thread Kyle Tippetts

Just want to thank everyone for their help and discussion on this problem.
And, I wanted to let everyone know what I found out. Milt, it was your
question about my Web-inf directory and whether it was all uppercase or not
that cracked it.

I originally created that directory as "Web-inf" but apparently on Linux,
Tomcat expects this directory to be
"WEB-INF." Once I renamed this directory and changed the Location tag in
mod_jk.conf appropriately, I was able to get the servlet mappings for the
context I added to work.

One thing to note, Tomcat for NT is not picky about this, because on my NT
deployment of Tomcat, I have the WEB-INF directory named "web-inf" and
everything works fine.

In summary, here are the two things that I had to fix to get my context's
servlet mappings working on Linux:

* add "JkMount /[deployment directory]/* ajp13" to the mod_jk.conf file.
(This originally solved the problem of the /test servlets not working, and I
had to add it to my context as well.)
* ensure that WEB-INF is all uppercase.

Thanks again,
--Kyle

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 01, 2001 9:44 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 2nd Post: Servlets and mod_jk problem


On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 Milt,
 
 I made the changes that Jeff did and I can now get to the /test
 servlets, but whenever I add my own context and try it (I even
 simulated one of the examples in the /test directory, I still get a
 404 not found from tomcat.  Here's what I have in my simulation
 (note that the context does in fact get added when tomcat
 starts)

We may be going around in circles here, but:

What was the URL you tried?  mydomain.com/tst/foo/bar/myServlet?  And
what is the full text of the tomcat log 404 error message?

Also, I note you have "Web-inf" in the full path of your
servlet/classes directory below -- is that really what it is, or are
you just being lazy typing "WEB-INF" (because I believe it's supposed
to be ALL CAPS)?

Not sure what else to suggest at this point.  Must be some little
thing we're missing.


 * mod_jk.conf
   Alias /tst "/opt/jakarta-tomcat-3.2.1/webapps/tst"
   JkMount /tst/* ajp13
   JkMount /tst/servlet/* ajp13
 
 * web.xml
   webapp
 servlet
  servlet-name
 test
  /servlet-name
  servlet-class
  com.tst.TestServlet
  /servlet-class
 /servlet
 
 servlet-mapping
   servlet-name
  test
   /servlet-name
   url-pattern
  /foo/bar/*
   /url-pattern
 /servlet-mapping
/webapp
 
 * TestServlet.class sits at
 /opt/jakarta-tomcat-3.2.1/webapps/tst/Web-inf/classes/com/tst
 
 Thanks
 --Kyle
 
 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 3:48 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: 2nd Post: Servlets and mod_jk problem
 
 
 On Fri, 30 Mar 2001, Kyle Tippetts wrote:
 
  Yes, tried this:
  mydomain.com/test/foo/bar/myServlet
  and it still didn't work. Now, if I do
  mydomain.com/test/servlet/requestMap.Servlet1, I can access it
  (obviously), but again, it really appears that servlet mappings
  aren't working
 
 Now again, when this doesn't work, is it an apache thing or a tomcat
 thing?  What I'm trying to get at is, is apache forwarding the request
 to tomcat.  That will help isolate where the problem is at.  In
 particular, if it's an apache thing, it means the request isn't even
 getting to tomcat, so it probably has to do with the relevant Mount
 (ApJServMount, ApJkMount) directives in the tomcat/apache conf file
 (or, more accurately, the lack of such).  This is a problem I ran into
 when I was setting up some stuff.
 
 Did you see Jeff Kilbride's recent post?  Apparently he was able to
 get it to work by adding an appropriate ApJkMount directive.
 
 This does seem to be one of the less clear/less well-documented
 aspects of setting tomcat up.
 
 
  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 30, 2001 2:43 PM
  To: [EMAIL PROTECTED]
  Subject: Re: 2nd Post: Servlets and mod_jk problem
  
  
  On Fri, 30 Mar 2001, Jeff Kilbride wrote:
  
  [ ... ]
   Here's the servlet-mapping from web.xml file that comes with the
   distribution:
   servlet
   servlet-name
   servlet1
   /servlet-name
   servlet-class
   requestMap.Servlet1
   /servlet-class
   /servlet
   
   servlet-mapping
   servlet-name
   servlet1
   /servlet-name
   url-pattern
   /foo/bar/*
   /url-pattern
   /servlet-mapping
   
   Here's a snippet from my tomcat.log when I try to pull up
   mydomain.com/test/servlet/foo/bar/myServlet:
   985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo +
 /bar/myServlet)
   null
  
  Did you try the URL:
  

2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

I'm having trouble getting servlet mapping to work properly using mod_jk on
Tomcat 3.2.1 on Linux. First of all I should mention that jsps work fine.
Servlets work as well *if* they're located in the
/webapps/whatever/Web-inf/classes directory, or if the url contains the
fully-qualified name of the servlet. 

Here's my situation:

* classpath for my context is
/opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes
* Servlet sits at
/opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes/com/center7/em/apps/ap
o/src
* pertinent parts of web.xml looks like this:
   servlet
 servlet-name
CaapControlServlet
 /servlet-name
 servlet-class
com.center7.em.apps.apo.src.CaapControlServlet
 /servlet-class
   /servlet

   servlet-mapping
 servlet-name
   CaapControlServlet
 /servlet-name
 url-pattern
   /CaapControlServlet
 /url-pattern
   /servlet-mapping

* I'm using mod_jk, so I include a customized mod_jk.conf file in apache's
httpd.conf. Inside the mod_jk.conf file, my context information is set up as
follows:
Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"

JkMount /apo/servlet/* ajp13
JkMount /apo/*.jsp ajp13

* The url I use inside an html page to access the servlet is 
servlet/CaapControlServlet
  I then get a 404 error that says /apo/servlet/CaapControlServlet not
found.

Now the interesting thing is that none of the example mapping servlets found
in the /test directory work, either. So, have I set something up wrong, and
if so, what have I overlooked or done wrong, or does servlet mapping not
work with Tomcat 3.2.1? Thanks in advance.


======
--Kyle Tippetts
--Center7 PilotCenter Development
[EMAIL PROTECTED]
--www.center7.com




RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

Actually, depending on what's needed, there might be something like this:

servlet/CaapControlServlet?control=display

So do I need to enter that in the servlet mappings? Also, I can't get the
/test servlets to work (you know, the ones that come with the Tomcat
distribution. They are supposed to show how servlet mapping works, but I
can't get them to work

Thanks
--Kyle

-Original Message-
From: Rob Tanner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: 2nd Post: Servlets and mod_jk problem


Are you adding extra path info when you call a servlet such that your 
urls look something like:

http://www.center7.com/CaapControlServlet/some-data

If you are, change the url-pattern in web.xml to: CaapControlServlet/*

-- Rob

--On Friday, March 30, 2001 10:11:06 AM -0700 Kyle Tippetts 
[EMAIL PROTECTED] wrote:

 I'm having trouble getting servlet mapping to work properly using
 mod_jk on Tomcat 3.2.1 on Linux. First of all I should mention that
 jsps work fine. Servlets work as well *if* they're located in the
 /webapps/whatever/Web-inf/classes directory, or if the url contains
 the fully-qualified name of the servlet.

 Here's my situation:

 * classpath for my context is
 /opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes
 * Servlet sits at
 /opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes/com/center7/em/
 apps/ap o/src
 * pertinent parts of web.xml looks like this:
servlet
  servlet-name
 CaapControlServlet
  /servlet-name
  servlet-class
 com.center7.em.apps.apo.src.CaapControlServlet
  /servlet-class
/servlet

servlet-mapping
  servlet-name
CaapControlServlet
  /servlet-name
  url-pattern
/CaapControlServlet
  /url-pattern
/servlet-mapping

 * I'm using mod_jk, so I include a customized mod_jk.conf file in
 apache's httpd.conf. Inside the mod_jk.conf file, my context
 information is set up as follows:
Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"

JkMount /apo/servlet/* ajp13
JkMount /apo/*.jsp ajp13

 * The url I use inside an html page to access the servlet is
servlet/CaapControlServlet
   I then get a 404 error that says /apo/servlet/CaapControlServlet not
 found.

 Now the interesting thing is that none of the example mapping
 servlets found in the /test directory work, either. So, have I set
 something up wrong, and if so, what have I overlooked or done wrong,
 or does servlet mapping not work with Tomcat 3.2.1? Thanks in advance.


 ==
 --Kyle Tippetts
 --Center7 PilotCenter Development
 [EMAIL PROTECTED]
 --www.center7.com





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]



RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

Milt,

The 404 error comes from tomcat. Also, the jsp that's used to invoke the
servlet sits at /webapps/apo

Thanks
--Kyle

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:35 AM
To: '[EMAIL PROTECTED]'
Subject: Re: 2nd Post: Servlets and mod_jk problem


On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 I'm having trouble getting servlet mapping to work properly using mod_jk
on
 Tomcat 3.2.1 on Linux. First of all I should mention that jsps work fine.
 Servlets work as well *if* they're located in the
 /webapps/whatever/Web-inf/classes directory, or if the url contains the
 fully-qualified name of the servlet. 
[ ... ]
 * The url I use inside an html page to access the servlet is 
   servlet/CaapControlServlet
   I then get a 404 error that says /apo/servlet/CaapControlServlet not
 found.
[ ... ]

Is the error from apache or tomcat?  One way you can tell is by
checking which log file it shows up in, apache's or tomcat's.  Also,
where is the HTML page?

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

The servlet is invoked from a jsp like this:

%
//processing logic
response.sendRedirect("servlet/CaapControlServlet?control=login");
%

(Sidenote: the reason I don't use jsp:forward
page="servlet/CaapControlServlet"/ is because depending on certain
criteria, I need to redirect the user to different places)

Also, tomcat's error.log file reports:
File does not exist:
/opt/jakarta-tomcat-3.2.1/webapps/apo/servlet/CaapControlServlet

Thanks
--Kyle

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 11:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: 2nd Post: Servlets and mod_jk problem


On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 Milt,
 
 The 404 error comes from tomcat. Also, the jsp that's used to invoke
 the servlet sits at /webapps/apo

JSP or HTML page?  You said the latter previously.  How exactly are
you invoking (i.e. what's the code look like, whether it's in the JSP
or HTML)?  Also, the exact text of the error message in the log might
suggest something.

(I don't necessarily have an idea of what the problem is, just trying
to throw out ideas that might turn into leads.)


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 10:35 AM
 To: '[EMAIL PROTECTED]'
 Subject: Re: 2nd Post: Servlets and mod_jk problem
 
 
 On Fri, 30 Mar 2001, Kyle Tippetts wrote:
 
  I'm having trouble getting servlet mapping to work properly using mod_jk
 on
  Tomcat 3.2.1 on Linux. First of all I should mention that jsps work
fine.
  Servlets work as well *if* they're located in the
  /webapps/whatever/Web-inf/classes directory, or if the url contains the
  fully-qualified name of the servlet. 
 [ ... ]
  * The url I use inside an html page to access the servlet is 
  servlet/CaapControlServlet
I then get a 404 error that says /apo/servlet/CaapControlServlet not
  found.
 [ ... ]
 
 Is the error from apache or tomcat?  One way you can tell is by
 checking which log file it shows up in, apache's or tomcat's.  Also,
 where is the HTML page?

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

This is my thoughts exactly. If the examples in /test don't work, then it
would appear that there's something wrong with tomcat?

--Kyle

-Original Message-
From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 1:43 PM
To: [EMAIL PROTECTED]
Subject: Re: 2nd Post: Servlets and mod_jk problem


Hi Todd,

I'm running RedHat 6.2, Sun jdk1.3, apache 1.3.12. For my own stuff, I'm
doing a lot of virtual hosting. So, my context mappings are a little
different than normal. However, upon further investigation, it seems that
the servlet mappings are not working for me, either! My entries looked like
this:

servlet
servlet-nametest/servlet-name
description
A simple servlet to test our configuration.
/description
servlet-classcom.westsidei.servlet.TestServlet/servlet-class

!-- Load this servlet at server startup time --
load-on-startup4/load-on-startup
/servlet

servlet-mapping
servlet-nametest/servlet-name
url-pattern/test/url-pattern
/servlet-mapping

As you can see, my servlet-mapping was just restating my servlet-name
parameter. When I pulled this up under /test, everything worked okay so I
assumed the servlet-mapping was working. Wrong!

When I changed the url-pattern to "/foo" or "foo" as opposed to /test, it
stopped working! Been running around for an hour trying to figure out why,
but it's beyond me. Everything is set up correctly, so there's no reason
this shouldn't work. As you stated earlier, none of the servlet-mappings in
the "test" context that came with the Tomcat distribution are pulling up
correctly, either. I even moved them out of the default location
($TOMCAT_HOME/webapps) and explicitly set a new context up in server.xml.
Still no joy.

Here's my server.xml with my explicit context:
Context path="/test"
 docBase="/usr/local/java/webapps/dist/test"
 crossContext="false"
 debug="0"
  reloadable="true"
  trusted="false"
/Context

Here's the servlet-mapping from web.xml file that comes with the
distribution:
servlet
servlet-name
servlet1
/servlet-name
servlet-class
requestMap.Servlet1
/servlet-class
/servlet

servlet-mapping
servlet-name
servlet1
/servlet-name
url-pattern
/foo/bar/*
/url-pattern
/servlet-mapping

Here's a snippet from my tomcat.log when I try to pull up
mydomain.com/test/servlet/foo/bar/myServlet:
985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo + /bar/myServlet)
null

This mapping is supposed to map everything under /servlet/foo/bar/ to
servlet1 -- but as you can see, Tomcat is saying /servlet/foo, with extra
path info /bar/myServlet, doesn't exist. When I pull up
mydomain.com/test/servlet/requestMap.Servlet1 or
mydomain.com/test/servlet/servlet1, everything works as it should. So,
Tomcat is not paying attention to the servlet-mapping entry.

I think this is a problem, unless somebody has an explanation. I'm out of
ideas.

Thanks,
--jeff

----- Original Message -
From: "Todd Pfaff" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "Kyle Tippetts" [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 10:53 AM
Subject: RE: 2nd Post: Servlets and mod_jk problem


 On Fri, 30 Mar 2001, Kyle Tippetts wrote:

  Milt,
 
  The 404 error comes from tomcat. Also, the jsp that's used to invoke the
  servlet sits at /webapps/apo

 really?  are you sure they're not coming from apache?

  Thanks
  --Kyle
 
  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 30, 2001 10:35 AM
  To: '[EMAIL PROTECTED]'
  Subject: Re: 2nd Post: Servlets and mod_jk problem
 
 
  On Fri, 30 Mar 2001, Kyle Tippetts wrote:
 
   I'm having trouble getting servlet mapping to work properly using
mod_jk
  on
   Tomcat 3.2.1 on Linux. First of all I should mention that jsps work
fine.
   Servlets work as well *if* they're located in the
   /webapps/whatever/Web-inf/classes directory, or if the url contains
the
   fully-qualified name of the servlet.
  [ ... ]
   * The url I use inside an html page to access the servlet is
   servlet/CaapControlServlet
 I then get a 404 error that says /apo/servlet/CaapControlServlet not
   found.
  [ ... ]
 
  Is the error from apache or tomcat?  One way you can tell is by
  checking which log file it shows up in, apache's or tomcat's.  Also,
  where is the HTML page?
 
  Milt Epstein
  Research Programmer
  Software/Systems Development Group
  Computing and Communications Services Office (CCSO)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 

 --
 Todd Pfaff \  Email: [EMAIL PROTECTED]
 Computing and Information Services  \ Voice: (905) 525-9140 x22920
 ABB 132  \  FAX: (905) 528-3773
 McMaster University   \
 Hamilton, Ontario, Canada  L8S 4M1 \





RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

Yes, tried this:
mydomain.com/test/foo/bar/myServlet
and it still didn't work. Now, if I do
mydomain.com/test/servlet/requestMap.Servlet1, I can access it (obviously),
but again, it really appears that servlet mappings aren't working

--Kyle

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: Re: 2nd Post: Servlets and mod_jk problem


On Fri, 30 Mar 2001, Jeff Kilbride wrote:

[ ... ]
 Here's the servlet-mapping from web.xml file that comes with the
 distribution:
 servlet
 servlet-name
 servlet1
 /servlet-name
 servlet-class
 requestMap.Servlet1
 /servlet-class
 /servlet
 
 servlet-mapping
 servlet-name
 servlet1
 /servlet-name
 url-pattern
 /foo/bar/*
 /url-pattern
 /servlet-mapping
 
 Here's a snippet from my tomcat.log when I try to pull up
 mydomain.com/test/servlet/foo/bar/myServlet:
 985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo + /bar/myServlet)
 null

Did you try the URL:

mydomain.com/test/foo/bar/myServlet

i.e. without the "/servlet"?  My impression is that the url-pattern's
in servlet-mapping's are meant to follow the context part of the URL,
and that you don't need to include "/servlet" (although you do need to
include it if you are just using the servlet-name or the fully
qualified servlet-class).  That is, part of the point of using
servlet-mapping's is so you don't need to have the "/servlet" in the
URL.  This might explain some of your apparent anomalies when using
"test" (you had it both as the servlet-name and the url-pattern in a
servlet-mapping, IIRC).


 This mapping is supposed to map everything under /servlet/foo/bar/ to
 servlet1 -- but as you can see, Tomcat is saying /servlet/foo, with extra
 path info /bar/myServlet, doesn't exist. When I pull up
 mydomain.com/test/servlet/requestMap.Servlet1 or
 mydomain.com/test/servlet/servlet1, everything works as it should. So,
 Tomcat is not paying attention to the servlet-mapping entry.
 
 I think this is a problem, unless somebody has an explanation. I'm out of
 ideas.
[ ... ]

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Kyle Tippetts

Milt,

I made the changes that Jeff did and I can now get to the /test servlets,
but whenever I add my own context and try it (I even simulated one of the
examples in the /test directory, I still get a 404 not found from tomcat.
Here's what I have in my simulation (note that the context does in fact get
added when tomcat starts)

* mod_jk.conf
Alias /tst "/opt/jakarta-tomcat-3.2.1/webapps/tst"
JkMount /tst/* ajp13
JkMount /tst/servlet/* ajp13

* web.xml
webapp
servlet
 servlet-name
test
 /servlet-name
 servlet-class
 com.tst.TestServlet
 /servlet-class
/servlet

  servlet-mapping
  servlet-name
 test
  /servlet-name
  url-pattern
 /foo/bar/*
  /url-pattern
/servlet-mapping
   /webapp

* TestServlet.class sits at
/opt/jakarta-tomcat-3.2.1/webapps/tst/Web-inf/classes/com/tst

Thanks
--Kyle

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 3:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 2nd Post: Servlets and mod_jk problem


On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 Yes, tried this:
   mydomain.com/test/foo/bar/myServlet
 and it still didn't work. Now, if I do
 mydomain.com/test/servlet/requestMap.Servlet1, I can access it
 (obviously), but again, it really appears that servlet mappings
 aren't working

Now again, when this doesn't work, is it an apache thing or a tomcat
thing?  What I'm trying to get at is, is apache forwarding the request
to tomcat.  That will help isolate where the problem is at.  In
particular, if it's an apache thing, it means the request isn't even
getting to tomcat, so it probably has to do with the relevant Mount
(ApJServMount, ApJkMount) directives in the tomcat/apache conf file
(or, more accurately, the lack of such).  This is a problem I ran into
when I was setting up some stuff.

Did you see Jeff Kilbride's recent post?  Apparently he was able to
get it to work by adding an appropriate ApJkMount directive.

This does seem to be one of the less clear/less well-documented
aspects of setting tomcat up.


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 2:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: 2nd Post: Servlets and mod_jk problem
 
 
 On Fri, 30 Mar 2001, Jeff Kilbride wrote:
 
 [ ... ]
  Here's the servlet-mapping from web.xml file that comes with the
  distribution:
  servlet
  servlet-name
  servlet1
  /servlet-name
  servlet-class
  requestMap.Servlet1
  /servlet-class
  /servlet
  
  servlet-mapping
  servlet-name
  servlet1
  /servlet-name
  url-pattern
  /foo/bar/*
  /url-pattern
  /servlet-mapping
  
  Here's a snippet from my tomcat.log when I try to pull up
  mydomain.com/test/servlet/foo/bar/myServlet:
  985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo +
/bar/myServlet)
  null
 
 Did you try the URL:
 
 mydomain.com/test/foo/bar/myServlet
 
 i.e. without the "/servlet"?  My impression is that the url-pattern's
 in servlet-mapping's are meant to follow the context part of the URL,
 and that you don't need to include "/servlet" (although you do need to
 include it if you are just using the servlet-name or the fully
 qualified servlet-class).  That is, part of the point of using
 servlet-mapping's is so you don't need to have the "/servlet" in the
 URL.  This might explain some of your apparent anomalies when using
 "test" (you had it both as the servlet-name and the url-pattern in a
 servlet-mapping, IIRC).
 
 
  This mapping is supposed to map everything under /servlet/foo/bar/ to
  servlet1 -- but as you can see, Tomcat is saying /servlet/foo, with
extra
  path info /bar/myServlet, doesn't exist. When I pull up
  mydomain.com/test/servlet/requestMap.Servlet1 or
  mydomain.com/test/servlet/servlet1, everything works as it should. So,
  Tomcat is not paying attention to the servlet-mapping entry.
  
  I think this is a problem, unless somebody has an explanation. I'm out
of
  ideas.
 [ ... ]

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]



Servlets and mod_jk problem

2001-03-29 Thread Kyle Tippetts

I'm having trouble getting servlet mapping to work properly using mod_jk on
Tomcat 3.2.1 on Linux. First of all I should mention that jsps work fine.
Servlets work as well *if* they're located in the
/webapps/whatever/Web-inf/classes directory, or if the url contains the
fully-qualified name of the servlet. 

Here's my situation:

* classpath for my context is
/opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes
* Servlet sits at
/opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes/com/center7/em/apps/ap
o/src
* pertinent parts of web.xml looks like this:
   servlet
 servlet-name
CaapControlServlet
 /servlet-name
 servlet-class
com.center7.em.apps.apo.src.CaapControlServlet
 /servlet-class
   /servlet

   servlet-mapping
 servlet-name
   CaapControlServlet
 /servlet-name
 url-pattern
   /CaapControlServlet
 /url-pattern
   /servlet-mapping

* I'm using mod_jk, so I include a customized mod_jk.conf file in apache's
httpd.conf. Inside the mod_jk.conf file, my context information is set up as
follows:
Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"

JkMount /apo/servlet* ajp13
JkMount /apo/*.jsp ajp13

* The url I use inside an html page to access the servlet is 
servlet/CaapControlServlet
  I then get a 404 error that says /apo/servlet/CaapControlServlet not
found.

Now the interesting thing is that none of the example mapping servlets found
in the /test directory work, either. So, have I set something up wrong, and
if so, what have I overlooked or done wrong, or does servlet mapping not
work with Tomcat 3.2.1? Thanks in advance.

--Kyle
======
--Kyle Tippetts
--Center7 PilotCenter Development
[EMAIL PROTECTED]
--www.center7.com




RE: Servlets and mod_jk problem

2001-03-29 Thread Kyle Tippetts

My apologies...it actually is
JkMount /apo/servlet/* ajp13

--Kyle

-Original Message-
From: John P. Dodge [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: Re: Servlets and mod_jk problem



Shouldn't this line be:

JkMount /apo/servlet/* ajp13


On Thu, 29 Mar 2001, Kyle Tippetts wrote:

 
 * I'm using mod_jk, so I include a customized mod_jk.conf file in apache's
 httpd.conf. Inside the mod_jk.conf file, my context information is set up
as
 follows:
   Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"
 
   JkMount /apo/servlet* ajp13
   JkMount /apo/*.jsp ajp13
 
 


"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group




Kawa, JRun Studio and Tomcat

2001-03-05 Thread Kyle Robinson



I've been using Kawa 
5.0 Pro for awhile now, and I like it. It's easy to integrate with 
Tomcat. I've been looking at JRun Studio and the features it has. 
Has anybody tried to integrate Tomcat with JRun Studio directly (without 
Kawa)? It seems to only take JRun Server (which I, of course, do not want 
to use). Any help would be appreciated, thanks.
Kyle Robinson Systems Consultant Pangaea Systems 
Inc. (250) 360-0111 



RE: Newbies UNITE!

2001-02-24 Thread Kyle Burke

Judging by some of the posts, who would use the docs anyway?

They are supplied for other api's, yet questions that are explained clearly
in them still get asked here.



-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 24, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Newbies UNITE!


Hi,

Maybe it would be better and a hell of a lot simpler to form a
"documentation group" to get the docs done. Then everyone could use them and
live happily ever after.

Come to think of it, who is responsible for the tomcat/mod_jk docs atm?

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of aras
Sent: Friday, February 23, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: Newbies UNITE!


I admit it, I'm a ... newbie.  It makes me ill having to admit that
considering
I've been coding for almost twenty years.  Old dogs new tricks.

Here's the deal.

I've been trying to use TomCat for about a month.  That time isn't work
hours
because I'm doing this at night (2-3 hours per).  Anyway, I've been on this
list for all that time and have seen literally thousands of emails.  Most of
them being in the newbie variety.

Here's what I'm thinking.  If there are ten to fifteen newbies out there who
are in somewhat of my situation, let's join forces and kick this thing in
the
butt.  Now, I would imagine if your using TomCat 8 HR/Day (meaning "it's
your
job"), you'll be going too fast for us.  You might want to stick to this
list.

We need the ability to exchange massive amount of information.  Everything
from
e-mail to chat.  In fact, if you have any communications ideas I'm willing
to
listen.  I guess it would be almost like a TUG (TomCat User Group) except we
won't have any experts.  We'll be able to use tomcat-user list for the
"expert"
type questions.  I'd like us to develop "our own" How-To's and eventually ,
if
they turn out correct, submit them to the project.

Reply directly to me and include to this list if you'd like


The time is now.


Steve

[EMAIL PROTECTED]




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



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



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




RE: Neebie question...

2001-02-23 Thread Kyle Burke

%=drive letter%:\%=tomcat folder%\webapps\ROOT\WEB-INF\classes

-Original Message-
From: Gary Bentley [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: Neebie question...


Sorry about this but I'm stuck...

I've already got JServ working with Apache, and alls fine...

However, I'm trying to get Tomcat working and I'm wondering where the hell
do I put the .class files?

There is an example that has a mount point:

/examples/servlet /examples

Where /examples maps to: path/jakarta-tomcat-3.2.1/webapps/examples

Now I know that the Tomcat is working because when I go to:

http://localhost/examples/servlet/HelloWorldExample

I do get the "Hello World!" and if I shutdown Tomcat I get a Server error...

Now, the problem I have is that there are NO class files in the
/webapps/examples directory...

So when I try and add my own mount point I keep getting a message back from
Tomcat that it cannot find the class files...however I am doing the same as
the examples mount point...but where do I stuff the class files???  The
class files seem to be in the WEB-INF/classes directory, but I can't see
where that is referenced in the server.xml?  Also, do I need to have a
WEB-INF directory with the web.xml file?  Does anyone have any further
information on this???

This seemed so much easier on JServ...

Can anyone help?

G.

P.S.  Also, does anyone know how to stop Tomcat automatically tagging
/servlet onto the end of the mount point when it generates the
tomcat-apache.conf file, I don't want my Users to have to put in the servlet
everytime...and I don't want to have to edit it myself everytime I reload!


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



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




RE: Áß±¹/½Å±Ô µµ¸ÞÀÎ ¾È³»

2001-02-23 Thread Kyle Burke
Title: 



What 
the heII?

  -Original Message-From: ilovedomain 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 23, 2001 1:46 
  PMTo: [EMAIL PROTECTED]Subject: Áß±¹/½Å±Ô 
  µµ¸ÞÀÎ ¾È³»
  
  


  


  
  

  

  
  


  
  
  

  

  
  


  ¾È³çÇϼ¼¿ä. ¾ÆÀÌ·¯ºêµµ¸ÞÀÎ ÀÔ´Ï´Ù !
  
  ÇöÀç ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼´Â Áß±¹ µµ¸ÞÀÎ(com.cn)µî·Ï°ú ½Å±Ô ±¹Á¦ µµ¸ÞÀÎ(.biz/.info/.pro/.name) 
  µî·Ï ¿¹¾à ¼ºñ½º¸¦ Á¦°øÇÏ°í ÀÖ½À´Ï´Ù.
  




  

-
CN[Áß±¹]µµ¸ÞÀÎÀ̶õ? 
  
  




  


  Çѱ¹À» ´ëÇ¥ÇÏ´Â ±¹°¡ µµ¸ÞÀÎÀº co.kr À̸ç 
Áß±¹À» ´ëÇ¥ÇÏ´Â ±¹°¡ µµ¸ÞÀÎÀº com.cn ÀÔ´Ï´Ù. CNÀº CHINAÀÇ 
¿µ¹® À̴ϼÈÀÔ´Ï´Ù.
  




  

-
CN[Áß±¹]µµ¸ÞÀÎÀÇ 
  Çʿ伺
  




  


  
1. 
µµ¸ÞÀÎ µî·ÏÀº ÀÎÅÍ³Ý ºñÁî´Ï½ºÀÇ Ã¹ ½ÃÀÛÀÔ´Ï´Ù. 'ÁÁÀº 
µµ¸ÞÀÎÀÇ È®º¸´Â ÀÎÅÍ³Ý ºñÁî´Ï½ºÀÇ Å« ¹Øõ'À̶ó´Â ¸»ÀÌ 
ÀÖµíÀÌ µµ¸ÞÀÎ È®º¸´Â ÀÎÅÍ³Ý »ç¾÷ÀÇ Ãʱ⿡ ÀÖ¾î¼ Å« 
ºñÁßÀ» Â÷ÁöÇÕ´Ï´Ù. µû¶ó¼ Áß±¹ 
ÁøÃâÀ» ¿°µÎ¿¡ µÐ ±â¾÷ ¶Ç´Â °³ÀÎÀ̶ó¸é ÇʼöÀûÀ¸·Î ÇØ´ç 
µµ¸ÞÀÎÀ» È®º¸ÇÏ¿©¾ß ÇÕ´Ï´Ù. ÁÁÀº µµ¸ÞÀÎÀ» ¹Ì¸® 
È®º¸Çϰųª, ÃßÈÄ¿¡ »ý±æ ¼ö ÀÖ´Â ¹®Á¦ÀÇ ¼ÒÁö¸¦ »çÀü¿¡ 
¹æÁöÇÏ¿©¾ß ÇÕ´Ï´Ù. 2. Áß±¹ ½ÃÀåÀº 'ÇöÀç ³²¾Æ 
ÀÖ´Â À¯ÀÏÇÑ °Å´ë ½ÃÀå'À̶ó ºÒ¸³´Ï´Ù. Áß±¹ÀÇ ÀÎÅÍ³Ý 
Àα¸°¡ Áö³ÇØ ¸»¿¡´Â 2õ250¸¸¸íÀ¸·Î ±ÞÁõÇß´Ù°í Çϸç 2004³â²²´Â 1¾ï2õ¸¸¸í¿¡ µµ´ÞÇÒ °ÍÀ̶ó 
ÇÕ´Ï´Ù.

* ±Í»çÀÇ Áß±¹µµ¸ÞÀÎÀ» 
¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼ Áö±Ý 
È®º¸ÇϽʽÿä!Áß±¹¿¡¼ÀÇ ÀÎÅÍ³Ý ÆÄ¿ö´Â COM.CN ÀÔ´Ï´Ù. 


  
  

  -
Áß±¹ 
  µµ¸ÞÀεî·ÏÇϱâ
  


  
  
  

-
½Å±Ô ±¹Á¦ 
  µµ¸ÞÀÎ µî·Ï ¿¹¾à½Åû ´ë»ó ³×ÀÓ
  




  


  .biz/.info/.pro/.name 
  
  




  

-
½Å±Ô µµ¸ÞÀÎ µî·Ï 
  °³½ÃÀÏ 
  




  


  2001³â »ó¹Ý±â * ±Í»çÀÇ ½Å±Ô ±¹Á¦ µµ¸ÞÀÎÀ» ¾ÆÀÌ·¯ºêµµ¸ÞÀο¡¼ Áö±Ý È®º¸ÇϽʽÿä! 
  
  


  
-
  ½Å±Ô ±¹Á¦ µµ¸ÞÀÎ 
¿¹¾àÇϱâ

  
contact us at 
[EMAIL PROTECTED]


RE: image upload

2001-02-23 Thread Kyle Burke

Java Servlet Programming by Jason Hunter (Chapter 4)

http://www.servlets.com/jsp/examples/index.html



-Original Message-
From: Ambarish V Vaidya [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: image upload


hi guys,
 can anyone tell me where will i get the code to upload images on tomcat. 

thanks

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





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



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




RE: Servlet problem

2001-02-23 Thread Kyle Burke

You're editing the wrong web.xml file first of all.  The one you're changing
is used to configure your webapps.

You need to edit the %=your drive letter%:\%=your tomcat
folder%\webapps\ROOT\WEB-INF\web.xml file.

Your code:
servlet-class
UploadTest.java // ".java" is BAD
/servlet-class

The right code added to the %=your drive-letter%:\%=your tomcat
folder%\webapps\ROOT\WEB-INF\web.xml file:

servlet-mapping
servlet-nameUploadTest/servlet-name
url-pattern%=add whatever alias you want to use%/url-pattern
/servlet-mapping



-Original Message-
From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: Servlet problem


Hi i want to use oreilli upload class and It just doens work

Here is the diferent code, could somebody tell if something is wrong

Directori

/webapps/
  /serv/uploadtest.html
/servlet/UploadTest.java

web.xml, where does the UploadTest.java supose to be??

servlet
servlet-name
UploadTest
/servlet-name
servlet-class
UploadTest.java
/servlet-class
load-on-startup
   4
/load-on-startup
/servlet

servlet-mapping
servlet-name
UploadTest
/servlet-name
url-pattern
/servlet/UploadTest
/url-pattern
/servlet-mapping

Html Code

FORM METHOD=POST ENCTYPE=multipart/form-data ACTION="/servlet/UploadTest"

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



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




RE: Servlet problem

2001-02-23 Thread Kyle Burke

The "UploadTest.class" file.

-Original Message-
From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlet problem


Thanks for the tip, but another question what's  has to go in the /servlet/
folder

-Mensaje original-
De: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Enviado el: Viernes, 23 de Febrero de 2001 03:24 p.m.
Para: '[EMAIL PROTECTED]'
Asunto: RE: Servlet problem


 Here is the diferent code, could somebody tell if something is wrong

 Directori

 /webapps/
 /serv/uploadtest.html
 /servlet/UploadTest.java

 web.xml, where does the UploadTest.java supose to be??


 servlet
 servlet-name
 UploadTest
 /servlet-name
 servlet-class
 UploadTest.java
 /servlet-class
   load-on-startup
4
   /load-on-startup
 /servlet

First, the servlet-class should be your class not your source files.
Therefore if your class is in package servlet.UploadTest it would be
servlet-class
servlet.UploadTest
/servlet-class

If you are not using a package specifier it would just be
servlet-class
UploadTest
/servlet-class

Second, you should put your class file in
WEB-INF/classes/package/classname.class


   servlet-mapping
 servlet-name
 UploadTest
 /servlet-name
 url-pattern
 /servlet/UploadTest
 /url-pattern
 /servlet-mapping

The reason the example servlets are ./servlet/ServletName is not because
they're in the servlet package but because that is the default mapping.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb(JG)!

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



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



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




RE: Servlet problem

2001-02-23 Thread Kyle Burke

I stand corrected.  Thanks Michael.

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:54 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet problem


 The "UploadTest.class" file.

 -Original Message-
 From: Carlos Lpez M. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 23, 2001 5:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Servlet problem


 Thanks for the tip, but another question what's  has to go in
 the /servlet/
 folder

I believe Lopez is referring to the servlet folder in his webapp
instance folder.  There shouldn't even be a servlet folder in
this location.  The UploadTest class file should go in

webapps/WEBAPP-NAME/WEB-INF/classes/package/UploadTest.class.

This is where all your class should go.  Likewise, all webapp jars
should go in

webapps/WEBAPP-NAME/WEB-INF/lib.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]

- Punisher of those who cannot spell dumb!

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



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




RE: configuring web.xml

2001-02-14 Thread Kyle Robinson

Take a look through the web.dtd file.  It has the specs for the tags.
Here's an example I'm using (although I'm having trouble with the
init_params...

-BEGIN SNIPPET---

?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
web-app
session-config
session-timeout
30
/session-timeout
/session-config

servlet
servlet-namejspell/servlet-name
servlet-class
com.wallstreetwise.app.jspell.domain.net.JSpellServlet
/servlet-class
load-on-startup3/load-on-startup
init-param
param-nameindex/param-name
param-valueSNDSPELL.JDX/param-value
/init-param
/servlet

/web-app


-END SNIPPET-

Does anyone know what the init-params are for things like if it's a bean,
etc?

Thanks,

Kyle Robinson
Systems Consultant
Pangaea Systems Inc.
(250) 360-0111


-Original Message-
From: Chahal Damendra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 8:36 AM
To: '[EMAIL PROTECTED]'
Subject: configuring web.xml


I am trying to run my own servlets that are placed in the appropriate
directories (which are sub directories of Web-inf\classes). Can you advise
on how to modify the web.xml file and where i can find information regarding
the tag definitions

Regards

 Damendra 



The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
The Capital Markets Company.

http://www.capco.com
***


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

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




RE: Load JSP page on when tomcat starts (load on start-up)

2001-02-08 Thread Kyle Robinson

You mean open up a browser on the server with a specific jsp page after you
start Tomcat?

-Original Message-
From: Amir Nuri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 7:27 AM
To: Tomcat-User
Subject: Load JSP page on when tomcat starts (load on start-up)


Hi
Does anyone knows how can I load a jsp page when i starts tomcat ??? 
same way I load a Servlet 
(e.g: load-on-startup3/load-on-startup )



E-mail  : [EMAIL PROTECTED]
Web : http://www.mobilitec.com/

Mobilitec, Inc. 
P.O. Box 15049 Matam
Haifa 31905, Israel
Tel +972-4-855-1133 ext. 115
Fax +972-4-855-1112

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



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

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




RE: IllegalStateException on index.html??

2001-02-07 Thread Kyle Robinson
Title: IllegalStateException on index.html??



I 
occasionally get this error when I recompile a class that Tomcat is using. 
After you recompile all your classes you should restart 
Tomcat.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 07, 
  2001 9:42 AMTo: [EMAIL PROTECTED]Subject: 
  IllegalStateException on index.html??
  Error: 500 Location: 
  /partners/index.html Internal Servlet Error: 
  
  java.lang.IllegalStateException: Can't happen - classname is 
  null, who added this ?  
  at 
  org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261) 
   at 
  org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) 
   at 
  org.apache.tomcat.core.Handler.service(Handler.java:254) 
   at 
  org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
   at 
  org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) 
   at 
  org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
   at 
  org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
   at 
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
   at 
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 
   at 
  java.lang.Thread.run(Thread.java:484) 
  It's a very simple html page. Obviously it references no 
  classes. Why am I getting this error? I've been using Tomcat for a few weeks 
  now and this is the first time I've seen this. Restart Tomcat and I get the 
  page just fine. Another oddity that happened to me yesterday was all of a 
  sudden I was getting "Forbidden" errors on my HTML pages. In that case I only 
  had to restart Apache. I'm using Tomcat 3.2, Apache 1.3.14, on Solaris 
  2.6.
  -Sean 
  P.S. Sorry for the duplicate. 



RE: IOException while loading CSS or GIFs

2001-02-06 Thread Kyle Robinson

I get this as well, a solution I have not found.  I heard a rumour somewhere
that it was caused by something errant in Forte.  Are you using Forte by any
chance?

Thanks,

Kyle

-Original Message-
From: Natarajan, Bartee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 1:33 PM
To: '[EMAIL PROTECTED]'
Subject: IOException while loading CSS or GIFs


Hello

We just downloaded and installed Tomcat 3.2.1 on Windows NT 4.0. Whenever we
attempt to load
a GIF image or a CSS of more than a couple Kb we get the following error:

2001-02-06 04:18:31 - Ctx( /template ): IOException in: R( /template +
/graphics
/java.gif + null) Connection aborted by peer: socket write error

The actual page seems to load ok. Everything is fine except for this error
on the console.. Any clues?
We checked the bug-database and Tomcat FAQs and couldn't find anything
related. Appreciate
any help.

Thanks,
-bharathi


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

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




RE: A good free IDE for developping for Tomcat

2001-01-24 Thread Kyle F. Downey


http://www.xemacs.org. They have a Win32 installer and everything for
XEmacs 21, and if you plan to use Ant AND you're not doing using any user
interface design an IDE is actually more trouble than it's worth. Gives
you indentation, color highlighting, and additional functions through
the JDE package if you want to use that (I personally don't like it).

You might also check out http://www.metamata.com for their standalone Java
debugger.

--kd


 Does anybody know a good environment to develop
 JSP+Java under Tomcat...

 "Ant" seems to be a Must for the building process...
 anything else...

 is there some "free" integrated developement environment
 that is really comfortable...
 Emacs (maybe ultra-edit) seems to be apreciated,
 but is there something more integrated...
 (anyway I've used Emacs for C++/make/gdb dev
 and it deserve to be called an IDE, but
 usual IT professionals don't appreciate it much)...
 what is your experience for day to day business
 developement...

 is there any good and cheap IDE otherwise ?
 any pointers...

 what do jakarta-apache developers use commonly ?
 CVS+Ant+Emacs ?
 WinCVS+Ant+UltraEdit ?


 my intention is to place Tomcat
 as a concurent/alternative
 to $100k servers (weblogic, websphere), and I need a
 coherent (good, cheap) environment with it...



 thanks in advance...


 ---

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


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

 -- e_teer, [EMAIL PROTECTED] on 01/24/2001


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


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



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




Re: weblogic anyone?

2001-01-19 Thread Kyle F. Downey


 Also, does anyone have any idea how much weblogic app server runs? I don't
 want to be on the phone long distance to get a price quote and thier web
 site doesnt say.


Was about $4000 for a developer seat and $10,000+ for a production
license (per processor).

--kd


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