Classloading scenario

2007-02-20 Thread Angel Todorov

Hi All,

I have the following scenario: one webapp, which has some jars in its
private WEB-INF\lib dir, and one common jar which I would like to
share among several webapps. Hence, I am putting this jar into the
shared\lib directory of Tomcat. The problem is that this common lib
references classes which are in jars in the first webapp's WEB\lib
directory. Therefore, I get NoClassDefFoundErrors when this common jar
loads and tries to refer classes from the webapp's private lib.

Is it possible to achieve a workaround with tomcat's classloading for
that custom scenario?

Thank you very much in advance.

Regards,
Angel

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



Tomcat 5.5: PROPFIND fails with 501 for non-existent resource

2007-02-20 Thread Werner Donné

Hi,

I have a servlet, which implements WebDAV, running in Tomcat 5.5.
When I issue a PROPFIND to an existent resource within the declared
context I get a proper response. However, when the resource doesn't
exist but is still within the context, I get a 501 response code.
The strange thing is that in that case the request doesn't reach
my servlet, not even for a HEAD in order to test the existence of
the resource. Since the resource is within the context of the
servlet I don't understand why the request doesn't reach it and
how Tomcat can know the resource doesn't exist.

Regards,

Werner.
--
Werner Donné  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803   e-mail: [EMAIL PROTECTED]

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



Monitoring of Tomcat process

2007-02-20 Thread Virgo Rustianto

Hi there,

Currently I am using Tomcat webserver 4.1.2, does any one know how to
monitoring Tomcat webserver ? The reason is I facing problem almost everyday
Tomcat was down, currently I don't know how to see does tomcat running or
down.
Normally after startup I can't see anything except customer care complaining
our aplication doesn't works then we know tomcat must startup again.

regards,
Virgo Rustianto


Expression Language in JSP and JasperException

2007-02-20 Thread Piotr Kiraga

Hi,

When I'm using in JSP:
  ...
Tomcat (5.5.17) throws exception (javax.servlet.ServletException:
Unable to find a value for "result" in object of class
"com.some.packages.action.LoginActionBean" using operator ".").

I've heard that it can be configured in Tomcat, so he could pass
through it without an exception. Is it true? If so, how to do that?


Regards,

--
Piotr Kiraga

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



Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Does com.some.packages.action.LoginActionBean have a public method
getResult()?  The test below effectively translates to:

if (actionBean.getResult() != null) {
   //  some stuff to do 
}

--David

Piotr Kiraga wrote:

> Hi,
>
> When I'm using in JSP:
>   ...
> Tomcat (5.5.17) throws exception (javax.servlet.ServletException:
> Unable to find a value for "result" in object of class
> "com.some.packages.action.LoginActionBean" using operator ".").
>
> I've heard that it can be configured in Tomcat, so he could pass
> through it without an exception. Is it true? If so, how to do that?
>
>
> Regards,
>


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



RE: Problem seting up Tomcat SSL

2007-02-20 Thread PATTUS, Jean-Philippe
You should launch tomcat with this java option -Djavax.net.debug=ssl,
you will have probably more details about the problem


