R: tomcat service public key

2009-08-17 Thread Leandro Dardini
You can easily solve this problem with the following steps:

#Create the .ssh key directory

mkdir /usr/share/tomcat5/.ssh

#Assign ownership to tomcat

chown tomcat /usr/share/tomcat5/.ssh

I don't think further steps are necessary...

Leandro


> -Messaggio originale-
> Da: Gagan Malik [mailto:gaganma...@dev.java.net] 
> Inviato: martedì 18 agosto 2009 4.08
> A: users@tomcat.apache.org
> Oggetto: tomcat service public key
> 
> 
> Hi, I'm a newbie to both tomcat and ssh and here's my problem:
> 
> I have a web-app (Hudson) running on tomcat (ver 5). This 
> Tomcat runs as a service on RHEL box. Hudson triggers a 
> custom 'ant' script to do a build which uses ssh to login to 
> another server (svn server).
> 
> The ant script runs perfectly fine when triggered manually, 
> since the user that runs it shares his public key with the 
> svn server. But when the same is done via Hudson, it fails 
> since hudson is run by the user: tomcat.
> 
> How can I generate and share the public key of user 'tomcat' 
> (the service) with the svn server so that the ant script does 
> not fail.
> 
> 
> I get this error:
> Could not create directory '/usr/share/tomcat5/.ssh'.
> Host key verification failed.
> svn: Connection closed unexpectedly
> 
> Any help is appreciated.
> 
> Thanks
> --
> View this message in context: 
> http://www.nabble.com/tomcat-service-public-key-tp25017278p250
17278.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 

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



Re: tomcat service public key

2009-08-17 Thread Gagan Malik

this is exactly the problem.. how do I generate a private/public key pair for
the user 'tomcat'..


Abhinav Shah wrote:
> 
> Why don't you add the tomcat user to the ssh list of users..
> 
> Gagan Malik wrote:
>> 
>> if logging in as tomcat was possible there wouldn't have been any
>> problem. I think Chuck is right.. its all about getting a known user id
>> use ssh..
>> 
>> 
>> Abhinav Shah wrote:
>>> 
>>> are you sure that the tomcat user is on the list of users allowed to do
>>> ssh on the svn server.. one way to check is login as tomcat user on RHEL
>>> box and then do a ssh to the svn server..
>>> 
>>> 
>>> Gagan Malik wrote:
 
 Hi, I'm a newbie to both tomcat and ssh and here's my problem:
 
 I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs
 as a service on RHEL box. Hudson triggers a custom 'ant' script to do a
 build which uses ssh to login to another server (svn server).
 
 The ant script runs perfectly fine when triggered manually, since the
 user that runs it shares his public key with the svn server. But when
 the same is done via Hudson, it fails since hudson is run by the user:
 tomcat.
 
 How can I generate and share the public key of user 'tomcat' (the
 service) with the svn server so that the ant script does not fail.
 
 
 I get this error:
 Could not create directory '/usr/share/tomcat5/.ssh'.
 Host key verification failed.
 svn: Connection closed unexpectedly
 
 Any help is appreciated.
 
 Thanks
 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tomcat-service-public-key-tp25017278p25019252.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: tomcat service public key

2009-08-17 Thread Abhinav Shah

Why don't you add the tomcat user to the ssh list of users..

Gagan Malik wrote:
> 
> if logging in as tomcat was possible there wouldn't have been any problem.
> I think Chuck is right.. its all about getting a known user id use ssh..
> 
> 
> Abhinav Shah wrote:
>> 
>> are you sure that the tomcat user is on the list of users allowed to do
>> ssh on the svn server.. one way to check is login as tomcat user on RHEL
>> box and then do a ssh to the svn server..
>> 
>> 
>> Gagan Malik wrote:
>>> 
>>> Hi, I'm a newbie to both tomcat and ssh and here's my problem:
>>> 
>>> I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as
>>> a service on RHEL box. Hudson triggers a custom 'ant' script to do a
>>> build which uses ssh to login to another server (svn server).
>>> 
>>> The ant script runs perfectly fine when triggered manually, since the
>>> user that runs it shares his public key with the svn server. But when
>>> the same is done via Hudson, it fails since hudson is run by the user:
>>> tomcat.
>>> 
>>> How can I generate and share the public key of user 'tomcat' (the
>>> service) with the svn server so that the ant script does not fail.
>>> 
>>> 
>>> I get this error:
>>> Could not create directory '/usr/share/tomcat5/.ssh'.
>>> Host key verification failed.
>>> svn: Connection closed unexpectedly
>>> 
>>> Any help is appreciated.
>>> 
>>> Thanks
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tomcat-service-public-key-tp25017278p25019230.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: tomcat service public key

2009-08-17 Thread Gagan Malik

if logging in as tomcat was possible there wouldn't have been any problem. I
think Chuck is right.. its all about getting a known user id use ssh..


Abhinav Shah wrote:
> 
> are you sure that the tomcat user is on the list of users allowed to do
> ssh on the svn server.. one way to check is login as tomcat user on RHEL
> box and then do a ssh to the svn server..
> 
> 
> Gagan Malik wrote:
>> 
>> Hi, I'm a newbie to both tomcat and ssh and here's my problem:
>> 
>> I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as
>> a service on RHEL box. Hudson triggers a custom 'ant' script to do a
>> build which uses ssh to login to another server (svn server).
>> 
>> The ant script runs perfectly fine when triggered manually, since the
>> user that runs it shares his public key with the svn server. But when the
>> same is done via Hudson, it fails since hudson is run by the user:
>> tomcat.
>> 
>> How can I generate and share the public key of user 'tomcat' (the
>> service) with the svn server so that the ant script does not fail.
>> 
>> 
>> I get this error:
>> Could not create directory '/usr/share/tomcat5/.ssh'.
>> Host key verification failed.
>> svn: Connection closed unexpectedly
>> 
>> Any help is appreciated.
>> 
>> Thanks
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tomcat-service-public-key-tp25017278p25019197.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: tomcat service public key

2009-08-17 Thread Abhinav Shah

are you sure that the tomcat user is on the list of users allowed to do ssh
on the svn server.. one way to check is login as tomcat user on RHEL box and
then do a ssh to the svn server..


Gagan Malik wrote:
> 
> Hi, I'm a newbie to both tomcat and ssh and here's my problem:
> 
> I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as a
> service on RHEL box. Hudson triggers a custom 'ant' script to do a build
> which uses ssh to login to another server (svn server).
> 
> The ant script runs perfectly fine when triggered manually, since the user
> that runs it shares his public key with the svn server. But when the same
> is done via Hudson, it fails since hudson is run by the user: tomcat.
> 
> How can I generate and share the public key of user 'tomcat' (the service)
> with the svn server so that the ant script does not fail.
> 
> 
> I get this error:
> Could not create directory '/usr/share/tomcat5/.ssh'.
> Host key verification failed.
> svn: Connection closed unexpectedly
> 
> Any help is appreciated.
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/tomcat-service-public-key-tp25017278p25018957.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: debug tomcat start up

2009-08-17 Thread Caldarale, Charles R
> From: Thomas G. Lau [mailto:thomas@ntt.com.hk]
> Subject: debug tomcat start up
> 
> it throw exception but everything looks correct to us.

Don't suppose you'd want to give anyone a hint what the exception is?  Along 
with perhaps the Tomcat version, the JDK/JRE level you're using, and the OS 
you're running on?  The stack trace and anything interesting from the logs 
would also be useful.

Or we could wait for Pid to do his Internet telepathy thing...

 - Chuck


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



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



RE: tomcat service public key

2009-08-17 Thread Caldarale, Charles R
> From: Gagan Malik [mailto:gaganma...@dev.java.net]
> Subject: Re: tomcat service public key
> 
> I'm quite sure this is not hudson related.

It certainly has nothing to do with Tomcat.

> Its more on how would any application running on tomcat use ssh..

It's not Tomcat attempting to use SSH - it's your webapp.  The question is not 
specific to Tomcat; it's really how would any application running under some 
arbitrary but known userid make use of SSH.  For that you'll need to find some 
SSH expertise, not Tomcat knowledge.

 - Chuck


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


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



debug tomcat start up

2009-08-17 Thread Thomas G. Lau

Dear all,

does anyone know how to do tomcat start up debug? it throw exception but 
everything looks correct to us. I am looking for some tools like strace 
to deal with debug process, thanks.



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



Re: tomcat service public key

2009-08-17 Thread Gagan Malik

Hi Rusty..
I'm quite sure this is not hudson related. Its more on how would any
application running on tomcat use ssh..


Rusty Wright-2 wrote:
> 
> I'd try the hudson mailing list; us...@hudson.dev.java.net and you'll 
> need to sign up first I'll bet.
> 
> 
> Gagan Malik wrote:
>> Hi, I'm a newbie to both tomcat and ssh and here's my problem:
>> 
>> I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as
>> a
>> service on RHEL box. Hudson triggers a custom 'ant' script to do a build
>> which uses ssh to login to another server (svn server).
>> 
>> The ant script runs perfectly fine when triggered manually, since the
>> user
>> that runs it shares his public key with the svn server. But when the same
>> is
>> done via Hudson, it fails since hudson is run by the user: tomcat.
>> 
>> How can I generate and share the public key of user 'tomcat' (the
>> service)
>> with the svn server so that the ant script does not fail.
>> 
>> 
>> I get this error:
>> Could not create directory '/usr/share/tomcat5/.ssh'.
>> Host key verification failed.
>> svn: Connection closed unexpectedly
>> 
>> Any help is appreciated.
>> 
>> Thanks
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tomcat-service-public-key-tp25017278p25018170.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: tomcat service public key

2009-08-17 Thread Rusty Wright
I'd try the hudson mailing list; us...@hudson.dev.java.net and you'll 
need to sign up first I'll bet.



Gagan Malik wrote:

Hi, I'm a newbie to both tomcat and ssh and here's my problem:

I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as a
service on RHEL box. Hudson triggers a custom 'ant' script to do a build
which uses ssh to login to another server (svn server).

The ant script runs perfectly fine when triggered manually, since the user
that runs it shares his public key with the svn server. But when the same is
done via Hudson, it fails since hudson is run by the user: tomcat.

How can I generate and share the public key of user 'tomcat' (the service)
with the svn server so that the ant script does not fail.


I get this error:
Could not create directory '/usr/share/tomcat5/.ssh'.
Host key verification failed.
svn: Connection closed unexpectedly

Any help is appreciated.

Thanks


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



Re: Garbage collector

2009-08-17 Thread Rusty Wright

In my /etc/init.d/tomcat shell startup script for linux I have

JAVA_OPTS="-server"
JAVA_OPTS="${JAVA_OPTS} -Xmx512m"
JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256m"
JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCDetails"
JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCTimeStamps"
JAVA_OPTS="${JAVA_OPTS} -XX:+UseConcMarkSweepGC"
JAVA_OPTS="${JAVA_OPTS} -XX:+CMSIncrementalMode"
JAVA_OPTS="${JAVA_OPTS} -XX:-TraceClassUnloading"
JAVA_OPTS="${JAVA_OPTS} -verbose:gc"
export JAVA_OPTS

The export line is necessary.  The following 3 lines are what I think 
turn on garbage collecting logging:


JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCDetails"
JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCTimeStamps"
JAVA_OPTS="${JAVA_OPTS} -verbose:gc"

Then, in my catalina.out I have lines (the CMS- lines are from 
UseConcMarkSweepGC):


48124.665: [GC [1 CMS-initial-mark: 39226K(67176K)] 40336K(71656K), 
0.0090660 secs]

48124.674: [CMS-concurrent-mark-start]
48125.090: [CMS-concurrent-mark: 0.416/0.416 secs]
48125.091: [CMS-concurrent-preclean-start]
48125.091: [CMS-concurrent-preclean: 0.000/0.000 secs]
48125.097: [GC[YG occupancy: 1135 K (4480 K)]48125.097: [Rescan 
(parallel) , 0.0093270 secs]48125.106: [weak refs processing, 0.0003890 
secs] [1 CMS-remark: 39226K(67176K)] 40362K(71656K), 0.0101020 secs]

