Re: myeclipse and tomcat

2010-04-23 Thread Christoph Kukulies

Ken Bowen schrieb:

I'm not sure I understand your question.
But first,  are you using plain Eclipse, or MyEclipse?  (I use the 
latter)


I'm using MyEclipse as well.



Do you mean:  Using MyEclipse configured so that it is using an 
external Tomcat server, NOT the included myEclipse Tomcat server?



Yes, that's what I mean.  I had a Tomcat 6.0 running on my notebook and 
when I first time installed MyEclipse, the built in Tomcat
could not run (port conflict on 8080) and I had to stop my external 
Tomcat to make the example running. 
(http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html)


I would also prefer to deploy to the external Tomcat.
--
Christoph



I've never used the included myEclipse server, only external servers.

--Ken

On Apr 22, 2010, at 9:17 AM, Christoph Kukulies wrote:

I'm playing a bit with myeclipse and I'm wondering whether anyone on 
this list here is using it with Tomcat
as application server running other apps, rather than using tomcat 
from within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies




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



Re: Session Timeout - Filter Not Called

2010-04-23 Thread Pid
On 22/04/2010 22:24, Paul Carroll wrote:
 Yes.  I put the session marker in my filter and I perform a simple check each 
 time through the filter to determine if the marker exists and to check if it 
 equals the current session id.

The session id itself may change during login, so I'm not sure if you
should rely on this.  Since Tomcat 6.0.21

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


p

 Thanks.
 
 --- ch...@christopherschultz.net wrote:
 
 From: Christopher Schultz ch...@christopherschultz.net
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Session Timeout - Filter Not Called
 Date: Thu, 22 Apr 2010 16:45:10 -0400
 
 Paul,
 
 On 4/22/2010 2:44 PM, Paul Carroll wrote:
 I guess what I really need to be able to do is determine when a user creates 
 a new session.  This could either be done by the user opening the browser 
 and browse to our application where the user logs in and the new session is 
 created.  Or the user's session times out and the user is presented with our 
 login page and the user will login and a new session is created.
 
 I think Bob's suggestion that you use a session marker variable will
 take care of this for you, no?
 
 
 --- rfha...@yahoo.com wrote:
 
 From: Bob Hall rfha...@yahoo.com
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Session Timeout - Filter Not Called
 Date: Mon, 12 Apr 2010 23:58:45 -0700 (PDT)
 
 Paul,
 
 --- On Mon, 4/12/10 at 7:21 AM, Paul Carroll pcarr...@nfmail.net wrote:
 
 That works in that my filter is
 called when the session times out and the user is redirected
 to the login page.  However, the Referer header makes
 no indication that the user is logging in.
 
 What does the referrer header contain?
 
 If the request URI is not null, then I can redirect them to the requested
 URI if it has been determined that it is a safe area that
 does not need any session variables established.  Is
 there a way to determine if the user's session has timed out
 and the user is logging in once again?
 
 Check for the session variables that would have been set?
 
 - Bob
 
 
 
 
 -
 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




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





signature.asc
Description: OpenPGP digital signature


multiple servers (Roots)

2010-04-23 Thread Christoph Kukulies

AFAIU tomcat 6 allows for having multiple server roots, correct?
Is there a tutorial for setting this up?

--
Christoph Kukulies



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



Multiple catalina bases and monitoring each instance

2010-04-23 Thread Ziggy
Hi guys,

Is there a way to monitor multiple tomcat instances? I have managed to
configure multiple tomcat instances using $CATALINA_BASE but i cant seem to
be able to find a way to monitor the instances. I know about the tomcat
manager, admin and the Tomcat Probe/lambda applications. These will all only
monitor a single instance of a running tomcat.

Is there a way i can monitor all running instances from one tomcat instance?

Thanks


Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Pid
On 23/04/2010 03:48, Godmar Back wrote:
 Following up on an earlier conversation about how to obtain notification
 when a WebApp is unloaded/reloaded [1], I was told that registering a
 ServletContextListener is the only possibility (that is, there is no runtime
 API.)
 
 However, registering a ServletContextListener doesn't work and leads to me
 being unable to start the web application.
 
 To recap: I have an application with context reloadable=true. I continuously
 recompile this application during development. The application starts a
 worker thread I need to shut down when a newly compiled version of the
 application is loaded (that is, when new versions of the .class files show
 up in the WEB-INF/classes directory.
 
 Right now, I'm getting messages that the listener class is missing (it isn't
 - it's just a new .class file after recompilation.)
 
 Apr 22, 2010 10:31:25 PM org.apache.catalina.loader.WebappClassLoader
 modified
 SEVERE: Resource
 '/WEB-INF/classes/org/libx/editionbuilder/GCHelper$ShutdownListener.class'
 is missing
 Apr 22, 2010 10:31:25 PM org.apache.catalina.core.StandardContext reload
 INFO: Reloading this Context has started
 Apr 22, 2010 10:31:25 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Apr 22, 2010 10:31:25 PM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/gbed] startup failed due to previous errors
 
 My web.xml contains:
 listener
 
 listener-classorg.libx.editionbuilder.GCHelper$ShutdownListener/listener-class
 /listener

I think the class needs to be a top level class with a parameter free
constructor.