-Message d'origine-
De : Anthony Liu [mailto:[EMAIL PROTECTED]
Envoyé : mardi 20 février 2007 02:01
À : users@tomcat.apache.org
Objet : Problem seting up Tomcat SSL


Hi, people,

It's been 3 years since I used Tomcat the last time.  When I return to it these 
days, I am having a hard time getting the SSL to work.

I've created a keystore using keytool and put the .keystore file under 
C:\Tomcat_6\conf\

I am using JRE 6.

After I read the on-line doc, I put this in the server.xml:


<-- Define a non-blocking Java SSL Coyote HTTP/1.1 Connector on port 8443 -->



Turning the SSLEngine on or off makes no difference.

  
  

So, what's going on?  What I am missing?

By the way, I am not sure what is APR, and I did not install native libraries 
at Tomcat Installation.

Thanks.

 
-
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


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



Re: Monitoring of Tomcat process

2007-02-20 Thread Leon Rosenberg

write a small programm (10 lines of code) which makes a http request
via urlconnection or http-client from jakarta/commons and tries to get
an url from your application once a minute. If this fails it can send
you an email or sms (another 10 lines)

regards
leon

On 2/20/07, Virgo Rustianto <[EMAIL PROTECTED]> wrote:

Hi there,

Currently I am using Tomcat webserver 4.1.2, does any one know how to
monitoring Tomcat webserver ? The reason is I facing problem almost everyday
Tomcat was down, currently I don't know how to see does tomcat running or
down.
Normally after startup I can't see anything except customer care complaining
our aplication doesn't works then we know tomcat must startup again.

regards,
Virgo Rustianto



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



Re: where to store user-generated files?

2007-02-20 Thread John Pedersen

Thanks for the reply. Can you provide any more details as to how to go
about this. I have googled quite a bit - I would have thought that
this is quite a common requirement, but I don't see references to it.

I should mention that some of the files are images that the users
upload, and need to be accessible through the app via relative urls.

Maybe I am asking too much ( I chose a long time ago not to store
images and large files in the db - just store names and urls - maybe
this was a poor choice.)

On 16/02/07, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:

John Pedersen wrote:
> I have an app that generates some big, expensive-to-create files.
>
> Where can I store these files, so that they aren't destroyed when I
> reload or redeploy, and still get allow users to access them via
> Tomcat?
Store them outside of Tomcat directory tree and access them either by a
proxy servlet or create separate context pointing to that 'external'
directory.

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>


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




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



RE: where to store user-generated files?

2007-02-20 Thread Peter Crowther
> From: John Pedersen [mailto:[EMAIL PROTECTED] 
> Maybe I am asking too much ( I chose a long time ago not to store
> images and large files in the db - just store names and urls - maybe
> this was a poor choice.)

A lot depends on your environment.  For small projects I tend to store
in database - being able to get a consistent snapshot of database and
filestore is important in some of the applications I work in.  Sakai
(www.sakaiproject.org) can be configured to do either - small sites
often store in the database, the large sites (100,000+ users) tend to
store on filestore due to size restrictions on their RDMBSs.  Bodington
(www.bodington.org) stores in filestore outside the servlet's URL space,
and has code to parse the request URL, check security, read the file
from filestore and deliver it if desired.  Unless you *know* you can
control security in other ways, I'd suggest going down the Bodington
route if you want to use filestore.

Sakai and Bodington are both in Java under suitably free licenses
(Sakai's ESL, Bod is Apache2), so you could probably lift code from
either if it fit your requirements.  I've no doubt there are other
projects out there that have the same requirements (and probably cleaner
code); these are merely two I know.

- Peter

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



Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread aladdin
Have we given up here?  Do I need to have the packages in separate jars?

On Monday 19 February 2007 08:02, David Smith wrote:
> You don't need to tell tomcat to look in WEB-INF/lib/*.jar.  Tomcat does
> that automatically per spec.  I'm guessing there is something wrong with
> the way your jar was created or a permissions problem.
>
> Try testing the jar with
>
> $JAVA_HOME/bin/jar tf whatever.jar
> (linux/maxos syntax)
> or
> %JAVA_HOME\bin\jar tf whatever.jar
> (windows syntax)
>
> to be sure it's valid.  The command above lists all the files in the jar
> file.  Then be sure permissions are set so the user tomcat runs as can
> read it.  One last thing to look for is any errors further up in the
> logs above the class not found exception.
>
> --David
>
> aladdin wrote:
> >Thanks for the tip!
> >
> >I don't think I'd have a conflict with all the classes in my application.
> >Although some of my classes have common names, like user.java (compiled,
> >of course, to user.class), they are all member of just one of three
> > packages: infoisland, dbMgr, and utils, so I don't think the names are
> > colliding. Loading the app bombs out as tomcat is loading when it can't
> > find my filter, CheckUser (makes sure users are logged in), which is in
> > the infoIsland package.
> >
> >However, your comment is telling: "WEB-INF itself is not checked or
> > scanned for .jar files at all."  So, if I make sure the WEB-INF/classes
> > subdirectory is empty, how do I tell tomcat to go get classes out of the
> >WEB-INF/lib/whatever.jar file?
> >
> >Thanks.
> >
> >On Sunday 18 February 2007 20:05, David Smith wrote:
> >>It should be noted there are only a couple of places .jar files are
> >>allowed in tomcat:
> >>
> >>1. WEB-INF/lib
> >>2. common/lib of the tomcat installation directory
> >>
> >>WEB-INF itself is not checked or scanned for .jar files at all.  In
> >>addition, any files in the classes directory will override their
> >>equivalent in the lib directory.  This occurs regardless of it being in
> >>WEB-INF/classes or common/classes
> >>
> >>As to the issue below, are you sure you don't have similar classes (in
> >>name and package) in both common/lib and WEB-INF/lib?  Seems like
> >>there's a classloader issue at work here.  Take a look at the
> >>classloader howto at
> >>http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html.  It
> >>might offer some ideas.
> >>
> >>--David
> >>
> >>aladdin wrote:
> >>>When I put my webapp.jar file in the WEB-INF directory, it doesn't find
> >>>the app.  When I exploded it into the classes directory, and associated
> >>>subdirectories, they are found fine, but I get this problem (the one
> >>>below).
> >>>
> >>>This, it turns out, is triggered by the fact I have the webapp.jar file
> >>>in the lib directory and all the classes unpacked in the classes
> >>>directory (both under WEB-INF, of course).  Getting rid of the
> >>> webapp.jar file in the lib directory solves the problem below, but now
> >>> tomcat won't use that the jar file in the lib directory, even though
> >>> when it's unpacked in the classes directory, he seems perfectly happy. 
> >>> Is there some magic I need for tomcat to use .jar files in the
> >>> WEB-INF/lib directory, like an entry in web.xml or server.xml?
> >>>
> >>>On Friday 16 February 2007 22:52, aladdin wrote:
> I was getting a message like "SEVERE PersistenceManager persistence not
> enabled", or something like that (I don't remember) so I disabled
> (commented out) the Manager tag in server.xml that configured the
> PersistenceManager. Now, I'm getting
> 
> Feb 16, 2007 9:26:34 PM org.apache.catalina.loader.WebappClassLoader
> modified INFO: Additional JARs have been added
> Feb 16, 2007 9:26:34 PM org.apache.catalina.core.StandardContext reload
> INFO: Reloading this Context has started
> 
> over and over in the log files.  Anyone know what's causing this?  I
> thought maybe tomcat was restarting, but the PID doesn't change.  It
> seems to work, but it's filling up my log files.
> 
> TIA
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: [OT] mod_jk -> tomcat sending delay

2007-02-20 Thread nuka

Hello,

I am facing to a similar exception in tomcat:
ERROR [org.apache.jk.common.HandlerRequest] Error decoding request
java.net.SocketTimeoutException: Read timed out

having a timeout for Tomcat AJP connector = 1 minute. 

It seems that this timeout has a good value, but I still get this kind of
errors

thanks,





Rainer Jung-3 wrote:
> 
> Version 1.2.6 of mod_jk is an antiquity. First update before 
> investigating the problem.
> 
> babu wrote:
>> Hi,
>> 
>> We are also facing same problem and we are using mod_jk 1.2.6 with apache
>> 2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have
>> Apache+mod_jk with LB +  9 tomcats in backend. Mod_jk is set with sticky
>> bit
>> set.
>> 
>> Partial workers.properites
>> 
>> worker.list=loadbalancer
>> worker.loadbalancer.type=lb
>> worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3
>> 
>> 
>> 
>> worker.tc_1_1.host=cna-prod-app-25
>> worker.tc_1_1.port=8000
>> worker.tc_1_1.type=ajp13
>> worker.tc_1_1.lbfactor=1
>> worker.tc_1_1.cachesize=50
>> worker.tc_1_1.cache_timeout=180
>> worker.tc_1_1.socket_timeout=300
>> worker.tc_1_1.socket_keepalive=1
>> worker.tc_1_1.recovery_options=0
>> worker.tc_1_1.sticky_session=1
>> 
>> server.xml
>> 
>> >   protocol="AJP/1.3"
>>   address="cna-prod-app-25"
>>   minProcessors="50"
>>   maxProcessors="100"
>>   enableLookups="false"
>>   debug="0"
>>   URIEncoding="UTF-8"
>>   connectionTimeout="18"
>>   />
>> 
>> I found in one of discussion board, that connection timeout in sever.xml
>> and
>> timeout parameters in workers.properties should be matched properly and
>> also
>> found that in server.xml its in miliseconds and in workers.properites it
>> is
>> seconds.
>> 
>> 
>> We do not find any issue at client side but erorr keeps going in mod_jk
>> log.
>> ( I am not sure of client side issues are there or not)
>> 
>> 
>> mod_jk log
>> 
>> [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
>> network problems. No response has been sent to the client (yet)
>> [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
>> from
>> tomcat failed, recoverable operation. err=2
>> [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1477)]: Error connecting to
>> tomcat. Tomcat is probably not started or is listening on the wrong port.
>> worker=tc_3_3 failed errno = 0
>> [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
>> the response message from tomcat, network problems or tomcat is down
>> (128.107.229.109:8002), err=-1
>> [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
>> network problems. No response has been sent to the client (yet)
>> [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
>> from
>> tomcat failed, recoverable operation. err=2
>> [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1477)]: Error connecting to
>> tomcat. Tomcat is probably not started or is listening on the wrong port.
>> worker=tc_1_3 failed errno = 0
>> [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
>> the response message from tomcat, network problems or tomcat is down
>> (128.107.229.110:8001), err=-1
>> [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
>> network problems. No response has been sent to the client (yet)
>> [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
>> from
>> tomcat failed, recoverable operation. err=2
>> [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1477)]: Error connecting to
>> tomcat. Tomcat is probably not started or is listening on the wrong port.
>> worker=tc_2_2 failed errno = 0
>> [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
>> the response message from tomcat, network problems or tomcat is down
>> (128.107.229.109:8000), err=-1
>> [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
>> network problems. No response has been sent to the client (yet)
>> [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
>> from
>> tomcat failed, recoverable operation. err=0
>> [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
>> the response message from tomcat, network problems or tomcat is down
>> (128.107.229.110:8002), err=-1
>> [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
>> network problems. No response has been sent to the client (yet)
>> [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
>> from
>> tomcat failed, recoverable operation. err=1
>> [Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
>> the response message from tomcat, network problems or tomcat is down
>> (128.107.229.110:8002), err=-1
>> [Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
>> network problems. No response has been s

Re: Expression Language in JSP and JasperException

2007-02-20 Thread Piotr Kiraga

Does com.some.packages.action.LoginActionBean have a public method
getResult()?  The test below effectively translates to:

if (actionBean.getResult() != null) {
   //  some stuff to do 
}


The problem is that there could be a class that has no property with
name result. In another case there could be another class (bean) that
has such property (than of course it works fine, but at first case
Tomcat throws exception).

--
Piotr Kiraga

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



Re: Classloading scenario

2007-02-20 Thread Boris Unckel

Hello,

Angel Todorov wrote:

I have the following scenario: one webapp, which has some jars in its
private WEB-INF\lib dir, and one common jar which I would like to
share among several webapps. Hence, I am putting this jar into the
shared\lib directory of Tomcat. The problem is that this common lib
references classes which are in jars in the first webapp's WEB\lib
directory. Therefore, I get NoClassDefFoundErrors when this common jar
loads and tries to refer classes from the webapp's private lib.

Is it possible to achieve a workaround with tomcat's classloading for
that custom scenario?

there is no workaround, but a better strategy and best practise:
Put *all* JARs of a webapp into WEB-INF/lib, if there is not
a strong usecase or technical reason to do otherwise (i.E. some JDBC drivers
should be put into common/lib or shared/lib).

Sharing classes causes definitly more problems than it solves.

Regards
Boris


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



Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith

Piotr Kiraga wrote:

Does com.some.packages.action.LoginActionBean have a public method
getResult()?  The test below effectively translates to:

if (actionBean.getResult() != null) {
   //  some stuff to do 
}


The problem is that there could be a class that has no property with
name result. In another case there could be another class (bean) that
has such property (than of course it works fine, but at first case
Tomcat throws exception).

Maybe but let's keep debugging simple.  The expression language is 
expecting a class conforming to the JavaBeans standard.  What does the 
class "com.some.packages.action.LoginActionBean" look like?


--David

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



Re: Classloading scenario

2007-02-20 Thread Angel Todorov

Hi Boris,

This doesn't work for me -> i would like to share classes between
webapps in order for them to have a common classloader. In this way i
can pass object references between two webapps. In tomcat there is no
concept of EAR packaging, and EAR classloading isolation in general. I
don't agree that sharing classes doesn't pose many advantages as
compared to not sharing them - that's why there is the big topic named
"Jar Hell".

Regards,
Angel

On 2/20/07, Boris Unckel <[EMAIL PROTECTED]> wrote:

Hello,

Angel Todorov wrote:
> I have the following scenario: one webapp, which has some jars in its
> private WEB-INF\lib dir, and one common jar which I would like to
> share among several webapps. Hence, I am putting this jar into the
> shared\lib directory of Tomcat. The problem is that this common lib
> references classes which are in jars in the first webapp's WEB\lib
> directory. Therefore, I get NoClassDefFoundErrors when this common jar
> loads and tries to refer classes from the webapp's private lib.
>
> Is it possible to achieve a workaround with tomcat's classloading for
> that custom scenario?
there is no workaround, but a better strategy and best practise:
Put *all* JARs of a webapp into WEB-INF/lib, if there is not
a strong usecase or technical reason to do otherwise (i.E. some JDBC drivers
should be put into common/lib or shared/lib).

Sharing classes causes definitly more problems than it solves.

Regards
Boris


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




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



mod_jk configuration for production

2007-02-20 Thread nuka

Hello,

I am facing to a problem concerning apache-tomcat configuration via mod_jk
for our production environment. We are usingApache: 2.0.55, Tomcat 5.0,
mod_jk 1.2.15.

Our first problem has been raised some weeks ago when the clients received
http 404 errors. 

mod_jk logs have shown errors such as:

[Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 14 is not connected any more (errno=-1)
[Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection
[Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c (1225):
All endpoints are disconnected or dead
[Tue Feb 13 08:36:03 2007][info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1

After that, we changed the timeout for tomcat ajp connector (initially =
1) to 6ms.

Now we get other errors:

- a lot of "Error decoding request" in the JBoss logs at the same times
where  mod_jk is showing

[Mon Feb 19 13:25:50 2007][info] 
ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced a
connection close  for socket 14
[Mon Feb 19 13:25:50 2007][error] ajp_get_reply::jk_ajp_common.c (1503):
Tomcat is down or refused connection. No response has been sent to the
client (yet)
[Mon Feb 19 13:25:50 2007][info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0

Bellow is our configuration:

 
  

workers.properties:

# Define list of workers that will be used   
# for mapping requests   
worker.list=loadbalancer, loadbalancer2, status
   
   
worker.xxxNode1.port=8109   
worker.xxxNode1.host=
worker.xxxNode1.type=ajp13 
worker.xxxNode1.socket_keepalive=True
worker.xxxNode1.socket_timeout=2
worker.xxxNode1.recycle_timeout=300
worker.xxxNode1.recovery_options=0

worker.xxxNode2.port=8209   
worker.xxxNode2.host=xxx.xx.xx.xx
worker.xxxNode2.type=ajp13  
worker.xxxNode2.socket_keepalive=True
worker.xxxNode2.socket_timeout=2
worker.xxxNode2.recycle_timeout=300
worker.xxx2.recovery_options=0

Do you have any idea which parameters do we need to change in this
configuration?

thanks

rgds

Nuka
  
-- 
View this message in context: 
http://www.nabble.com/mod_jk-configuration-for-production-tf3260752.html#a9062426
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Classloading scenario

2007-02-20 Thread Peter Crowther
> From: Angel Todorov [mailto:[EMAIL PROTECTED] 
> This doesn't work for me -> i would like to share classes between
> webapps in order for them to have a common classloader. In this way i
> can pass object references between two webapps.

Then you'll have to put the jar you want *and all the classes and jars
it depends on* in the shared space.

- Peter

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



Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread David Smith
No just got busy with work.  Given what you provided in your last 
post, it seems to come down to permissions or something overlooked. 

Are you running the security manager? 
Have you checked file permissions? 
Did you restart tomcat (or at least restart the webapp) after building 
the .jar file and placing it in WEB-INF/lib?
Are there any messages in the logs when your webapp starts that might 
indicate a problem?


--David

aladdin wrote:

Have we given up here?  Do I need to have the packages in separate jars?

On Monday 19 February 2007 08:02, David Smith wrote:
  

You don't need to tell tomcat to look in WEB-INF/lib/*.jar.  Tomcat does
that automatically per spec.  I'm guessing there is something wrong with
the way your jar was created or a permissions problem.

Try testing the jar with

$JAVA_HOME/bin/jar tf whatever.jar
(linux/maxos syntax)
or
%JAVA_HOME\bin\jar tf whatever.jar
(windows syntax)

to be sure it's valid.  The command above lists all the files in the jar
file.  Then be sure permissions are set so the user tomcat runs as can
read it.  One last thing to look for is any errors further up in the
logs above the class not found exception.

--David

aladdin wrote:


Thanks for the tip!

I don't think I'd have a conflict with all the classes in my application.
Although some of my classes have common names, like user.java (compiled,
of course, to user.class), they are all member of just one of three
packages: infoisland, dbMgr, and utils, so I don't think the names are
colliding. Loading the app bombs out as tomcat is loading when it can't
find my filter, CheckUser (makes sure users are logged in), which is in
the infoIsland package.

However, your comment is telling: "WEB-INF itself is not checked or
scanned for .jar files at all."  So, if I make sure the WEB-INF/classes
subdirectory is empty, how do I tell tomcat to go get classes out of the
WEB-INF/lib/whatever.jar file?

Thanks.

On Sunday 18 February 2007 20:05, David Smith wrote:
  

It should be noted there are only a couple of places .jar files are
allowed in tomcat:

1. WEB-INF/lib
2. common/lib of the tomcat installation directory

WEB-INF itself is not checked or scanned for .jar files at all.  In
addition, any files in the classes directory will override their
equivalent in the lib directory.  This occurs regardless of it being in
WEB-INF/classes or common/classes

As to the issue below, are you sure you don't have similar classes (in
name and package) in both common/lib and WEB-INF/lib?  Seems like
there's a classloader issue at work here.  Take a look at the
classloader howto at
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html.  It
might offer some ideas.

--David

aladdin wrote:


When I put my webapp.jar file in the WEB-INF directory, it doesn't find
the app.  When I exploded it into the classes directory, and associated
subdirectories, they are found fine, but I get this problem (the one
below).

This, it turns out, is triggered by the fact I have the webapp.jar file
in the lib directory and all the classes unpacked in the classes
directory (both under WEB-INF, of course).  Getting rid of the
webapp.jar file in the lib directory solves the problem below, but now
tomcat won't use that the jar file in the lib directory, even though
when it's unpacked in the classes directory, he seems perfectly happy. 
Is there some magic I need for tomcat to use .jar files in the

WEB-INF/lib directory, like an entry in web.xml or server.xml?

On Friday 16 February 2007 22:52, aladdin wrote:
  

I was getting a message like "SEVERE PersistenceManager persistence not
enabled", or something like that (I don't remember) so I disabled
(commented out) the Manager tag in server.xml that configured the
PersistenceManager. Now, I'm getting

Feb 16, 2007 9:26:34 PM org.apache.catalina.loader.WebappClassLoader
modified INFO: Additional JARs have been added
Feb 16, 2007 9:26:34 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started

over and over in the log files.  Anyone know what's causing this?  I
thought maybe tomcat was restarting, but the PID doesn't change.  It
seems to work, but it's filling up my log files.





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



RE: Monitoring of Tomcat process

2007-02-20 Thread Jean-Sebastien Pilon
You could write a script that wget's the applications home page for a
few iterations and that checks that the process is running and restart
it if no answer.

You could also use nagios with the check_http or with nrpe to check the
processes on the app server. See nagios.org on this one, this is quite a
bigger thing than the 1st solution if you do not have a monitoring
infrastructure with nagios already setup.

> -Original Message-
> From: Virgo Rustianto [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 20, 2007 6:51 AM
> To: users@tomcat.apache.org
> Subject: Monitoring of Tomcat process
> 
> Hi there,
> 
> Currently I am using Tomcat webserver 4.1.2, does any one know how to
> monitoring Tomcat webserver ? The reason is I facing problem 
> almost everyday
> Tomcat was down, currently I don't know how to see does 
> tomcat running or
> down.
> Normally after startup I can't see anything except customer 
> care complaining
> our aplication doesn't works then we know tomcat must startup again.
> 
> regards,
> Virgo Rustianto
> 
NOTICE: This email contains privileged and confidential information and is 
intended only for the individual to whom it is addressed. If you are not the 
named addressee, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately by e-mail if you have received this 
transmission by mistake and delete this communication from your system. E-mail 
transmission cannot be guaranteed to be secured or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. 

AVIS: Le présent courriel contient des renseignements de nature privilégiée et 
confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous 
n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute 
diffusion, distribution ou reproduction de cette communication est strictement 
interdite.  Si vous avez reçu ce courriel par erreur, veuillez en aviser 
immédiatement l’expéditeur et le supprimer de votre système. Notez que la 
transmission de courriel ne peut en aucun cas être considéré comme inviolable 
ou exempt d’erreur puisque les informations qu’il contient pourraient être 
interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes 
ou contenir un virus.  

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



Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread Williams, Allen
> No just got busy with work.  Given what you provided in your last
> post, it seems to come down to permissions or something overlooked.

> Are you running the security manager?

I don't think so.  I'm rather new to this (this is the first webapp I've
attempted to deploy), but I don't see anything in my server.xml that
would
indicate such.  What should I look for?

> Have you checked file permissions?

File permissions are rwxr-xr-x, owned by root.  I think I tried chmod
777 already,
but can try it again if you think it may be a permissions problem.

> Did you restart tomcat (or at least restart the webapp) after building
> the .jar file and placing it in WEB-INF/lib?

Yes, restarted tomcat.

> Are there any messages in the logs when your webapp starts that might
> indicate a problem?

Just the one about not finding my CheckUser filter.  However, I have
noticed that the CheckUser
filter is declared way down in my web.xml file, so am wondering if it is
finding the servlets OK,
and just has a problem with this filter.  It has no problem with it in
the classes subdir, so I didn't
think of that at first.

I had just assumed that it was looking for the filter first, so that was
why it was the only message
I got.  Then, I checked the web.xml file and wondered about this.  Here
is its declaration in web.xml,
along with the preceding servlet:


ReqMgr
infoIsland.ReqMgr

-

ReqMgr
/members/servlet/ReqMgr


-

CheckUser
infoIsland.CheckUser
-

loginPage
/login.jsp


-

CheckUser
/members/*



> --David

Thanks so much!!

aladdin wrote:
> Have we given up here?  Do I need to have the packages in separate
jars?
>
> On Monday 19 February 2007 08:02, David Smith wrote:
>> You don't need to tell tomcat to look in WEB-INF/lib/*.jar.  Tomcat
does
>> that automatically per spec.  I'm guessing there is something wrong
with
>> the way your jar was created or a permissions problem.
>>
>> Try testing the jar with
>>
>> $JAVA_HOME/bin/jar tf whatever.jar
>> (linux/maxos syntax)
>> or
>> %JAVA_HOME\bin\jar tf whatever.jar
>> (windows syntax)
>>
>> to be sure it's valid.  The command above lists all the files in the
jar
>> file.  Then be sure permissions are set so the user tomcat runs as
can
>> read it.  One last thing to look for is any errors further up in the
>> logs above the class not found exception.
>>
>> --David
>>
>> aladdin wrote:
>>> Thanks for the tip!
>>>
>>> I don't think I'd have a conflict with all the classes in my
application.
>>> Although some of my classes have common names, like user.java
(compiled,
>>> of course, to user.class), they are all member of just one of three
>>> packages: infoisland, dbMgr, and utils, so I don't think the names
are
>>> colliding. Loading the app bombs out as tomcat is loading when it
can't
>>> find my filter, CheckUser (makes sure users are logged in), which is
in
>>> the infoIsland package.
>>>
>>> However, your comment is telling: "WEB-INF itself is not checked or
>>> scanned for .jar files at all."  So, if I make sure the
WEB-INF/classes
>>> subdirectory is empty, how do I tell tomcat to go get classes out of
the
>>> WEB-INF/lib/whatever.jar file?
>>>
>>> Thanks.
>>>
>>> On Sunday 18 February 2007 20:05, David Smith wrote:
 It should be noted there are only a couple of places .jar files are
 allowed in tomcat:

 1. WEB-INF/lib
 2. common/lib of the tomcat installation directory

 WEB-INF itself is not checked or scanned for .jar files at all.  In
 addition, any files in the classes directory will override their
 equivalent in the lib directory.  This occurs regardless of it
being in
 WEB-INF/classes or common/classes

 As to the issue below, are you sure you don't have similar classes
(in
 name and package) in both common/lib and WEB-INF/lib?  Seems like
 there's a classloader issue at work here.  Take a look at the
 classloader howto at
 http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html.
It
 might offer some ideas.

 --David

 aladdin wrote:
> When I put my webapp.jar file in the WEB-INF directory, it doesn't
find
> the app.  When I exploded it into the classes directory, and
associated
> subdirectories, they are found fine, but I get this problem (the
one
> below).
>
> This, it turns out, is triggered by the fact I have the webapp.jar
file
> in the lib directory and all the classes unpacked in the classes
> directory (both under WEB-INF, of course).  Getting rid of the
> webapp.jar file in the lib directory solves the problem below, but
now
> tomcat won't use that the jar file in the lib directory, even
though
> when it's unpacked in the classes directory, he seems perfectly
happy.
> Is there some magic I need for tomcat to use .jar files in the
> WEB-INF/lib directory, like an entry in web.xml or server.xml?
>
> On Friday 16 February 2007 22:52, aladdin wrote:
>> I was getting a 

RE: Problem seting up Tomcat SSL

2007-02-20 Thread Zhan, Jimmy
Hi Anthony,

   I'm not sure what's your meaning of "Turning the SSLEngine on or
off".
   But, after you change the server.xml, you need restart tomcat.
  
   I use tomcat5.5.17, there is a log file under logs of tomcat home
dir, 
   named as catalina.-mm-yy.log, before restart tomcat, remove this
log
   file if there is one there. Then restart your tomcat, after restart 
   tomcat, look at that log file. The first few of lines should be like:

Feb 10, 2007 9:06:46 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 10, 2007 9:06:47 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Feb 10, 2007 9:06:47 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1750 ms

   And the last few of lines should be like :

Feb 10, 2007 9:06:55 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 10, 2007 9:06:55 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8443
Feb 10, 2007 9:06:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 10, 2007 9:06:56 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32  config=null
Feb 10, 2007 9:06:56 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 10, 2007 9:06:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9047 ms

   Otherwise, you can find exceptions, most should be one of following:

SEVERE: Error initializing endpoint
java.io.IOException: Cannot recover key

SEVERE: Error initializing endpoint
java.io.IOException: Keystore was tampered with, or password was
incorrect

SEVERE: Error initializing endpoint
java.io.FileNotFoundException: C:\Tomcat5\public\.keystore (The system
cannot find the file specified)

Hope this will help you, Good luck!

By the way, I have the problem, to turn on the clientAuth, 
hope you can help me out there. Here is my problem posted 5 days
ago.

On 2/15/07, Zhan, Jimmy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>I have set up HTTPS for tomcat without client certificate, and it
is
> running good.  Now I want to turn on the client certificate.
>How can to config the tomcat, let pop a "Choose a digital 
> certificate" window, allow clients pick Choose a digital certificate,
>If failed , pop a new window to allow user input "User Name" and 
> "Password".
>In file servrer.xml ,  if change clientAuth="true", then when
client
> is not in the "truststoreFile",
>
> "The page cannot be display" comes out.
>   If change clientAuth="want", then, tomcat ignores the result of 
> checking client certificate.
>   Thanks in advance!!
> Jimmy ZHAN
> Cash America International

Thanks

Jimmy Zhan




-Original Message-
From: Anthony Liu [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 19, 2007 7:01 PM
To: users@tomcat.apache.org
Subject: Problem seting up Tomcat SSL

Hi, people,

It's been 3 years since I used Tomcat the last time.  When I return to
it these days, I am having a hard time getting the SSL to work.

I've created a keystore using keytool and put the .keystore file under
C:\Tomcat_6\conf\

I am using JRE 6.

After I read the on-line doc, I put this in the server.xml:


<-- Define a non-blocking Java SSL Coyote HTTP/1.1 Connector on port
8443 -->



Turning the SSLEngine on or off makes no difference.

  
  

So, what's going on?  What I am missing?

By the way, I am not sure what is APR, and I did not install native
libraries at Tomcat Installation.

Thanks.

 
-
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

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



RE: Monitoring of Tomcat process

2007-02-20 Thread ScottAnders
If you just want to check that the process is running on the machine, here's a 
sample bash script that I worked up:

#!/bin/bash
# This script makes sure certain processes are running and emails support if 
they aren't

# What process to check for
PROCESS=tomcat

# The command to run
COMMAND=$(ps -ef| grep $PROCESS| grep -v grep| wc -l)

OUTPUT=$COMMAND

# Set the most number of messages we want sent before we stop sending them
ATMOST=3 
EMAILFILE=/path/to/wherever/scripts/emailsSent.txt 

# Lets check to see if that file exists and if not, create it
if [ ! -f $EMAILFILE ]
then
   # The file does not exist, we better create it
   echo 0 > $EMAILFILE
fi   

if [ $OUTPUT == 0 ]
then
   # Lets see if we already sent messages
   NUMBER=$(cat $EMAILFILE)
   if [ "$NUMBER" != 3 ]
   then
  # Go ahead and send the email
  # The message that will go in the email
  MESSAGE="The $PROCESS process doesn't seem to be running on $HOSTNAME on 
$(date +"%x %r %Z") number is $NUMBER"
  echo $MESSAGE | mail -s "$PROCESS process not running on $HOSTNAME" 
[EMAIL PROTECTED]
  # Now increment the number in the EMAILFILE file
  NEWNUMBER=$(expr $NUMBER + 1)
  echo $NEWNUMBER > $EMAILFILE
   fi
else
  # So the process is running, let's make sure the email messages increment 
number is 0
  if [ "$NUMBER" != 0 ]
  then
 echo 0 > $EMAILFILE
  fi
fi

-Original Message-
From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 20, 2007 7:17 AM
To: Tomcat Users List
Subject: RE: Monitoring of Tomcat process

You could write a script that wget's the applications home page for a
few iterations and that checks that the process is running and restart
it if no answer.

You could also use nagios with the check_http or with nrpe to check the
processes on the app server. See nagios.org on this one, this is quite a
bigger thing than the 1st solution if you do not have a monitoring
infrastructure with nagios already setup.

> -Original Message-
> From: Virgo Rustianto [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 20, 2007 6:51 AM
> To: users@tomcat.apache.org
> Subject: Monitoring of Tomcat process
> 
> Hi there,
> 
> Currently I am using Tomcat webserver 4.1.2, does any one know how to
> monitoring Tomcat webserver ? The reason is I facing problem 
> almost everyday
> Tomcat was down, currently I don't know how to see does 
> tomcat running or
> down.
> Normally after startup I can't see anything except customer 
> care complaining
> our aplication doesn't works then we know tomcat must startup again.
> 
> regards,
> Virgo Rustianto
> 
NOTICE: This email contains privileged and confidential information and is 
intended only for the individual to whom it is addressed. If you are not the 
named addressee, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately by e-mail if you have received this 
transmission by mistake and delete this communication from your system. E-mail 
transmission cannot be guaranteed to be secured or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. 

AVIS: Le présent courriel contient des renseignements de nature privilégiée et 
confidentielle et n'est destiné qu'à la personne à qui il est adressé. Si vous 
n'êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute 
diffusion, distribution ou reproduction de cette communication est strictement 
interdite.  Si vous avez reçu ce courriel par erreur, veuillez en aviser 
immédiatement l'expéditeur et le supprimer de votre système. Notez que la 
transmission de courriel ne peut en aucun cas être considéré comme inviolable 
ou exempt d'erreur puisque les informations qu'il contient pourraient être 
interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes 
ou contenir un virus.  

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


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



RE: where to store user-generated files?

2007-02-20 Thread Williams, Allen
I have the same requirement, and had made the same decision (to use file
store
as opposed to the database).  This is probably a dumb question, but: I
looked at
bodington- are you referring to a course or to downloading their system
and going 
through their code to see how they did it?
 
TIA.

Subject: RE: where to store user-generated files?
Date: Tuesday 20 February 2007 08:18
From: "Peter Crowther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ,
[EMAIL PROTECTED]

> From: John Pedersen [mailto:[EMAIL PROTECTED]
> Maybe I am asking too much ( I chose a long time ago not to store
> images and large files in the db - just store names and urls - maybe
> this was a poor choice.)

A lot depends on your environment.  For small projects I tend to store
in database - being able to get a consistent snapshot of database and
filestore is important in some of the applications I work in.  Sakai
(www.sakaiproject.org) can be configured to do either - small sites
often store in the database, the large sites (100,000+ users) tend to
store on filestore due to size restrictions on their RDMBSs.  Bodington
(www.bodington.org) stores in filestore outside the servlet's URL space,
and has code to parse the request URL, check security, read the file
from filestore and deliver it if desired.  Unless you *know* you can
control security in other ways, I'd suggest going down the Bodington
route if you want to use filestore.

Sakai and Bodington are both in Java under suitably free licenses
(Sakai's ESL, Bod is Apache2), so you could probably lift code from
either if it fit your requirements.  I've no doubt there are other
projects out there that have the same requirements (and probably cleaner
code); these are merely two I know.

- Peter

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

---

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



Re: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Daniel Gresh

Caldarale, Charles R wrote:
From: Daniel Gresh [mailto:[EMAIL PROTECTED] 
Subject: Re: Installing Tomcat 6.0.9 on Sun Solaris


When I try to setup a $CATALINA_BASE by moving the
aforementioned directories to $HOME/dtomcat, I get
the error I posted in my original message. 



The real question is:  why are you trying to do this?  Unless you intend
to run multiple instances of Tomcat simultaneously, the exercise is
pointless.

 - Chuck


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

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



  

Thanks for the replies guys.

I believe you're right Chuck. When I think about it, there is no need 
for a CATALINA_BASE. The reason I wanted to set one is because the 
previous two installations of Tomcat (4.0.5 and 5.5.9) both had one, so 
I figured it might be there for ease of use, security purposes, or 
something of the sort. However, I am the only one who will be using 
Tomcat 6.0.9, so there really is no point to it.


Anyway, I believe all my questions are now cleared up (unless of course 
I need to set up a CATALINA_BASE and have questions about the 
information from the server logs). I have Tomcat 6.0.9 running properly, 
and it can compile my JDK1.5 code and everything!


Thanks for the help,
Dan

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



Fw: Tomcat & Cobertura

2007-02-20 Thread dhay
bump!

Can anyone explain what are the differences between tomcat5.exe and
startup.bat?

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 02/20/2007 11:12 AM -
   
 [EMAIL PROTECTED]  
   
 02/19/2007 12:44   To 
 PMTomcat Users List   
  
cc 
 Please respond to 
   "Tomcat Users   Subject 
   List"   Tomcat & Cobertura  
 <[EMAIL PROTECTED] 
 che.org>  
   
   
   
   



Hi,

We're trying to instrument a war file using Cobertura, and gather the
coverage details when deployed and used under Tomcat.

Below is a thread from the Cobertura list - I'm having problems when I run
tomcat5.exe (which we use in our product) with the instrumented jar.  In
this mode, Cobertura saves the instrumented data when the web server is
shutdown.  If I run tomcat using startup.bat, everything works great.  With
tomcat5.exe, no data is saved when tomcat shuts down.

Does anyone know what is causing this, and how I might work around it?

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 02/19/2007 12:30 PM -

 "John W. Lewis"
 <[EMAIL PROTECTED]
 com>   To
   <[EMAIL PROTECTED]>
 02/10/2007 10:42   cc
 AM<[EMAIL PROTECTED]
   net>
   Subject
   RE: [Cobertura-devel] creating
   instrumented war










This code runs during Cobertura initialization:

 private static void initialize()
 {
  // Hack for Tomcat - by saving project data right now we force loading
  // of classes involved in this process (like ObjectOutputStream)
  // so that it won't be necessary to load them on JVM shutdown
  if (System.getProperty("catalina.home") != null)
  {
   saveGlobalProjectData();

   // Force the class loader to load some classes that are
   // required by our JVM shutdown hook.
   // TODO: Use ClassLoader.loadClass("whatever"); instead
   ClassData.class.toString();
   CoverageData.class.toString();
   CoverageDataContainer.class.toString();
   FileLocker.class.toString();
   HasBeenInstrumented.class.toString();
   LineData.class.toString();
   PackageData.class.toString();
   SourceFileData.class.toString();
  }

I'm wondering if catalina.home is not set when you run as a service?

John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 6:14 PM
To: John W. Lewis
Cc: [EMAIL PROTECTED]
Subject: RE: [Cobertura-devel] creating instrumented war

Hi John,

I see cobertura.ser in the ...\tomcat\bin dir getting updated on startup
(timestamp changes) and log shows it found it too.  Just not on shutdown.
Delay doesn't help.

If you could look for tomcat special case I'd appreciate it.

cheers,

David




 "John W. Lewis"
 <[EMAIL PROTECTED]
 com>   To
   <[EMAIL PROTECTED]>
 02/09/2007 05:54   cc
 PM<[EMAIL PROTECTED]
   net>
   Subject
   RE: [Cobertura-devel] creating
   instrumented war










It might be due to a different working directory while running as a
service.  Unless you are starting the tomcat jvm while passing in the java
property that tells where the cobertura.ser file is, the file will end up
in the working directory.  I would search the entire hard drive for a
cobertura.ser file.  If you see two, it may be that one was written by the
service.  That would be the working directory.

The other thing is that I would try putting 

RE: Tomcat & Cobertura

2007-02-20 Thread Sheets, Jerald
Startup.bat calls catalina.bat which calls tomcat5.exe

--jms 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 20, 2007 11:14 AM
To: Tomcat Users List
Subject: Fw: Tomcat & Cobertura

bump!

Can anyone explain what are the differences between tomcat5.exe and
startup.bat?

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 02/20/2007 11:12 AM -
 

 [EMAIL PROTECTED]

 

 02/19/2007 12:44
To 
 PMTomcat Users List

   

 
cc 
 Please respond to

   "Tomcat Users
Subject 
   List"   Tomcat & Cobertura

 <[EMAIL PROTECTED]

 che.org>

 

 

 

 




Hi,

We're trying to instrument a war file using Cobertura, and gather the
coverage details when deployed and used under Tomcat.

Below is a thread from the Cobertura list - I'm having problems when I
run tomcat5.exe (which we use in our product) with the instrumented jar.
In this mode, Cobertura saves the instrumented data when the web server
is shutdown.  If I run tomcat using startup.bat, everything works great.
With tomcat5.exe, no data is saved when tomcat shuts down.

Does anyone know what is causing this, and how I might work around it?

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 02/19/2007 12:30 PM -

 "John W. Lewis"
 <[EMAIL PROTECTED]
 com>
To
   <[EMAIL PROTECTED]>
 02/10/2007 10:42
cc
 AM
<[EMAIL PROTECTED]
   net>
 
Subject
   RE: [Cobertura-devel] creating
   instrumented war










This code runs during Cobertura initialization:

 private static void initialize()
 {
  // Hack for Tomcat - by saving project data right now we force loading
  // of classes involved in this process (like ObjectOutputStream)
  // so that it won't be necessary to load them on JVM shutdown
  if (System.getProperty("catalina.home") != null)
  {
   saveGlobalProjectData();

   // Force the class loader to load some classes that are
   // required by our JVM shutdown hook.
   // TODO: Use ClassLoader.loadClass("whatever"); instead
   ClassData.class.toString();
   CoverageData.class.toString();
   CoverageDataContainer.class.toString();
   FileLocker.class.toString();
   HasBeenInstrumented.class.toString();
   LineData.class.toString();
   PackageData.class.toString();
   SourceFileData.class.toString();
  }

I'm wondering if catalina.home is not set when you run as a service?

John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 6:14 PM
To: John W. Lewis
Cc: [EMAIL PROTECTED]
Subject: RE: [Cobertura-devel] creating instrumented war

Hi John,

I see cobertura.ser in the ...\tomcat\bin dir getting updated on startup
(timestamp changes) and log shows it found it too.  Just not on
shutdown.
Delay doesn't help.

If you could look for tomcat special case I'd appreciate it.

cheers,

David




 "John W. Lewis"
 <[EMAIL PROTECTED]
 com>
To
   <[EMAIL PROTECTED]>
 02/09/2007 05:54
cc
 PM
<[EMAIL PROTECTED]
   net>
 
Subject
   RE: [Cobertura-devel] creating
   instrumented war










It might be due to a different working directory while running as a
service.  Unless you are starting the tomcat jvm while passing in the
java property that tells where the cobertura.ser file is, the file will
end up in the working directory.  I would search the entire hard drive
for a cobertura.ser file.  If you see two, it may be that one was
written by the service.  That would be the working directory.

The other thing is that I would try putting in a delay of about a minute
before calling cobertura-report just to give the java process enough
time to exit.

The other thing is that I do remember some kind of special case code for
tomcat.  I can look for that if the other two things above do not help.

Another thing is that are you sure the instrumented war is in use when
you start it up as a service?

John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 3:59 PM
To: John W. Lewis
Cc: [EMAIL PROTECTED]
Subject: RE: [Cobertura-devel] creating instrumented war

Thanks!  That works - I'd overlooked it.

However, I am running into an issue with Tomcat not updating the
cobertura.ser when it shuts down.  We install it as a service, and when
the service is stopped, nothing gets updated.  Same thing if I start it
from the command line using tomcat5.exe.  However, if I copy the other
files across in the bin directory and star

RE: where to store user-generated files?

2007-02-20 Thread Peter Crowther
> From: Williams, Allen [mailto:[EMAIL PROTECTED] 
> This is probably a dumb question, but: I looked at
> bodington- are you referring to a course or to downloading 
> their system and going 
> through their code to see how they did it?

I'm referring to going through their code - *if* you can face it.
That's quite a big if.  Bodington is a bit odd, as a fair hunk of the
core is >10 years old - it has its own template language, its own
sessions, its own database independence layer... basically it ignores
most of the functionality that's now in the container, as it was written
before these had stabilised.

[sounds of Peter rummaging through the Bodington code]

OK, scratch that.  The code from Bodington probably isn't reusable in
any sensible timeframe unless you also want a complete way of storing a
file structure in a database (so the structure's in the database, but
the bytes in the files are stored outside, possibly with mangled names
to deal with characters that are illegal on the particular platform).
If you do, try org.bodington.server.UploadedFileSessionImpl and its
dependencies - and prepare to enter looking-glass land!

- Peter

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



RE: Tomcat & Cobertura

2007-02-20 Thread Caldarale, Charles R
> From: Sheets, Jerald [mailto:[EMAIL PROTECTED] 
> Subject: RE: Tomcat & Cobertura
> 
> Startup.bat calls catalina.bat which calls tomcat5.exe

You apparently haven't actually looked at the scripts.  The catalina.bat
script does not use tomcat5.exe; it starts up Tomcat with the standard
Java launcher.

The tomcat5.exe program is normally used only to run Tomcat as a
service, although there's nothing that stops it from being used from the
command prompt as an alternative launcher.

 - Chuck


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

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



Re: Tomcat 5.5: PROPFIND fails with 501 for non-existent resource

2007-02-20 Thread Werner Donné

Hi,

It was caused by a context mix-up by myself. My apologies for
the post.

Regards,

Werner.
--
Werner Donné  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803   e-mail: [EMAIL PROTECTED]

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



RE: Tomcat & Cobertura

2007-02-20 Thread dhay
Thanks...any idea of what would cause this issue?

cheers,

David



   
 "Sheets, Jerald"  
 <[EMAIL PROTECTED] 
 com>   To 
   "Tomcat Users List" 
 02/20/2007 11:38 
 AM cc 
   
   Subject 
 Please respond to RE: Tomcat & Cobertura  
   "Tomcat Users   
   List"   
 <[EMAIL PROTECTED] 
 che.org>  
   
   



Startup.bat calls catalina.bat which calls tomcat5.exe

--jms

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 11:14 AM
To: Tomcat Users List
Subject: Fw: Tomcat & Cobertura

bump!

Can anyone explain what are the differences between tomcat5.exe and
startup.bat?

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 02/20/2007 11:12 AM -


 [EMAIL PROTECTED]



 02/19/2007 12:44
To
 PMTomcat Users List

   


cc
 Please respond to

   "Tomcat Users
Subject
   List"   Tomcat & Cobertura

 <[EMAIL PROTECTED]

 che.org>












Hi,

We're trying to instrument a war file using Cobertura, and gather the
coverage details when deployed and used under Tomcat.

Below is a thread from the Cobertura list - I'm having problems when I
run tomcat5.exe (which we use in our product) with the instrumented jar.
In this mode, Cobertura saves the instrumented data when the web server
is shutdown.  If I run tomcat using startup.bat, everything works great.
With tomcat5.exe, no data is saved when tomcat shuts down.

Does anyone know what is causing this, and how I might work around it?

cheers,

David

- Forwarded by David Hay/Lex/Lexmark on 02/19/2007 12:30 PM -

 "John W. Lewis"
 <[EMAIL PROTECTED]
 com>
To
   <[EMAIL PROTECTED]>
 02/10/2007 10:42
cc
 AM
<[EMAIL PROTECTED]
   net>

Subject
   RE: [Cobertura-devel] creating
   instrumented war










This code runs during Cobertura initialization:

 private static void initialize()
 {
  // Hack for Tomcat - by saving project data right now we force loading
  // of classes involved in this process (like ObjectOutputStream)
  // so that it won't be necessary to load them on JVM shutdown
  if (System.getProperty("catalina.home") != null)
  {
   saveGlobalProjectData();

   // Force the class loader to load some classes that are
   // required by our JVM shutdown hook.
   // TODO: Use ClassLoader.loadClass("whatever"); instead
   ClassData.class.toString();
   CoverageData.class.toString();
   CoverageDataContainer.class.toString();
   FileLocker.class.toString();
   HasBeenInstrumented.class.toString();
   LineData.class.toString();
   PackageData.class.toString();
   SourceFileData.class.toString();
  }

I'm wondering if catalina.home is not set when you run as a service?

John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 6:14 PM
To: John W. Lewis
Cc: [EMAIL PROTECTED]
Subject: RE: [Cobertura-devel] creating instrumented war

Hi John,

I see cobertura.ser in the ...\tomcat\bin dir getting updated on startup
(timestamp changes) and log shows it found it too.  Just not on
shutdown.
Delay doesn't help.

If you could look for tomcat special case I'd appreciate it.

cheers,

David




 "John W. Lewis"
 <[EMAIL PROTECTED]
 com>
To
   <[EMAIL PROTECTED]>
 02/09/2007 05:54
cc
 PM
<[EMAIL PROTECTED]
   net>

Subject
   RE: [Cobertura-devel] creating
   instrumented war










It might be due to a different working directory while running as a
service.  Unless you are starting the tomcat jvm while passing in the
java proper

RE: Tomcat & Cobertura

2007-02-20 Thread dhay
Okso back to my original question! ;-)

Any idea what's hidden in tomcat5.exe that is different from running
startup.bat, and prevents Cobertura from recognizing when the server is
shutdown?

cheers,

David
x54680


   
 "Caldarale,   
 Charles R"
"Tomcat Users List" 
  
 02/20/2007 11:59   cc 
 AM
   Subject 
   RE: Tomcat & Cobertura  
 Please respond to 
   "Tomcat Users   
   List"   
 <[EMAIL PROTECTED] 
 che.org>  
   
   



> From: Sheets, Jerald [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat & Cobertura
>
> Startup.bat calls catalina.bat which calls tomcat5.exe

You apparently haven't actually looked at the scripts.  The catalina.bat
script does not use tomcat5.exe; it starts up Tomcat with the standard
Java launcher.

The tomcat5.exe program is normally used only to run Tomcat as a
service, although there's nothing that stops it from being used from the
command prompt as an alternative launcher.

 - Chuck


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

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



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



RE: where to store user-generated files?

2007-02-20 Thread Williams, Allen
Well, all things considered, that was one of the most entertaining
emails I've read today!  Thanks for the info, too.  Do you know of any
reference that addresses this, how to map the external directories and
use them in a secure fashion? 


-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 20, 2007 11:42 AM
To: Tomcat Users List
Subject: RE: where to store user-generated files?

> From: Williams, Allen [mailto:[EMAIL PROTECTED] 
> This is probably a dumb question, but: I looked at
> bodington- are you referring to a course or to downloading 
> their system and going 
> through their code to see how they did it?

I'm referring to going through their code - *if* you can face it.
That's quite a big if.  Bodington is a bit odd, as a fair hunk of the
core is >10 years old - it has its own template language, its own
sessions, its own database independence layer... basically it ignores
most of the functionality that's now in the container, as it was written
before these had stabilised.

[sounds of Peter rummaging through the Bodington code]

OK, scratch that.  The code from Bodington probably isn't reusable in
any sensible timeframe unless you also want a complete way of storing a
file structure in a database (so the structure's in the database, but
the bytes in the files are stored outside, possibly with mangled names
to deal with characters that are illegal on the particular platform).
If you do, try org.bodington.server.UploadedFileSessionImpl and its
dependencies - and prepare to enter looking-glass land!

- Peter

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


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



RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Nelson, Tracy M.
| From: Daniel Gresh [mailto:[EMAIL PROTECTED]
| Sent: Monday, 19 February, 2007 15:43
| 
| I cannot run "tar xvfz jsvc.tar.gz", as the
| -z argument is not being recognized. The directions said GNU TAR was
| needed, so I searched the web for that, but I came to a confusing site
| that said something about FTPing the GNU TAR files, and I didn't know
| where to go from there.

Just FYI (it sounds like you don't need this now), the 'z' argument is for
handling gzipped files.  Just gunzip the tar file first and use 'tar xf
jsvc.tar'.  You don't say which version of Solaris you're using, but on
Solaris 10, I believe the GNU tools are under /usr/sfw/bin.

-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.



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



RE: Tomcat & Cobertura

2007-02-20 Thread Sheets, Jerald
Most likely something to do with Windows support/pathing, etc.

We don't run Windows Tomcat, so I can't answer your question in that
respect.

Our load prevents us from using Windows in production.

--jms 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 20, 2007 12:46 PM
To: Tomcat Users List
Subject: RE: Tomcat & Cobertura

Okso back to my original question! ;-)

Any idea what's hidden in tomcat5.exe that is different from running
startup.bat, and prevents Cobertura from recognizing when the server is
shutdown?

cheers,

David
x54680


 

 "Caldarale,

 Charles R"

"Tomcat Users List"

   

 02/20/2007 11:59
cc 
 AM

 
Subject 
   RE: Tomcat & Cobertura

 Please respond to

   "Tomcat Users

   List"

 <[EMAIL PROTECTED]

 che.org>

 

 




> From: Sheets, Jerald [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat & Cobertura
>
> Startup.bat calls catalina.bat which calls tomcat5.exe

You apparently haven't actually looked at the scripts.  The catalina.bat
script does not use tomcat5.exe; it starts up Tomcat with the standard
Java launcher.

The tomcat5.exe program is normally used only to run Tomcat as a
service, although there's nothing that stops it from being used from the
command prompt as an alternative launcher.

 - Chuck


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

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



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


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



Re: Tomcat & Cobertura

2007-02-20 Thread David Delbecq
I took a look at tomcat.exe, it is a renamed service wrapper from common
daemon (http://jakarta.apache.org/commons/daemon/procrun.html)
It is invoked with //IS// parameter to install the service. Parameters
that are given to this installation command are memorized 'somewhere'
and used to run the service.

To know what parameter are given to service, you have 3 options

1- download source code of tomcat windows installer and look how it
invoke this service wrapper
2- dive in registry (probably using the common daemon docs) to find out
where it store invocation parameters
3- wait for an expert to answer your question

Sorry for not diving myself further, am not using windows, i just took a
look at source code out of curiosity. Good luck

[EMAIL PROTECTED] a écrit :
> Okso back to my original question! ;-)
>
> Any idea what's hidden in tomcat5.exe that is different from running
> startup.bat, and prevents Cobertura from recognizing when the server is
> shutdown?
>
> cheers,
>
> David
> x54680
>
>
>
>  "Caldarale,   
>  Charles R"
>unisys.com>   "Tomcat Users List" 
>   
>  02/20/2007 11:59   cc 
>  AM
>Subject 
>RE: Tomcat & Cobertura  
>  Please respond to 
>"Tomcat Users   
>List"   
>  <[EMAIL PROTECTED] 
>  che.org>  
>
>
>
>
>
>   
>> From: Sheets, Jerald [mailto:[EMAIL PROTECTED]
>> Subject: RE: Tomcat & Cobertura
>>
>> Startup.bat calls catalina.bat which calls tomcat5.exe
>> 
>
> You apparently haven't actually looked at the scripts.  The catalina.bat
> script does not use tomcat5.exe; it starts up Tomcat with the standard
> Java launcher.
>
> The tomcat5.exe program is normally used only to run Tomcat as a
> service, although there's nothing that stops it from being used from the
> command prompt as an alternative launcher.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   



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



RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Daniel Gresh
Oh I see. I did gunzip the file and run tar on it. The reason I was
confused though is because the instructions on the Tomcat site said I
need to run autoconf from the jsvc-src directory, but I could not find
any autoconf file anywhere. Therefore, I figured I unzipped it wrong or
something.

I'm running Solaris 10, yes.

Thanks for the reply,
Dan

On Tue, 2007-02-20 at 13:56, Nelson, Tracy M. wrote:
> | From: Daniel Gresh [mailto:[EMAIL PROTECTED]
> | Sent: Monday, 19 February, 2007 15:43
> | 
> | I cannot run "tar xvfz jsvc.tar.gz", as the
> | -z argument is not being recognized. The directions said GNU TAR was
> | needed, so I searched the web for that, but I came to a confusing site
> | that said something about FTPing the GNU TAR files, and I didn't know
> | where to go from there.
> 
> Just FYI (it sounds like you don't need this now), the 'z' argument is for
> handling gzipped files.  Just gunzip the tar file first and use 'tar xf
> jsvc.tar'.  You don't say which version of Solaris you're using, but on
> Solaris 10, I believe the GNU tools are under /usr/sfw/bin.
> 
> -
> 
> The information contained in this message is confidential
> proprietary property of Nelnet, Inc. and its affiliated 
> companies (Nelnet) and is intended for the recipient only.
> Any reproduction, forwarding, or copying without the express
> permission of Nelnet is strictly prohibited. If you have
> received this communication in error, please notify us
> immediately by replying to this e-mail.
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Tomcat & Cobertura

2007-02-20 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: RE: Tomcat & Cobertura
> 
> Any idea what's hidden in tomcat5.exe that is different from
> running startup.bat, and prevents Cobertura from recognizing
> when the server is shutdown?

The service launcher (tomcat5.exe) has more control over the operation
of the JVM than the standard launcher (java.exe) does.  I have no idea
whether or not the service launcher makes use of that control.

For system properties, you can use the tomcat5w.exe utility to set or
examine the ones in use with the service.  Note that this utility also
has a provision for setting the working directory, although Tomcat
itself makes no use of that.

How is Cobertura supposed to get control during Tomcat termination?  If
it's using a lifetime listener as defined in the servlet spec, that
should function the same regardless of whether Tomcat is run from the
command prompt or as a service.  If Cobertura is relying on some other
mechanism (e.g., System.runFinalization() or
System.runFinalizersOnExit()), that can be problematic, since there's no
guarantee it will ever actually occur.

 - Chuck


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

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



RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Caldarale, Charles R
> From: Daniel Gresh [mailto:[EMAIL PROTECTED] 
> Subject: RE: Installing Tomcat 6.0.9 on Sun Solaris
> 
> The reason I was confused though is because the instructions 
> on the Tomcat site said I need to run autoconf from the jsvc-src
> directory, but I could not find any autoconf file anywhere.
> Therefore, I figured I unzipped it wrong or something.

autconf is a GNU tool, not part of Tomcat.  You only need it for
building jsvc if you intend to run Tomcat as a daemon.  If you run
Tomcat using the shell scripts, you have no need for it.

 - Chuck


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

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



RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Daniel Gresh
Oh I see, thanks a lot.

On Tue, 2007-02-20 at 14:44, Caldarale, Charles R wrote:
> > From: Daniel Gresh [mailto:[EMAIL PROTECTED] 
> > Subject: RE: Installing Tomcat 6.0.9 on Sun Solaris
> > 
> > The reason I was confused though is because the instructions 
> > on the Tomcat site said I need to run autoconf from the jsvc-src
> > directory, but I could not find any autoconf file anywhere.
> > Therefore, I figured I unzipped it wrong or something.
> 
> autconf is a GNU tool, not part of Tomcat.  You only need it for
> building jsvc if you intend to run Tomcat as a daemon.  If you run
> Tomcat using the shell scripts, you have no need for it.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: Expression Language in JSP and JasperException

2007-02-20 Thread Piotr Kiraga

> The problem is that there could be a class that has no property with
> name result. In another case there could be another class (bean) that
> has such property (than of course it works fine, but at first case
> Tomcat throws exception).
>
Maybe but let's keep debugging simple.  The expression language is
expecting a class conforming to the JavaBeans standard.  What does the
class "com.some.packages.action.LoginActionBean" look like?


Here is LoginActionBean class code (like I sad before, there is no
result field, so getter and seter either):


package com.some.packages.action;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.DontValidate;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.validation.LocalizableError;
import net.sourceforge.stripes.validation.Validate;

import com.some.packages.util.Global;
import com.some.packages.util.SessionManager;
import com.some.packages.vo.UserVO;

/**
* @author Piotr Kiraga
* @since 2007-02-15 12:13:06
*/
public class LoginActionBean implements ActionBean {

private ActionBeanContext context;
private String forwardSuccess = "/calculator.jsp";
private String forwardFail = "/index.jsp";

@Validate(required=true, mask="^.{4,8}$") private String userName;
@Validate(required=true, mask="^.{1,8}$") private String password;

/* execute 
*/

/*
 * Handler method.
 * Handles default action.
 */
@DefaultHandler
@DontValidate
public Resolution init() {
return new ForwardResolution(forwardFail);
}

/*
 * Handler method.
 * Handles login action.
 */
public Resolution login() {
if ( SessionManager.authorize(getContext(), getUserName(), 
getPassword()) ) {
return new ForwardResolution(forwardSuccess);
}
else {

this.getContext().getValidationErrors().addGlobalError(new
LocalizableError("login.error.invalidUserOrPass", userName));
return init();
}
}

/* validation 
**/

/* getters and setters
*/

public String getPassword() {
return password;
}

public void setPassword(String password) {
this.password = password;
}

public String getUserName() {
return userName;
}

public void setUserName(String userName) {
this.userName = userName;
}

public ActionBeanContext getContext() {
return context;
}

public void setContext(ActionBeanContext context) {
this.context = context;
}

}



Regards,

--
Piotr Kiraga

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



Re: Found a product for running Tomcat off CDROM -have anybody tried it?

2007-02-20 Thread Stephen Souness
Interesting that the Stunnix website appears to make no mention of who 
is actually behind it the product.


Also interesting that you have posted a very similar message to a python 
mailing list, subject: "Found a product for running Python-based 
websites off CDROM -have anybody tried it?"


--
Stephen


David Wishnie wrote:

Hello,

I've found a product on freshmeat.net that allows to run tomcat-based
websites off cdrom, allowing to produce
CDs that work on Windows, MacOS X and Linux at the same time (also it seems
to support perl,
python, php & mysql). Apache is used for serving static content, and it has
a nice support
for stopping everything and releasing the media.

   http://www.stunnix.com/prod/aws/overview.shtml

Have anybody tried it?

Seems useful..

Thanks for your input!
 David




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



Re: Tomcat & Cobertura

2007-02-20 Thread David Delbecq
>From sun java doc:
Registers a new virtual-machine shutdown hook.
 The Java virtual machine shuts down in response to two kinds of events:
 The program exits normally, when the last non-daemon thread exits or
when the exit (equivalently, System.exit) method is invoked, or
 The virtual machine is terminated in response to a user interrupt, such
as typing ^C, or a system-wide event, such as user logoff or system
shutdown.

In rare circumstances the virtual machine may abort, that is, stop
running without shutting down cleanly. This occurs when the virtual
machine is terminated externally, for example with the SIGKILL signal on
Unix or the TerminateProcess call on Microsoft Windows. The virtual
machine may also abort if a native method goes awry by, for example,
corrupting internal data structures or attempting to access nonexistent
memory. If the virtual machine aborts then no guarantee can be made
about whether or not any shutdown hooks will be run.

[EMAIL PROTECTED] a écrit :
> Hi Chuck,
>
> Digging through the Cobertura code, it looks like it's making the following
> call:
>
>   Runtime.getRuntime().addShutdownHook(new Thread(saveTimer));
>
> it's run() method simply has the call to save the project data.
>
> This should be "guaranteed" to run (with the usual limitations of sudden
> errors etc.) when the jvm shuts down, shouldn't it?
>
> cheers,
>
> David
> x54680
>
>
>
>  "Caldarale,   
>  Charles R"
>unisys.com>   "Tomcat Users List" 
>   
>  02/20/2007 02:40   cc 
>  PM
>Subject 
>RE: Tomcat & Cobertura  
>  Please respond to 
>"Tomcat Users   
>List"   
>  <[EMAIL PROTECTED] 
>  che.org>  
>
>
>
>
>
>   
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Subject: RE: Tomcat & Cobertura
>>
>> Any idea what's hidden in tomcat5.exe that is different from
>> running startup.bat, and prevents Cobertura from recognizing
>> when the server is shutdown?
>> 
>
> The service launcher (tomcat5.exe) has more control over the operation
> of the JVM than the standard launcher (java.exe) does.  I have no idea
> whether or not the service launcher makes use of that control.
>
> For system properties, you can use the tomcat5w.exe utility to set or
> examine the ones in use with the service.  Note that this utility also
> has a provision for setting the working directory, although Tomcat
> itself makes no use of that.
>
> How is Cobertura supposed to get control during Tomcat termination?  If
> it's using a lifetime listener as defined in the servlet spec, that
> should function the same regardless of whether Tomcat is run from the
> command prompt or as a service.  If Cobertura is relying on some other
> mechanism (e.g., System.runFinalization() or
> System.runFinalizersOnExit()), that can be problematic, since there's no
> guarantee it will ever actually occur.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   


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



Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Ok  forgive me now, but this is getting confusing.  Where does 
result come into this picture?  Were you expecting actionBean to be an 
instance of a different class?  You aren't offering a lot to go on here.



--David

Piotr Kiraga wrote:

> The problem is that there could be a class that has no property with
> name result. In another case there could be another class (bean) that
> has such property (than of course it works fine, but at first case
> Tomcat throws exception).
>
Maybe but let's keep debugging simple.  The expression language is
expecting a class conforming to the JavaBeans standard.  What does the
class "com.some.packages.action.LoginActionBean" look like?


Here is LoginActionBean class code (like I sad before, there is no
result field, so getter and seter either):


package com.some.packages.action;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.DontValidate;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.validation.LocalizableError;
import net.sourceforge.stripes.validation.Validate;

import com.some.packages.util.Global;
import com.some.packages.util.SessionManager;
import com.some.packages.vo.UserVO;

/**
* @author Piotr Kiraga
* @since 2007-02-15 12:13:06
*/
public class LoginActionBean implements ActionBean {

private ActionBeanContext context;
private String forwardSuccess = "/calculator.jsp";
private String forwardFail = "/index.jsp";

@Validate(required=true, mask="^.{4,8}$") private String userName;

@Validate(required=true, mask="^.{1,8}$") private String password;

/* execute 
*/ 


/*

 * Handler method.
 * Handles default action.
 */
@DefaultHandler
@DontValidate
public Resolution init() {
return new ForwardResolution(forwardFail);
}

/*

 * Handler method.
 * Handles login action.
 */
public Resolution login() {
if ( SessionManager.authorize(getContext(), getUserName(), 
getPassword()) ) {

return new ForwardResolution(forwardSuccess);
}
else {
this.getContext().getValidationErrors().addGlobalError(new
LocalizableError("login.error.invalidUserOrPass", userName));
return init();
}
}

/* validation 
**/

/* getters and setters

*/

public String getPassword() {

return password;
}

public void setPassword(String password) {
this.password = password;
}

public String getUserName() {
return userName;
}

public void setUserName(String userName) {
this.userName = userName;
}

public ActionBeanContext getContext() {
return context;
}

public void setContext(ActionBeanContext context) {
this.context = context;
}

}



Regards,




--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


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



RE: Tomcat & Cobertura

2007-02-20 Thread dhay
Hi Chuck,

Digging through the Cobertura code, it looks like it's making the following
call:

  Runtime.getRuntime().addShutdownHook(new Thread(saveTimer));

it's run() method simply has the call to save the project data.

This should be "guaranteed" to run (with the usual limitations of sudden
errors etc.) when the jvm shuts down, shouldn't it?

cheers,

David
x54680


   
 "Caldarale,   
 Charles R"
"Tomcat Users List" 
  
 02/20/2007 02:40   cc 
 PM
   Subject 
   RE: Tomcat & Cobertura  
 Please respond to 
   "Tomcat Users   
   List"   
 <[EMAIL PROTECTED] 
 che.org>  
   
   



> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat & Cobertura
>
> Any idea what's hidden in tomcat5.exe that is different from
> running startup.bat, and prevents Cobertura from recognizing
> when the server is shutdown?

The service launcher (tomcat5.exe) has more control over the operation
of the JVM than the standard launcher (java.exe) does.  I have no idea
whether or not the service launcher makes use of that control.

For system properties, you can use the tomcat5w.exe utility to set or
examine the ones in use with the service.  Note that this utility also
has a provision for setting the working directory, although Tomcat
itself makes no use of that.

How is Cobertura supposed to get control during Tomcat termination?  If
it's using a lifetime listener as defined in the servlet spec, that
should function the same regardless of whether Tomcat is run from the
command prompt or as a service.  If Cobertura is relying on some other
mechanism (e.g., System.runFinalization() or
System.runFinalizersOnExit()), that can be problematic, since there's no
guarantee it will ever actually occur.

 - Chuck


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

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



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



Persisting Sessions to Database for Fault-Tolerance

2007-02-20 Thread Nathan Hook
I posted this question/idea to a forum and received no responses.  I am 
hoping to get some thoughtful discussion/ideas from this mailing list...


The company I am working for is trying to get our application to 
"Enterprise Strength" and have been working on server failover issues. 
I've never had to solve a solution like this before and was hoping for 
some advice.


As of right now I'm not a fan of the current clustering solution that is 
offered by tomcat and have decided to try and use the 
PersistentManager/JDBCStore solution.


Please see the following link for an example:

http://www.ingrid.org/jajakarta/tomcat/tomcat-4.0b5/src/catalina/docs/JDBCStore-howto.html

Unfortunately, using the PersistentManager the HttpSession gets written 
to the database about 10 to 15 seconds after a new HttpSession gets created.


We wrote a custom HttpSessionAttributeListener that listens for the one 
attribute we actually store in our HttpSession and when we receive that 
event we persist the session to the Database.


Will this solution work for server failover for an Enterprise system?

I like the solution because in theory we don't have to ever worry about 
adding clustering to the server.xml and in theory we don't ever have to 
worry about bringing down a server or set of servers if we need to.


Thank you for your time.

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



Mod_jk & mod_rewrite on same app

2007-02-20 Thread romain . bourgue

Hi,


I have a webapp "/app" installed on 2 Tomcat servers : one server is production 
"t1" and the other, "t2", is development.

How can I, from a single apache (httpd) server, in a single virtualhost, 
redirect /app to /app on t1 and /app_dev to /app on t2 ?


I tried the following but /app is then redirected to t2... :

JkMount /app/* t1

RewriteRule ^/app_dev/(.*)$ /app/$1 [PT]
JkMount /app/* t2

NB : I can't use mod_proxy_ajp, and I'd prefer not to add an another context 
path on tomcat...

A more direct question : is there a way to rewrite rules into mod_jk process ?


Thanks for helping,

Romain


--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/users@tomcat.apache.org/topic.html

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



Re: Classloading scenario

2007-02-20 Thread Luis Rivera

  Hi,

In my experience, since I have to use the JNI, I am forced to use the shared
space for some classes. The only way I made it work is to place everything
that is referenced by the classes in the shared space, in the shared space.
The classes in WEB-INF/.. have no problems accessing the shared classes,
since it is a parent class loader, but the converse does not work.

  --Luis R.

On 2/20/07, Peter Crowther <[EMAIL PROTECTED]> wrote:


> From: Angel Todorov [mailto:[EMAIL PROTECTED]
> This doesn't work for me -> i would like to share classes between
> webapps in order for them to have a common classloader. In this way i
> can pass object references between two webapps.

Then you'll have to put the jar you want *and all the classes and jars
it depends on* in the shared space.

- Peter

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




Re: Persisting Sessions to Database for Fault-Tolerance

2007-02-20 Thread Hassan Schroeder

On 2/20/07, Nathan Hook <[EMAIL PROTECTED]> wrote:


The company I am working for is trying to get our application to
"Enterprise Strength" and have been working on server failover issues.



As of right now I'm not a fan of the current clustering solution that is
offered by tomcat


Because?

--
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: mod_jk configuration for production

2007-02-20 Thread Rainer Jung
What's your idea why you configured a socket timeout of 2?

nuka schrieb:
> Hello,
> 
> I am facing to a problem concerning apache-tomcat configuration via mod_jk
> for our production environment. We are using  Apache: 2.0.55, Tomcat 5.0,
> mod_jk 1.2.15.
> 
> Our first problem has been raised some weeks ago when the clients received
> http 404 errors. 
> 
> mod_jk logs have shown errors such as:
> 
> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c (1178):
> Socket 14 is not connected any more (errno=-1)
> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c (1202):
> Error sending request. Will try another pooled connection
> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c (1225):
> All endpoints are disconnected or dead
> [Tue Feb 13 08:36:03 2007][info]  ajp_service::jk_ajp_common.c (1749):
> Sending request to tomcat failed,  recoverable operation attempt=1
> 
> After that, we changed the timeout for tomcat ajp connector (initially =
> 1) to 6ms.
> 
> Now we get other errors:
> 
> - a lot of "Error decoding request" in the JBoss logs at the same times
> where  mod_jk is showing
>   
> [Mon Feb 19 13:25:50 2007][info] 
> ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced a
> connection close  for socket 14
> [Mon Feb 19 13:25:50 2007][error] ajp_get_reply::jk_ajp_common.c (1503):
> Tomcat is down or refused connection. No response has been sent to the
> client (yet)
> [Mon Feb 19 13:25:50 2007][info]  ajp_service::jk_ajp_common.c (1721):
> Receiving from tomcat failed, recoverable operation attempt=0
> 
> Bellow is our configuration:
> 
>  
> enableLookups="false" redirectPort="8443" debug="0"
>  protocol="AJP/1.3" connectionTimeout="6"/>
> 
> workers.properties:
> 
> # Define list of workers that will be used   
> # for mapping requests   
> worker.list=loadbalancer, loadbalancer2, status
>
>
> worker.xxxNode1.port=8109   
> worker.xxxNode1.host=
> worker.xxxNode1.type=ajp13 
> worker.xxxNode1.socket_keepalive=True
> worker.xxxNode1.socket_timeout=2
> worker.xxxNode1.recycle_timeout=300
> worker.xxxNode1.recovery_options=0
> 
> worker.xxxNode2.port=8209   
> worker.xxxNode2.host=xxx.xx.xx.xx
> worker.xxxNode2.type=ajp13  
> worker.xxxNode2.socket_keepalive=True
> worker.xxxNode2.socket_timeout=2
> worker.xxxNode2.recycle_timeout=300
> worker.xxx2.recovery_options=0
> 
> Do you have any idea which parameters do we need to change in this
> configuration?
> 
> thanks
> 
> rgds
> 
> Nuka
>   

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



[OT] RE: Found a product for running Tomcat off CDROM -have anybody tried it?

2007-02-20 Thread Jason Pyeron
But it could be a useful spam. As I read it and said to myself, "oh, maybe
we could use that here" and then discovered that it does not allow use to
use MySQL w/JDK and did not mention which version of tomcat it was.

Then the costs, we don't mind paying costs, but not 3/4k$ to a fly by night.

Oh well, but it was good spam.

-Jason


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Sr. Consultant10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Souness
Sent: Tuesday, February 20, 2007 15:33
To: users@tomcat.apache.org
Subject: Re: Found a product for running Tomcat off CDROM -have anybody
tried it?

Interesting that the Stunnix website appears to make no mention of who 
is actually behind it the product.

Also interesting that you have posted a very similar message to a python 
mailing list, subject: "Found a product for running Python-based 
websites off CDROM -have anybody tried it?"

--
Stephen


David Wishnie wrote:
> Hello,
> 
> I've found a product on freshmeat.net that allows to run tomcat-based
> websites off cdrom, allowing to produce
> CDs that work on Windows, MacOS X and Linux at the same time (also it
seems
> to support perl,
> python, php & mysql). Apache is used for serving static content, and it
has
> a nice support
> for stopping everything and releasing the media.
> 
>http://www.stunnix.com/prod/aws/overview.shtml
> 
> Have anybody tried it?
> 
> Seems useful..
> 
> Thanks for your input!
>  David
> 


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


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



Re: Mod_jk & mod_rewrite on same app

2007-02-20 Thread Rainer Jung
Have a look at:

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

especially the directive JkWorkerIndicator.

If you combine

SetHandler jakarta-servlet

(this tells apache to let mod_jk handle the request) with setting the
environment variable whose name ist set via JkWorkerIndicator to t1 or
t2 depending on the request, you can determine the forwarding target
during runtime. Your last task would be combining this with your
existing rewrite rule and finding out, if there is a good way of
combining the rewrite with setting the variable to an the appropriate
value. Like: first check the URL and set the variable t t1 or t2
depending on the URL, then aply your rewrite rule and let mod_jk handle
the result by setting sethandler.

The feature is exlained in more detail a little down the page. It has
been introduced in mod_jk 1.2.19, so you would need a relatively recent
version of mod_jk.

Have fun,

Rainer

[EMAIL PROTECTED] schrieb:
> Hi,
> 
> 
> I have a webapp "/app" installed on 2 Tomcat servers : one server is 
> production "t1" and the other, "t2", is development.
> 
> How can I, from a single apache (httpd) server, in a single virtualhost, 
> redirect /app to /app on t1 and /app_dev to /app on t2 ?
> 
> 
> I tried the following but /app is then redirected to t2... :
> 
> JkMount /app/* t1
> 
> RewriteRule ^/app_dev/(.*)$ /app/$1 [PT]
> JkMount /app/* t2
> 
> NB : I can't use mod_proxy_ajp, and I'd prefer not to add an another context 
> path on tomcat...
> 
> A more direct question : is there a way to rewrite rules into mod_jk process ?
> 
> 
> Thanks for helping,
> 
> Romain
> 
> 
> --
> This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
> http://www.opensubscriber.com/messages/users@tomcat.apache.org/topic.html
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: [OT] mod_jk configuration for production

2007-02-20 Thread nuka

This configuration was done some time ago by someone else. I  don't believe
there is a specific reason for this parameter configuration. 
I believe that this should be a default dev configuration.



Rainer Jung-3 wrote:
> 
> What's your idea why you configured a socket timeout of 2?
> 
> nuka schrieb:
>> Hello,
>> 
>> I am facing to a problem concerning apache-tomcat configuration via
>> mod_jk
>> for our production environment. We are using Apache: 2.0.55, Tomcat 
>> 5.0,
>> mod_jk 1.2.15.
>> 
>> Our first problem has been raised some weeks ago when the clients
>> received
>> http 404 errors. 
>> 
>> mod_jk logs have shown errors such as:
>> 
>> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c
>> (1178):
>> Socket 14 is not connected any more (errno=-1)
>> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c
>> (1202):
>> Error sending request. Will try another pooled connection
>> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c
>> (1225):
>> All endpoints are disconnected or dead
>> [Tue Feb 13 08:36:03 2007][info]  ajp_service::jk_ajp_common.c (1749):
>> Sending request to tomcat failed,  recoverable operation attempt=1
>> 
>> After that, we changed the timeout for tomcat ajp connector (initially =
>> 1) to 6ms.
>> 
>> Now we get other errors:
>> 
>> - a lot of "Error decoding request" in the JBoss logs at the same times
>> where  mod_jk is showing
>>  
>> [Mon Feb 19 13:25:50 2007][info] 
>> ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced
>> a
>> connection close  for socket 14
>> [Mon Feb 19 13:25:50 2007][error] ajp_get_reply::jk_ajp_common.c (1503):
>> Tomcat is down or refused connection. No response has been sent to the
>> client (yet)
>> [Mon Feb 19 13:25:50 2007][info]  ajp_service::jk_ajp_common.c (1721):
>> Receiving from tomcat failed, recoverable operation attempt=0
>> 
>> Bellow is our configuration:
>> 
>>  
>>   >  enableLookups="false" redirectPort="8443" debug="0"
>>  protocol="AJP/1.3" connectionTimeout="6"/>
>> 
>> workers.properties:
>> 
>> # Define list of workers that will be used   
>> # for mapping requests   
>> worker.list=loadbalancer, loadbalancer2, status
>>
>>
>> worker.xxxNode1.port=8109   
>> worker.xxxNode1.host=
>> worker.xxxNode1.type=ajp13 
>> worker.xxxNode1.socket_keepalive=True
>> worker.xxxNode1.socket_timeout=2
>> worker.xxxNode1.recycle_timeout=300
>> worker.xxxNode1.recovery_options=0
>> 
>> worker.xxxNode2.port=8209   
>> worker.xxxNode2.host=xxx.xx.xx.xx
>> worker.xxxNode2.type=ajp13  
>> worker.xxxNode2.socket_keepalive=True
>> worker.xxxNode2.socket_timeout=2
>> worker.xxxNode2.recycle_timeout=300
>> worker.xxx2.recovery_options=0
>> 
>> Do you have any idea which parameters do we need to change in this
>> configuration?
>> 
>> thanks
>> 
>> rgds
>> 
>> Nuka
>>   
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mod_jk-configuration-for-production-tf3260752.html#a9071060
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



overlapped parameters between sessions

2007-02-20 Thread WILLIAM PARRA
Hi,

I'm currently using a Tomcat 4 container for our web applications (jsp's, 
servlets).  
When  passing parameters with get metod, with many users (about 200); some 
parameters, 
are overlapped between sessions. There is a special configuration in Tomcat 
when i work with sessions??
The Tomcat version is old?
In new versions it would be fixed?

Thanks for your help. 
William Enrique Parra Alba
System Enginer 
Universidad Pedagógica y Tecnológica de Colombia



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

Re: [OT] mod_jk configuration for production

2007-02-20 Thread Rainer Jung
Then start reading on

http://tomcat.apache.org/connectors-doc/reference/workers.html

what your configuration means. You will notice, that a value of 2 for
the socket_timeout does not really make any sense.

Regards,

Rainer

nuka schrieb:
> This configuration was done some time ago by someone else. I  don't believe
> there is a specific reason for this parameter configuration. 
> I believe that this should be a default dev configuration.
> 
> 
> 
> Rainer Jung-3 wrote:
>> What's your idea why you configured a socket timeout of 2?
>>
>> nuka schrieb:
>>> Hello,
>>>
>>> I am facing to a problem concerning apache-tomcat configuration via
>>> mod_jk
>>> for our production environment. We are usingApache: 2.0.55, Tomcat 
>>> 5.0,
>>> mod_jk 1.2.15.
>>>
>>> Our first problem has been raised some weeks ago when the clients
>>> received
>>> http 404 errors. 
>>>
>>> mod_jk logs have shown errors such as:
>>>
>>> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c
>>> (1178):
>>> Socket 14 is not connected any more (errno=-1)
>>> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c
>>> (1202):
>>> Error sending request. Will try another pooled connection
>>> [Tue Feb 13 08:36:03 2007][info]  ajp_send_request::jk_ajp_common.c
>>> (1225):
>>> All endpoints are disconnected or dead
>>> [Tue Feb 13 08:36:03 2007][info]  ajp_service::jk_ajp_common.c (1749):
>>> Sending request to tomcat failed,  recoverable operation attempt=1
>>>
>>> After that, we changed the timeout for tomcat ajp connector (initially =
>>> 1) to 6ms.
>>>
>>> Now we get other errors:
>>>
>>> - a lot of "Error decoding request" in the JBoss logs at the same times
>>> where  mod_jk is showing
>>> 
>>> [Mon Feb 19 13:25:50 2007][info] 
>>> ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced
>>> a
>>> connection close  for socket 14
>>> [Mon Feb 19 13:25:50 2007][error] ajp_get_reply::jk_ajp_common.c (1503):
>>> Tomcat is down or refused connection. No response has been sent to the
>>> client (yet)
>>> [Mon Feb 19 13:25:50 2007][info]  ajp_service::jk_ajp_common.c (1721):
>>> Receiving from tomcat failed, recoverable operation attempt=0
>>>
>>> Bellow is our configuration:
>>>
>>>  
>>>   >>  enableLookups="false" redirectPort="8443" debug="0"
>>>  protocol="AJP/1.3" connectionTimeout="6"/>
>>>
>>> workers.properties:
>>>
>>> # Define list of workers that will be used   
>>> # for mapping requests   
>>> worker.list=loadbalancer, loadbalancer2, status
>>>
>>>
>>> worker.xxxNode1.port=8109   
>>> worker.xxxNode1.host=
>>> worker.xxxNode1.type=ajp13 
>>> worker.xxxNode1.socket_keepalive=True
>>> worker.xxxNode1.socket_timeout=2
>>> worker.xxxNode1.recycle_timeout=300
>>> worker.xxxNode1.recovery_options=0
>>>
>>> worker.xxxNode2.port=8209   
>>> worker.xxxNode2.host=xxx.xx.xx.xx
>>> worker.xxxNode2.type=ajp13  
>>> worker.xxxNode2.socket_keepalive=True
>>> worker.xxxNode2.socket_timeout=2
>>> worker.xxxNode2.recycle_timeout=300
>>> worker.xxx2.recovery_options=0
>>>
>>> Do you have any idea which parameters do we need to change in this
>>> configuration?
>>>
>>> thanks
>>>
>>> rgds
>>>
>>> Nuka
>>>   
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 

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



RE: overlapped parameters between sessions

2007-02-20 Thread Caldarale, Charles R
> From: WILLIAM PARRA [mailto:[EMAIL PROTECTED] 
> Subject: overlapped parameters between sessions
> 
> When  passing parameters with get metod, with many
> users (about 200); some parameters, are overlapped
> between sessions.

If you're speaking of parameters taken from a URL, they are relative to
a Request, not a Session.  There can be many Requests associated with a
single Session being processed concurrently.  If you app is storing
Request-specific information in a Session object, your app is in error.

 - Chuck


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

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



RE: overlapped parameters between sessions

2007-02-20 Thread Propes, Barry L [GCG-NAOT]
starting to wonder if that's maybe happening to me some, too, though I've not 
confirmed it any of the logs yet.

-Original Message-
From: WILLIAM PARRA [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 4:00 PM
To: Tomcat Users List
Subject: overlapped parameters between sessions


Hi,

I'm currently using a Tomcat 4 container for our web applications (jsp's, 
servlets).  
When  passing parameters with get metod, with many users (about 200); some 
parameters, 
are overlapped between sessions. There is a special configuration in Tomcat 
when i work with sessions??
The Tomcat version is old?
In new versions it would be fixed?

Thanks for your help. 
William Enrique Parra Alba
System Enginer 
Universidad Pedagógica y Tecnológica de Colombia



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

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



Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ramez,

Ramez Ghazzaoui wrote:
> Thank you guys. Sounds like I need to either write or find a method that
> converts strings to UTF-8. I'll try this tomorrow.

Generally, java.net.URLEncoder.encode(yourString, "UTF-8") will do this
for you quite well. No need to roll your own.

If you use a JSP tag library for building URLs or anything like that,
your taglib should be providing this capability already.

Hope that helps,
- -chris

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

iD8DBQFF23Va9CaO5/Lv0PARAiT4AKCNxxZjTGJk0QTUVTk8HB6iI+7TYQCfTL1y
nz5Q084x5AKQXDrGJzPFZR0=
=HTe7
-END PGP SIGNATURE-

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



Re: overlapped parameters between sessions

2007-02-20 Thread WILLIAM PARRA
Hi,

I pass an parameter to identify the type user. With this parameter, i define if 
show one page.. or other. Some times the parameter requested, was changed.

In which I can be failing?


Excuse me for my bad english level.
 
William Enrique Parra Alba
Ingeniero De Sistemas 
Universidad Pedagógica y Tecnológica de Colombia
 

- Mensaje original 
De: "Caldarale, Charles R" <[EMAIL PROTECTED]>
Para: Tomcat Users List 
Enviado: martes, 20 de febrero, 2007 17:05:18
Asunto: RE: overlapped parameters between sessions

> From: WILLIAM PARRA [mailto:[EMAIL PROTECTED] 
> Subject: overlapped parameters between sessions
> 
> When  passing parameters with get metod, with many
> users (about 200); some parameters, are overlapped
> between sessions.

If you're speaking of parameters taken from a URL, they are relative to
a Request, not a Session.  There can be many Requests associated with a
single Session being processed concurrently.  If you app is storing
Request-specific information in a Session object, your app is in error.

 - Chuck


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

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







__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

RE: overlapped parameters between sessions

2007-02-20 Thread Caldarale, Charles R
> From: WILLIAM PARRA [mailto:[EMAIL PROTECTED] 
> Subject: Re: overlapped parameters between sessions
> 
> I pass an parameter to identify the type user. With this 
> parameter, i define if show one page.. or other. Some times 
> the parameter requested, was changed.

Do you ever store the parameter in some place that's not specific to the
particular Request object currently being processsed?  For example, if
you store the parameter in the Session or in some static variable, it
can be overwritten by the value from another request.

 - Chuck


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

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



Re: Expression Language in JSP and JasperException

2007-02-20 Thread Eric Haszlakiewicz
On Tue, Feb 20, 2007 at 03:23:32PM -0500, David Smith wrote:
> Ok  forgive me now, but this is getting confusing.  Where does 
> result come into this picture?  Were you expecting actionBean to be an 
> instance of a different class?  You aren't offering a lot to go on here.

That's what it sounds like to me:

> Piotr Kiraga wrote:
> >>> The problem is that there could be a class that has no property with
> >>> name result. In another case there could be another class (bean) that
> >>> has such property (than of course it works fine, but at first case
> >>> Tomcat throws exception).

I actually have some jsp code that does stuff like this, but in my case
there is a "type" property that each object has.  I check that and do
the appropriate thing.
If you want to hard code a class name in your jsp page, you can just use
${foo.class.name} to figure out what type of object you have.

Or, if you want to get really crazy you could loop over ${foo.class.methods}
checking if there's a method named "getResult".

But, you'd probably be better off figuring out way to ensure the objects
you're working with have a "result" property.

eric

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