48125.107: [CMS-concurrent-sweep-start]
48125.158: [CMS-concurrent-sweep: 0.050/0.050 secs]
48125.158: [CMS-concurrent-reset-start]
48125.189: [CMS-concurrent-reset: 0.031/0.031 secs]
48402.052: [GC 48402.052: [ParNew: 4415K->0K(4480K), 0.0178790 secs] 
43420K->39329K(71656K), 0.0181320 secs]




hruesga wrote:

i'fe tried to export CATALINA_OPTS setting as:

execute:

export CATALINA_OPTS=-Xloggc:/logs/gc.log
result: gc.log file doesn't create

java -verbose:gc
result: nothing happpens.





Caldarale, Charles R wrote:

From: hruesga [mailto:lord_dyna...@hotmail.com]
Subject: Re: Garbage collector

-Xmx3072m -Xms3072m

Unless you're in a 64-bit environment, that doesn't stand a chance of
working.


Maz Threads= 500

Is that supposed to be Max?  Where do you have that set?


minSpareThreads=25
maxSpareThreads=75

The threads settings are not really relevant to getting GC logs.

For the third time, tell us *exactly* what you're doing - step by step.

 - Chuck


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


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







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



Request Help

2009-08-17 Thread R.Sriram

Hello,
I am trying to host my servlet based solution in Network Solutions 
shared hosting service.
In order test if I can use it, I downloaded Hello.java from their 
environment and compiled in my environment as MyHello.class.
I tested their Hello.class (Hello.class compiled in their environment); 
that works. However, MyHello.class doesn't work.

Could anyone tell why this could be happening.
Thanks...Ram


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



tomcat service public key

2009-08-17 Thread Gagan Malik

Hi, I'm a newbie to both tomcat and ssh and here's my problem:

I have a web-app (Hudson) running on tomcat (ver 5). This Tomcat runs as a
service on RHEL box. Hudson triggers a custom 'ant' script to do a build
which uses ssh to login to another server (svn server).

The ant script runs perfectly fine when triggered manually, since the user
that runs it shares his public key with the svn server. But when the same is
done via Hudson, it fails since hudson is run by the user: tomcat.

How can I generate and share the public key of user 'tomcat' (the service)
with the svn server so that the ant script does not fail.


I get this error:
Could not create directory '/usr/share/tomcat5/.ssh'.
Host key verification failed.
svn: Connection closed unexpectedly

Any help is appreciated.

Thanks
-- 
View this message in context: 
http://www.nabble.com/tomcat-service-public-key-tp25017278p25017278.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Connection Pool Exhausted

2009-08-17 Thread Bob Hall
--- On Mon, 8/17/09 at 11:38 AM, Kristen Walker  wrote:

> We had some help debugging the connection pool exhausted issue over the
> weekend and for now it seems that changing jdbcUsePool=true to
> jdbcUsePool=false stops the site from crashing due to connection pool
> issues.  We are going to investigate more to see why connection pooling
> isn't working like expected.

You can obtain a stack trace that should point to the offending code
by using the Deprecated log abandoned functionality in BasicDataSource:

   setLogAbandoned()
   setRemoveAbandoned()
   setRemoveAbandonedTimeout()

   
http://commons.apache..org/dbcp/apidocs/org/apache/commons/dbcp/BasicDataSource.html

There is some indication that logging of abandoned connections/statements
will continue in some form:

  http://wiki.apache.org/commons/DBCP

- Bob





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



Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts

2009-08-17 Thread java piet
Hi David,

You can find the server.xml close to the bottom of my first post.
I get very little logging.
The only trace is a failure of a GET(/) in one of the logs.
I will check with the system administrator if anything was changed related
to DNS.
The Apache server definitely works.
I will try Tomcat locally as soon as I have access to the server again.

Kind regards,

Piet



On Mon, Aug 17, 2009 at 5:39 PM, David Smith  wrote:

> Hmmm ... maybe retour.mycompany.com isn't resolving to the IP you think
> it is.  Is there anything in your tomcat logs that might imply the
> request is actually getting there?  To me this smells a lot like a
> network issue (DNS not resolving, firewall rules, etc., ...).  Can you
> verify tomcat works on the machine itself via a localhost request?  I'd
> also like to see what the server.xml file looks like.  I don't think its
> the issue, but it'd be nice to elliminate it entirely.
>
> --David
>
> java piet wrote:
> > Sorry David,
> >
> > The addresses and names are fakes for reasons of confidentiality.
> > The addresses and names in my code have worked before though.
> >
> > Kind regards,
> >
> > Piet
> >
> > On Mon, Aug 17, 2009 at 2:42 PM, David Smith  wrote:
> >
> >
> >> Are you replacing DNS names and IPs with fakes for the purposes of email
> >> or are these real values?  192.168.x.x is unroutable and suggests the
> >> time out is because your firewall or cable router aren't passing through
> >> the requests from clients.
> >>
> >> --David
> >>
> >> java piet wrote:
> >>
> >>> Thank you for the feedback.
> >>>
> >>> Sorry for the incomplete information.
> >>> The Apache http server is functioning as a reverse proxy.
> >>> Multiple applications have to be accessed through the internet.
> >>>
> >>> Now, I have Tomcat listening on 8081.
> >>>
> >>> Going to retour.mycompany.com:8080 or retour.mycompany.com:8081
> >>> gives a network timeout. (The server at retour.mycompany.com is taking
> >>>
> >> too
> >>
> >>> long to respond.)
> >>>
> >>> On the other hand, when I use the ip address like
> >>> http://192.168.210.143:8080/
> >>> I get the resource (/) not found error
> >>> while http://192.168.210.143:8081/ gives a network timeout.
> >>>
> >>> Tomcat without the Apache http server service gives the same network
> >>>
> >> timeout
> >>
> >>> when accessed through 8081.
> >>>
> >>> Hope this gives a clearer picture.
> >>>
> >>> Kind regards.
> >>>
> >>> Piet
> >>>
> >>>
> >>> On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R <
> >>> chuck.caldar...@unisys.com> wrote:
> >>>
> >>>
> >>>
> > From: java piet [mailto:javap...@gmail.com]
> > Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
> >
> > The reason for the Apache http server is because I thought I
> > need it to handle the virtual hosting.
> >
> >
>  No, Tomcat can handle that quite well:
>  http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
> 
> 
> 
> > As for the port 80, something else is already using it on the server.
> >
> >
>  You may be able to use a different IP address and have Tomcat use port
> 
> >> 80
> >>
>  with that.
> 
> 
> 
> > First I will try to have Tomcat listen on 8081 and see where
> > that gets me.
> >
> >
>  Your first step should really be to eliminate httpd; it will make
> things
>  much simpler.
> 
>   - Chuck
> 
> 
>  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY
>  MATERIAL and is thus for use only by the intended recipient. If you
> 
> >> received
> >>
>  this in error, please contact the sender and delete the e-mail and its
>  attachments from all computers.
> 
> 
> 
> 
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Connection Pool Exhausted

2009-08-17 Thread Kristen Walker

We had some help debugging the connection pool exhausted issue over the
weekend and for now it seems that changing jdbcUsePool=true to
jdbcUsePool=false stops the site from crashing due to connection pool
issues.  We are going to investigate more to see why connection pooling
isn't working like expected.

-Kristen


On 8/15/09 7:46 AM, "Caldarale, Charles R" 
wrote:

>> From: David Smith [mailto:d...@cornell.edu]
>> Subject: Re: Connection Pool Exhausted
>> 
>> some other app on the same tomcat instance
>> is leaking the connections.
> 
> Can't be another app - the connections are declared local to this webapp.
> 
> As David states, finding out what changed before the restart may well be
> critical to the diagnosis.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

--
Kristen Walker

Digital Media Resources Developer
Instructional Media Services
Santa Barbara County Education Office
4400 Cathedral Oaks Road
P.O. Box 6307
Santa Barbara, CA 93160-6307
(805)964-4711 ext. 5244/FAX (805)683-3597
kwal...@sbceo.org
http://www.sbceoportal.org




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



Re: catalina.sh and java_opts question

2009-08-17 Thread Mark Shifman
look here, there were several responses

http://marc.info/?t=12505233381&r=1&w=2

susan teague-rector wrote:
> Hi all,
> 
> Weird - I only got this response and nothing else from the list...
> 
> 
> Anyways, I'm not using solr - Just Tomcat - and I don't have Tomcat as a
> service
> I have a startup script for it. Should I just place JAVA_OPTS in the
> startup script?
> 
> I'm on linux/redhat btw -
> 
> So my script does this:
> 
> export JAVA_OPTS="-server -Xms512m -Xmx1024M -Xms64M -Dfile.encoding=UTF-8"
> 
> /usr/local/tomcat_5.5/bin/startup.sh
> 
> 
> Does it make sense to define JAVA_OPTS here?
> 
> Thanks!
> 
> 
> 
> 
> 
> 
> 
> Martin Gainty wrote:
>> generally accepted to set
>> JAVA_OPTS=-Dsolr.solr.home='/usr/share/tomcat5/solr'
>>
>> in the event you dont have a "TOMCAT account" on your box
>> pls read this posting from david at cornell on setting JAVA_OPTS for
>> use by TC
>> Aaron Aberg wrote:
>> > Hi,
>> >
>> > I'm using Linux CentOS with Plesk 9.2.1, Tomcat 5.5 and Solr 1.3.0. I
>> > installed the solr war file through the plesk control panel but it
>> > doesnt start up. The logs reveal that solr/home property needs to be
>> > set before it can be started up. After some googling, I found out that
>> > I could set the property in web.xml in the war file. This didn't seem
>> > to work for me.
>> >
>> > When I was first playing with solr, it was on a Windows machine and
>> > its very simple to set this property. You can do it through the tomcat
>> > service system tray application. However, I am using Linux now and I
>> > believe that I need to set this option in JAVA_OPTS. I have seen a
>> > bunch of examples where someone will export the variable etc and then
>> > run the catalina.sh command. I can't do that. I need to start and stop
>> > the service via plesk.
>> >
>> > This is what I'm thinking. I see in /etc/passwd that the tomcat user
>> > has a default path of /usr/share/tomcat5. I'm wondering if I could put
>> > a .bashrc file in that directory and set the option there. Would that
>> > work? Does anyone have an idea as to how I can solve this problem?
>> >
>> > By the way the option should be something like:
>> > JAVA_OPTS=-Dsolr.solr.home='/usr/share/tomcat5/solr'
>> >
>> > Thanks in advance,
>> > Aaron
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > For additional commands, e-mail: users-h...@tomcat.apache.org
>> >
>> >   So ... what I'm reading is you are starting tomcat as a service.  In
>> that case, there should be a script in /etc/init.d for starting/stopping
>> tomcat.  Take a look at that.  If the settings aren't in there, the
>> script may have comments pointing you in the right direction.  I don't
>> think the .bashrc will work because the tomcat account is probably
>> disabled.  That's the way all accounts used by linux/unix services are
>> for security reasons.  There is no interactive login to run a .bashrc
>> file from when tomcat starts or stops.
>>  
>> --David
>>
>>
>> Martin Gainty
>> __
>> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und
>> Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>  
>> Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük,
>> hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy
>> másolatának készítése nem megengedett.  Ez az üzenet csak ismeret
>> cserét szolgál és semmiféle jogi alkalmazhatósága sincs.  Mivel az
>> electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi
>> felelöség nem terhelhet ezen üzenet tartalma miatt.
>>
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
>> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
>> Diese Nachricht dient lediglich dem Austausch von Informationen und
>> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
>> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
>> Inhalt uebernehmen.
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes
>> pas le destinataire prévu, nous te demandons avec bonté que pour
>> satisfaire informez l'expéditeur. N'importe quelle diffusion non
>> autorisée ou la copie de ceci est interdite. Ce message sert à
>> l'information seulement et n'aura pas n'importe quel effet légalement
>> obligatoire. Étant donné que les email peuvent facilement être sujets
>> à la manipulation, nous ne pouvons accepter aucune responsabilité pour
>> le contenu fourni.
>>
>>
>>
>>
>>
>> > Date: Mon, 17 Aug 2009 11:34:49 -0400
>> > From: setea...@vcu.edu
>> > To: users@tomcat.apache.org
>> > Subject: catalina.sh and java_opts question
>> >
>> > Hello all,
>> > I've searched around on the net and have found differing opinions about
>> > where to actually place the java_opts env var for tomcat.
>> > Should this variable be in /tomcat/bin/catalina.sh? 