p

 So - what is the correct way to register a listener that is executed when an
 application is reloaded due to a recompilation?
 
 Does Tomcat get confused when the listener class itself is part of the
 to-be-reloaded web application?
 
 Thanks.
 
  - Godmar
 
 
 [1] See
 http://mail-archives.apache.org/mod_mbox/tomcat-users/201004.mbox/%3cu2s719dced31004132122oc656c456ya25e1a4ba4d4a...@mail.gmail.com%3e
 and the messages in that thread.
 
 -- Forwarded message --
 From: Godmar Back god...@gmail.com
 Date: Wed, Apr 14, 2010 at 10:20 AM
 Subject: Re: Q: how to obtain notification when a WebApp is
 unloaded/reloaded?
 To: Tomcat Users List users@tomcat.apache.org
 
 
 On Wed, Apr 14, 2010 at 10:12 AM, Pid p...@pidster.com wrote:
 
 For instance, if you look at

 http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html
 it says:

 To recieve (sic) notification events, the implementation class must be
 configured in the deployment descriptor for the web application.

 Web applications are largely configured by the web.xml file in
 app/WEB-INF.  Servlets, listeners etc are all configured in it.


 Thank you for your confirmation.  I thought I was going nuts, after having
 waded through various *Facade classes, hoping to find an API method I could
 call at runtime.
 
 I have added a ServletContextListener, but it is very much a solution I
 strongly dislike. The reason is that my application is layered on top of
 another application (ZK), and I don't really want to touch web.xml.
 'web.xml' describes how ZK is configured to run inside Tomcat or another
 J2EE server. My applications runs on top of ZK, and having to go and made
 changes to the underlying deployment descriptor violates basic principles of
 layering.
 
 It also creates a maintenance problem (unless an application can have
 multiple .xml files that are combined to form a deployment descriptor).
 Whenever ZK is updated, a new version of web.xml will be installed, and I
 would then have to merge my listener declaration into the new file.
 
 Just out of curiosity, what is the rationale for the (apparently deliberate)
 lack of an runtime API?
 
  - Godmar
 




signature.asc
Description: OpenPGP digital signature


Re: multiple servers (Roots)

2010-04-23 Thread Pid
On 23/04/2010 10:57, Christoph Kukulies wrote:
 AFAIU tomcat 6 allows for having multiple server roots, correct?

Do you mean multiple virtual hosts, or do you mean multiple separate
instances of Tomcat, (which may each have multiple virtual hosts)?

 Is there a tutorial for setting this up?

There's plenty of documentation, at:

 http://tomcat.apache.org/tomcat-6.0-doc/config/index.html


p


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




signature.asc
Description: OpenPGP digital signature


Re: Multiple catalina bases and monitoring each instance

2010-04-23 Thread Pid
On 23/04/2010 11:00, Ziggy wrote:
 Hi guys,
 
 Is there a way to monitor multiple tomcat instances? I have managed to
 configure multiple tomcat instances using $CATALINA_BASE but i cant seem to
 be able to find a way to monitor the instances. I know about the tomcat
 manager, admin and the Tomcat Probe/lambda applications. These will all only
 monitor a single instance of a running tomcat.
 
 Is there a way i can monitor all running instances from one tomcat instance?

Tomcat only provides the manager app, which operates on a per Host basis.


p




signature.asc
Description: OpenPGP digital signature


Re: Multiple catalina bases and monitoring each instance