RE: Multi-Level Context Paths

2009-08-17 Thread Andy Ee
Hi David,

I will try to remove that path attribute from the Context element.

Other 2 questions:
1) Can I exclude the META-INF/context.xml file in the war file? This
context.xml that will be copied to conf/Catalina/localhost after deployment,
so that I can be sure this is not the problem to the setup of multi-level
context path?

2) When we say renaming test.war into sg#server#test to achieve multi-level
context path (http://localhost:8080/sg/server/test), are we talking about
using the rename command in Solaris (mv test.war sg#server#test.war)?
Or do I have to re-tar the project files into sg#server#test.war again?


Thank you. 

Best Regards,
Andy Ee
 
 

-Original Message-
From: David Smith [mailto:d...@cornell.edu] 
Sent: Monday, August 17, 2009 8:37 PM
To: Tomcat Users List
Subject: Re: Multi-Level Context Paths

Drop the path attribute from your ...
definition.  The path should ideally be driven by the name of the war
file, not explicitly called out in config unless your webapp is outside
the webapps directory.

--David

Andy Ee wrote:
> Hi Mark,
>
> Before I prepare my .war file, there is an existing META-INF/context.xml
and
> the content is,
>
>  antiJARLocking="true" antiResourceLocking="false">
>
> 
> 
>
>
> Should I remove the path parameter and prepare the war file again?
>
> With the path specified as /test, I am worried it will conflict how I
setup
> Multi-Level path.
>
> Best Regards,
> Andy Ee
>  
>  
>
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org] 
> Sent: Monday, August 17, 2009 7:04 PM
> To: Tomcat Users List
> Subject: Re: Multi-Level Context Paths
>
> Andy Ee wrote:
>   
>> There is a new requirement to setup multi-level context path as in I need
>> the URL to be  
>> 
>
> Remove all the old files you no longer want:
> $CATALINA_BASE/webapps/test.war
> $CATALINA_BASE/conf/Catalina/localhost/test.xml
> $CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml
>
> Rename your WAR to sg#server#test.war
>
> Place your renamed war in:
> $CATALINA_BASE/webapps/
>
> Any META-INF/context.xml will be extracted to:
> $CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml
>
>   
>> > 
>
> As stated in the docs for the context element, you should not specify
> the path attribute in this case.
>
>   
>> java.lang.IllegalArgumentException: Document base
>> /usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not
a
>> readable directory
>> 
>
> If Tomcat finds:
> $CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml
>
> It expects to find a matching war
> $CATALINA_BASE/webapps/sg#server#test.war
> or directory
> $CATALINA_BASE/webapps/sg#server#test
>
> Mark
>
>
>   

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



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



Re: catalina.sh and java_opts question

2009-08-17 Thread susan teague-rector

Hi all,

Weird - I only got this response and nothing else from the list...


Anyways, I'm not using solr - Just Tomcat - and I don't have Tomcat as a 
service
I have a startup script for it. Should I just place JAVA_OPTS in the 
startup script?


I'm on linux/redhat btw -

So my script does this:

export JAVA_OPTS="-server -Xms512m -Xmx1024M -Xms64M -Dfile.encoding=UTF-8"

/usr/local/tomcat_5.5/bin/startup.sh


Does it make sense to define JAVA_OPTS here?

Thanks!







Martin Gainty wrote:

generally accepted to set JAVA_OPTS=-Dsolr.solr.home='/usr/share/tomcat5/solr'

in the event you dont have a "TOMCAT account" on your box
pls read this posting from david at cornell on setting JAVA_OPTS for use by TC 


Aaron Aberg wrote:
> Hi,
>
> I'm using Linux CentOS with Plesk 9.2.1, Tomcat 5.5 and Solr 1.3.0. I
> installed the solr war file through the plesk control panel but it
> doesnt start up. The logs reveal that solr/home property needs to be
> set before it can be started up. After some googling, I found out that
> I could set the property in web.xml in the war file. This didn't seem
> to work for me.
>
> When I was first playing with solr, it was on a Windows machine and
> its very simple to set this property. You can do it through the tomcat
> service system tray application. However, I am using Linux now and I
> believe that I need to set this option in JAVA_OPTS. I have seen a
> bunch of examples where someone will export the variable etc and then
> run the catalina.sh command. I can't do that. I need to start and stop
> the service via plesk.
>
> This is what I'm thinking. I see in /etc/passwd that the tomcat user
> has a default path of /usr/share/tomcat5. I'm wondering if I could put
> a .bashrc file in that directory and set the option there. Would that
> work? Does anyone have an idea as to how I can solve this problem?
>
> By the way the option should be something like:
> JAVA_OPTS=-Dsolr.solr.home='/usr/share/tomcat5/solr'
>
> Thanks in advance,
> Aaron
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>   
So ... what I'm reading is you are starting tomcat as a service.  In

that case, there should be a script in /etc/init.d for starting/stopping
tomcat.  Take a look at that.  If the settings aren't in there, the
script may have comments pointing you in the right direction.  I don't
think the .bashrc will work because the tomcat account is probably
disabled.  That's the way all accounts used by linux/unix services are
for security reasons.  There is no interactive login to run a .bashrc
file from when tomcat starts or stops.
 
--David



Martin Gainty
__
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, 
hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy 
másolatának készítése nem megengedett.  Ez az üzenet csak ismeret 
cserét szolgál és semmiféle jogi alkalmazhatósága sincs.  Mivel az 
electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi 
felelöség nem terhelhet ezen üzenet tartalma miatt.


Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede 
unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. 
Diese Nachricht dient lediglich dem Austausch von Informationen und 
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten 
Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den 
Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





> Date: Mon, 17 Aug 2009 11:34:49 -0400
> From: setea...@vcu.edu
> To: users@tomcat.apache.org
> Subject: catalina.sh and java_opts question
>
> Hello all,
> I've searched around on the net and have found differing opinions about
> where to actually place the java_opts env var for tomcat.
> Should this variable be in /tomcat/bin/catalina.sh? When I set it in
> this file and then print out all env vars, it looks like it is not set.
> How do I set java_opts to enable my tomcat applications to get to it?
> Thanks,
> Susan
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

-

RE: Garbage collector

2009-08-17 Thread hruesga

i'fe tried to export CATALINA_OPTS setting as:

execute:

export CATALINA_OPTS=-Xloggc:/logs/gc.log
result: gc.log file doesn't create

java -verbose:gc
result: nothing happpens.





Caldarale, Charles R wrote:
> 
>> From: hruesga [mailto:lord_dyna...@hotmail.com]
>> Subject: Re: Garbage collector
>> 
>> -Xmx3072m -Xms3072m
> 
> Unless you're in a 64-bit environment, that doesn't stand a chance of
> working.
> 
>> Maz Threads= 500
> 
> Is that supposed to be Max?  Where do you have that set?
> 
>> minSpareThreads=25
>> maxSpareThreads=75
> 
> The threads settings are not really relevant to getting GC logs.
> 
> For the third time, tell us *exactly* what you're doing - step by step.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Garbage-collector-tp25008420p25010241.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Garbage collector

2009-08-17 Thread Caldarale, Charles R
> From: hruesga [mailto:lord_dyna...@hotmail.com]
> Subject: Re: Garbage collector
> 
> -Xmx3072m -Xms3072m

Unless you're in a 64-bit environment, that doesn't stand a chance of working.

> Maz Threads= 500

Is that supposed to be Max?  Where do you have that set?

> minSpareThreads=25
> maxSpareThreads=75

The threads settings are not really relevant to getting GC logs.

For the third time, tell us *exactly* what you're doing - step by step.

 - Chuck


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


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



Re: catalina.sh and java_opts question

2009-08-17 Thread Markus Schönhaber
Susan Teague Rector:

> I've searched around on the net and have found differing opinions about 
> where to actually place the java_opts env var for tomcat.
> Should this variable be in /tomcat/bin/catalina.sh? When I set it in 
> this file and then print out all env vars, it looks like it is not set.
> How do I set java_opts to enable my tomcat applications to get to it?

Judging from "/tomcat/bin/catalina.sh" you mention, I assume you're on
Linux (or another Unix-like platform). If so, it will probably not
matter much where you set an environment variable "java_opts" because
it's "JAVA_OPTS" that gets passed to the java command starting Tomcat.

IMO the Tomcat-provided scripts like cataline.sh should not be modified.
Instead set JAVA_OPTS in setenv.sh (create it if it doesn't already
exist). setenv.sh will be sourced by catalina.sh.
BTW: unless you really need the options set even when stopping Tomcat,
CATALINA_OPTS may be the better choice to set your options.

-- 
Regards
  mks

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



RE: Garbage collector

2009-08-17 Thread Caldarale, Charles R
> From: hruesga [mailto:lord_dyna...@hotmail.com]
> Subject: RE: Garbage collector
> 
> for this reason i'm trying to enable the garbage collector 
> to see what happens with the java threads.

Again: what *exactly* have you tried, and what are the results?

 - Chuck


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


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



Re: Garbage collector

2009-08-17 Thread hruesga



Mark Thomas-23 wrote:
> 
> hruesga wrote:
>> Sorry...
>> 
>> Tomcat 5.5.25
>> Java:  1.5.0_12-b04
>> OS: Solaris 10
>> 
>> We are facing a slow performance of one application, as far as we've
>> seeing
>> we have a max threads of 500 but only we see a max of 20 busy threads,
>> tomcat is configured to run with 3GB first there's no problem but 3 or 4
>> hours later we start to suffer a leak of mem that force us to restart the
>> web server.
>> 
>> Our guess is to see what does java is doing with the memmory and find a
>> better configuration for the tomcat server, prior that we need to catch
>> the
>> garbage collector logs, but so far i'm not able to do this.
> 
> So what configuration option have you tried that isn't working?
> 
> Mark
> 
> 
> -Xmx3072m -Xms3072m
> Maz Threads= 500
> minSpareThreads=25
> maxSpareThreads=75
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Garbage-collector-tp25008420p25009288.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Garbage collector

2009-08-17 Thread hruesga



George Sexton wrote:
> 
> Have you ever tried running something like findbugs against your
> application
> to do a code analysis?
> 
> http://findbugs.sourceforge.net/
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>  
> 
>> -Original Message-
>> From: hruesga [mailto:lord_dyna...@hotmail.com]
>> Sent: Monday, August 17, 2009 9:25 AM
>> To: users@tomcat.apache.org
>> Subject: RE: Garbage collector
>> 
>> 
>> Sorry...
>> 
>> Tomcat 5.5.25
>> Java:  1.5.0_12-b04
>> OS: Solaris 10
>> 
>> We are facing a slow performance of one application, as far as we've
>> seeing
>> we have a max threads of 500 but only we see a max of 20 busy threads,
>> tomcat is configured to run with 3GB first there's no problem but 3 or
>> 4
>> hours later we start to suffer a leak of mem that force us to restart
>> the
>> web server.
>> 
>> Our guess is to see what does java is doing with the memmory and find a
>> better configuration for the tomcat server, prior that we need to catch
>> the
>> garbage collector logs, but so far i'm not able to do this.
>> 
>> Best Regards
>> 
>> 
>> Caldarale, Charles R wrote:
>> >
>> >> From: hruesga [mailto:lord_dyna...@hotmail.com]
>> >> Subject: Garbage collector
>> >>
>> >> Maybe there's something that i did wrong.
>> >
>> > For starters, not telling us your Tomcat version, JRE/JDK version, OS
>> > you're using, what's in your logs, etc.
>> >
>> >  - Chuck
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

Don't think that is related to the application itself, this "web
application" its only a jsp interface to run application for web users, if
we accdess the application through fat client is working fine, but the issue
is the memmory leak over Web for this reason i'm trying to enable the
garbage collector to see what happens with the java threads.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Garbage-collector-tp25008420p25009267.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: catalina.sh and java_opts question

2009-08-17 Thread Tim Funk
Something will eventually call bin/startup.sh (or bin/catalina.sh). 
Changing bin/startup.sh (or bin/catalina.sh) is typically a bad idea.


Whatever is calling that should export JAVA_OPTS first.

For example:
export JAVA_OPTS='-Xmx256m'
- or -
export JAVA_OPTS='-Xmx256m -Djava.awt.headless=true'



-Tim

Susan Teague Rector wrote:

Hello all,
I've searched around on the net and have found differing opinions about 
where to actually place the java_opts env var for tomcat.
Should this variable be in /tomcat/bin/catalina.sh? When I set it in 
this file and then print out all env vars, it looks like it is not set.

How do I set java_opts to enable my tomcat applications to get to it?



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



Re: catalina.sh and java_opts question

2009-08-17 Thread Mark Thomas
Susan Teague Rector wrote:
> Hello all,
> I've searched around on the net and have found differing opinions about
> where to actually place the java_opts env var for tomcat.
> Should this variable be in /tomcat/bin/catalina.sh? When I set it in
> this file and then print out all env vars, it looks like it is not set.
> How do I set java_opts to enable my tomcat applications to get to it?

Generally, use CATALINA_OPTS rather then JAVA_OPTS.

Both should be set in setenv.sh (create it if it doesn't exist)

Mark



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



Re: Garbage collector

2009-08-17 Thread Mark Thomas
hruesga wrote:
> Sorry...
> 
> Tomcat 5.5.25
> Java:  1.5.0_12-b04
> OS: Solaris 10
> 
> We are facing a slow performance of one application, as far as we've seeing
> we have a max threads of 500 but only we see a max of 20 busy threads,
> tomcat is configured to run with 3GB first there's no problem but 3 or 4
> hours later we start to suffer a leak of mem that force us to restart the
> web server.
> 
> Our guess is to see what does java is doing with the memmory and find a
> better configuration for the tomcat server, prior that we need to catch the
> garbage collector logs, but so far i'm not able to do this.

So what configuration option have you tried that isn't working?

Mark




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



Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts

2009-08-17 Thread David Smith
Hmmm ... maybe retour.mycompany.com isn't resolving to the IP you think
it is.  Is there anything in your tomcat logs that might imply the
request is actually getting there?  To me this smells a lot like a
network issue (DNS not resolving, firewall rules, etc., ...).  Can you
verify tomcat works on the machine itself via a localhost request?  I'd
also like to see what the server.xml file looks like.  I don't think its
the issue, but it'd be nice to elliminate it entirely.

--David

java piet wrote:
> Sorry David,
>
> The addresses and names are fakes for reasons of confidentiality.
> The addresses and names in my code have worked before though.
>
> Kind regards,
>
> Piet
>
> On Mon, Aug 17, 2009 at 2:42 PM, David Smith  wrote:
>
>   
>> Are you replacing DNS names and IPs with fakes for the purposes of email
>> or are these real values?  192.168.x.x is unroutable and suggests the
>> time out is because your firewall or cable router aren't passing through
>> the requests from clients.
>>
>> --David
>>
>> java piet wrote:
>> 
>>> Thank you for the feedback.
>>>
>>> Sorry for the incomplete information.
>>> The Apache http server is functioning as a reverse proxy.
>>> Multiple applications have to be accessed through the internet.
>>>
>>> Now, I have Tomcat listening on 8081.
>>>
>>> Going to retour.mycompany.com:8080 or retour.mycompany.com:8081
>>> gives a network timeout. (The server at retour.mycompany.com is taking
>>>   
>> too
>> 
>>> long to respond.)
>>>
>>> On the other hand, when I use the ip address like
>>> http://192.168.210.143:8080/
>>> I get the resource (/) not found error
>>> while http://192.168.210.143:8081/ gives a network timeout.
>>>
>>> Tomcat without the Apache http server service gives the same network
>>>   
>> timeout
>> 
>>> when accessed through 8081.
>>>
>>> Hope this gives a clearer picture.
>>>
>>> Kind regards.
>>>
>>> Piet
>>>
>>>
>>> On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R <
>>> chuck.caldar...@unisys.com> wrote:
>>>
>>>
>>>   
> From: java piet [mailto:javap...@gmail.com]
> Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
>
> The reason for the Apache http server is because I thought I
> need it to handle the virtual hosting.
>
>   
 No, Tomcat can handle that quite well:
 http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html


 
> As for the port 80, something else is already using it on the server.
>
>   
 You may be able to use a different IP address and have Tomcat use port
 
>> 80
>> 
 with that.


 
> First I will try to have Tomcat listen on 8081 and see where
> that gets me.
>
>   
 Your first step should really be to eliminate httpd; it will make things
 much simpler.

  - Chuck


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



 


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



Re: Any way to make tomcat send the "disable caching" headers on all responses?

2009-08-17 Thread Tim Funk
Out of the box - no. But you can write a filter to add the response to 
all requests.


doFilter(...) {
  response.setHeader("Cache-Control","no-cache"); /* or no-store YMMV*/
  response.setHeader("Pragma","no-cache");
  response.setDateHeader ("Expires", 0);
  chain.doFilter();
}

-Tim

Epithemeus wrote:

Hi all,

I've run into a similar problem with Tomcat 6.0 and am hoping to find some
information on why this might be happening.

I have an xml file which contains information to display a graph. I also
have an HTML file which creates an applet to view the graph.

The xml file is updated based on inputs from the user (specified in
StartPage.jsp). So, the user gives an input, the xml file is updated and the
corresponding graph should be displayed.

What is happening in practice is that: the xml file is indeed updated but
the graph being displayed is an older version (corresponding to the older
.xml file which has now been over-written). I gather that this means tomcat
is caching the xml files.

I have tried including "cachingAllowed" to false in context.xml. I have also
deleted the application_folder under $TOMCAT_HOME\work\Catalina\localhost\.
Neither of these options has helped in disabling caching.

I would really appreciate any help on how I could get around this!





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



catalina.sh and java_opts question

2009-08-17 Thread Susan Teague Rector

Hello all,
I've searched around on the net and have found differing opinions about 
where to actually place the java_opts env var for tomcat.
Should this variable be in /tomcat/bin/catalina.sh? When I set it in 
this file and then print out all env vars, it looks like it is not set.

How do I set java_opts to enable my tomcat applications to get to it?
Thanks,
Susan



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



RE: Garbage collector

2009-08-17 Thread George Sexton
Have you ever tried running something like findbugs against your application
to do a code analysis?

http://findbugs.sourceforge.net/

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
 

> -Original Message-
> From: hruesga [mailto:lord_dyna...@hotmail.com]
> Sent: Monday, August 17, 2009 9:25 AM
> To: users@tomcat.apache.org
> Subject: RE: Garbage collector
> 
> 
> Sorry...
> 
> Tomcat 5.5.25
> Java:  1.5.0_12-b04
> OS: Solaris 10
> 
> We are facing a slow performance of one application, as far as we've
> seeing
> we have a max threads of 500 but only we see a max of 20 busy threads,
> tomcat is configured to run with 3GB first there's no problem but 3 or
> 4
> hours later we start to suffer a leak of mem that force us to restart
> the
> web server.
> 
> Our guess is to see what does java is doing with the memmory and find a
> better configuration for the tomcat server, prior that we need to catch
> the
> garbage collector logs, but so far i'm not able to do this.
> 
> Best Regards
> 
> 
> Caldarale, Charles R wrote:
> >
> >> From: hruesga [mailto:lord_dyna...@hotmail.com]
> >> Subject: Garbage collector
> >>
> >> Maybe there's something that i did wrong.
> >
> > For starters, not telling us your Tomcat version, JRE/JDK version, OS
> > you're using, what's in your logs, etc.
> >
> >  - Chuck



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



RE: Garbage collector

2009-08-17 Thread hruesga

Sorry...

Tomcat 5.5.25
Java:  1.5.0_12-b04
OS: Solaris 10

We are facing a slow performance of one application, as far as we've seeing
we have a max threads of 500 but only we see a max of 20 busy threads,
tomcat is configured to run with 3GB first there's no problem but 3 or 4
hours later we start to suffer a leak of mem that force us to restart the
web server.

Our guess is to see what does java is doing with the memmory and find a
better configuration for the tomcat server, prior that we need to catch the
garbage collector logs, but so far i'm not able to do this.

Best Regards


Caldarale, Charles R wrote:
> 
>> From: hruesga [mailto:lord_dyna...@hotmail.com]
>> Subject: Garbage collector
>> 
>> Maybe there's something that i did wrong.
> 
> For starters, not telling us your Tomcat version, JRE/JDK version, OS
> you're using, what's in your logs, etc.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Garbage-collector-tp25008420p25008827.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Garbage collector

2009-08-17 Thread Caldarale, Charles R
> From: hruesga [mailto:lord_dyna...@hotmail.com]
> Subject: Garbage collector
> 
> Maybe there's something that i did wrong.

For starters, not telling us your Tomcat version, JRE/JDK version, OS you're 
using, what's in your logs, etc.

 - Chuck


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


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



Re: Any way to make tomcat send the "disable caching" headers on all responses?

2009-08-17 Thread Epithemeus

Hi all,

I've run into a similar problem with Tomcat 6.0 and am hoping to find some
information on why this might be happening.

I have an xml file which contains information to display a graph. I also
have an HTML file which creates an applet to view the graph.

The xml file is updated based on inputs from the user (specified in
StartPage.jsp). So, the user gives an input, the xml file is updated and the
corresponding graph should be displayed.

What is happening in practice is that: the xml file is indeed updated but
the graph being displayed is an older version (corresponding to the older
.xml file which has now been over-written). I gather that this means tomcat
is caching the xml files.

I have tried including "cachingAllowed" to false in context.xml. I have also
deleted the application_folder under $TOMCAT_HOME\work\Catalina\localhost\.
Neither of these options has helped in disabling caching.

I would really appreciate any help on how I could get around this!


dkarr wrote:
> 
> When I'm debugging javavascript code, it's really annoying when Firefox
> caches the javascript file (even when I've modified it).  I'm familiar
> with the headers for disabling caching, but it's a little more annoying
> to emit those headers on javascript files.  Unless I'm missing
> something, is there an easy way to make Tomcat send the disable cache
> headers for all responses, perhaps for a single application?
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Any-way-to-make-tomcat-send-the-%22disable-caching%22-headers-on-all-responses--tp16081557p25008571.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Garbage collector

2009-08-17 Thread hruesga

Listers:

We are trying to enable the garbage collector log for jvm to see what
happens with our leak memory issue, i've already try to export CATALINA_OPTS
variable but i'm not able to see any log.
Maybe there's something that i did wrong.

Any help will be greatly appreciate.

HR
-- 
View this message in context: 
http://www.nabble.com/Garbage-collector-tp25008420p25008420.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Was the latest tomcat 5 released?

2009-08-17 Thread Mark Thomas
Yasu wrote:
> Hi Tomcat Users,
> 
> I found Tomcat 5.5.28 on the web page - 
> http://tomcat.apache.org/#Apache%20Tomcat%20Versions
> and http://tomcat.apache.org/download-55.cgi .
> However, I have not seen the announcement on 
> the announce@ and users@ lists yet. 
> 
> And http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
> is still 5.5.27. 
> 
> What is the status of 5.5.28 in now?

As far as I am aware, the release manager is waiting for the mirrors and
the web site to sync up before making the official announcement. Looks
like most of them are there so I'd expect a formal announcement later today.

Mark




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



Was the latest tomcat 5 released?

2009-08-17 Thread Yasu
Hi Tomcat Users,

I found Tomcat 5.5.28 on the web page - 
http://tomcat.apache.org/#Apache%20Tomcat%20Versions
and http://tomcat.apache.org/download-55.cgi .
However, I have not seen the announcement on 
the announce@ and users@ lists yet. 

And http://tomcat.apache.org/tomcat-5.5-doc/changelog.html
is still 5.5.27. 

What is the status of 5.5.28 in now?

Thanks.
-- 
yasu.
--
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

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



Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts

2009-08-17 Thread java piet
Sorry David,

The addresses and names are fakes for reasons of confidentiality.
The addresses and names in my code have worked before though.

Kind regards,

Piet

On Mon, Aug 17, 2009 at 2:42 PM, David Smith  wrote:

> Are you replacing DNS names and IPs with fakes for the purposes of email
> or are these real values?  192.168.x.x is unroutable and suggests the
> time out is because your firewall or cable router aren't passing through
> the requests from clients.
>
> --David
>
> java piet wrote:
> > Thank you for the feedback.
> >
> > Sorry for the incomplete information.
> > The Apache http server is functioning as a reverse proxy.
> > Multiple applications have to be accessed through the internet.
> >
> > Now, I have Tomcat listening on 8081.
> >
> > Going to retour.mycompany.com:8080 or retour.mycompany.com:8081
> > gives a network timeout. (The server at retour.mycompany.com is taking
> too
> > long to respond.)
> >
> > On the other hand, when I use the ip address like
> > http://192.168.210.143:8080/
> > I get the resource (/) not found error
> > while http://192.168.210.143:8081/ gives a network timeout.
> >
> > Tomcat without the Apache http server service gives the same network
> timeout
> > when accessed through 8081.
> >
> > Hope this gives a clearer picture.
> >
> > Kind regards.
> >
> > Piet
> >
> >
> > On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R <
> > chuck.caldar...@unisys.com> wrote:
> >
> >
> >>> From: java piet [mailto:javap...@gmail.com]
> >>> Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
> >>>
> >>> The reason for the Apache http server is because I thought I
> >>> need it to handle the virtual hosting.
> >>>
> >> No, Tomcat can handle that quite well:
> >> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
> >>
> >>
> >>> As for the port 80, something else is already using it on the server.
> >>>
> >> You may be able to use a different IP address and have Tomcat use port
> 80
> >> with that.
> >>
> >>
> >>> First I will try to have Tomcat listen on 8081 and see where
> >>> that gets me.
> >>>
> >> Your first step should really be to eliminate httpd; it will make things
> >> much simpler.
> >>
> >>  - Chuck
> >>
> >>
> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> >> MATERIAL and is thus for use only by the intended recipient. If you
> received
> >> this in error, please contact the sender and delete the e-mail and its
> >> attachments from all computers.
> >>
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: Tribes

2009-08-17 Thread Martin Gainty

add these properties to properties,classpath and target for 
apache-tomcat-6.0.20-src build.xml

  
  
  
  
  
  
  


  
  
  
  
  
  
  
  
  
  
  

  

  
  








  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  http://java.sun.com/j2se/1.5.0/docs/api/"; 
packagelistLoc="C:\tmp"/>
  http://developer.java.sun.com/developer/products/xml/docs/api/"/>
  
  

produces i nice indexed html formatted javadocs for all aforementioned packages
source is from java folder and outputs html to webapps/docs/api

java -version
Runtime_Environment (build 1.6.0_12-b04)

ant -version
1.7.1 compiled on June 27 2008

as suggested i'll put in jira..
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Sat, 8 Aug 2009 18:52:26 +0400
> Subject: Re: Tribes
> From: knst.koli...@gmail.com
> To: users@tomcat.apache.org
> 
> Martin,
> 
> maybe you have not noticed them, but the JavaDocs are already there,
> 
> http://tomcat.apache.org/tomcat-6.0-doc/api/index.html
> http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/tribes/package-summary.html#package_description
> 
> Also, they are included into the "fulldocs" bundle in the release.
> http://www.apache.org/dist/tomcat/tomcat-6/v6.0.20/bin/
> 
> If you consider any improvements, please file an issue. Patches are welcomed.
> 
> Best regards,
> Konstantin Kolinko
> 
> 2009/8/4 Martin Gainty :
> >
> > i like Ant javadoc as a follow-up task for javac ..(part of the build 
> > process)
> > you create the package/class
> > javadoc task will automatically create 'linted html'
> > ANTS javadoc also has ability to read css stylesheet so you can
> > bold method explanations
> > italicise annotations
> >
> > http://ant.apache.org/manual/CoreTasks/javadoc.html
> >
> > prob the only thing ant javadoc wont do is translate to 
> > german,swedish,french..
> >
> > you would also need to add in examples..
> >
> > another format would be pdf which would easily be accomplished thru FOP
> >
> > Martin Gainty
> > __
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte 
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht 
> > dient lediglich dem Austausch von Informationen und entfaltet keine 
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von 
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire 
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie 
> > de ceci est interdite. Ce message sert à l'information seulement et n'aura 
> > pas n'importe quel effet légalement obligatoire. Étant donné que les email 
> > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> > aucune responsabilité pour le contenu fourni.
> >
> >
> >
> >
> >> Date: Mon, 3 Aug 2009 08:52:27 -0600
> >> From: devli...@hanik.com
> >> To: users@tomcat.apache.org
> >> Subject: Re: Tribes
> >>
> >> I will work on better docs, in the mean time, quick start is here
> >>
> >> http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html
> >>
> >>
> >> On 08/03/2009 06:02 AM, nash4403X wrote:
> >> > Filip-  Needless to say a product is as good as its documentation.
> >> >
> >> > I wanted to try tribes but without proper docs/articles and my limited
> >> > knowledge it's tough and make me look at other options. All I wanted to 
> >> > do
> >> > is messaging with help of tribes in between 5 tomcat instances.
> >> > I wanted to have some

RE: Tomcat 6.0.18 with SSL and VMWare

2009-08-17 Thread Caldarale, Charles R
> From: Sergio Arrighi [mailto:sergio.arri...@iminholding.com]
> Subject: Tomcat 6.0.18 with SSL and VMWare
> 
> connectionTimeout="2"
>redirectPort="8443" />
> 
> maxThreads="150" scheme="https" secure="true"
>clientAuth="false" sslProtocol="TLS"
> keystoreFile=".keystore" />
> 
> 

Since you have the HTTP port defined as 80, you most likely want the HTTPS port 
on 443, not 8443.

You're missing the keyStorePass attribute on the HTTPS .

If you have the APR native library installed, the SSL config is completely 
different.  Can't tell you what to look for, since you didn't tell us the guest 
OS you're using under VMware.

Anything of interest in your logs?

- Chuck


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


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



Tomcat 6.0.18 with SSL and VMWare

2009-08-17 Thread Sergio Arrighi

Hello to everyone!

I'm experiencing difficulties in configuring SSL for an apache tomcat 
6.0.18 in a VMWare environment.
basically there is a machine devided in 4 virtual machines. On one of 
these machines runs a tomcat server with this configuration:





 
 SSLEngine="on" />
 

 
 
 className="org.apache.catalina.mbeans.ServerLifecycleListener" />
 className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />


 

   
 

 
 
   
  connectionTimeout="2"
  redirectPort="8443" />

 clientAuth="false" sslProtocol="TLS" 
keystoreFile=".keystore" />


   

   

 

 

 
   
 


The keystore file is named ".keystore" an it's placed in %CATALINA_BASE% 
directory and should have been created correctly (i.e. same password for 
keystore and key).

Are there any known conflicts?? What am I doing wrong??

Thanks and bye!

Sergio


--
*I.M.I.N. Holding s.r.l.*
Sergio Arrighi
sergio.arri...@iminholding.com 
Cell. 3455805121

Vicolo Molino, 2
21052 Busto Arsizio
Varese
Tel. +39 0331324679
Fax. +39 0331324678
www.iminholding.com


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



Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts

2009-08-17 Thread David Smith
Are you replacing DNS names and IPs with fakes for the purposes of email
or are these real values?  192.168.x.x is unroutable and suggests the
time out is because your firewall or cable router aren't passing through
the requests from clients.

--David

java piet wrote:
> Thank you for the feedback.
>
> Sorry for the incomplete information.
> The Apache http server is functioning as a reverse proxy.
> Multiple applications have to be accessed through the internet.
>
> Now, I have Tomcat listening on 8081.
>
> Going to retour.mycompany.com:8080 or retour.mycompany.com:8081
> gives a network timeout. (The server at retour.mycompany.com is taking too
> long to respond.)
>
> On the other hand, when I use the ip address like
> http://192.168.210.143:8080/
> I get the resource (/) not found error
> while http://192.168.210.143:8081/ gives a network timeout.
>
> Tomcat without the Apache http server service gives the same network timeout
> when accessed through 8081.
>
> Hope this gives a clearer picture.
>
> Kind regards.
>
> Piet
>
>
> On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R <
> chuck.caldar...@unisys.com> wrote:
>
>   
>>> From: java piet [mailto:javap...@gmail.com]
>>> Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
>>>
>>> The reason for the Apache http server is because I thought I
>>> need it to handle the virtual hosting.
>>>   
>> No, Tomcat can handle that quite well:
>> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html
>>
>> 
>>> As for the port 80, something else is already using it on the server.
>>>   
>> You may be able to use a different IP address and have Tomcat use port 80
>> with that.
>>
>> 
>>> First I will try to have Tomcat listen on 8081 and see where
>>> that gets me.
>>>   
>> Your first step should really be to eliminate httpd; it will make things
>> much simpler.
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you received
>> this in error, please contact the sender and delete the e-mail and its
>> attachments from all computers.
>>
>>
>> 


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



mod_jk and jsessionid issue

2009-08-17 Thread lmk

Hi all,

I have a 2 tomcat servers load balanced using apache mod_jk,  I have a
probleme with images on the login page, the image url generate is  
postfixed by  jsessionid, so, the image is not rendered, the user have to
use F5 button.
how to work arround  this  issue?

thanks!




-- 
View this message in context: 
http://www.nabble.com/mod_jk-and--jsessionid-issue-tp25006051p25006051.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Multi-Level Context Paths

2009-08-17 Thread David Smith
Drop the path attribute from your ...
definition.  The path should ideally be driven by the name of the war
file, not explicitly called out in config unless your webapp is outside
the webapps directory.

--David

Andy Ee wrote:
> Hi Mark,
>
> Before I prepare my .war file, there is an existing META-INF/context.xml and
> the content is,
>
>  antiJARLocking="true" antiResourceLocking="false">
>
> 
> 
>
>
> Should I remove the path parameter and prepare the war file again?
>
> With the path specified as /test, I am worried it will conflict how I setup
> Multi-Level path.
>
> Best Regards,
> Andy Ee
>  
>  
>
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org] 
> Sent: Monday, August 17, 2009 7:04 PM
> To: Tomcat Users List
> Subject: Re: Multi-Level Context Paths
>
> Andy Ee wrote:
>   
>> There is a new requirement to setup multi-level context path as in I need
>> the URL to be  
>> 
>
> Remove all the old files you no longer want:
> $CATALINA_BASE/webapps/test.war
> $CATALINA_BASE/conf/Catalina/localhost/test.xml
> $CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml
>
> Rename your WAR to sg#server#test.war
>
> Place your renamed war in:
> $CATALINA_BASE/webapps/
>
> Any META-INF/context.xml will be extracted to:
> $CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml
>
>   
>> > 
>
> As stated in the docs for the context element, you should not specify
> the path attribute in this case.
>
>   
>> java.lang.IllegalArgumentException: Document base
>> /usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
>> readable directory
>> 
>
> If Tomcat finds:
> $CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml
>
> It expects to find a matching war
> $CATALINA_BASE/webapps/sg#server#test.war
> or directory
> $CATALINA_BASE/webapps/sg#server#test
>
> Mark
>
>
>   

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



AW: Problem with SOAP Response

2009-08-17 Thread Raphael Hürzeler
hmm that might be it, wasn't able to resolve it though so far - glassfish
lists as server specific packages:

webservices-api.jar
javaee.jar
jsf-impl.jar
activation.jar
appserv-tags.jar
mail.jar
appserv-jstl.jar
webservices-tools.jar
webservices-rt.jar
webservices-tools.jar
webservices-rt.jar
appserv-ws.jar

tomcat lists:
annotations-api.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
catalina.jar
el-api.jar
jasper-el.jar
jasper.jar
jsp-api.jar
servlet-api.jar
tomcat-coyote.jar
tomcat-dbcp.jar
tomcat-i18n-es.jar
tomcat-118n-fr.jar
tomcat-i18n-ja.jar
tomcat-juli.jar

I assume these are server specific, hence simply copying over the glassfish
jars doesn't work (just leads to errors or nothing working at all)

Apart from these just the JAX-WS 2.1 and JAXB 2.1 libs are loaded.

Might this be the problem and if so are there equivalent packages to be
found for tomcat?

- Raphael

-Ursprüngliche Nachricht-
Von: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com]
Im Auftrag von Peter Crowther
Gesendet: Montag, 17. August 2009 12:01
An: Tomcat Users List
Betreff: Re: Problem with SOAP Response

OK.  Given that the client shows different behaviour between calls that
happen to be made from Tomcat and calls that happen to be made from
Glassfish, I suspect a library difference between the two.  Are you relying
on any jars to be supplied by the container, rather than providing them as
part of your client?  If so, which ones?

- Peter

2009/8/17 Raphael Hürzeler 

> Hya Peter
>
> thanks for the quick response :-)
>
> 1) Vista 64bit, Tomcat 6.0.14, Security Manager not enabled, default local
> tomcat install for intial testing. Java Platform JDK 1.6. Netbeans 6.7
used
> for development and deployment.
>
> 2) Yep that's spot on - the services are hostet elsewhere (.net based) and
> are already being used with other clients.
>
> In the end the client will have to be deployed on a tomcat 6 server (not
> sure about the exact revision yet). Glassfish and the local tomcat install
> are just used for initial testing.
>
> - Raphael
>
> -Ursprüngliche Nachricht-
> Von: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com
> ]
> Im Auftrag von Peter Crowther
> Gesendet: Montag, 17. August 2009 11:31
> An: Tomcat Users List
> Betreff: Re: Problem with SOAP Response
>
> Raphael, could we just check a few things?
>
> 1) OS, Tomcat version, Java version?  Is the security manager enabled?
>  What
> (if any) of the default options have been changed on the Tomcat
> installation?
>
> 2) I think I read the following into your question: Your Web services are
> hosted somewhere else.  They're not on Tomcat, not in Glassfish, do not
> change, and are not part of the problem.  However, you're calling them
from
> a servlet hosted in Glassfish or Tomcat.  When the servlet is hosted in
> Glassfish, the calls work.  When the servlet is hosted in Tomcat, the
calls
> do not work.  Have I got this right?  If not, what is the real situation?
>
> - Peter
>
> 2009/8/17 Raphael Hürzeler 
>
> > Hya everyone,
> >
> > I'm pretty new to Tomcat and after much googling didn't yield anything
> that
> > helped me I'm trying my luck here ;-)
> >
> >
> >
> > My current problem is that I'm trying to access a Webservice (via wsdl,
> > classes are generated in netbeans, one custom binding was needed to
> resolve
> > a naming conflict in a response object)
> >
> >
> >
> > Headers are also modified to allow for 2 custom fields to be transmitted
> on
> > the request (the response doesn't contain these and we don't need them
> > either).
> >
> >
> >
> > The Request is being sent and the response is received on my end
(checked
> > with Wireshark).
> >
> > Tomcat seems to have a problem interpreting this response though:
> >
> >
> >
> > Exception: javax.xml.ws.soap.SOAPFaultException: MustUnderstand
> >
>
headers:[{http://www.w3.org/2005/08/addressing}Action
>  /08/addressing%7DAction 
> >]
> > are not understood
> >
> >
> >
> > I've done initial testing with glassfish and there everything works
> > perfectly.
> >
> >
> >
> > One difference I've also noticed between glassfish and tomcat is that on
> > tomcat some of the basic headers aren't being generated in the request
> (To
> > and Action), I've modified the headers accordingly to send these out
> (exact
> > copies of what glassfish generates automatically)
> >
> >
> >
> > Any thoughts or ideas on how to resolve this would be much appreciated.
> >
> >
> >
> > cheers,
> >
> > Raphael
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additio

Re: Multi-Level Context Paths

2009-08-17 Thread Ognjen Blagojevic

Try here:

  http://www.opensymphony.com/sitemesh/userForums.action

Regards,
Ognjen

Andy Ee wrote:

Hi Ognjen,

Are you able to advice the mailing list for sitemesh? Is it under Tomcat as
well?

Best Regards,
Andy Ee
 
 


-Original Message-
From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] 
Sent: Monday, August 17, 2009 7:31 PM

To: Tomcat Users List
Subject: Re: Multi-Level Context Paths

Hi Andy,

On Tomcat side everything seems to work just fine.

It seems that sitemash (wrongly) assumes the location of the file config 
file. Try on sitemesh forum/mailing list.


 > Caused by: com.opensymphony.module.sitemesh.factory.FactoryException: 
Could
 > not read config file : /WEB-INF/sitemesh.xml: 
java.io.FileNotFoundException:

 > /usr/local/apache-tomcat/webapps/sg (No such file or directory)

Regards,
Ognjen


Andy Ee wrote:

Hi Ognjen,

 


Thank you for your quick response!

 


I have undeployed the old application (test.war) under Tomcat Manager, as
well as renamed test.war to sg#server#test.war under webapps. Without the
need to restart Tomcat, I saw the new project directory created under
/webapps/sg#server#test after awhile.

 


I tried to access http://localhost:8080/sg/server/test but it doesn't

work.
 


Under catalina.out log:

 


INFO: Undeploying context [/test]

Aug 17, 2009 6:57:24 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive sg#server#test.war

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
StartupListener.contextInitialized(44) | initializing context...

AbandonedObjectPool is used
(org.apache.commons.dbcp.abandonedobjectp...@169be56)

   LogAbandoned: false

   RemoveAbandoned: true

   RemoveAbandonedTimeout: 60

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
DefaultValidatorFactory.setValidationConfigLocations(78) | Loading
validation configurations from [ServletContext resource
[/WEB-INF/validation.xml],ServletContext resource
[/WEB-INF/validator-rules.xml],ServletContext resource
[/WEB-INF/validator-rules-custom.xml]]

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
MS3Crypto.initParams(53) | Initializing crypto parameters.

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
MS3Crypto.initParams(80) | Raw Seed : [...@87c801

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
StartupListener.contextInitialized(95) | Remember Me Enabled? null

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
LocaleFilter.init(152) | Initializing filter 'localeFilter'

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
LocaleFilter.init(177) | Filter 'localeFilter' configured successfully

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
GZIPFilter.init(152) | Initializing filter 'compressionFilter'

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
GZIPFilter.init(177) | Filter 'compressionFilter' configured successfully

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start

SEVERE: Error filterStart

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/singapore/dbs/test] startup failed due to previous