2010-04-23 Thread Harry Metske
It depends on what you mean with monitor.
We use nagios (http://www.nagios.org) to monitor multiple Tomcat instances.
You can do a plain check for an open socket, or call Tomcat's jmx proxy over
http(s) to query Tomcat's mbeans.

regards,
Harry

2010/4/23 Ziggy zigg...@gmail.com

 Hi guys,

 Is there a way to monitor multiple tomcat instances? I have managed to
 configure multiple tomcat instances using $CATALINA_BASE but i cant seem to
 be able to find a way to monitor the instances. I know about the tomcat
 manager, admin and the Tomcat Probe/lambda applications. These will all
 only
 monitor a single instance of a running tomcat.

 Is there a way i can monitor all running instances from one tomcat
 instance?

 Thanks



Mike Wilde is out of the office.

2010-04-23 Thread Michael Wilde

I will be out of the office starting  23/04/2010 and will not return until
11/05/2010.

If you have any urgent production Healthcare issues please contact Iain B
Miller.

Please raise incidents in the TST DBAMR USD queue or for 3 day turnaround
issues/enquiries please send an email to the TST DBAMR mailbox.


Re: multiple servers (Roots)

2010-04-23 Thread Christoph Kukulies

Pid schrieb:

On 23/04/2010 10:57, Christoph Kukulies wrote:
  

AFAIU tomcat 6 allows for having multiple server roots, correct?



Do you mean multiple virtual hosts, or do you mean multiple separate
instances of Tomcat, (which may each have multiple virtual hosts)?
  


I mean multiple separate instances.
  

Is there a tutorial for setting this up?



There's plenty of documentation, at:

 http://tomcat.apache.org/tomcat-6.0-doc/config/index.html
  

Thanks.

--
Christoph Kukulies


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



Re: myeclipse and tomcat

2010-04-23 Thread Ken Bowen


On the MyEclipse Toolbar:

Run/Stop/Restart MyEclipse ServersConfigure Server

Then click Servers.  Click Tomcat in the dropdown list.
Select Tomcat 6 in that dropdown list.

On the Tomcat home directory line, Browse to the location of your  
external Tomcat.  If you have a default installation, the paths for  
the base  temp directories will be filled in automatically.


You can also supply optional program arguements.

Click the Enable radio button.

In the dropdown list where you selected Tomcat 6 (above), you can  
click on the arrow next
to Tomcat 6 to open a subsidiary dropdown list.  You can use this to  
specify a particular

JVM, create a launch config, etc.

After clicking OK, a Tomcat 6 launch will show under Run/Stop/Restart  
MyEclipse Servers

on the toolbar.  Use this to start/stop Tomcat.

I find that a wide range of Java/Javascript/JSP/CSS edits are hot- 
loaded to the running Tomcat

, and it'll tell you when it can't hot load Java edits.

Regards,
Ken
~
~
~
~
myecl-howto 25L, 958C written

On Apr 23, 2010, at 3:27 AM, Christoph Kukulies wrote:


Ken Bowen schrieb:

I'm not sure I understand your question.
But first,  are you using plain Eclipse, or MyEclipse?  (I use the  
latter)


I'm using MyEclipse as well.



Do you mean:  Using MyEclipse configured so that it is using an  
external Tomcat server, NOT the included myEclipse Tomcat server?



Yes, that's what I mean.  I had a Tomcat 6.0 running on my notebook  
and when I first time installed MyEclipse, the built in Tomcat
could not run (port conflict on 8080) and I had to stop my external  
Tomcat to make the example running. (http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html 
)


I would also prefer to deploy to the external Tomcat.
--
Christoph



I've never used the included myEclipse server, only external servers.

--Ken

On Apr 22, 2010, at 9:17 AM, Christoph Kukulies wrote:

I'm playing a bit with myeclipse and I'm wondering whether anyone  
on this list here is using it with Tomcat
as application server running other apps, rather than using tomcat  
from within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies




-
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: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Propes, Barry L
Mine (notification) tells me in the logs when this occurs. 

-Original Message-
From: Godmar Back [mailto:god...@gmail.com] 
Sent: Thursday, April 22, 2010 9:48 PM
To: Tomcat Users List
Subject: Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

Following up on an earlier conversation about how to obtain notification when a 
WebApp is unloaded/reloaded [1], I was told that registering a 
ServletContextListener is the only possibility (that is, there is no runtime
API.)

However, registering a ServletContextListener doesn't work and leads to me 
being unable to start the web application.

To recap: I have an application with context reloadable=true. I continuously 
recompile this application during development. The application starts a worker 
thread I need to shut down when a newly compiled version of the application is 
loaded (that is, when new versions of the .class files show up in the 
WEB-INF/classes directory.

Right now, I'm getting messages that the listener class is missing (it isn't
- it's just a new .class file after recompilation.)

Apr 22, 2010 10:31:25 PM org.apache.catalina.loader.WebappClassLoader
modified
SEVERE: Resource
'/WEB-INF/classes/org/libx/editionbuilder/GCHelper$ShutdownListener.class'
is missing
Apr 22, 2010 10:31:25 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started Apr 22, 2010 10:31:25 PM 
org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 22, 2010 10:31:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/gbed] startup failed due to previous errors

My web.xml contains:
listener

listener-classorg.libx.editionbuilder.GCHelper$ShutdownListener/listener-class
/listener

So - what is the correct way to register a listener that is executed when an 
application is reloaded due to a recompilation?

Does Tomcat get confused when the listener class itself is part of the 
to-be-reloaded web application?

Thanks.

 - Godmar


[1] See
http://mail-archives.apache.org/mod_mbox/tomcat-users/201004.mbox/%3cu2s719dced31004132122oc656c456ya25e1a4ba4d4a...@mail.gmail.com%3e
and the messages in that thread.

-- Forwarded message --
From: Godmar Back god...@gmail.com
Date: Wed, Apr 14, 2010 at 10:20 AM
Subject: Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?
To: Tomcat Users List users@tomcat.apache.org


On Wed, Apr 14, 2010 at 10:12 AM, Pid p...@pidster.com wrote:

  For instance, if you look at
 
 http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/Servlet
 ContextListener.html
  it says:
 
  To recieve (sic) notification events, the implementation class must 
  be configured in the deployment descriptor for the web application.

 Web applications are largely configured by the web.xml file in 
 app/WEB-INF.  Servlets, listeners etc are all configured in it.


Thank you for your confirmation.  I thought I was going nuts, after having 
waded through various *Facade classes, hoping to find an API method I could 
call at runtime.

I have added a ServletContextListener, but it is very much a solution I 
strongly dislike. The reason is that my application is layered on top of 
another application (ZK), and I don't really want to touch web.xml.
'web.xml' describes how ZK is configured to run inside Tomcat or another J2EE 
server. My applications runs on top of ZK, and having to go and made changes to 
the underlying deployment descriptor violates basic principles of layering.

It also creates a maintenance problem (unless an application can have multiple 
.xml files that are combined to form a deployment descriptor).
Whenever ZK is updated, a new version of web.xml will be installed, and I would 
then have to merge my listener declaration into the new file.

Just out of curiosity, what is the rationale for the (apparently deliberate) 
lack of an runtime API?

 - Godmar

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



Re: myeclipse and tomcat

2010-04-23 Thread Christoph Kukulies

Ken Bowen schrieb:


On the MyEclipse Toolbar:

Run/Stop/Restart MyEclipse ServersConfigure Server
Aaahhh! I see. There is the MyEclipse Tomcat enabled. I probably have to 
disable this one.




Then click Servers.  Click Tomcat in the dropdown list.
Select Tomcat 6 in that dropdown list.

On the Tomcat home directory line, Browse to the location of your 
external Tomcat.  If you have a default installation, the paths for 
the base  temp directories will be filled in automatically.


You can also supply optional program arguements.

Click the Enable radio button.


Will experiment with this. My Tomcat 6 external server already hosts 
OpenCMS as a ROOT application. Hope I can get it work

together with MyEclipse. But anyway, I guess I'm getting further now.

Thanks again,

--
Christoph



In the dropdown list where you selected Tomcat 6 (above), you can 
click on the arrow next
to Tomcat 6 to open a subsidiary dropdown list.  You can use this to 
specify a particular

JVM, create a launch config, etc.

After clicking OK, a Tomcat 6 launch will show under Run/Stop/Restart 
MyEclipse Servers

on the toolbar.  Use this to start/stop Tomcat.

I find that a wide range of Java/Javascript/JSP/CSS edits are 
hot-loaded to the running Tomcat

, and it'll tell you when it can't hot load Java edits.

Regards,
Ken
~
~
~
~
myecl-howto 25L, 958C written

On Apr 23, 2010, at 3:27 AM, Christoph Kukulies wrote:


Ken Bowen schrieb:

I'm not sure I understand your question.
But first,  are you using plain Eclipse, or MyEclipse?  (I use the 
latter)


I'm using MyEclipse as well.



Do you mean:  Using MyEclipse configured so that it is using an 
external Tomcat server, NOT the included myEclipse Tomcat server?



Yes, that's what I mean.  I had a Tomcat 6.0 running on my notebook 
and when I first time installed MyEclipse, the built in Tomcat
could not run (port conflict on 8080) and I had to stop my external 
Tomcat to make the example running. 
(http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html) 



I would also prefer to deploy to the external Tomcat.
--
Christoph



I've never used the included myEclipse server, only external servers.

--Ken

On Apr 22, 2010, at 9:17 AM, Christoph Kukulies wrote:

I'm playing a bit with myeclipse and I'm wondering whether anyone 
on this list here is using it with Tomcat
as application server running other apps, rather than using tomcat 
from within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies




-
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




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



Re: multiple servers (Roots)

2010-04-23 Thread Pid
On 23/04/2010 13:42, Christoph Kukulies wrote:
 Pid schrieb:
 On 23/04/2010 10:57, Christoph Kukulies wrote:
  
 AFAIU tomcat 6 allows for having multiple server roots, correct?
 

 Do you mean multiple virtual hosts, or do you mean multiple separate
 instances of Tomcat, (which may each have multiple virtual hosts)?
   
 
 I mean multiple separate instances.
  
 Is there a tutorial for setting this up?
 

 There's plenty of documentation, at:

  http://tomcat.apache.org/tomcat-6.0-doc/config/index.html

Also see the RUNNING.txt file in the Tomcat installation dir.


p

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




signature.asc
Description: OpenPGP digital signature


log4j email appender and hostname

2010-04-23 Thread Curtis Garman
Does anyone know if it is possible to access the HOSTNAME environment
variable in a log4j.properties file. Basically I'm using the email appender
and would like to include the host in the email subject line so I can easily
determine which server generated the email. I can hard-code this info but I
was thinking there might be a way that tomcat can read something like

log4j.appender.email.subject=Java Application Error (${HOSTNAME})

-- 
Curtis Garman


Mod_jk 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on ubuntu 'karmic'

2010-04-23 Thread Klemens Muthmann

Hi

I hope this is the correct mailing list for this question. I have a 
problem setting up the configuration as described in the subject of this 
mail. I did the following:


- Installed apache2 from the ubuntu repository (synaptic states the 
version as 2.2.12-1ubuntu2.2)
- Installed mod_jk from the ubuntu repository (synaptic states the 
version as 1:1.2.26-2.1)
- Installed tomcat 2.0.26 manually (just unzipped the package from the 
download area to /opt)


Individually apache and tomcat run fine and both make several web 
applications (apache: mantis, myphpadmin and wordpress; tomcat: hudson 
and nexus) available. However now I need to make the tomcat applications 
available over port 80 so I tried to configure mod_jk but it does not 
work. I already did this successfully several years ago under Windows 
but with these Ubuntu packages I am already trying the whole day without 
any real progress.


Currently the configuration looks like:
- There is a symbolic link to jk.load file in /etc/apache2/mods-enabled 
with content:

   LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

- httpd.conf is loaded in apache2.conf (after jk.load) via: Include 
/etc/apache2/httpd.conf and has the following content:

   JkWorkersFile   /etc/libapache2-mod-jk/workers.properties
   JkLogFile   /var/log/apache2/mod_jk.log
   JkLogLevel  debug
   JkMount /nexus/* ajp13_worker

- workers.properties is in /etc/libapache2-mod-jk
   workers.tomcat_home=/opt/tomcat26
   workers.java_home=/usr/lib/jvm/java-6-openjdk
   ps=/
   worker.list=ajp13_worker
   worker.ajp13_worker.port=8009
   worker.ajp13_worker.host=localhost
   worker.ajp13_worker.type=ajp13
   worker.ajp13_worker.lbfactor=1
   worker.loadbalancer.type=lb
   worker.loadbalancer.balance_workers=ajp13_worker

I checked the connector port in tomcats server.xml. It is the correct 
one (8009) for ajp13. But I get no access to the nexus application on 
port 80 (also tried several different URL patterns with JkMount). So I 
turned on debugging output for the mod_jk.log. There is much output, but 
I think the relevant error messages are:
   [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug] 
jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/
   [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug] 
jk_map_to_storage::mod_jk.c (3195): missing uri map for 127.0.1.1:/nexus/
There I am at the end of my wits. I have absolutely no idea what these 
messages mean and Google produces no helpful tipps either. Does anyone 
on this list have any ideas?


Regards
   Klemens




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

Re: myeclipse and tomcat

2010-04-23 Thread Ken Bowen


On Apr 23, 2010, at 10:49 AM, Christoph Kukulies wrote:


Ken Bowen schrieb:


On the MyEclipse Toolbar:

Run/Stop/Restart MyEclipse ServersConfigure Server
Aaahhh! I see. There is the MyEclipse Tomcat enabled. I probably  
have to disable this one.




Then click Servers.  Click Tomcat in the dropdown list.
Select Tomcat 6 in that dropdown list.

On the Tomcat home directory line, Browse to the location of your  
external Tomcat.  If you have a default installation, the paths for  
the base  temp directories will be filled in automatically.


You can also supply optional program arguements.

Click the Enable radio button.


Will experiment with this. My Tomcat 6 external server already hosts  
OpenCMS as a ROOT application. Hope I can get it work

together with MyEclipse. But anyway, I guess I'm getting further now.


You can run multiple web apps alongside the ROOT app.  I just drop  
them in the webspps folder.




Thanks again,

--
Christoph



In the dropdown list where you selected Tomcat 6 (above), you can  
click on the arrow next
to Tomcat 6 to open a subsidiary dropdown list.  You can use this  
to specify a particular

JVM, create a launch config, etc.

After clicking OK, a Tomcat 6 launch will show under Run/Stop/ 
Restart MyEclipse Servers

on the toolbar.  Use this to start/stop Tomcat.

I find that a wide range of Java/Javascript/JSP/CSS edits are hot- 
loaded to the running Tomcat

, and it'll tell you when it can't hot load Java edits.

Regards,
Ken
~
~
~
~
myecl-howto 25L, 958C written

On Apr 23, 2010, at 3:27 AM, Christoph Kukulies wrote:


Ken Bowen schrieb:

I'm not sure I understand your question.
But first,  are you using plain Eclipse, or MyEclipse?  (I use  
the latter)


I'm using MyEclipse as well.



Do you mean:  Using MyEclipse configured so that it is using an  
external Tomcat server, NOT the included myEclipse Tomcat server?



Yes, that's what I mean.  I had a Tomcat 6.0 running on my  
notebook and when I first time installed MyEclipse, the built in  
Tomcat
could not run (port conflict on 8080) and I had to stop my  
external Tomcat to make the example running. (http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/index.html 
)


I would also prefer to deploy to the external Tomcat.
--
Christoph



I've never used the included myEclipse server, only external  
servers.


--Ken

On Apr 22, 2010, at 9:17 AM, Christoph Kukulies wrote:

I'm playing a bit with myeclipse and I'm wondering whether  
anyone on this list here is using it with Tomcat
as application server running other apps, rather than using  
tomcat from within  the built into myeclipse Tomcat server.


Any experiences with that setup?

--
Christoph Kukulies




-
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




-
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: Session Timeout - Filter Not Called

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul,

On 4/22/2010 5:24 PM, Paul Carroll wrote:
 Yes.  I put the session marker in my filter and I perform a simple
 check each time through the filter to determine if the marker exists
 and to check if it equals the current session id.

Okay, so what's the problem?

As Pid says, the session id isn't a good thing to use. Why not just set
your attribute to Boolean.TRUE? The value doesn't actually matter...
it's only important that it's been set to /something/.

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

iEYEARECAAYFAkvRyf8ACgkQ9CaO5/Lv0PAxKACfQlqzaDX2WwpDb+qGAnSTqwZD
a5oAn0SwNNkndH3oHbWHa+EtsVI54ujW
=de9D
-END PGP SIGNATURE-

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



Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Godmar,

On 4/14/2010 10:20 AM, Godmar Back wrote:
 I have added a ServletContextListener, but it is very much a solution I
 strongly dislike. The reason is that my application is layered on top of
 another application (ZK), and I don't really want to touch web.xml.
 'web.xml' describes how ZK is configured to run inside Tomcat or another
 J2EE server. My applications runs on top of ZK, and having to go and made
 changes to the underlying deployment descriptor violates basic principles of
 layering.
 
 It also creates a maintenance problem (unless an application can have
 multiple .xml files that are combined to form a deployment descriptor).
 Whenever ZK is updated, a new version of web.xml will be installed, and I
 would then have to merge my listener declaration into the new file.

What is your deployment procedure? We use ant for our deployments and
it's trivial to use the xslt task to mutate XML files such as web.xml.
If you do this, you can set up your deployment process once and not
worry about it, even if ZK publishes an update.

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

iEYEARECAAYFAkvRyuYACgkQ9CaO5/Lv0PBFrQCfaNY7LFT7mHNULhDvugukclYO
fFwAmgIYQ3JGWU6n5LuKFxwBSVtbTdrr
=TwhY
-END PGP SIGNATURE-

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



Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pid,

On 4/23/2010 6:32 AM, Pid wrote:
 On 23/04/2010 03:48, Godmar Back wrote:
 However, registering a ServletContextListener doesn't work and leads to me
 being unable to start the web application.

 listener-classorg.libx.editionbuilder.GCHelper$ShutdownListener/listener-class
 /listener
 
 I think the class needs to be a top level class with a parameter free
 constructor.

I'm not sure if it needs to be top-level, but it will at least need to
be static. Can you post the code for GCHelper$ShutdownListener?

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

iEYEARECAAYFAkvRy0EACgkQ9CaO5/Lv0PDoPACeJnCf1mdN72JAQuX0vxKQpFBH
JX8AmwdR5BKmKIMzx1hTEw9eirYBtG5P
=w8Y3
-END PGP SIGNATURE-

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



Re: [OT] log4j email appender and hostname

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Curtis,

(Marking OT because this has nothing to do with Tomcat).

On 4/23/2010 11:06 AM, Curtis Garman wrote:
 Does anyone know if it is possible to access the HOSTNAME environment
 variable in a log4j.properties file. Basically I'm using the email appender
 and would like to include the host in the email subject line so I can easily
 determine which server generated the email. I can hard-code this info but I
 was thinking there might be a way that tomcat can read something like
 
 log4j.appender.email.subject=Java Application Error (${HOSTNAME})

If you use a PropertyConfigurator
(http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PropertyConfigurator.html)
you can use system properties, but not environment variables. That
should be easy to work around: add -Dmyhostname=${HOSTNAME} to your
startup scripts.

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

iEYEARECAAYFAkvRzFYACgkQ9CaO5/Lv0PDagACgkWm1usi9TUZvJxD/MItGA0kR
RAMAnidhGCjbFWN2PwJtj4EWxfl55dV6
=3k2o
-END PGP SIGNATURE-

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



Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Suresh,

On 4/22/2010 8:33 PM, suresht wrote:
   I see a char array being set to a number.
 charstring1[charstring1-1] = 0;

That's obviously not actual code. Can you decompile or otherwise browse
the source of the method where the exception occurs?

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

iEYEARECAAYFAkvRzTEACgkQ9CaO5/Lv0PAthQCdFUlvrW4VgDC5M3qc8Lpklc+9
sC4Anjmgu+jgXzjwgYFDsK+t8g3/ggEh
=ByKq
-END PGP SIGNATURE-

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



Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread suresht

The problem was with oracle jar in {catalina.base}\lib dir was getting called
with \ at the start. When I added the AllProperty policy rule for that
\file:{catalina.base}\lib\- . this error went away.


suresht wrote:
 
 hi Christopher,
   I see a char array being set to a number.
 charstring1[charstring1-1] = 0;
 
 
 
 Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Suresh,
 
 On 4/22/2010 4:51 PM, suresht wrote:
 i have attached a copy of the policy file.
 
 It was stripped by the list.
 
 yes that is true but the command line application includes the security
 manager with equivalent policy
 
 Ok.
 
 The web application works fine without the security manager.
 
 Since the error occurs in the JDBC driver, I would imagine that the
 problem is there: the driver is not properly checking array bounds when
 accessing a String.
 
 Now, more than likely it's some String that is no longer available due
 to the presence of the SecurityManager, but we'll never know what the
 real problem is until we can get a report of what String the driver
 can't read properly.
 
 Do you have the source code of the JDBC driver? Can you decompile it to
 find out what is blowing up?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkvQvccACgkQ9CaO5/Lv0PDqXQCfT5BcPuXT2qaKp4ZCChMsBrKy
 Ex4AnikHuVhogRnOM8HW0y3cx9TjqRWu
 =4vR2
 -END PGP SIGNATURE-
 
 -
 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://old.nabble.com/Running-tomcat-6.0.26-with-security-manager-generates-ORACLE-jdbc-error-tp28333480p28343771.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: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-23 Thread suresht

hi Christopher
  The problem was that there was attempt to access
\c:\{$catalina.base}\lib\ojdbc6.jar rather than
c:\{$catalina.base}\lib\ojdbc6.jar. when I added new rule the error went
away.
-suresh


Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Suresh,
 
 On 4/22/2010 8:33 PM, suresht wrote:
   I see a char array being set to a number.
 charstring1[charstring1-1] = 0;
 
 That's obviously not actual code. Can you decompile or otherwise browse
 the source of the method where the exception occurs?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkvRzTEACgkQ9CaO5/Lv0PAthQCdFUlvrW4VgDC5M3qc8Lpklc+9
 sC4Anjmgu+jgXzjwgYFDsK+t8g3/ggEh
 =ByKq
 -END PGP SIGNATURE-
 
 -
 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://old.nabble.com/Running-tomcat-6.0.26-with-security-manager-generates-ORACLE-jdbc-error-tp28333480p28343802.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: Multiple catalina bases and monitoring each instance

2010-04-23 Thread Ziggy
Hi,

I was refering to monitoring things like database connections, active
threads or sessions etc.

Thanks

On Fri, Apr 23, 2010 at 11:50 AM, Harry Metske harry.met...@gmail.comwrote:

 It depends on what you mean with monitor.
 We use nagios (http://www.nagios.org) to monitor multiple Tomcat
 instances.
 You can do a plain check for an open socket, or call Tomcat's jmx proxy
 over
 http(s) to query Tomcat's mbeans.

 regards,
 Harry

 2010/4/23 Ziggy zigg...@gmail.com

  Hi guys,
 
  Is there a way to monitor multiple tomcat instances? I have managed to
  configure multiple tomcat instances using $CATALINA_BASE but i cant seem
 to
  be able to find a way to monitor the instances. I know about the tomcat
  manager, admin and the Tomcat Probe/lambda applications. These will all
  only
  monitor a single instance of a running tomcat.
 
  Is there a way i can monitor all running instances from one tomcat
  instance?
 
  Thanks
 



Re: Multiple catalina bases and monitoring each instance

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ziggy,

On 4/23/2010 1:54 PM, Ziggy wrote:
 I was refering to monitoring things like database connections, active
 threads or sessions etc.

Nagios does JMX, which can expose all of that information. Or, you can
write your own JMX client to do the same thing and save yourself USD1300.

Someone mentioned a command-line JMX client a while back that might
work, too, if you scripted it. Check the archives.

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

iEYEARECAAYFAkvR4ZcACgkQ9CaO5/Lv0PAwogCfYAAIRyAVPdWkDFXkQ9km/PIt
+gkAnAsF03OKfOhQPgoUXr77dHi9Oa55
=7MLC
-END PGP SIGNATURE-

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



Re: Multiple catalina bases and monitoring each instance

2010-04-23 Thread André Warnier

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ziggy,

On 4/23/2010 1:54 PM, Ziggy wrote:

I was refering to monitoring things like database connections, active
threads or sessions etc.


Nagios does JMX, which can expose all of that information. Or, you can
write your own JMX client to do the same thing and save yourself USD1300.

Someone mentioned a command-line JMX client a while back that might
work, too, if you scripted it. Check the archives.


here : http://code.google.com/p/jmxsh/
Very useful little tool.

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



Re: myeclipse and tomcat

2010-04-23 Thread Christoph Kukulies

Ken Bowen schrieb:


You can run multiple web apps alongside the ROOT app.  I just drop 
them in the webspps folder.




Yes, I know. I do presently. But I want to run several ROOT apps.

--
Christoph





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



Re: myeclipse and tomcat

2010-04-23 Thread Ken Bowen
Then I think you either need several independent Tomcat instances or  
multiple virtual hosts.
I've occasionally had several independent instances running (but one  
was started by Eclipse and one from the command line).

I don't know whether Eclipse would support either.
Do you need to do simultaneous development, or just run several other  
ROOT webapps while developing on one?


On Apr 23, 2010, at 3:59 PM, Christoph Kukulies wrote:


Ken Bowen schrieb:


You can run multiple web apps alongside the ROOT app.  I just drop  
them in the webspps folder.




Yes, I know. I do presently. But I want to run several ROOT apps.

--
Christoph





-
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



Installing Java Advanced Imaging In Tomcat.

2010-04-23 Thread aditya siram
Hi all,
I am having issues using jai [1]  with a Tomcat webapp. I am running
the tomcat6 package installed from the Ubuntu repos.

The webapp does some image decompression and is unable to detect
CLibJpegImageReader which is a class in the jai_imageio.jar.

I have copied this jar file to my WEB-INF/lib directory and also to
/var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would
work from one of these locations. Additionally it is in my
JAVA_HOME/jre/lib/ext directory so it should be available after the
bootstrap phase.

I know that JAI is installed correctly because a stand-alone app is
able to access the required class.

Any help is appreciated
-deech

[1] http://java.sun.com/javase/technologies/desktop/media/jai/

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



Re: Installing Java Advanced Imaging In Tomcat.

2010-04-23 Thread Pid
On 23/04/2010 21:31, aditya siram wrote:
 Hi all,
 I am having issues using jai [1]  with a Tomcat webapp. I am running
 the tomcat6 package installed from the Ubuntu repos.
 
 The webapp does some image decompression and is unable to detect
 CLibJpegImageReader which is a class in the jai_imageio.jar.
 
 I have copied this jar file to my WEB-INF/lib directory and also to
 /var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would
 work from one of these locations. Additionally it is in my
 JAVA_HOME/jre/lib/ext directory so it should be available after the
 bootstrap phase.
 
 I know that JAI is installed correctly because a stand-alone app is
 able to access the required class.

The jar should only be present in one location at any given time,
multiple locations will almost certainly produce unexpected conditions.

Which version of Java are you using?


p

 [1] http://java.sun.com/javase/technologies/desktop/media/jai/
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


Re: Installing Java Advanced Imaging In Tomcat.

2010-04-23 Thread aditya siram
1.6.0_15.

I originally started off without anything in the WEB-INF/lib file
because I thought my original install in JAVA_HOME would be found.

-deech

On 4/23/10, Pid p...@pidster.com wrote:
 On 23/04/2010 21:31, aditya siram wrote:
 Hi all,
 I am having issues using jai [1]  with a Tomcat webapp. I am running
 the tomcat6 package installed from the Ubuntu repos.

 The webapp does some image decompression and is unable to detect
 CLibJpegImageReader which is a class in the jai_imageio.jar.

 I have copied this jar file to my WEB-INF/lib directory and also to
 /var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would
 work from one of these locations. Additionally it is in my
 JAVA_HOME/jre/lib/ext directory so it should be available after the
 bootstrap phase.

 I know that JAI is installed correctly because a stand-alone app is
 able to access the required class.

 The jar should only be present in one location at any given time,
 multiple locations will almost certainly produce unexpected conditions.

 Which version of Java are you using?


 p

 [1] http://java.sun.com/javase/technologies/desktop/media/jai/

 -
 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: Installing Java Advanced Imaging In Tomcat.

2010-04-23 Thread Pid
On 23/04/2010 22:09, aditya siram wrote:
 I just uninstalled JAI and my stand-alone app could not find a
 suitable image reader. I put the jars back in and the problem goes
 away.
 
 BTW thanks for getting back to me so quick!

So are you relying on specific classes from the JAI jars?
Are equivalents not available in the JDK itself?


p

 -deech
 
 On 4/23/10, Pid p...@pidster.com wrote:
 On 23/04/2010 21:53, aditya siram wrote:
 1.6.0_15.

 Isn't JAI/IIO part of that JDK now?
 I don't think you need to add the older jars do you?


 p

 I originally started off without anything in the WEB-INF/lib file
 because I thought my original install in JAVA_HOME would be found.

 -deech

 On 4/23/10, Pid p...@pidster.com wrote:
 On 23/04/2010 21:31, aditya siram wrote:
 Hi all,
 I am having issues using jai [1]  with a Tomcat webapp. I am running
 the tomcat6 package installed from the Ubuntu repos.

 The webapp does some image decompression and is unable to detect
 CLibJpegImageReader which is a class in the jai_imageio.jar.

 I have copied this jar file to my WEB-INF/lib directory and also to
 /var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would
 work from one of these locations. Additionally it is in my
 JAVA_HOME/jre/lib/ext directory so it should be available after the
 bootstrap phase.

 I know that JAI is installed correctly because a stand-alone app is
 able to access the required class.

 The jar should only be present in one location at any given time,
 multiple locations will almost certainly produce unexpected conditions.

 Which version of Java are you using?


 p

 [1] http://java.sun.com/javase/technologies/desktop/media/jai/

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













signature.asc
Description: OpenPGP digital signature


Migrating Tomcat IIS6 W2K3 Server - SSL and Redirect problems

2010-04-23 Thread Rafe Magnuson
Original installation of Tomcat 5.5.x on Windows 2003 Server x32 with
IIS6
Target Installation is Tomcat 5.5.x on Windows 2003 Server x64 with IIS6

Original installation has been working fine for some years but we're
forced to migrate servers now as our host has become increasingly flaky.
The original install is found at http://www.priestongroup.com where you
may notice that as the site loads the url switches to
http://www.priestongroup.com/app/public - this is due to the index file
in the web root directory with some javascript that simply redirects to
/app/public where Tomcat takes over. When the user select 'Login' from
the above page the url switches to
https://www.priestongroup.com/app/secure where a client or employee may
login. If a client logs in they are presented with more Tomcat hosted
pages with all sorts of pretty graphs and what-not, while if an employee
logs in they are directed to the ASP portion of the site where all the
administrative tools are housed.

Target installation:

Jakarta ISAPI_Redirector successfully installed and reporting 'green'
under IIS web site properties - this required enabling 32 bit apps on
Win64 by way of the command line since none of the 64bit dll's I tried
ever worked.

The uriworkermap.properties for Jakarta appears as follows:

# uriworker.properties
/app/*=ajp13w
/dev/*=ajp13w2

And workers.properties looks like this:

worker.list=ajp13w,ajp13w2

worker.ajp13w.type=ajp13
worker.ajp13w.host=174.123.91.100
worker.ajp13w.port=8009

worker.ajp13w2.type=ajp13
worker.ajp13w2.host=174.123.91.98
worker.ajp13w2.port=8009

I can only assume that ajp13w is the main site and judging by the
server.xml that ajp13w2 is for the database connection. The server.xml
file has the following definitions:

Server port=8005 shutdown=SHUTDOWN
  GlobalNamingResources
Resource name=jdbc/dbcp
auth=Container type=javax.sql.DataSource
driverClassName=net.sourceforge.jtds.jdbc.Driver
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
url=jdbc:jtds:sqlserver://174.123.91.98:1433;SelectMethod=cursor
username=webuser
password=T3rminal7
maxActive=20
maxIdle=10
maxWait=1 /
  /GlobalNamingResources

  Service name=Catalina
Connector port=8080 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /
   
   Connector port=8009 
enableLookups=false redirectPort=443 protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
/Host
/Engine
  /Service
/Server

Unlike the original site that works, attempting to go directly to the
new location via IP results in a 404, though you might notice that the
url has had /app/public appended to it indicating that the index.html
file with the javascript redirector did in fact execute but for some
reason Tomcat didn't supply a page. If you tack port 8080 onto the url
(http://174.123.91.100:8080) you receive a blank page since we've
swapped out the original tomcat welcome page with a blank placeholder in
order to create some semblance of security. If we go a step further and
use the full url of http://175.123.91.100:8080/app/public we actually
find that Tomcat returns the expected page. The question is why doesn't
it do it to begin with when the user was redirected by the javascript?

The last part of the problem has to do with SSL in that when you click
on the login link from the above working url
(http://175.123.91.100:8080/app/public) instead of getting the login
page you get a 'couldn't connect' type of error and you can see that the
url has changed to https://175.123.91.100:8443/app/secure - though this
is the correct location for the login page the request isn't being
processed for some reason. 

From reading the Apache Tomcat SSL documentation it appears that when
running Tomcat on top of IIS the default behavior is to use the IIS
built in SSL functionality. With that in mind I went ahead and installed
the security certificate from our original server onto the new server
but doing so had no effect on the above problem.

Thanks in advance for any input on this mysterious behavior!

Rafe Magnuson


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



Re: Installing Java Advanced Imaging In Tomcat.

2010-04-23 Thread Thad Humphries
I agree with Pidster--remove the other JAI jars.

I use JAI and JAI ImageIO in my application.  I have three JAI jar files in
my WEB-INF/lib directory:  jai_codec.jar, jai_core.jar, and jai_imageio.jar

If you need JAI in $JAVA_HOME, I recommend you install a second copy of the
JDK without JAI, and use this for launching Tomcat.  While I have JAI
installed in my Java 6 tree, I start Tomcat with a Java 5 tree that does not
have JAI installed.  At the start of $CATALINA_HOME/bin/catalina.sh, I've
added

JAVA_HOME=/local/jdk1.5.0_noJAI
JRE_HOME=$JAVA_HOME/jre
JAVA_OPTS=-Djava.awt.headless=true -Dcom.sun.management.jmxremote=true
-Xmx256m

This second JDK could be Java 6, but I run Tomcat with Java 5 (and set javac
source and target to 1.5) because my application must run on older
Macintoshes that do not support Java 6.  (Headless is set because my
application also must run on systems without a DISPLAY.)

My application installs and runs in Tomcat on Linux, Mac, and Windows.

On Fri, Apr 23, 2010 at 4:48 PM, Pid p...@pidster.com wrote:

 On 23/04/2010 21:31, aditya siram wrote:
  Hi all,
  I am having issues using jai [1]  with a Tomcat webapp. I am running
  the tomcat6 package installed from the Ubuntu repos.
 
  The webapp does some image decompression and is unable to detect
  CLibJpegImageReader which is a class in the jai_imageio.jar.
 
  I have copied this jar file to my WEB-INF/lib directory and also to
  /var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would
  work from one of these locations. Additionally it is in my
  JAVA_HOME/jre/lib/ext directory so it should be available after the
  bootstrap phase.
 
  I know that JAI is installed correctly because a stand-alone app is
  able to access the required class.

 The jar should only be present in one location at any given time,
 multiple locations will almost certainly produce unexpected conditions.

 Which version of Java are you using?


 p

  [1] http://java.sun.com/javase/technologies/desktop/media/jai/
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 





-- 
Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be --Christopher
Marlowe, 'Doctor Faustus' (v, 121-24)