errors
 


Under localhost log:

 


Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext

filterStart

SEVERE: Exception starting filter sitemesh

com.opensymphony.module.sitemesh.factory.FactoryException: Cannot

construct

Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory:
java.lang.reflect.InvocationTargetException

at

com.opensymphony.module.sitemesh.Factory.report(Factory.java:87)

at
com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:56)

at


com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:86)

at


org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter

Config.java:275)

at


org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil

terConfig.java:397)

at


org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon

fig.java:108)

at


org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:38

00)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)

at


org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7

91)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)

at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)

at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274)

at
org.apache.catalina.startup.HostC

RE: Multi-Level Context Paths

2009-08-17 Thread Andy Ee
Hi Mark,

Before I prepare my .war file, there is an existing META-INF/context.xml and
the content is,







Should I remove the path parameter and prepare the war file again?

With the path specified as /test, I am worried it will conflict how I setup
Multi-Level path.

Best Regards,
Andy Ee
 
 

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, August 17, 2009 7:04 PM
To: Tomcat Users List
Subject: Re: Multi-Level Context Paths

Andy Ee wrote:
> There is a new requirement to setup multi-level context path as in I need
> the URL to be  

Remove all the old files you no longer want:
$CATALINA_BASE/webapps/test.war
$CATALINA_BASE/conf/Catalina/localhost/test.xml
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

Rename your WAR to sg#server#test.war

Place your renamed war in:
$CATALINA_BASE/webapps/

Any META-INF/context.xml will be extracted to:
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

>  java.lang.IllegalArgumentException: Document base
> /usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
> readable directory

If Tomcat finds:
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

It expects to find a matching war
$CATALINA_BASE/webapps/sg#server#test.war
or directory
$CATALINA_BASE/webapps/sg#server#test

Mark



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



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



RE: Multi-Level Context Paths

2009-08-17 Thread Andy Ee
Hi Mark,

Please see my responses below. Thanks.

Best Regards,
Andy Ee
 
 

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, August 17, 2009 7:04 PM
To: Tomcat Users List
Subject: Re: Multi-Level Context Paths

Andy Ee wrote:
> There is a new requirement to setup multi-level context path as in I need
> the URL to be  

Remove all the old files you no longer want:
$CATALINA_BASE/webapps/test.war
$CATALINA_BASE/conf/Catalina/localhost/test.xml
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml


Andy: Yes, I have deleted all the unnecessary war files as well as the xml
files.


Rename your WAR to sg#server#test.war

Place your renamed war in:
$CATALINA_BASE/webapps/

Any META-INF/context.xml will be extracted to:
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

Andy: Yes, there is a file under my unpackaged sg#server#test.war. The file
is /usr/local/apache-tomcat/webapps/sg#server#test/META-INF/context.xml and
its content is:






I noticed that the context path is still /test. I have removed path="/test"
from the Context element. I done the same for
/usr/local/apache-tomcat/conf/Catalina/localhost/sg#server#test.xml and
restarted Tomcat.


Under catalina.log, I saw new errors:

INFO: Undeploying context [/sg/server/test]
Aug 17, 2009 7:30:09 PM org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
/usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:14
2)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:4048)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1337)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
Aug 17, 2009 7:30:09 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Aug 17, 2009 7:30:09 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Aug 17, 2009 7:30:09 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/sg/server/test] startup failed due to previous errors
Aug 17, 2009 7:30:09 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sg/server/te
st] has not been started
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working
directory.
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:1070)



>  java.lang.IllegalArgumentException: Document base
> /usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
> readable directory

If Tomcat finds:
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

It expects to find a matching war
$CATALINA_BASE/webapps/sg#server#test.war
or directory
$CATALINA_BASE/webapps/sg#server#test

Mark



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



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



RE: Multi-Level Context Paths

2009-08-17 Thread Andy Ee
Hi Ognjen,

Are you able to advice the mailing list for sitemesh? Is it under Tomcat as
well?

Best Regards,
Andy Ee
 
 

-Original Message-
From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] 
Sent: Monday, August 17, 2009 7:31 PM
To: Tomcat Users List
Subject: Re: Multi-Level Context Paths

Hi Andy,

On Tomcat side everything seems to work just fine.

It seems that sitemash (wrongly) assumes the location of the file config 
file. Try on sitemesh forum/mailing list.

 > Caused by: com.opensymphony.module.sitemesh.factory.FactoryException: 
Could
 > not read config file : /WEB-INF/sitemesh.xml: 
java.io.FileNotFoundException:
 > /usr/local/apache-tomcat/webapps/sg (No such file or directory)

Regards,
Ognjen


Andy Ee wrote:
> Hi Ognjen,
> 
>  
> 
> Thank you for your quick response!
> 
>  
> 
> I have undeployed the old application (test.war) under Tomcat Manager, as
> well as renamed test.war to sg#server#test.war under webapps. Without the
> need to restart Tomcat, I saw the new project directory created under
> /webapps/sg#server#test after awhile.
> 
>  
> 
> I tried to access http://localhost:8080/sg/server/test but it doesn't
work.
> 
>  
> 
> Under catalina.out log:
> 
>  
> 
> INFO: Undeploying context [/test]
> 
> Aug 17, 2009 6:57:24 PM org.apache.catalina.startup.HostConfig deployWAR
> 
> INFO: Deploying web application archive sg#server#test.war
> 
> [test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> StartupListener.contextInitialized(44) | initializing context...
> 
> AbandonedObjectPool is used
> (org.apache.commons.dbcp.abandonedobjectp...@169be56)
> 
>LogAbandoned: false
> 
>RemoveAbandoned: true
> 
>RemoveAbandonedTimeout: 60
> 
> [test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> DefaultValidatorFactory.setValidationConfigLocations(78) | Loading
> validation configurations from [ServletContext resource
> [/WEB-INF/validation.xml],ServletContext resource
> [/WEB-INF/validator-rules.xml],ServletContext resource
> [/WEB-INF/validator-rules-custom.xml]]
> 
> [test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> MS3Crypto.initParams(53) | Initializing crypto parameters.
> 
> [test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> MS3Crypto.initParams(80) | Raw Seed : [...@87c801
> 
> [test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> StartupListener.contextInitialized(95) | Remember Me Enabled? null
> 
> [test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> LocaleFilter.init(152) | Initializing filter 'localeFilter'
> 
> [test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> LocaleFilter.init(177) | Filter 'localeFilter' configured successfully
> 
> [test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> GZIPFilter.init(152) | Initializing filter 'compressionFilter'
> 
> [test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> GZIPFilter.init(177) | Filter 'compressionFilter' configured successfully
> 
> Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start
> 
> SEVERE: Error filterStart
> 
> Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start
> 
> SEVERE: Context [/singapore/dbs/test] startup failed due to previous
errors
> 
>  
> 
> Under localhost log:
> 
>  
> 
> Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext
filterStart
> 
> SEVERE: Exception starting filter sitemesh
> 
> com.opensymphony.module.sitemesh.factory.FactoryException: Cannot
construct
> Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory:
> java.lang.reflect.InvocationTargetException
> 
> at
com.opensymphony.module.sitemesh.Factory.report(Factory.java:87)
> 
> at
> com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:56)
> 
> at
>
com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:86)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
> Config.java:275)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
> terConfig.java:397)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
> fig.java:108)
> 
> at
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:38
> 00)
> 
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
> 
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
> 91)
> 
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> 
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> 
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
> 
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
> 
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfi

Re: Multi-Level Context Paths

2009-08-17 Thread Ognjen Blagojevic

Hi Andy,

On Tomcat side everything seems to work just fine.

It seems that sitemash (wrongly) assumes the location of the file config 
file. Try on sitemesh forum/mailing list.


> Caused by: com.opensymphony.module.sitemesh.factory.FactoryException: 
Could
> not read config file : /WEB-INF/sitemesh.xml: 
java.io.FileNotFoundException:

> /usr/local/apache-tomcat/webapps/sg (No such file or directory)

Regards,
Ognjen


Andy Ee wrote:

Hi Ognjen,

 


Thank you for your quick response!

 


I have undeployed the old application (test.war) under Tomcat Manager, as
well as renamed test.war to sg#server#test.war under webapps. Without the
need to restart Tomcat, I saw the new project directory created under
/webapps/sg#server#test after awhile.

 


I tried to access http://localhost:8080/sg/server/test but it doesn't work.

 


Under catalina.out log:

 


INFO: Undeploying context [/test]

Aug 17, 2009 6:57:24 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive sg#server#test.war

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
StartupListener.contextInitialized(44) | initializing context...

AbandonedObjectPool is used
(org.apache.commons.dbcp.abandonedobjectp...@169be56)

   LogAbandoned: false

   RemoveAbandoned: true

   RemoveAbandonedTimeout: 60

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
DefaultValidatorFactory.setValidationConfigLocations(78) | Loading
validation configurations from [ServletContext resource
[/WEB-INF/validation.xml],ServletContext resource
[/WEB-INF/validator-rules.xml],ServletContext resource
[/WEB-INF/validator-rules-custom.xml]]

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
MS3Crypto.initParams(53) | Initializing crypto parameters.

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
MS3Crypto.initParams(80) | Raw Seed : [...@87c801

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
StartupListener.contextInitialized(95) | Remember Me Enabled? null

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
LocaleFilter.init(152) | Initializing filter 'localeFilter'

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
LocaleFilter.init(177) | Filter 'localeFilter' configured successfully

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
GZIPFilter.init(152) | Initializing filter 'compressionFilter'

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
GZIPFilter.init(177) | Filter 'compressionFilter' configured successfully

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start

SEVERE: Error filterStart

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/singapore/dbs/test] startup failed due to previous errors

 


Under localhost log:

 


Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext filterStart

SEVERE: Exception starting filter sitemesh

com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct
Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory:
java.lang.reflect.InvocationTargetException

at com.opensymphony.module.sitemesh.Factory.report(Factory.java:87)

at
com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:56)

at
com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:86)

at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:275)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:397)

at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
fig.java:108)

at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:38
00)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)

at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)

at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1337)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1601)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundP

RE: Multi-Level Context Paths

2009-08-17 Thread Andy Ee
Hi Ognjen,

 

Thank you for your quick response!

 

I have undeployed the old application (test.war) under Tomcat Manager, as
well as renamed test.war to sg#server#test.war under webapps. Without the
need to restart Tomcat, I saw the new project directory created under
/webapps/sg#server#test after awhile.

 

I tried to access http://localhost:8080/sg/server/test but it doesn't work.

 

Under catalina.out log:

 

INFO: Undeploying context [/test]

Aug 17, 2009 6:57:24 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive sg#server#test.war

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
StartupListener.contextInitialized(44) | initializing context...

AbandonedObjectPool is used
(org.apache.commons.dbcp.abandonedobjectp...@169be56)

   LogAbandoned: false

   RemoveAbandoned: true

   RemoveAbandonedTimeout: 60

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
DefaultValidatorFactory.setValidationConfigLocations(78) | Loading
validation configurations from [ServletContext resource
[/WEB-INF/validation.xml],ServletContext resource
[/WEB-INF/validator-rules.xml],ServletContext resource
[/WEB-INF/validator-rules-custom.xml]]

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
MS3Crypto.initParams(53) | Initializing crypto parameters.

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
MS3Crypto.initParams(80) | Raw Seed : [...@87c801

[test] DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
StartupListener.contextInitialized(95) | Remember Me Enabled? null

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
LocaleFilter.init(152) | Initializing filter 'localeFilter'

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
LocaleFilter.init(177) | Filter 'localeFilter' configured successfully

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
GZIPFilter.init(152) | Initializing filter 'compressionFilter'

[test] INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
GZIPFilter.init(177) | Filter 'compressionFilter' configured successfully

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start

SEVERE: Error filterStart

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/singapore/dbs/test] startup failed due to previous errors

 

Under localhost log:

 

Aug 17, 2009 6:57:44 PM org.apache.catalina.core.StandardContext filterStart

SEVERE: Exception starting filter sitemesh

com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct
Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory:
java.lang.reflect.InvocationTargetException

at com.opensymphony.module.sitemesh.Factory.report(Factory.java:87)

at
com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:56)

at
com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:86)

at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:275)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:397)

at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
fig.java:108)

at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:38
00)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)

at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)

at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1337)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1601)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1610)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1590)

at java.lang.Thread.run(Thread.java:619)

 

Root cause:

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImp

Re: Multi-Level Context Paths

2009-08-17 Thread Mark Thomas
Andy Ee wrote:
> There is a new requirement to setup multi-level context path as in I need
> the URL to be  

Remove all the old files you no longer want:
$CATALINA_BASE/webapps/test.war
$CATALINA_BASE/conf/Catalina/localhost/test.xml
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

Rename your WAR to sg#server#test.war

Place your renamed war in:
$CATALINA_BASE/webapps/

Any META-INF/context.xml will be extracted to:
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

>  java.lang.IllegalArgumentException: Document base
> /usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
> readable directory

If Tomcat finds:
$CATALINA_BASE/conf/Catalina/localhost/sg#server#test.xml

It expects to find a matching war
$CATALINA_BASE/webapps/sg#server#test.war
or directory
$CATALINA_BASE/webapps/sg#server#test

Mark



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



Re: Multi-Level Context Paths

2009-08-17 Thread Ognjen Blagojevic

Hi Andy,

Try to undeploy the old application. Rename the test.war to 
sg#server#test.war, and deploy it.


Regards,
Ognjen

Andy Ee wrote:
 


Dear All,

 


I need an urgent help, and I hope you will shed some light to it.

 


I have recently installed Apache Tomcat version 6.0.20. I copied my project
file (test.war) under /usr/local/apache-tomcat-6.0.20/webapps/ and it
deployed successfully. I can access the site via the URL of
 http://localhost:8080/test/. For this example,
the context path simply follows the filename of the war file.

 


There is a new requirement to setup multi-level context path as in I need
the URL to be  
http://localhost:8080/sg/server/test/ instead. I read up your site and
confirmed that adding Context path within server.xml is not recommended. I
went ahead to make a copy of the existing test.xml to sg#server#test.xml
under /usr/local/apache-tomcat-6.0.20/conf/Catalina/localhost/. Then I
restarted Tomcat.

 


The content of sg#server#test is:

 




 






 


I restarted Tomcat but it gives errors under Catalina.out

 


Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext
resourcesStart

SEVERE: Error starting static Resources

java.lang.IllegalArgumentException: Document base
/usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
readable directory

at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:14
2)

at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:4048)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)

at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556
)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)

at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at
org.apache.catalina.core.StandardService.start(StandardService.java:516)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:583)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

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

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext start

SEVERE: Error in resourceStart()

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext start

SEVERE: Error getConfigured

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/sg/server/test] startup failed due to previous errors

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext stop

INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sg/server/te
st] has not been started

Aug 17, 2009 5:54:43 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-6060

Aug 17, 2009 5:54:43 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-6443

Aug 17, 2009 5:54:43 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:6009

Aug 17, 2009 5:54:43 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/40  config=null

Aug 17, 2009 5:54:43 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 18859 ms

 


I have searched the Internet and couldn't find any posts with solutions to
such issue. It seems that setting up multi-level context path in Tomcat 6 is
not so straight-forwarded.

 


Please kindly help, thanks.

 


Best Regards,
Andy Ee



 

 






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For addi

Multi-Level Context Paths

2009-08-17 Thread Andy Ee
 

Dear All,

 

I need an urgent help, and I hope you will shed some light to it.

 

I have recently installed Apache Tomcat version 6.0.20. I copied my project
file (test.war) under /usr/local/apache-tomcat-6.0.20/webapps/ and it
deployed successfully. I can access the site via the URL of
 http://localhost:8080/test/. For this example,
the context path simply follows the filename of the war file.

 

There is a new requirement to setup multi-level context path as in I need
the URL to be  
http://localhost:8080/sg/server/test/ instead. I read up your site and
confirmed that adding Context path within server.xml is not recommended. I
went ahead to make a copy of the existing test.xml to sg#server#test.xml
under /usr/local/apache-tomcat-6.0.20/conf/Catalina/localhost/. Then I
restarted Tomcat.

 

The content of sg#server#test is:

 



 





 

I restarted Tomcat but it gives errors under Catalina.out

 

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext
resourcesStart

SEVERE: Error starting static Resources

java.lang.IllegalArgumentException: Document base
/usr/local/apache-tomcat/webapps/sg#server#test does not exist or is not a
readable directory

at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:14
2)

at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:4048)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)

at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556
)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)

at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at
org.apache.catalina.core.StandardService.start(StandardService.java:516)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:583)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

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

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext start

SEVERE: Error in resourceStart()

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext start

SEVERE: Error getConfigured

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/sg/server/test] startup failed due to previous errors

Aug 17, 2009 5:54:43 PM org.apache.catalina.core.StandardContext stop

INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sg/server/te
st] has not been started

Aug 17, 2009 5:54:43 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-6060

Aug 17, 2009 5:54:43 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-6443

Aug 17, 2009 5:54:43 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:6009

Aug 17, 2009 5:54:43 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/40  config=null

Aug 17, 2009 5:54:43 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 18859 ms

 

I have searched the Internet and couldn't find any posts with solutions to
such issue. It seems that setting up multi-level context path in Tomcat 6 is
not so straight-forwarded.

 

Please kindly help, thanks.

 

Best Regards,
Andy Ee



 

 



Re: Problem with SOAP Response

2009-08-17 Thread Peter Crowther
OK.  Given that the client shows different behaviour between calls that
happen to be made from Tomcat and calls that happen to be made from
Glassfish, I suspect a library difference between the two.  Are you relying
on any jars to be supplied by the container, rather than providing them as
part of your client?  If so, which ones?

- Peter

2009/8/17 Raphael Hürzeler 

> Hya Peter
>
> thanks for the quick response :-)
>
> 1) Vista 64bit, Tomcat 6.0.14, Security Manager not enabled, default local
> tomcat install for intial testing. Java Platform JDK 1.6. Netbeans 6.7 used
> for development and deployment.
>
> 2) Yep that's spot on - the services are hostet elsewhere (.net based) and
> are already being used with other clients.
>
> In the end the client will have to be deployed on a tomcat 6 server (not
> sure about the exact revision yet). Glassfish and the local tomcat install
> are just used for initial testing.
>
> - Raphael
>
> -Ursprüngliche Nachricht-
> Von: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com
> ]
> Im Auftrag von Peter Crowther
> Gesendet: Montag, 17. August 2009 11:31
> An: Tomcat Users List
> Betreff: Re: Problem with SOAP Response
>
> Raphael, could we just check a few things?
>
> 1) OS, Tomcat version, Java version?  Is the security manager enabled?
>  What
> (if any) of the default options have been changed on the Tomcat
> installation?
>
> 2) I think I read the following into your question: Your Web services are
> hosted somewhere else.  They're not on Tomcat, not in Glassfish, do not
> change, and are not part of the problem.  However, you're calling them from
> a servlet hosted in Glassfish or Tomcat.  When the servlet is hosted in
> Glassfish, the calls work.  When the servlet is hosted in Tomcat, the calls
> do not work.  Have I got this right?  If not, what is the real situation?
>
> - Peter
>
> 2009/8/17 Raphael Hürzeler 
>
> > Hya everyone,
> >
> > I'm pretty new to Tomcat and after much googling didn't yield anything
> that
> > helped me I'm trying my luck here ;-)
> >
> >
> >
> > My current problem is that I'm trying to access a Webservice (via wsdl,
> > classes are generated in netbeans, one custom binding was needed to
> resolve
> > a naming conflict in a response object)
> >
> >
> >
> > Headers are also modified to allow for 2 custom fields to be transmitted
> on
> > the request (the response doesn't contain these and we don't need them
> > either).
> >
> >
> >
> > The Request is being sent and the response is received on my end (checked
> > with Wireshark).
> >
> > Tomcat seems to have a problem interpreting this response though:
> >
> >
> >
> > Exception: javax.xml.ws.soap.SOAPFaultException: MustUnderstand
> >
> headers:[{http://www.w3.org/2005/08/addressing}Action
>  /08/addressing%7DAction 
> >]
> > are not understood
> >
> >
> >
> > I've done initial testing with glassfish and there everything works
> > perfectly.
> >
> >
> >
> > One difference I've also noticed between glassfish and tomcat is that on
> > tomcat some of the basic headers aren't being generated in the request
> (To
> > and Action), I've modified the headers accordingly to send these out
> (exact
> > copies of what glassfish generates automatically)
> >
> >
> >
> > Any thoughts or ideas on how to resolve this would be much appreciated.
> >
> >
> >
> > cheers,
> >
> > Raphael
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


AW: Problem with SOAP Response

2009-08-17 Thread Raphael Hürzeler
Hya Peter

thanks for the quick response :-)

1) Vista 64bit, Tomcat 6.0.14, Security Manager not enabled, default local
tomcat install for intial testing. Java Platform JDK 1.6. Netbeans 6.7 used
for development and deployment.

2) Yep that's spot on - the services are hostet elsewhere (.net based) and
are already being used with other clients.

In the end the client will have to be deployed on a tomcat 6 server (not
sure about the exact revision yet). Glassfish and the local tomcat install
are just used for initial testing.

- Raphael

-Ursprüngliche Nachricht-
Von: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com]
Im Auftrag von Peter Crowther
Gesendet: Montag, 17. August 2009 11:31
An: Tomcat Users List
Betreff: Re: Problem with SOAP Response

Raphael, could we just check a few things?

1) OS, Tomcat version, Java version?  Is the security manager enabled?  What
(if any) of the default options have been changed on the Tomcat
installation?

2) I think I read the following into your question: Your Web services are
hosted somewhere else.  They're not on Tomcat, not in Glassfish, do not
change, and are not part of the problem.  However, you're calling them from
a servlet hosted in Glassfish or Tomcat.  When the servlet is hosted in
Glassfish, the calls work.  When the servlet is hosted in Tomcat, the calls
do not work.  Have I got this right?  If not, what is the real situation?

- Peter

2009/8/17 Raphael Hürzeler 

> Hya everyone,
>
> I'm pretty new to Tomcat and after much googling didn't yield anything
that
> helped me I'm trying my luck here ;-)
>
>
>
> My current problem is that I'm trying to access a Webservice (via wsdl,
> classes are generated in netbeans, one custom binding was needed to
resolve
> a naming conflict in a response object)
>
>
>
> Headers are also modified to allow for 2 custom fields to be transmitted
on
> the request (the response doesn't contain these and we don't need them
> either).
>
>
>
> The Request is being sent and the response is received on my end (checked
> with Wireshark).
>
> Tomcat seems to have a problem interpreting this response though:
>
>
>
> Exception: javax.xml.ws.soap.SOAPFaultException: MustUnderstand
>
headers:[{http://www.w3.org/2005/08/addressing}Action]
> are not understood
>
>
>
> I've done initial testing with glassfish and there everything works
> perfectly.
>
>
>
> One difference I've also noticed between glassfish and tomcat is that on
> tomcat some of the basic headers aren't being generated in the request (To
> and Action), I've modified the headers accordingly to send these out
(exact
> copies of what glassfish generates automatically)
>
>
>
> Any thoughts or ideas on how to resolve this would be much appreciated.
>
>
>
> cheers,
>
> Raphael
>
>
>
>


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



Re: Problem with SOAP Response

2009-08-17 Thread Peter Crowther
Raphael, could we just check a few things?

1) OS, Tomcat version, Java version?  Is the security manager enabled?  What
(if any) of the default options have been changed on the Tomcat
installation?

2) I think I read the following into your question: Your Web services are
hosted somewhere else.  They're not on Tomcat, not in Glassfish, do not
change, and are not part of the problem.  However, you're calling them from
a servlet hosted in Glassfish or Tomcat.  When the servlet is hosted in
Glassfish, the calls work.  When the servlet is hosted in Tomcat, the calls
do not work.  Have I got this right?  If not, what is the real situation?

- Peter

2009/8/17 Raphael Hürzeler 

> Hya everyone,
>
> I'm pretty new to Tomcat and after much googling didn't yield anything that
> helped me I'm trying my luck here ;-)
>
>
>
> My current problem is that I'm trying to access a Webservice (via wsdl,
> classes are generated in netbeans, one custom binding was needed to resolve
> a naming conflict in a response object)
>
>
>
> Headers are also modified to allow for 2 custom fields to be transmitted on
> the request (the response doesn't contain these and we don't need them
> either).
>
>
>
> The Request is being sent and the response is received on my end (checked
> with Wireshark).
>
> Tomcat seems to have a problem interpreting this response though:
>
>
>
> Exception: javax.xml.ws.soap.SOAPFaultException: MustUnderstand
> headers:[{http://www.w3.org/2005/08/addressing}Action]
> are not understood
>
>
>
> I've done initial testing with glassfish and there everything works
> perfectly.
>
>
>
> One difference I've also noticed between glassfish and tomcat is that on
> tomcat some of the basic headers aren't being generated in the request (To
> and Action), I've modified the headers accordingly to send these out (exact
> copies of what glassfish generates automatically)
>
>
>
> Any thoughts or ideas on how to resolve this would be much appreciated.
>
>
>
> cheers,
>
> Raphael
>
>
>
>


Problem with SOAP Response

2009-08-17 Thread Raphael Hürzeler
Hya everyone,

I'm pretty new to Tomcat and after much googling didn't yield anything that
helped me I'm trying my luck here ;-)

 

My current problem is that I'm trying to access a Webservice (via wsdl,
classes are generated in netbeans, one custom binding was needed to resolve
a naming conflict in a response object)

 

Headers are also modified to allow for 2 custom fields to be transmitted on
the request (the response doesn't contain these and we don't need them
either).

 

The Request is being sent and the response is received on my end (checked
with Wireshark).

Tomcat seems to have a problem interpreting this response though:

 

Exception: javax.xml.ws.soap.SOAPFaultException: MustUnderstand
headers:[{http://www.w3.org/2005/08/addressing}Action] are not understood

 

I've done initial testing with glassfish and there everything works
perfectly.

 

One difference I've also noticed between glassfish and tomcat is that on
tomcat some of the basic headers aren't being generated in the request (To
and Action), I've modified the headers accordingly to send these out (exact
copies of what glassfish generates automatically)

 

Any thoughts or ideas on how to resolve this would be much appreciated.

 

cheers,

Raphael

 



Re: Tomcat 6 clustering and engine's defaulthost

2009-08-17 Thread Ossi
Oh, I think you got me wrong. As I said, by "non-existing name" I meant a
DNS name or definition in /etc/hosts file, something that is known to ie.
OS.
In all examples there were either "localhost" or "www.somesite.tld", so I
thought that it needs to be either DNS or /etc/hosts.

But it seem that as long as Engine's defaulthost has same name/character
string than Host element host has and that same name is used in all
instances of cluster
everything is fine as long there is ie. Apache httpd taking care of virtual
hosts, if there is any.

Anyway, below is the config of tomcat1. Tomcat2 has same config, but string
tomcat2 instead of tomcat1.





  
  
  
  

  

  

  








  

  




  



  

  
  

  
  


  

  



  
   
  

  


  



Regards,
Ossi

PS: I tried to send this on last week, but noticed only now that this hit
some spam filter, let's see if it is accepted now, after slight changes.


Re: Running multiple tomcat instances with Tomcat 6.0.14

2009-08-17 Thread Mark Thomas
azharalibuttar wrote:
> 
> 
> Mark Thomas-23 wrote:
>> azharalibuttar wrote:
>>> Hi,
>>>
>>> Thanks for sharing a very valuable information with the users of apache
>>> tomcat but there is also a very simple way to run multiple instances of
>>> apache tomcat 6 given in the post on under given blog;
>>>
>>> http://www.itoperationz.com/2009/07/multiple-instances-of-apache-tomcat-6-on-debain5-lenny/
>> That isn't great advice. There are much better ways to run multiple
>> instances that to just do multiple installations.
>>
>> Mark
>>
> Thanks for sharing your precious comments about my post. Is it possible for
> you to share some of your configuration Ideas to run multiple instances of
> Apache Tomcat without installing multiple apache tomcat?

As Chuck already pointed out elsewhere on this thread, this is described
in RUNNING.txt

Mark



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



Re: jnlp-file doesn't work

2009-08-17 Thread Mark Thomas
Andreas Junius wrote:
 > And now everything works fine! But it shouldn't be neccessary to write a
> servlet for such a simple task. The fault must be somewhere in my config
> files for the Tomcat. Does anybody know where the problem may be?

Use ieHttpHeaders / fiddler / LiveHttpheaders to compare the two
requests and responses.

Mark




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