Re: dynamical class loading

2005-10-12 Thread David Delbecq
Hi,

I used dynamic class reloading on a commercial J2EE server and, believe me,
it brings far more problems than it solves.

First, when you dynamically reload a class here is what can happen:

webapp start under classloader instance x
webapp instanciate class A and store in session
session.setAttribute(someKey,someA)
class A has changed on disk, classloader reload it using a special class
loader
and marking this class to be handled by this new classloader (y)

now this code
A someA = (A)session.getAttribute(someKey)
will through a ClassCastException because
A.getClass() != session.getAttribute(someKey).getClass()
while
A.getClass().getName().equals(session.getAttribute(someKey).getClass().getName())

is true :)

All code involving static method/static variables is subject to such
breakdown.
More funny, you can end up in some condition instanciating old version
of classes.

Thrust me, when dynamically classloading, half of code breaks like this
most of time,
sometimes silently, and you end up crazy, trying to debug a code which
in fact is
not bugged.

If your webapp is particulary slow to start and you need faster
development, better take a look at unit testing
of deactivate parts of your webapp when debugging!

dumbQuestionsAsker _ a écrit :

 can somone give me an information?
 I want to know if it is possible to past and load classes into
 web-inf/classes path without beeing forced to reload the whole webapp ?

 _
 10 Mo pour vos pièces jointes avec MSN Hotmail !
 http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


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



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



Re: dynamical class loading

2005-10-12 Thread David Delbecq
Allistair Crossley a écrit :

Thrust me, when dynamically classloading, half of code breaks 


  ^^
*rotfl* this has made my afternoon


  

Nice one indeed :D

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



After adding a context xml file, web-app doesn't always start

2005-10-11 Thread David Farrell
Hi all,

For a while my web app was connecting manually to the db but obviously
that's a bit rubbish so I looked at some examples and moved the db stuff
into the context file for my app.  I have never written a context file and
I think I may have missed something.

Now when I use ant to install my app, it sometimes fails - ant says
successful build but tomcat throw an exeption that my app conspiracy
cannot be found under /webapps/conspiracy  - it isn't being installed from
that location - ant installs it from my build dir outside of the tomcat
folder entirely.

If this was happening all the time, it would be more understandable but
roughly 50% of the time (and every time i re-type ant remove install
immediately after a fail) it installs fine.

I imagine that I need to do something to my context xml file?  I'm not
really sure but the only change in the app pre and post this error is
moving the db stuff to the xml file.

The xml file is attached:?xml version='1.0' encoding='utf-8'?
Context crossContext=true debug=5 docBase=conspiracy path=/conspiracy reloadable=true
Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_conspiracy_log. suffix=.txt timestamp=true/
Resource name=jdbc/conspiracy_db type=javax.sql.DataSource/
ResourceParams name=jdbc/conspiracy_db
parameter
nameurl/name
valuejdbc:mysql://localhost:3306/conspiracy_db?autoReconnect=true/value
/parameter
parameter
namevalidationQuery/name
valueselect now()/value
/parameter
parameter
namemaxIdle/name
value30/value
/parameter
parameter
namemaxActive/name
value100/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
namemaxWait/name
value1/value
/parameter
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameusername/name
valueroot/value
/parameter
parameter
namepassword/name
valuepassword/value
/parameter

parameter
	nameremoveAbandoned/name
	valuetrue/value
/parameter
parameter
	nameremoveAbandonedTimeout/name
	value60/value
/parameter
parameter
	namelogAbandoned/name
	valuetrue/value
/parameter
/ResourceParams
/Context
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Where does tomcat loads classes from? Mysterious classes loaded....

2005-10-11 Thread David Delbecq
)
at
com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:602)
at
be.dissco.opensymphony.SlideWorkflow.initialize(SlideWorkflow.java:110)
at
be.rmi.intranet.struts.InternalMissionAction.request(InternalMissionAction.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
at
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
at
be.rmi.intranet.struts.InternalMissionAction.execute(InternalMissionAction.java:296)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
be.rmi.intranet.filter.ContentEncodingFilter.doFilter(ContentEncodingFilter.java:41)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
be.rmi.intranet.db.HibernateFilter.doFilter(HibernateFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
be.rmi.intranet.filter.PrincipalUser.doFilter(PrincipalUser.java:65)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)


Question is, how on hell did tomcat find a way to load
org.apache.xalan.* classes !
Subsidiary question, how do i make tomcat understand it's not xalan, but
crimson the xslt processor?


Thanks for help, am lost!
David Delbecq

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



Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....

2005-10-11 Thread David Delbecq
Hello, if, like i suppose from your various errors, jfreechart require
awt/swing api and do draw on it,
you need to run the tomcat server inside a X server, not only do you
need to have fonts
installed and corresponding X libraries (like your link suggest was
problem), you also need to
to have X server running and DISPLAY envirronement variable set accordingly.

I would first suggest you start tomcat with
CATALINA_OPT=-Djava.awt.headless=true
If, like i suppose will be the case, you get HeadlessExceptions when
running like this, this mean
you definitly need to run tomcat server inside a X environment.

regards
David Delbecq
Mauricio Fernandez A. a écrit :

Thanks for your help

Now I have reinstalled the XFree86 completly including the Xvfb and I can
start it (XVfb), to test if it is running I execute a xclock and I don´t get
any error, so I think it is running ok

However, now, when I try to get the jsp wich must show a graphic I get
another different error:


java.lang.NoClassDefFoundError
   org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764)
   
 com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19
6)
   
 org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
67)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



And in another web app in the same server the error is:


java.lang.NoClassDefFoundError
   java.lang.Class.forName0(Native Method)
   java.lang.Class.forName(Class.java:164)
   java.awt.Toolkit$2.run(Toolkit.java:821)
   java.security.AccessController.doPrivileged(Native Method)
   java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
   com.actelion.control.Graficador.asignarBackground(Graficador.java:97)
   
 com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524)
   
 org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi
ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



So having in mind that before Xvfb Installation the error was:

http://www.jfree.org/phpBB2/viewtopic.php?t=14319

I think I am just with another different problem.

Can somebody understand this?

Thanks

Mauricio Fernandez



  


  


Hi Mauricio,

I had the same problem. The solution is as follows:

1. Download and install a virtual frame buffer
   Where to find and how to install:
   http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f
8000760f68?OpenDocument

2. Do not forget to create a script to start xvfb - you will find the script
under the link above

3. Edit the startup.sh or catalina.sh as follows:

#export DISPLAY
export DISPLAY=IP_of_your_machine_where_Tomcat_is_running:0.0
export CATALINA_OPTS=-Djava.awt.headless=false

4. Start xvfb

5. Restart Tomcat



Mit freundlichem Gruß / kind regards

Aliye Edao



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

  



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



Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....

2005-10-11 Thread David Delbecq
David Delbecq a écrit :

Hello, if, like i suppose from your various errors, jfreechart require
awt/swing api and do draw on it,
you need to run the tomcat server inside a X server, not only do you
need to have fonts
installed and corresponding X libraries (like your link suggest was
problem), you also need to
to have X server running and DISPLAY envirronement variable set accordingly.

I would first suggest you start tomcat with
CATALINA_OPT=-Djava.awt.headless=true
  


Sorry, it's CATALINA_OPTS  (with the *S*)

If, like i suppose will be the case, you get HeadlessExceptions when
running like this, this mean
you definitly need to run tomcat server inside a X environment.

regards
David Delbecq
Mauricio Fernandez A. a écrit :

  

Thanks for your help

Now I have reinstalled the XFree86 completly including the Xvfb and I can
start it (XVfb), to test if it is running I execute a xclock and I don´t get
any error, so I think it is running ok

However, now, when I try to get the jsp wich must show a graphic I get
another different error:


java.lang.NoClassDefFoundError
  org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764)
  
 com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19
6)
  
 org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
67)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



And in another web app in the same server the error is:


java.lang.NoClassDefFoundError
  java.lang.Class.forName0(Native Method)
  java.lang.Class.forName(Class.java:164)
  java.awt.Toolkit$2.run(Toolkit.java:821)
  java.security.AccessController.doPrivileged(Native Method)
  java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
  com.actelion.control.Graficador.asignarBackground(Graficador.java:97)
  
 com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524)
  
 org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi
ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



So having in mind that before Xvfb Installation the error was:

http://www.jfree.org/phpBB2/viewtopic.php?t=14319

I think I am just with another different problem.

Can somebody understand this?

Thanks

Mauricio Fernandez



 



 



Hi Mauricio,

I had the same problem. The solution is as follows:

1. Download and install a virtual frame buffer
  Where to find and how to install:
  http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f
8000760f68?OpenDocument

2. Do not forget to create a script to start xvfb - you will find the script
under the link above

3. Edit the startup.sh or catalina.sh as follows:

#export DISPLAY
export DISPLAY=IP_of_your_machine_where_Tomcat_is_running:0.0
export CATALINA_OPTS=-Djava.awt.headless=false

4. Start xvfb

5. Restart Tomcat



Mit freundlichem Gruß / kind regards

Aliye Edao



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

 





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

  



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



Re: Virtual Hosting and SSL

2005-10-11 Thread David Smith
Try address=192.168.56.32 or whatever IP you want tomcat to bind to. 
The port attribute will do the same thing for defining what port number
to bind to.

--David

Justin Jaynes wrote:

I DID try, but there is no IP address attribute for
connector elements. .. at least not in the
documentation listed on the 5.5 documentation /
configuration setup.

How would I do it?  Can you please indicate the
syntax?

Thanks, Justin

--- Hassan Schroeder [EMAIL PROTECTED] wrote:

  

Justin Jaynes wrote:


I am running tomcat 5.5.12 and need to host two
  

sites,


both with ssl.  
  

Can you set up two connectors (one port 443 and
  

one


port 80) for one specific ip address and another
  

set


of connectors for another ip address? 
  

Yes. :-)

That's exactly what you need to do. Try it, ask if
you run into a
specific problem...

-- 
Hassan Schroeder -
[EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   ===
http://webtuitive.com

  dream.  code.






-
  

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







   
   
__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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

  



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



tomcat unable to parse HTTP GET variables if is replaced with %2526

2005-10-11 Thread Isaacson, David A. (James Tower)
Running 

apache: httpd-2.0.46-46.3.ent

tomcat: jakarta-tomcat-4.1.30

using the mod_jk connector.

 

 

Earlier yesterday we started recieving the following error.

java.lang.NumberFormatException: For input string:
88%26order=44%26start=3%26end=3

 

The page started to get refered to by another website, and the link that
they are using is:

http://www.mysite.com/mypage.jsp?item=88%2526order=44%2526start=3%25
26end=3

 

When I follow that link, it doesn't work, and it displays that it
couldn't handle the input string

88%26order=44%26start=3%26end=3  (notice that the %2526 in the
referring url now is a %26)

 

%25 = %

%26 = 

 

so it looks like the %25 is converting to the %, but then the recurring
%26 is not getting converted to the , which is causing tomcat not to be
able to parse the variables.

 

Is this an apache or tomcat misconfiguration/bug?  I've been searching,
but unable to find any answers.

 

Any ideas on how to resolve this would be helpful.  Sorry if this topic
has been brought up before. I was unable to find any hits on google, or
searching the mailing list archive.

 

Thanks,

 

Dave.



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

Did you add the Java Activation Famework jar to your WEB-INF/lib?

Check this out:

http://java.sun.com/products/javabeans/glasgow/jaf.html



--On Friday, October 07, 2005 9:33 AM +0200 Andrés Reyes [EMAIL PROTECTED] 
wrote:


Hi. I need to send an email using a servlet (Tomcat 4.1 / Debian 3.1), but when 
I send the form from the jsp page that call the servlet, i get this exception:

javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
(...)


*root cause*

java.lang.NoClassDefFoundError: javax/activation/DataSource at 
AltaCliente.doPost(AltaCliente.java:63) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

This is the code of the servlet (which compiles with no problem):

-
import java.io.*;
...
...

try {
Properties props = new Properties();
props.put(mail.smtp.host, mail.***.***);
Session s = Session.getInstance(props);
MimeMessage message = new MimeMessage(s);

InternetAddress from = new InternetAddress([EMAIL 
PROTECTED]);
message.setFrom(from);
InternetAddress to = new InternetAddress([EMAIL 
PROTECTED]);
message.addRecipient(Message.RecipientType.TO, to);

message.setSubject(Prueba de JavaMail.);
message.setText(Hola desde JavaMail ( y Tomcat ). );

Store store = s.getStore(pop3);
store.connect(mail..***, [EMAIL PROTECTED], 
areyes);

Transport.send(message);
store.close();
 } catch ( MessagingException e ) {
out.println(h1MessagingException:  + e.getMessage() + 
/h1);
...
...
-

The content of the /WEB-INF/web.xml is ok (only describe the servlet and others 
that I use), and the xml configuration for the context is:
-
Context path=/* docBase=/usr/share/tomcat4/server/webapps/**
debug=0 privileged=false
 Resource name=mail/Session scope=Shareable type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuemail../value
/parameter
  /ResourceParams

/Context
-

Thanks in advance.

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 * Fax : 957 76 42 49
***/


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







-- David Tonhofer

  M-PLIFY S.A.
  Resp. Informatique
  47, av. de la Liberté
  L-1931 Luxembourg
  Tel: +352 261846-52
  Fax: +352 261846-46
  Mob: +352 021-139031


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

Confirmation: I have them in common/lib, too. If the mail.jar is in common/lib,
then the jaf.jar must *also* be in common/lib.

--On Friday, October 07, 2005 11:15 AM +0200 Mikolaj Rydzewski [EMAIL 
PROTECTED] wrote:


Andrés Reyes wrote:


Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.


Try to put them in tomcat's common/lib. It works for me.

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104



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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

Looks like the usual Tomcat classloader hierarchy SNAFU.

Try with ONLY in tomcat/common/lib.

--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED] 
wrote:


activation.jar and mail.jar are placed both in /common/lib, and in /WEB-INF/lib 
(and also in JAVA_HOME/lib)

¿Any other place?
;)

¿Maybe the error be in activation.jar itself? ( I want to believe that it isn't 
 :( ).


No.



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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

--On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes [EMAIL PROTECTED] 
wrote:


It doesn't work.



No way???

Back to basics: find all the places where mail.jar is in this
hierarchy of classloaders. Make sure there is only one.
Make sure that jaf.jar is at the same level or above it.


  Bootstrap: uses JVM classes  looks in $JAVA_HOME/jre/lib/ext
 |
  System:uses $CATALINA_HOME/bin/bootstrap.jar
 |   and  $JAVA_HOME/lib/tools.jar
 |
  Common:uses $CATALINA_HOME/common/lib
/  \ and $CATALINA_HOME/common/classes
   /\and $CATALINA_HOME/common/endorsed
  /  \jsp and servlet API jars are here
 /+-+
/   |
Catalina:  uses $CATALINA_HOME/server/lib   |
   and $CATALINA_HOME/server/classes|
catalina.jar is here  |
 Shared: uses 
$CATALINA_BASE/shared/lib
   / \and 
$CATALINA_BASE/shared/classes
  /   \
 Webapp1  Webapp2 ... --- **GREEDY** 
CLASSLOADERS




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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We’re all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

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



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





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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
Well, it is Friday morning...at least here in the US.  It looks like Happy
Hour in the UK...now that's what I'm talking about!

-Original Message-
From: GB Developer [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:05 AM
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]



 -Original Message-
 From: David Short [mailto:[EMAIL PROTECTED]

 Arup needs to work on his social skills.  We're all here
 trying to help each other, not to attack each other.


but... at least he likes donuts. So he can't be all that bad.  ;)

 On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:


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





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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
Hi Glen,

Thanks for the analysis.  I guess my point was that people (Arup) should
fully understand the issue at hand BEFORE flaming someone.  I knew exactly
what Leon was asking, without much effort.  I would imagine that Arup simply
perused the message without giving it much thought (he was busy, distracted,
etc.).  I do agree there are those who would rather have someone else to
their dirty work (unsubscribing).  However, even reprimanding someone for
being lazy can be done a little gentler.  There have been, and always will
be, new and lazy people on this list.  It’s the nature of the beast.  Simply
stated, anger and rage really don’t help anything.

Let's not turn this into a can of worms.  It can go away peacefully now.

Dave

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:42 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


Arup misunderstood Leon's message and thought he lazily wanted others to
unsubscribe him.  That was his main error.  But in fairness to Arup,
flames can be called for when people ask to be unsubscribed from a
technical mailing list that 1000's of other people are subscribed to.

People making such requests are usually either newbies who need to be
jolted (and also thereby jolting/informing other newbies about to make
the same request, keeping the ML free of additional requests), or by
rather lazy people who know how to unsubscribe but don't want to bother.
  The latter type might actually feed on the kid glove approach that
David may be inclined to recommend.

Glen


David Short wrote:

 Arup needs to work on his social skills.  We’re all here trying to help
each
 other, not to attack each other.


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





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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
No worries.  Good luck in your new endeavor.

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:50 AM
To: 'Arup Vidyerthy'; 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]


Somehow my apologetic message hasn't been delivered by the mail server as
yet.

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:11
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood.

I'll be careful next time and use my eyes first before replying ;-)

Arup

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is
 that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

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



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





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



___
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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




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



[OT] RE: Problems with graphics on Tomcat 5.5.9

2005-10-07 Thread David N. Smith
Completely OT, but:

If you're going to search for X11 packages with rpm, use rpm -qa | grep [package
name or part].

I believe rpm -q [package name] is very limited and only tries to find a package
named exactly as you enter it.

--David

 Do you refer to X11R6? I have a /usr/X11R6 dir in my server but when I do

 #rpm -q X11
 package X11 is not installed

 #rpm -q X11R6
 package X11R6 is not installed

 And when i do

 #whereis X11
 X11: /usr/bin/X11 /etc/X11 /usr/lib/X11 /usr/include/X11

 So I don´t understand what is about the X11 libs.

 any idea?

 thanks!

 MauricioF


 -Mensaje original-
 De: Brian Cook [mailto:[EMAIL PROTECTED]
 Enviado el: viernes, 07 octubre, 2005 22:20
 Para: Tomcat Users List
 Asunto: Re: Problems with graphics on Tomcat 5.5.9



 You need to install the X11 libs for X.  The Java Advanced Imaging API
 calls the X libs on Linux to get font and scaling data.  You can try
 setting the JVM java.awt.headless property to true.  This will work for
 some instances.  But installing the X libs installed on your server is a
 more reliable option.

 To set your java.awt.headless as true use the following line.
  System.setProperty(java.awt.headless, true);



 System.setProperty(java.awt.headless, true);



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





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



Re: cannot setup JNDI with MySQL

2005-10-06 Thread David Smith
Hmmm...  I haven't read that tutorial in a while but if that's what it
says, it's wrong.  The Resource and ResourceParams elements should
be placed between Context and /Context tags of your context xml
file.  That would make the resource only available to that one
application as opposed to being available to all webapps in that Tomcat
instance.

--David

John Cherouvim wrote:

 Thanks for your answers.

 I can connect to MySQL using any mysql tool and even with telnet
 localhost 3306 from the command line. I even tried connecting to
 another mysql server running on another pc in my LAN but nothing.

 @andy: yes I have placed mysql-connector-java-3.1.10-bin.jar in
 common\lib and I also tried with different (older) versions. I've been
 leaving only one of them of course each time I tried.

 I finally managed to solve the problem.
 I needed to place:
Resource name=jdbc/TestDB type=javax.sql.DataSource/
ResourceParams name=jdbc/TestDB
  parameter nameurl/name
 valuejdbc:mysql://localhost:3306/dea?autoReconnect=true/value
 /parameter
  parameter namepassword/name valuejohn/value /parameter
  parameter namemaxActive/name value4/value /parameter
  parameter namemaxWait/name value5000/value /parameter
  parameter namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value /parameter
  parameter namemaxIdle/name value2/value /parameter
  parameter nameusername/name valuejohn/value /parameter
/ResourceParams

 somewhere in the GlobalNamingResources element of my server.xml.
 The tutorial at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
 says:
 Add this in between the |/Context| tag of the examples context and
 the |/Host| tag closing the localhost definition.

 Which I cannot understand where exctly it means. I was always trying
 to place it somewhere inside the Host element which was not working
 for me.

 I solved the problem by adding the DataSource from the administration
 tool of tomcat and then I went to server.xml to see how it did it.

 Regards,
 J.


 Hassan Schroeder wrote:

 John Cherouvim wrote:

  

 I've been trying to setup a mysql connection pool using JNDI as
 shown in
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

 But no luck.
   


  

 *What I get in tomcat\logs\stdout.log is:
 NotifyUtil::java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   


 A Connection refused sounds like your driver config is fine but
 either MySQL isn't running, it's configured with skip-networking,
 or you've got a firewall/iptables/whatever issue.

 Can you connect (`telnet localhost 3306`) from the command line?

  



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



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Re: Context path changes in context.xml not working

2005-10-06 Thread David Kerber
I did a bunch of googling before posting my question, but never came 
across that post; thanks for listing it; it appears to be exactly what I 
need.


Dave


Caldarale, Charles R wrote:

From: David Kerber [EMAIL PROTECTED]
Subject: Re: Context path changes in context.xml not working



Nobody has any suggestions about setting up a 2-level context path 
*without* putting it in the server.xml (it works fine in there)?



I thought I remembered something about this, and went googling for the
issue.  Take a look at:
http://marc.theaimsgroup.com/?l=tomcat-userm=110989168604231w=2

If you put your Context fragment in
   conf/[enginename]/[hostname]/dir1#dir2#appname.xml
you can access the webapp via http://[hostname]/dir1/dir2/appname, which
I think is what you want.  Haven't been able to find this in the Tomcat
doc yet, but I did test it successfully on 5.5.9.  Have no idea if this
trick with the # would work on the name of a .war file.

 - Chuck



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



Re: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread David Delbecq
Hi,

all classes of a webapp which do not come from tomcat server itself
do share a common classloader which is an aggregation of the various
classes in all WEB-INF/lib/*.jar and in WEB-INF/classes/**/*.class

If you get a NoClassDefFoundException, that probably mean you asked some
class in server classloader to load some other class (probably by
reflection) which
is located in WEB-INF/lib.  That simply impossible to do because
classloaders use
a child to parent classloading delegation model, not a parent (server)
to child (webapp).

Regards
David Delbecq
Jose Maria Ramirez Martinez a écrit :

Hi, everybody

I have the next problem:
A servlet calls a non-servlet class, and this non-servlet class imports 
classes from a jar file, 
but the classloader does not find the class from the jar file
(so when I call the servlet from an internet browser, I get a 
NoClassDefFoundException)

But if a servlet class imports the same classes from the jar, the class loader 
does find them...
I've tried some ways to solve this problem, like:
   a) unpacking the classes from the jar (this works, but I had the problem 
 that 2 different jars contained 
a file with the same name stored in the same directory, so one would replace 
the other, and the class fails)
   b) I thought it would be a security problem so I ran tomcat with a 
 SecurityManager, but it didn't solve the 
problem..

does somebody has any idea why this is happening???
can somebody help me to solve this... thanks in advance

Jose Maria


___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com


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

  



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



Context path changes in context.xml not working

2005-10-05 Thread David Kerber

Running Tomcat 5.5.9 on Windows 2000 server.

I am trying to change the context path of an application, and it works 
fine when I put this into my server.xml:


 Context path=/wradev/pelican 
docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 
reloadable=true autoDeploy=true unpackWARs=true crossContext=false/


According to the docs, putting this into the server.xml is not the 
preferred way, but when I put it into my 
webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect, 
even when I stop and restart Tomcat.


Is there something I'm missing here?  Or is it a bug which will be fixed 
in a later release.


Dave

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



Re: Context path changes in context.xml not working

2005-10-05 Thread David Smith
Intended behavior.  path attributes are ignored in context xml files.

If you'd like to change the name of the webapp, I'd suggest changing the
name of the .war file to change it's name.  If you aren't working with
.war files, change the name of the webapp folder and then the name of
it's context xml file located in config/Catalina/localhost.  Restart
tomcat and you're done.

--David

David Kerber wrote:

 Running Tomcat 5.5.9 on Windows 2000 server.

 I am trying to change the context path of an application, and it works
 fine when I put this into my server.xml:

  Context path=/wradev/pelican
 docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0
 reloadable=true autoDeploy=true unpackWARs=true
 crossContext=false/

 According to the docs, putting this into the server.xml is not the
 preferred way, but when I put it into my
 webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect,
 even when I stop and restart Tomcat.

 Is there something I'm missing here?  Or is it a bug which will be
 fixed in a later release.

 Dave

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



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber

I guess I missed that part about paths - thanks for pointing that out.

How do I rename things to get the 2-level context path?  This is an app 
I'm migrating from SilverStream to Tomcat, and I don't want to change 
the url my users use to connect to it.




David Smith wrote:

Intended behavior.  path attributes are ignored in context xml files.

If you'd like to change the name of the webapp, I'd suggest changing the
name of the .war file to change it's name.  If you aren't working with
.war files, change the name of the webapp folder and then the name of
it's context xml file located in config/Catalina/localhost.  Restart
tomcat and you're done.

--David

David Kerber wrote:



Running Tomcat 5.5.9 on Windows 2000 server.

I am trying to change the context path of an application, and it works
fine when I put this into my server.xml:

Context path=/wradev/pelican
docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0
reloadable=true autoDeploy=true unpackWARs=true
crossContext=false/

According to the docs, putting this into the server.xml is not the
preferred way, but when I put it into my
webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect,
even when I stop and restart Tomcat.

Is there something I'm missing here?  Or is it a bug which will be
fixed in a later release.

Dave

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








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



Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Nobody has any suggestions about setting up a 2-level context path 
*without* putting it in the server.xml (it works fine in there)?


Dave


David Kerber wrote:


I guess I missed that part about paths - thanks for pointing that out.

How do I rename things to get the 2-level context path?  This is an 
app I'm migrating from SilverStream to Tomcat, and I don't want to 
change the url my users use to connect to it.




David Smith wrote:


Intended behavior.  path attributes are ignored in context xml files.

If you'd like to change the name of the webapp, I'd suggest changing the
name of the .war file to change it's name.  If you aren't working with
.war files, change the name of the webapp folder and then the name of
it's context xml file located in config/Catalina/localhost.  Restart
tomcat and you're done.

--David

David Kerber wrote:



Running Tomcat 5.5.9 on Windows 2000 server.

I am trying to change the context path of an application, and it works
fine when I put this into my server.xml:

Context path=/wradev/pelican
docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0
reloadable=true autoDeploy=true unpackWARs=true
crossContext=false/

According to the docs, putting this into the server.xml is not the
preferred way, but when I put it into my
webapps/SiteData/META-INF/context.xml, it doesn't seem to take effect,
even when I stop and restart Tomcat.

Is there something I'm missing here?  Or is it a bug which will be
fixed in a later release.

Dave






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



Re: Script to create tomcat service on windows?

2005-10-04 Thread David Kerber

Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Re: Script to create tomcat service on windows?


Do they still work?



Yes, they still work.  (It probably would have taken you less time to
try it than to e-mail the question.)  I've never seen a justifiable
explanation of why the scripts were left out of the .exe download.


I would have, except that I was at home and didn't have access to try 
it.  Thanks for the response...



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



Setting environment variables in server.xml.

2005-10-04 Thread David Kerber
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:


Environment name=simpleValue type=java.lang.Integer value=30/


Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml.  But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs.  Is 
there something extra I need to do to make them visible from server.xml?


Thanks,
Dave

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



Re: Setting up HTTP Basic for a full Web-App

2005-10-04 Thread David Johnson
Anyone have any thoughts on this?

On 9/30/05, David Johnson [EMAIL PROTECTED] wrote:

 Hi all.

 I think I'm doing something wrong. I'veadded the following to my web
 application to use http-basicis there anything else I need to do to ensure
 anyone logging in like this has full access to the app?

 !-- Define a security constraint on this application --
 security-constraint
   web-resource-collection
 web-resource-nameEntire Application/web-resource-name

 url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
 !-- This role is not in the default user directory --
 role-namemanager/role-name

   /auth-constraint
 /security-constraint

 !-- Define the login configuration for this application --
 login-config
   auth-methodBASIC/auth-method
   realm-nameMy Application/realm-name

 /login-config

 !-- Security roles referenced by this web application --
 security-role
   description
 The role that is required to log in to the Application
   /description

   role-namemanager/role-name
 /security-role



 --
 -Dave
 [EMAIL PROTECTED]




--
-Dave
[EMAIL PROTECTED]


RE: Asking again: index.jsp and virtual directories

2005-10-04 Thread David Thielen
That was it - thank you very much - dave

 
David Thielen
www.windwardreports.com
303-499-2544
 

-Original Message-
From: andy gordon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 10:27 AM
To: Tomcat Users List
Subject: Re: Asking again: index.jsp and virtual directories

David, 
 
Have you looked at setting up virtual hosts in tomcat as this seems to be
what you are looking for.
 
- andy gordon

David Thielen [EMAIL PROTECTED] wrote:
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 


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



Re: Setting environment variables in server.xml.

2005-10-04 Thread David Kerber
Nope, never heard of that one.  I'll see if I can figure out how to get 
at that type.



andy gordon wrote:

David, 

Just in case you haven't done this yet, have you checked to see if the environment variable shows up as a catalina:type=Environment MBean? if so you should be able to access it. Hope this helps. 


- andy gordon

David Kerber [EMAIL PROTECTED] wrote:
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:





Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml. But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs. Is 
there something extra I need to do to make them visible from server.xml?


Thanks,
Dave
 





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



Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread David Delbecq
May i mention also the use of *java.util.Timer in forms other than
new **java.util.Timer*(true);

If used in any other form, it silently creates a non daemon thread.

Jon Wingfield a écrit :

 Yep. It's a FAQ, but not in the FAQ.

 Tomcat not quitting generally means your webapp has started a
 non-daemon thread which does not exit when the webapp is destroyed. If
 so, shut them down in a ServletContextListener.

 If you aren't explicitly creating threads in your webapp then the
 usual culprits are database connections that haven't been closed (or
 any other client api to remote services that uses asynchronous
 messaging and/or keepalive semantics).

 To see a dump of the threads still active after you've run
 shutdown.bat do a CTRL-BREAK in the tomcat dos console.

 HTH,

 Jon

 Charles Fineman wrote:

 I started Tomcat using startup.bat. Everything goes fine. I use
 shutdown.batto bring it down. The server fields the request and shuts
 down a bunch of
 services (as evidenced by the messages I see). Sure enough, the
 server no
 longer responds to any requests. Unfortunately, the java process does
 not
 die.

 I have this problem whether I start Tomcat by hand or if I use the
 Sysdeo
 Eclipse plugin.

 This problem has been a thorn in my side for some time but since it only
 affects my development environment (we use it as a service in
 production and
 there are no problems) and I can kill the process by hand, I've not
 worried
 about it. It's annoying as heck though and I'm wondering if someone
 can shed
 some light.

 I searched around but (surprisingly!!) I didn't find anything similar
 to my
 situation.




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



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



Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread David Delbecq
if it's *java.awt.Rectangle*
and the computer you are trying to run fop on does not have
graphical environment, maybe you should wonsider using headless java
see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless

Bob Hall a écrit :

I'm getting a NoClassDefFoundError in a FOP class,
PageViewport.  At line 89, the code is attempting to
do
'new Rectangle()'.

The same code works fine on 3 other systems (2
Windows,
and one Linux).  It does not work on a Linux box.
The two linux boxes have the same version of Java
(1.4.2_08-b03) and the same version of Tomcat 5.0.28).
The versions of RedHat *are* different.  I even
compiled
the code on the target Linux system.

Any ideas?

- Bob


   
__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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

  



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



Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread David Delbecq
That's quite a problem ;)
Actually  your threads should be coded in such a way
you may a send a notification in java telling him to finish his job.

eg:

myNonDaemonThreadICreatedMySelf.stopWorking();
which would set some flag in Thread and then code in your
Thread reading the flag knows it has to stop in a clean way.

In the past there was a way in java to 'kill' a Thread but this has
been deprecated in the Thread api. Tomcat sends a ThreadDeathError
to the thread if it tries to interact with its classloader after shutdown,
unfortunately, this is not always enough has some Threads do a
catch(Error) and then continue their job.

The best thing you can do when you have the list of threads still alive
after shutdown is to locate the irresponsible threads and fix their code :D



Larry Meadors a écrit :

So, once you know the threads that are left, what is the cleanest way
to kill them?

I have had this problem too, but since it was on a *nix platform, and
just used 'kill' to get rid of the parent process.

Larry


On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote:
  

Yep. It's a FAQ, but not in the FAQ.

Tomcat not quitting generally means your webapp has started a non-daemon
thread which does not exit when the webapp is destroyed. If so, shut
them down in a ServletContextListener.

If you aren't explicitly creating threads in your webapp then the usual
culprits are database connections that haven't been closed (or any other
client api to remote services that uses asynchronous messaging and/or
keepalive semantics).

To see a dump of the threads still active after you've run shutdown.bat
do a CTRL-BREAK in the tomcat dos console.

HTH,

Jon

Charles Fineman wrote:


I started Tomcat using startup.bat. Everything goes fine. I use
shutdown.batto bring it down. The server fields the request and shuts
down a bunch of
services (as evidenced by the messages I see). Sure enough, the server no
longer responds to any requests. Unfortunately, the java process does not
die.

I have this problem whether I start Tomcat by hand or if I use the Sysdeo
Eclipse plugin.

This problem has been a thorn in my side for some time but since it only
affects my development environment (we use it as a service in production and
there are no problems) and I can kill the process by hand, I've not worried
about it. It's annoying as heck though and I'm wondering if someone can shed
some light.

I searched around but (surprisingly!!) I didn't find anything similar to my
situation.

  


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





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

  



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



Re: Getting tomcat instance information into webapp

2005-10-03 Thread David Kerber
Thanks for the suggestions, Kyle!  I think either one of those 
suggestions would be workable; I'll have to do some reading and testing 
to see which I like better.  The only reason I wanted them to run on 
different ports is so that I don't have to change the url's they connect 
to during this server migration.  The only mandatory difference between 
the apps is the different back-end databases.


I think I've got enough to work with now; thanks again.


Kyle wrote:



David Kerber wrote:



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


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


Does that work?

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


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

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



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


You don't claim to be an expert, but you definitely know more of what 
you're talking about than I do, and I appreciate the time you've taken 
to help me out.



Dave

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



Re: Aliases for JNDI (JDBC) resources?

2005-10-03 Thread David Smith
To be honest, I think touching the server.xml is the only way to do
this.  Declare it as a global resource in server.xml and then declare a
resource link in all the contexts that need access.

--David

Lisa L. Woodring wrote:

I would like to create aliases for a JNDI (specifically, a JDBC)
resource, such that I can use multiple names to connect to the same
database -- and be able to use the same (i.e. only 1) connection pool
for that database.  I haven't been able to find anything on how/if this
is possible.  (I would like to be able to specify it all in context.xml
 not touch server.xml if possible.)  Any suggestions??

In other words, be able to do something to this effect (in context.xml):

Resource name=jdbc/actual_db_name auth=Container
type=javax.sql.DataSource
  driverClassName=org.postgresq.Driver   
  url=jdbc:postgresql://machine/actual_db_name
  maxActive=100 maxIdle=5  ...other parms...  /

alias link=jdbc/alias1 resource=jdbc/actual_db_name /
alias link=jdbc/alias2 resource=jdbc/actual_db_name /

Then use the jdbc/alias1 and jdbc/alias2 names in my code.


Lisa Woodring
Software Engineer, iGLASS Networks




  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Does anybody have a script to create a tomcat service on windows 2000? 
I'm trying to set my system up to run multiple copies of tomcat at the 
same time (on different ports, obviously), and can't get the service to 
create properly.


Thanks!
Dave

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



Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber

Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Script to create tomcat service on windows?


Does anybody have a script to create a tomcat service on 
windows 2000? 



Have you tried the service.bat script that's part of the standard
download?


No, I didn't see it.  I'll give it a try...




 - Chuck


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



Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
service.bat doesn't seem to be installed with 5.5.9.  I searched the 
entire HD of two different machines which have that it installed, and 
that file was not found.  I did find the html files with the description 
of service.bat, but not service.bat itself.




Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Script to create tomcat service on windows?


Does anybody have a script to create a tomcat service on 
windows 2000? 



Have you tried the service.bat script that's part of the standard
download?

 - Chuck



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



Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Do they still work?  I want to create a separate tomcat service so I can 
run two instances at once (on different ports, obviously).


Dave


Seak, Teng-Fong wrote:


   Yup, 5.5 is very different from 5.0 in that those *.bat files aren't
needed/included.  And 5.5 no longer needs JAVA_HOME environment variable.

David Kerber wrote:

 


service.bat doesn't seem to be installed with 5.5.9.  I searched the
entire HD of two different machines which have that it installed, and
that file was not found.  I did find the html files with the
description of service.bat, but not service.bat itself.



Caldarale, Charles R wrote:

   


From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to
create tomcat service on windows?

Does anybody have a script to create a tomcat service on windows 2000? 
   



Have you tried the service.bat script that's part of the standard
download?

- Chuck
 





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



Getting tomcat instance information into webapp

2005-10-02 Thread David Kerber
This question is part tomcat and part java; I'm running on a Windows 
2000 server.


I have a situation where I am going to need to run multiple instances of 
tomcat on a single machine, listening on different ports, but running 
the same application and hitting a different instance of an identical 
database (same schema, but on a different server).  So what I will need 
to do is be able to tell each instance of the application on its 
respective instance of tomcat which database to hit. 

Can I pass a parameter into tomcat from a conf file based on what port 
that instance of tomcat is listening on, and then get that parameter 
into my application?  If so, how?


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


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


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


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


Thanks!
DAve



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



Re: Getting tomcat instance information into webapp

2005-10-02 Thread David Kerber

Kyle wrote:

I may be misunderstanding the question, but it seems to me that this 
shouldn't really be an issue.


It's more likely that I don't know enought about tomcat to ask an 
intelligent question!




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


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




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


Ok, I didn't know that.  Right now, my jdbc connection criteria is 
hard-coded in the application (I didn't write it; just inherited it).  
It is set up to look for a specific ODBC DSN.  I can easily change the 
app to look for a configurable DSN, but don't know how to get that 
config info into the application.




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


I'll have to do some more careful reading about my context and 
server.xml entries.




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


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


K.


Thanks for the response!

Dave





David Kerber wrote:

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


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


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


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


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


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


Thanks!
DAve



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





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






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



Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread David Kerber
I am trying to migrate a webapp from SilverStream 3.7.5 to Tomcat, while 
keeping the same URL for my users.  Right now, they hit it at 
www.myserver.com:port/level1/level2/Login.jsp, where level1 is a 
database name, and level2 is a name we assigned.


The .war that provides the content is called SiteData.war, so when I 
deploy it to tomcat, it shows up at context path /SiteData.  I would 
love it if Tomcat could present the same stuff at the /level1/level2 
path.  If I have to deploy it as individual files instead of in a .war 
file, that's ok to, as would be other mods to path names, etc.  If 
someone could just give me some hints, I'd be very grateful.


BTW, I spent several hours googling and searching newsgroups, and found 
nothing showing multi-level context paths, so I don't even know for sure 
if it's possible.


Thanks!

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



Re: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread David Kerber
Awesome!!!  Worked first time.  I had tried messing with context 
paths in an application .xml, but never thought to try the server.xml.


One question:  what does the crossContext flag do?  Or is that what 
lets it look to a different path for the context path?  The help files I 
looked through don't list it...


Thanks a bunch!!


Trung Nguyen wrote:

David,

You can do this by modify the server.xml file from $TOMAT_HOME/conf/ directory:

Host name=www.myserver.com debug=0 unpackWARs=true
Context path=/level1/level2 docBase=/usr/var/apps/SiteData debug=0 
reloadable=true crossContext=true /
/Host

Where docBase is where you store your app. (SiteData)

Hope this help

---Trung


-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, September 30, 2005 1:47 PM
To: Tomcat Users List
Subject: Multi-level context paths possible in TC 5.5.9?


I am trying to migrate a webapp from SilverStream 3.7.5 to Tomcat, while 
keeping the same URL for my users.  Right now, they hit it at 
www.myserver.com:port/level1/level2/Login.jsp, where level1 is a 
database name, and level2 is a name we assigned.


The .war that provides the content is called SiteData.war, so when I 
deploy it to tomcat, it shows up at context path /SiteData.  I would 
love it if Tomcat could present the same stuff at the /level1/level2 
path.  If I have to deploy it as individual files instead of in a .war 
file, that's ok to, as would be other mods to path names, etc.  If 
someone could just give me some hints, I'd be very grateful.


BTW, I spent several hours googling and searching newsgroups, and found 
nothing showing multi-level context paths, so I don't even know for sure 
if it's possible.


Thanks!

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


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





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



Setting up HTTP Basic for a full Web-App

2005-09-30 Thread David Johnson
Hi all.

I think I'm doing something wrong. I'veadded the following to my web
application to use http-basicis there anything else I need to do to ensure
anyone logging in like this has full access to the app?

!-- Define a security constraint on this application --
security-constraint
  web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
!-- This role is not in the default user directory --
role-namemanager/role-name
  /auth-constraint
/security-constraint  

!-- Define the login configuration for this application --
login-config
  auth-methodBASIC/auth-method
  realm-nameMy Application/realm-name
/login-config

!-- Security roles referenced by this web application --
security-role
  description
The role that is required to log in to the Application
  /description
  role-namemanager/role-name
/security-role



--
-Dave
[EMAIL PROTECTED]


Re: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread David Kerber

It does help; thanks for the explanation.

Dave


Trung Nguyen wrote:

David,

Set crossContext to true if you want calls within this application to 
ServletContext.getContext() to successfully return a request dispatcher for other web 
applications running on this virtual host. Set to false (the default) in security 
conscious environments, to make getContext() always return null.

Hope this help.

---Trung


-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, September 30, 2005 2:47 PM
To: Tomcat Users List
Subject: Re: Multi-level context paths possible in TC 5.5.9?


Awesome!!!  Worked first time.  I had tried messing with context 
paths in an application .xml, but never thought to try the server.xml.


One question:  what does the crossContext flag do?  Or is that what 
lets it look to a different path for the context path?  The help files I 
looked through don't list it...


Thanks a bunch!!


Trung Nguyen wrote:


David,

You can do this by modify the server.xml file from $TOMAT_HOME/conf/ directory:

Host name=www.myserver.com debug=0 unpackWARs=true
Context path=/level1/level2 docBase=/usr/var/apps/SiteData debug=0 
reloadable=true crossContext=true /
/Host

Where docBase is where you store your app. (SiteData)

Hope this help

---Trung


-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, September 30, 2005 1:47 PM
To: Tomcat Users List
Subject: Multi-level context paths possible in TC 5.5.9?


I am trying to migrate a webapp from SilverStream 3.7.5 to Tomcat, while 
keeping the same URL for my users.  Right now, they hit it at 
www.myserver.com:port/level1/level2/Login.jsp, where level1 is a 
database name, and level2 is a name we assigned.


The .war that provides the content is called SiteData.war, so when I 
deploy it to tomcat, it shows up at context path /SiteData.  I would 
love it if Tomcat could present the same stuff at the /level1/level2 
path.  If I have to deploy it as individual files instead of in a .war 
file, that's ok to, as would be other mods to path names, etc.  If 
someone could just give me some hints, I'd be very grateful.


BTW, I spent several hours googling and searching newsgroups, and found 
nothing showing multi-level context paths, so I don't even know for sure 
if it's possible.


Thanks!



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



Re: Problems setting up Webdav folder on Tomcat 5.5

2005-09-28 Thread David Goodenough
On Monday 26 September 2005 19:32, David Goodenough wrote:
 On Monday 26 September 2005 16:51, David Goodenough wrote:
  I am trying to set up a webdav application on a machine running Tomcat
  5.5.
 
  The effect I want to create is that anyone can use
  http://machine/app/folder
  to read files, but only those who have logged on should be able to use
  webdav to create, update or delete files from the folder.
 
  I tried to do this by copying the web.xml file from the webdav WEB-INF
  folder into the app/WEB-INF directory, and also creating a Context file
  in conf/Catalina/localhost/app.xml as I want to authenticate those who
  are having to log on against a database (using JDBCRealm).
 
  But having set all this up I have obviously got something messed up as in
  catalina.out it complains about a NullPointerException, and says the
  problem happened while processing the default web.xml, at line 5 row 56.
  Now I take it that this is actually NOT refering to the default web.xml
  in the conf directory, as it is only this application that is hit (the
  others including the webdav one initialise correctly).  I assume it is
  actually refering to the one for this webapp.  But what is odd is that
  line 5 is in the middle of a comment, which my xml editor says is quite
  correctly formed.
 
  It is a shame that when putting out such messages the real file name
  that it is processing is not included, and the line of text it is parsing
  is not included.
 
  The other thing that is odd is that the call stack trace suggests that it
  is not the web.xml file it is processing, but rather then context file. 
  I assume this out because it talks about functions called:-
 
  org.apache.catalina.startup.ContextConfig.processContextConfig(ContextCon
 fi g.java:778)
  org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.jav
 a: 718)
  org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:974)
 
  If it is my context file, that does have something to parse at line 5,
  and it reads:-
 
  Context
Realm classname=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.postgresql.Driver
   connectionURL=jdbc:postgresql:authority connectionName=david
  connectionPassword=
   userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=roles roleNameCol=role_name
  /Realm
/Context
 
  and for the life of me I can not see what is wrong with line 5 of that -
  although that is the last line so perhaps it is just an error somewhere
  in the Realm tag.  The Postgresql driver is in common/lib, the db exists
  and has those tables and columns in them.
 
  Any ideas?
 
  David
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 Well it would seem that my suspicions are correct, the problem is with
 the context file, not the web.xml file.  If I comment out the Realm in the
 context file the problem goes away.  I suspect that if it having problems
 loading one of the two classes mentioned, JDBCRealm or the JDBC driver.
 But I can not tell which.  Both are in JARs in the server/lib directory. 
 Any idea how I debug it.

 David

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
Is no-one else using Realms in application contexts?  My guess is that I am 
doing something simple wrong, but for the life of me I can not spot it.

So I guess I should file a bug as Tomcat should not report that the error
is in web.xml when it is a context file, and should not trap with a 
NullPointerException with no explanation.

David

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



RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread David Thielen
Asking again

Thanks - dave

David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 9:10 AM
To: 'Tomcat Users List'
Subject: Please verify this is correct: Need multiple virtual directories
for isapi_redirector

Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



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



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



RE: Desperately need help: What is correct for workers.properties.minimal

2005-09-27 Thread David Thielen
Asking again - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 9:09 AM
To: 'Tomcat Users List'
Subject: Desperately need help: What is correct for
workers.properties.minimal

Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



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


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



RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread David Thielen
I ask because I have come across way too many situations where something
works not by design, but by luck. And then it turns out that while it did
work - under certain circumstances it doesn't and I am left trying to find
the correct solution in the middle of an emergency.

Also, if this is the correct way to do it, I was going to post it in my blog
as I am sure others run across this same problem.

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 8:57 AM
To: Tomcat Users List
Subject: RE: Please verify this is correct: Need multiple virtual
directories for isapi_redirector

Dave,

If it's working via a solution you've configured, and you are not writing a
specification of how things will work, why do you keep asking this question?

With best intentions, Allistair.

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 27 September 2005 15:52
 To: 'Tomcat Users List'
 Subject: RE: Please verify this is correct: Need multiple virtual
 directories for isapi_redirector
 
 
 Asking again
 
 Thanks - dave
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 22, 2005 9:10 AM
 To: 'Tomcat Users List'
 Subject: Please verify this is correct: Need multiple virtual 
 directories
 for isapi_redirector
 
 Hi;
 
 I want to make sure this is correct:
 
 
 If you want to run Tomcat against multiple websites, not just 
 the default
 website, this is what I have had to do.
 
 This is on Windows 2003/IIS 6.0.
 
 I removed isapi_redirector.dll from the default web site 
 ISAPI Filters and
 put it in the parent Web Sites ISAPI Filter properties.
 
 I added a jakarta virtual directory for each website (and I 
 have a lot.).
 
 Now it appears to work.
 
 ??? - thanks - dave
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential
and may be privileged. This email is intended solely for the named recipient
only; if you are not authorised you must not disclose, copy, distribute, or
retain this message or any part of it. If you have received this message in
error please contact the sender at once so that we may take the appropriate
action and avoid troubling you further.  Any views expressed in this message
are those of the individual sender.  QAS Limited has the right lawfully to
record, monitor and inspect messages between its employees and any third
party.  Your messages shall be subject to such lawful supervision as QAS
Limited deems to be necessary in order to protect its information, its
interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS
Limited cannot guarantee that attachments are virus free or compatible with
your systems and does not accept any liability in respect of viruses or
computer problems experienced.
/FONT


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


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



Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread David Smith
a.k.a. Commons-Daemon (http://jakarta.apache.org/commons/daemon/)

Works beautifully.

--David

Andrés Glez. wrote:

 Use jsvc.

 - Original Message - From: NoKideen [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Tuesday, September 27, 2005 6:13 PM
 Subject: Running Tomcat as Non-Root under Linux listen for port 80


 is there anybody know how to do this ?
 Running Tomcat as Non-Root under Linux listen for port 80

 I'd try as tomcat , but there is error even if I do
 # chown -R tomcat:root /usr/tomcat/*


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




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



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



Re: Problem defining JNDI data source.

2005-09-27 Thread David C. Hicks
Thanks, I'll give it a try.  I think that's the one combination I have 
*not* tried yet.  :-)


Sastry Malladi wrote:

In tomcat 5.5.9, defining the resources under the Context element seems to 
have this kind of an issue. One way to resolve this is to define your 
datasource (i.e, Resource) under Server/GlobalNamingResources element  and 
then define a ResourceLink  in context.xml (in the same location as 
server.xml). Hope this helps.


This worked for us.

Sastry Malladi,
Architect
SpikeSource 

 

 



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



Need to contact mailing list admin regarding delivery issues

2005-09-26 Thread David Delbecq
Hello,

I need to contact the admin of this mailing list regarding delivery
issues with it.
Please cc: your reply to david.delbecq at myrealbox.com to ensure delivery.


Thanks.



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



Problems setting up Webdav folder on Tomcat 5.5

2005-09-26 Thread David Goodenough
I am trying to set up a webdav application on a machine running Tomcat 5.5.

The effect I want to create is that anyone can use 
http://machine/app/folder
to read files, but only those who have logged on should be able to use webdav
to create, update or delete files from the folder.

I tried to do this by copying the web.xml file from the webdav WEB-INF folder
into the app/WEB-INF directory, and also creating a Context file in 
conf/Catalina/localhost/app.xml as I want to authenticate those who are
having to log on against a database (using JDBCRealm).

But having set all this up I have obviously got something messed up as in 
catalina.out it complains about a NullPointerException, and says the problem
happened while processing the default web.xml, at line 5 row 56.  Now I take 
it that this is actually NOT refering to the default web.xml in the conf 
directory, as it is only this application that is hit (the others including 
the webdav one initialise correctly).  I assume it is actually refering to
the one for this webapp.  But what is odd is that line 5 is in the middle
of a comment, which my xml editor says is quite correctly formed.

It is a shame that when putting out such messages the real file name
that it is processing is not included, and the line of text it is parsing is
not included.

The other thing that is odd is that the call stack trace suggests that it is
not the web.xml file it is processing, but rather then context file.  I
assume this out because it talks about functions called:-

org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:778)
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:718)
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:974)

If it is my context file, that does have something to parse at line 5, and it 
reads:-

Context
  Realm classname=org.apache.catalina.realm.JDBCRealm debug=99 
driverName=org.postgresql.Driver
 connectionURL=jdbc:postgresql:authority connectionName=david 
connectionPassword=
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=roles roleNameCol=role_name
/Realm
  /Context

and for the life of me I can not see what is wrong with line 5 of that -
although that is the last line so perhaps it is just an error somewhere in the
Realm tag.  The Postgresql driver is in common/lib, the db exists and has 
those tables and columns in them.

Any ideas?

David


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



Re: Problems setting up Webdav folder on Tomcat 5.5

2005-09-26 Thread David Goodenough
On Monday 26 September 2005 16:51, David Goodenough wrote:
 I am trying to set up a webdav application on a machine running Tomcat 5.5.

 The effect I want to create is that anyone can use
 http://machine/app/folder
 to read files, but only those who have logged on should be able to use
 webdav to create, update or delete files from the folder.

 I tried to do this by copying the web.xml file from the webdav WEB-INF
 folder into the app/WEB-INF directory, and also creating a Context file
 in conf/Catalina/localhost/app.xml as I want to authenticate those who
 are having to log on against a database (using JDBCRealm).

 But having set all this up I have obviously got something messed up as in
 catalina.out it complains about a NullPointerException, and says the
 problem happened while processing the default web.xml, at line 5 row 56. 
 Now I take it that this is actually NOT refering to the default web.xml in
 the conf directory, as it is only this application that is hit (the others
 including the webdav one initialise correctly).  I assume it is actually
 refering to the one for this webapp.  But what is odd is that line 5 is in
 the middle of a comment, which my xml editor says is quite correctly
 formed.

 It is a shame that when putting out such messages the real file name
 that it is processing is not included, and the line of text it is parsing
 is not included.

 The other thing that is odd is that the call stack trace suggests that it
 is not the web.xml file it is processing, but rather then context file.  I
 assume this out because it talks about functions called:-

 org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfi
g.java:778)
 org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:
718) org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:974)

 If it is my context file, that does have something to parse at line 5, and
 it reads:-

 Context
   Realm classname=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.postgresql.Driver
  connectionURL=jdbc:postgresql:authority connectionName=david
 connectionPassword=
  userTable=users userNameCol=user_name userCredCol=user_pass
  userRoleTable=roles roleNameCol=role_name
 /Realm
   /Context

 and for the life of me I can not see what is wrong with line 5 of that -
 although that is the last line so perhaps it is just an error somewhere in
 the Realm tag.  The Postgresql driver is in common/lib, the db exists and
 has those tables and columns in them.

 Any ideas?

 David


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

Well it would seem that my suspicions are correct, the problem is with
the context file, not the web.xml file.  If I comment out the Realm in the
context file the problem goes away.  I suspect that if it having problems
loading one of the two classes mentioned, JDBCRealm or the JDBC driver.
But I can not tell which.  Both are in JARs in the server/lib directory.  Any
idea how I debug it.

David

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



Problem defining JNDI data source.

2005-09-26 Thread David C. Hicks
I'm having difficulty defining a JNDI data source using C3P0 pooling in 
Tomcat 5.5.9.  Here is the context descriptor for my app:


Context path=/ems reloadable=true
   Logger className=org.apache.catalina.logger.SystemOutLogger 
verbosity=4 timestamp=true/
   Loader className=org.apache.catalina.loader.DevLoader 
reloadable=true debug=1/

   Resource
   name=jdbc/EmsDb
   description=DB Connection
   auth=Container
   driverClass=net.sourceforge.jtds.jdbc.Driver
   minPoolSize=5
   maxPoolSize=10
   acquireIncrement=1
   user=sa
   password=
   factory=org.apache.naming.factory.BeanFactory
   type=com.mchange.v2.c3p0.ComboPooledDataSource
   jdbcUrl=jdbc:jtds:sqlserver://mars:1433/ems?autoReconnect=true
   /
/Context

Here is the resource-ref portion of my application descriptor:

 resource-ref
 descriptionDatabase Connection/description
   res-ref-namejdbc/EmsDb/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref

And here is the error I get from Tomcat when deploying the application:
2005-09-27 00:55:33,559 [http-8080-Processor25] ERROR 
JDBCExceptionReporter - Cannot create JDBC driver of class '' for 
connect URL 'null'


It almost seems as if the resource-ref is somehow overriding the 
Resource definition in the application context.

Any suggestions?

Thanks,
Dave


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



log files not rolling over.

2005-09-26 Thread David Thielen
Hi;

Some of my log files (the ones specified in log4j.xml) are not rolling over.
Specifically, after 3 days my logs directory is:

09/23/2005  12:18 PM 0 admin.2005-09-23.log
09/25/2005  10:08 PM 0 admin.2005-09-25.log
09/23/2005  12:18 PM 0 catalina.2005-09-23.log
09/25/2005  10:08 PM 0 catalina.2005-09-25.log
09/23/2005  12:18 PM 0 host-manager.2005-09-23.log
09/25/2005  10:08 PM 0 host-manager.2005-09-25.log
09/25/2005  10:06 PM56,743 isapi_redirect.log
09/23/2005  12:18 PM 0 jakarta_service_20050923.log
09/25/2005  10:08 PM 0 jakarta_service_20050925.log
09/23/2005  12:18 PM 0 localhost.2005-09-23.log
09/25/2005  10:08 PM 0 localhost.2005-09-25.log
09/23/2005  12:18 PM 0 manager.2005-09-23.log
09/25/2005  10:08 PM 0 manager.2005-09-25.log
09/23/2005  12:18 PM 0 stderr_20050923.log
09/25/2005  10:08 PM 0 stderr_20050925.log
09/25/2005  08:20 PM10,748 stdout_20050923.log
09/26/2005  10:30 AM 4,149 stdout_20050925.log
09/26/2005  10:30 AM 1,076 tomcat.log
09/26/2005  02:52 AM 5,867 windward.log

And stdout_*.log has:

log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-25].

Any idea why? Tomcat is running as Local System (default install) and System
has full rights on these files.

??? - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com



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



Re: HOW DOES TOMCAT JNDI CONNECTION POOLING WORKS

2005-09-23 Thread David Smith
1. Does tomcat really look into the pool?

Yes.  The pool code is really the commons DBCP project code refactored
slightly to avoid collisions with the real DBCP project code.

2. on conn.close(), are we really pushing the connection back into the pool?

Yes.

Sorry I can't help you on the Eclipse debugger question since I don't
use it.  It may be an artifact of the debugger or maybe DBCP's code. 
You might find the DBCP project documentation helpful in answering these
questions though.

--David

rahul wrote:

Hi all,
My questing is derived from the sample code given
at :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html#Database%20Connection%20Pool%20(DBCP)%20Configurations


If you can see the subsection 4(i.e. testcode) of section MySQL DBCP
Example,
to get a connection following code is used:
***
Context ctx = new InitialContext();
if(ctx == null )
throw new Exception(Boom - No Context);
DataSource ds =
(DataSource)ctx.lookup(
java:comp/env/jdbc/TestDB);
if (ds != null) {
Connection conn = ds.getConnection();
***

I guess by doing this a connection is obtained FROM THE POOL providing that
a connection is free in the pool.

I have got two questions regarding this-

Q 1. Does tomcat really looks into the pool to get me a connection? or it
just creates
a newone? I am asking this question because I am seeing(using eclipse
debugger)
two connection opened at the same time even after defining
maxActive=1 maxIdle=1 in my application'c context


Q 2. once your database operation is done you free the connection using

conn.close();

by doing this are we pushing the connection back into pool? if not then how
is
pool maintained?


Any help is appreciated

--RahulJoshi



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

  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Re: Can't connect to X11

2005-09-22 Thread David Delbecq
You are not supposed to use awt or swing on a java web server.
remove calls to awt/swing or use headless java.


Iin Nurhidayat a écrit :

Hi All,

I found this error :

  java.lang.InternalError: Can't connect to X11
window server using ':0.0' as the value of the DISPLAY
variable. 

on UNIX platform.

Please adv.

Thanks

Regards

- IN -




--- Antony GUILLOTEAU [EMAIL PROTECTED]
wrote:

  

I wanted to simulate a CLIENt-CERT realm to the
browser with serlvet
(response.setHeader(WWW-Authenticate, BASIC
realm=\myName\)) but it seems not possible. So I
want to basically redirect my request to SSL. 

I wish know how to redirect a request to the secure
port within a serlvet but I don't want use
init-parameter in the web.xml and so one.

Thanks






   
__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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

  



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



Desperately need help: What is correct for workers.properties.minimal

2005-09-22 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



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



Asking again: index.jsp and virtual directories

2005-09-22 Thread David Thielen
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



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



Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-22 Thread David Thielen
Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



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



Re: tomcat and firefox ssl problem - no common encryption algorithms

2005-09-22 Thread David Wall



As I said, I have done this successfully before and I am baffled that it is not 
working fo me now.
 

Perhaps you need send your server.xml along so others can see what 
you've done.  It definitely works with Firefox and IE on 5.5.9


David

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



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

2005-09-22 Thread David Thielen
I think (not sure as I am not a Tomcat expert) that you can just get 2
connections without closing either - and see that you got 2.

- dave


-Original Message-
From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 6:24 PM
To: Tomcat Users List
Subject: RE: db-connectin is working fine, but is it pooling?

Thanks, I'll do that, but still - how can I be sure that my pool have more
than just this one connection. Writing two servlets with endless loops,
avoiding checking the connections back would give me the answer I guess.
But why is there only one connection established to my DB server??

Is there a way to configure the pool to pre generate eg. 10 connections?

\trond


-Original Message-
From: Kyle [mailto:[EMAIL PROTECTED] 
Sent: 23. september 2005 02:14
To: Tomcat Users List
Subject: Re: db-connectin is working fine, but is it pooling?

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

K

Trond Hersløv wrote:

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



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


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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


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



RE: need final / in url

2005-09-21 Thread David Thielen
That was it - thanks - dave


-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:42 PM
To: Tomcat Users List
Subject: Re: need final / in url

David Thielen wrote:
 
 The url www.windward.net/forums fails while www.windward.net/forums/
 succeeds.
 
 My uriworkermap has:
 
 /forums/*=ajp13w


try:
/forums|/*=ajp13w

This will actually create two maps:
/forums=ajp13w
/forums/*=ajp13w

Regards,
Mladen.

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



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



Re: session tracking in a context that contains JSP and servlets

2005-09-21 Thread David Wall

Mark wrote:


I want to create a webapp that will contain both servlets and JSP.  I
will be using a login page to authenticate users.  I will probably use
one of the Tomcat supported authentication modules.

I am wondering if it is possible for tomcat to properly manage session
information when going between servlet and JSP pages.
 

Of course.  After all, every JSP is compiled into a servlet.  Naturally, 
if the browser supports session cookies, all is very easy, but if they 
block such cookies, then you'll need to use URL rewriting for every 
reference to an URL within your web app so that the session id can be 
transmitted back.  Use response.encodeURL() and 
response.encodeRedirectURL() as necessary.


David

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



Re: Resizing JPEG Images

2005-09-20 Thread David Delbecq
java.awt classses? :)
Le Mardi 20 Septembre 2005 10:40, Arup Vidyerthy a écrit :
 Hi,
 
 You have quite a few options. There are lots third party libs out there that
 can do this for you. Last couple of projects I have used JAI and
 ImageMagick/JMagick to do this. 
 
 Look them up.
 
 Hope this helps.
 
 Arup
 
 -Original Message-
 From: Justin Jaynes [mailto:[EMAIL PROTECTED] 
 Sent: 20 September 2005 04:29
 To: tomcat-user@jakarta.apache.org
 Subject: Resizing JPEG Images
 
 I am accepting JPEG uploads on a website I developed in JSP and  Java Beans.
 It all runs on Tomcat.
 
 I once knew of a Java Bean that would accept a JPEG and scale and resize the
 image and save it.  I need my web-app to resize the images as it accpets
 them.
 
 That was years ago.  I can't find it any longer.  Does anyone know how or
 where I should start?  If writing my own bean would be easy using some part
 of the Enterprise Java SDK, please point me in the right direction and I'll
 do the work.
 
 I am using the lates version of the JDK.
 
 Thanks,
 
 Justin
 
 
   
 __
 Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 ___ 
 To help you stay safe and secure online, we've developed the all new Yahoo! 
 Security Centre. http://uk.security.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Pingouins dans les champs, hiver méchant

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



Re: tomcat does not find my web application

2005-09-20 Thread David Delbecq
Le Mardi 20 Septembre 2005 12:55, Mbah Tenjoh-Okwen a écrit :
 
World,
When i create a folder my container does not 
 
 recognize my index.html file in the top level
 directory
 
 nor is it able to find my servlet classes. But when i
 
  duplicate the servlet-examples folder and rename 
 
 it(say servlet-examplesCopied), tomcat recognizes
 
  servlet-examplesCopied 's index.html and its
 servlets.
 
 

Hi,

What exactly did you try? Your mail is quite evasive.

 
  
   I have tried this on my pc and on my mac and still
 get the same strange results.Uninstalling and
 reinstalling tomcat has done me no good as well.
 please help.
 
 
 thanks in advance
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Pingouins dans les champs, hiver méchant

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



need final / in url

2005-09-20 Thread David Thielen
Hi;

 

The url www.windward.net/forums fails while www.windward.net/forums/
succeeds.

 

My uriworkermap has:

/forums/*=ajp13w

 

I understand that isapi_redirect sees the first as a filename - but
shouldn't it also look for it as a servlet?

 

Thanks - dave

 



Asking again: Need multiple virtual directories for isapi_redirector

2005-09-20 Thread David Thielen
Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



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



Asking again: index.jsp and virtual directories

2005-09-20 Thread David Thielen
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/


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



Asking again: What is correct for workers.properties.minimal

2005-09-20 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:
[Sun Sep 18 20:15:30 2005] [error]
HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name
ajp13

Thanks - dave



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



Asking again: Need multiple virtual directories for isapi_redirector

2005-09-19 Thread David Thielen
Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave


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



index.jsp and virtual directories

2005-09-19 Thread David Thielen
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



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



What is correct for workers.properties.minimal

2005-09-19 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:
[Sun Sep 18 20:15:30 2005] [error]
HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name
ajp13

Thanks - dave



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



Where to place a common jar file?

2005-09-19 Thread David Thielen
Hi;

 

If I have a jar file used by multiple servlets, should I put it in
${catalina}/common/lib or in ${catalina}/webapps/${each_app}/WEB-INF/lib?

 

I ask because I have seen various warnings that most jar files need to be
placed in each webapp and not in common (like struts).

 

??? - thanks - dave



RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
Hello;

I can feel your pain - I just went through this. A couple of things:
1) reboot. It shouldn't be necessary but was in my case.
2) If IIS6, you have to go to the web extensions(?) in IIS and add
isapi_redirect.dll as an allowed extension.

Good luck - dave


-Original Message-
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 2:23 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.9 and IIS 5/6

I am having to get Tomcat setup with IIS on Windows 2003. I started testing 
on my XP box to make sure I could get things rolling before I started 
screwing with the server. So first I download isapi_redirect.dll from
herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/
jk-1.2.14/.
Next, I followed step by step the instructions located
herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto
.html
.http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
ml

I have also changed the paths in my workers.properties file to reflect my 
java and tomcat home locations.

Needless to say, it is not working. I can't get the filter to show a green 
arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No 
log files are being generated or anything. 

I was wondering if

A. I am following current instructions
B. Do I have the right DLL downloaded
C. What else can I do

Thanks.

Gregg


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



Re: Where to place a common jar file?

2005-09-19 Thread David Smith
Shared jars can be placed in common/lib, but keep in mind that all your
webapps will be locked to the same version of the jar.  It's better to
have a copy in the webapp instead where you'll have more version
independence between wepapps.

--David


David Thielen wrote:

Hi;

 

If I have a jar file used by multiple servlets, should I put it in
${catalina}/common/lib or in ${catalina}/webapps/${each_app}/WEB-INF/lib?

 

I ask because I have seen various warnings that most jar files need to be
placed in each webapp and not in common (like struts).

 

??? - thanks - dave


  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
All I can suggest is make sure the uriworkers. and workers. files are
correct, that the registry is pointing at the ones you think it is pointing
at AND that you have the servlets spelled correctly - - its
servlets-examples, not servlet-examples on my system.

 

Thanks - dave

 

 

  _  

From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 2:45 PM
To: David Thielen
Cc: Tomcat Users List
Subject: Re: Tomcat 5.5.9 and IIS 5/6

 

Ok Dave. I rebooted and the Filter is Green.  So that is a start.  However,
the servlets-examples is still not being loaded.  Says page cannot be
displayed.  There is nothing in the log file.  I made sure, per your
discovery, that the uriworkermap.properties file is fixed.  Any other
suggestions?

Thanks a bunch.


Gregg

On 9/19/05, David Thielen  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

Hello;

I can feel your pain - I just went through this. A couple of things: 
1) reboot. It shouldn't be necessary but was in my case.
2) If IIS6, you have to go to the web extensions(?) in IIS and add
isapi_redirect.dll as an allowed extension.

Good luck - dave


-Original Message- 
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 2:23 PM
To: tomcat-user@jakarta.apache.org 
Subject: Tomcat 5.5.9 and IIS 5/6

I am having to get Tomcat setup with IIS on Windows 2003. I started testing
on my XP box to make sure I could get things rolling before I started
screwing with the server. So first I download isapi_redirect.dll from 
herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/
jk-1.2.14/.
Next, I followed step by step the instructions located 
herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto
.html
.
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
ml

I have also changed the paths in my workers.properties file to reflect my
java and tomcat home locations.

Needless to say, it is not working. I can't get the filter to show a green 
arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No
log files are being generated or anything.

I was wondering if

A. I am following current instructions
B. Do I have the right DLL downloaded 
C. What else can I do

Thanks.

Gregg

 



RE: Where to place a common jar file?

2005-09-19 Thread David Thielen
Sorry - you're right on the shared vs common. I put the jdbc drivers in
common/lib as I access them via Tomcat's jndi - so Tomcat uses them. Is that
correct for them

Thanks - dave


-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 4:19 PM
To: Tomcat Users List
Subject: Re: Where to place a common jar file?

From the Tomcat documetation:

http://localhost:8080/tomcat-docs/class-loader-howto.html

* For classes and resources specific to a particular 
web application, place unpacked classes and resources 
under /WEB-INF/classes  of your web application 
archive, or place JAR files containing those classes 
and resources under /WEB-INF/lib of your web
application archive.

* For classes and resources that must be shared across

all web applications, place unpacked classes and 
resources under $CATALINA_BASE/shared/classes, or
place 
JAR files containing those classes and resources under

$CATALINA_BASE/shared/lib.

Further on down the page:

Common - This class loader contains additional classes

that are made visible to both Tomcat internal classes 
and to all web applications. Normally, application 
classes should NOT  be placed here.

/mde/

--- David Smith [EMAIL PROTECTED] wrote:

 Shared jars can be placed in common/lib, but keep in
 mind that all your
 webapps will be locked to the same version of the
 jar.  It's better to
 have a copy in the webapp instead where you'll have
 more version
 independence between wepapps.
 
 --David
 
 
 David Thielen wrote:
 
 Hi;
 
  
 
 If I have a jar file used by multiple servlets,
 should I put it in
 ${catalina}/common/lib or in
 ${catalina}/webapps/${each_app}/WEB-INF/lib?




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



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



RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
For worker.properties.minimal you need (you're missing the first line):

worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009


-Original Message-
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 3:20 PM
To: David Thielen
Cc: Tomcat Users List
Subject: Re: Tomcat 5.5.9 and IIS 5/6

Ohm another thing...I actually got an error in my tomcat log fle.

HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name

ajp13w

Does that help?

gregg

On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote:
 
 Ok Dave. Checking..Here is the information I have. Maybe I have a typo and

 can't see it because I have been staring at it too long.
 
 workers.properties.minimal
 ---
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8009
 
 uriworkermap.properties
 
 /servlets-examples/*=ajp13w
 !/servlets-examples/*.jpeg=ajp13w
 
 registry
 -
 Value 0
 Name: extension_uri
 Type: REG_SZ
 Data: /jakarta/isapi_redirect.dll
 
 Value 1
 Name: log_file
 Type: REG_SZ
 Data: c:\tomcat\logs\isapi.log
 
 Value 2
 Name: log_level
 Type: REG_SZ
 Data: info
 
 Value 3
 Name: worker_file
 Type: REG_SZ
 Data: c:\tomcat\conf\workers.properties.minimal
 
 Value 4
 Name: worker_mount_file
 Type: REG_SZ
 Data: c:\tomcat\conf\uriworkermap.properties
 
 everything looks good to me, but who knows.
 
 Gregg
 
 On 9/19/05, David Thielen [EMAIL PROTECTED] wrote:
  
   All I can suggest is make sure the uriworkers. and workers. files are 
  correct, that the registry is pointing at the ones you think it is
pointing 
  at AND that you have the servlets spelled correctly - - its 
  servlets-examples, not servlet-examples on my system.
  
   Thanks - dave
  
 --
   
  *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
  *Sent:* Monday, September 19, 2005 2:45 PM
  *To:* David Thielen
  *Cc:* Tomcat Users List
  *Subject:* Re: Tomcat 5.5.9 and IIS 5/6
   
   Ok Dave. I rebooted and the Filter is Green. So that is a start. 
  However, the servlets-examples is still not being loaded. Says page
cannot 
  be displayed. There is nothing in the log file. I made sure, per your 
  discovery, that the uriworkermap.properties file is fixed. Any other 
  suggestions?
  
  Thanks a bunch.
  
  
  Gregg
   
  On 9/19/05, *David Thielen*  [EMAIL PROTECTED] wrote:
  
  Hello;
  
  I can feel your pain - I just went through this. A couple of things: 
  1) reboot. It shouldn't be necessary but was in my case.
  2) If IIS6, you have to go to the web extensions(?) in IIS and add
  isapi_redirect.dll as an allowed extension.
  
  Good luck - dave
  
  
  -Original Message- 
  From: Gregg D Bolinger [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 19, 2005 2:23 PM
  To: tomcat-user@jakarta.apache.org 
  Subject: Tomcat 5.5.9 and IIS 5/6
  
  I am having to get Tomcat setup with IIS on Windows 2003. I started 
  testing
  on my XP box to make sure I could get things rolling before I started
  screwing with the server. So first I download isapi_redirect.dll from 
 
herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/

  
  jk-1.2.14/.
  Next, I followed step by step the instructions located 
 
herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto

  
  .html
 
.http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
  ml
  
  I have also changed the paths in my workers.properties file to reflect 
  my
  java and tomcat home locations.
  
  Needless to say, it is not working. I can't get the filter to show a 
  green 
  arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. 
  No
  log files are being generated or anything.
  
  I was wondering if
  
  A. I am following current instructions
  B. Do I have the right DLL downloaded 
  C. What else can I do
  
  Thanks.
  
  Gregg
   
   



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



Need multiple virtual directories for isapi_redirector

2005-09-18 Thread David Thielen
Hi;

 

If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

 

IS THIS CORRECT??

 

This is on Windows 2003/IIS 6.0.

 

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

 

I added a jakarta virtual directory for each website (and I have a lot.).

 

Now it appears to work.

 

??? - thanks - dave

 

Google:

HttpFilterProc::jk_isapi_plugin.c (849): [/track/index.htm] is a servlet url
- should redirect to ajp13w (last line in log)

Host header

Multiple web sites

 



trying to get jsp files in my IIS directory to work

2005-09-17 Thread David Thielen
Hi;

 

Here is the basic problem I am trying to solve. On our server we use the
request header to serve up a web page. So www.windward.net
http://www.windward.net/  and www.windwardreports.com
http://www.windwardreports.com/  which go to the same server use a
different website to return pages. The true root of all this is
jasmine.windward.net/windward and jasmine.windward.net/windwardreports.

 

The problem is that when testing on my system, I don't have a way to do the
virtual websites based on the header request. So I am always
localhost/windward and localhost/windwardreports.

 

When I need to have links between my jsp pages and my static pages, I don't
know if I need to add in that extra directory. If I could just process jsp
files that are in the IIS directory, then it would not be a problem because
they would all be ./filename to each other.

 

I tried the following in my uriworkermap.properties:

*.jsp=ajp13w

/*.jsp=ajp13w

/windwardreports/*.jsp=ajp13w

 

But I get an error 404. And nothing in any of the log files.

 

Any suggestions, ideas?

 

Thanks - dave

 



Can't get isapi_redir working on Win 2003/IIS6

2005-09-17 Thread David Thielen
Hi;

 

I have tomcat working fine on my workstation - Windows XP/ IIS5

 

I installed tomcat on our server - Windows 2003 / IIS6

 

I ran the isape_redirect.exe installer. 

I then copied over my worker.properties.minimal and uriworkermap.properties.


I then went to Web Services Extensions and added isapi_redirector.dll and
set it to allowed.

 

I have a green arrow for the jakarta ISAPI Filter

The registry entries and jakarta virtual directory properties all look
correct - they were set by the installer.

 

I can run one of my servlets using 8080 - http://www.windward.net:8080/track
works

But http://www.windward.net/track
http://www.windward.net/track%20fails%20with%20error%20404  fails with
error 404.

 

The log:

2005-09-18 04:36:59 W3SVC862201082 JASMINE 192.168.200.11 GET /track - 80 -
192.168.200.11
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.
NET+CLR+1.0.3705) sourceid=1127005230840_144 - www.windward.net 404 0 0

 

Workers.properties.minimal:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

uriworkermap.properties:

/admin/*=wlb

/manager/*=wlb

/store/*=ajp13w

/track/*=ajp13w

*.jsp=ajp13w

*.faces=ajp13w

/forums/*=ajp13w

 

isapi_redirect.log - empty (0 bytes)

 

Other logs - nothing on isapi_redirect.

 

Registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]

@=

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]

@=

extension_uri=/jakarta/isapi_redirect.dll

log_file=C:\\Tomcat 5.5\\logs\\isapi_redirect.log

log_level=info

worker_file=C:\\Tomcat 5.5\\conf\\workers.properties.minimal

worker_mount_file=C:\\Tomcat 5.5\\conf\\uriworkermap.properties

 

Any ideas?

 

Thanks - dave

 



RE: Can't get isapi_redir working on Win 2003/IIS6

2005-09-17 Thread David Thielen
I set logging to debug, deleted the log file, and restarted. No log file was
created. But in the ISAPI Filter list it does have a green up arrow.

What do I try now?

Thanks - dave


-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 17, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: Can't get isapi_redir working on Win 2003/IIS6

Hi;

 

I have tomcat working fine on my workstation - Windows XP/ IIS5

 

I installed tomcat on our server - Windows 2003 / IIS6

 

I ran the isape_redirect.exe installer. 

I then copied over my worker.properties.minimal and uriworkermap.properties.


I then went to Web Services Extensions and added isapi_redirector.dll and
set it to allowed.

 

I have a green arrow for the jakarta ISAPI Filter

The registry entries and jakarta virtual directory properties all look
correct - they were set by the installer.

 

I can run one of my servlets using 8080 - http://www.windward.net:8080/track
works

But http://www.windward.net/track
http://www.windward.net/track%20fails%20with%20error%20404  fails with
error 404.

 

The log:

2005-09-18 04:36:59 W3SVC862201082 JASMINE 192.168.200.11 GET /track - 80 -
192.168.200.11
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.
NET+CLR+1.0.3705) sourceid=1127005230840_144 - www.windward.net 404 0 0

 

Workers.properties.minimal:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

uriworkermap.properties:

/admin/*=wlb

/manager/*=wlb

/store/*=ajp13w

/track/*=ajp13w

*.jsp=ajp13w

*.faces=ajp13w

/forums/*=ajp13w

 

isapi_redirect.log - empty (0 bytes)

 

Other logs - nothing on isapi_redirect.

 

Registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]

@=

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]

@=

extension_uri=/jakarta/isapi_redirect.dll

log_file=C:\\Tomcat 5.5\\logs\\isapi_redirect.log

log_level=info

worker_file=C:\\Tomcat 5.5\\conf\\workers.properties.minimal

worker_mount_file=C:\\Tomcat 5.5\\conf\\uriworkermap.properties

 

Any ideas?

 

Thanks - dave

 



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



Re: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

2005-09-14 Thread David Delbecq
Just my 2 cents:

Have you tried putting it under shared/lib?

Also, are you sure it's a .jar and not a .zip extension for you file?

Am using here an oracle connector in various webapp. The driver is
under common/lib of tomcat 5.5.7 and i have no problems, so i bet this
is the right location Perhaps your file is corrupted (check you can unzip it and
the driver file exist in it).



Le Mercredi 14 Septembre 2005 17:01, [EMAIL PROTECTED] a écrit :
 Hi fellas,
 
 I'm working on Tomcat 5.5.7 on a webapp compiled by Ant using shared and 
 common libraries in their respective tomcat folders.
 
 My mysql driver (mysql-connector-java-3.1.10-bin.jar) is in the 
 $CATALINA_HOME/common/lib/ folder and I still get the following message :
 
 Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
 
 It happens when the dataSourceVariable.getConnection() method of type 
 org.apache.commons.dbcp.BasicDataSource is called in my program. 
 
 The thing is, it works fine when I put all my libraries in the 
 wabapp/application/WEB-INF/lib/ folder but I need to share (for production 
 purposes) the mysql driver.
 
 My Ant build.xml file includes the following directives, which include the 
 libraries in a path variable :
 
 
 
 path id=compile.classpath
 pathelement location=${tomcat.home}/common/classes/
 fileset dir=${tomcat.home}/common/endorsed
   include name=*.jar/
 /fileset
 fileset dir=${tomcat.home}/common/lib
   include name=*.jar/
 /fileset
 pathelement location=${tomcat.home}/shared/classes/
 fileset dir=${tomcat.home}/shared/lib
   include name=*.jar/
 /fileset
 /path
 
 
 
 And my compile target is as follows :
 
 
 
 target name=compile depends=prepare
description=Compiler les sources Java
 mkdir dir=${build.home}/WEB-INF/classes/
 javac srcdir=${src.dir}
   destdir=${build.dir}
 debug=${compile.debug}
   deprecation=${compile.deprecation}
  optimize=${compile.optimize}
 classpath refid=compile.classpath/
 /javac
 !-- Copy application resources --
 copy  todir=${build.home}/WEB-INF/classes
   fileset dir=${build.dir} excludes=**/*.java/
 /copy
   copy  todir=${build.home}/WEB-INF/
   fileset 
   dir=${basedir}/WEB-INF/ 
   includes=**/*.xml, **/*.tld, **/*.dtd/
   /copy
   copy  todir=${build.home}/WEB-INF/lib
   fileset dir=${basedir}/WEB-INF/lib includes=*.jar /
 /copy
   /target
 
 
 I've been working for over a week on this one and I'm out of ideas... if 
 anyone has a flash, feel free to express it, who knows, it might help.
 
 
 
 Luc Boudreau
 SID - Université du Québec
 [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



RE: Can't change servlet path

2005-09-14 Thread David Thielen
Hi;

I'm not understanding something here I think. On (1) you say (I think) that
I must put Context in server.xml for the path attribute. But in (2) you
tell me (I think) to not put Context in server.xml?

What am I not getting here?

Thanks - dave


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:27 PM
To: Tomcat Users List
Subject: RE: Can't change servlet path

 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't change servlet path
 
 1) Why is this forced in server.xml when otherwise we are 
 supposed to put everything in our META-INF?

You should consider the use of Context in server.xml as merely a
migration mechanism from older Tomcat versions.  The path attribute has
to be used in this situation, since there is no other means of
determining the application name.  For the other two cases, the
application name is derivable from either the location or the name of
the .xml file.

 2) In this case, is the context.xml in my META-INF used also? In other
 words, should I put the JDBC Resource node in the Context node in
 server.xml or in my context.xml?

You simply shouldn't have a Context tag in server.xml (see above).

 3) While /abc now works, /store still does too. Is this by design?

I suspect that your app has actually been deployed twice - once for each
of the Context instances you have.  I believe the normal way of
handling a single app that you want to use under multiple path names is
to have trivial secondary apps that merely forward requests to the real
one.  (Others may have better solutions, since I primarily work on the
inside of the JVM, not on J2EE apps.)

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Problem making my servlet the default servlet (instead of ROOT)

2005-09-14 Thread David Thielen
Hi;

We have some ASP stuff too so we have to have IIS.

I think I'll just put my servlet in root and stop trying to change what root
is (yuck).

Thanks - dave


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 10:45 PM
To: Tomcat Users List
Subject: Re: Problem making my servlet the default servlet (instead of ROOT)

 If I do Context path=/ docBase=store., then
 http://localhost:8080/cart.faces  returns an error 404.

Yep. It will. Since you are using the path attribute I assume this is in the

server.xml and to set it as the root you would use .

 If you specify a context path of an empty string (), you are defining 
the default web application for this Host, which will process all requests 
not assigned to other Contexts. 

If this is not in the server.xml then remove the path attribute completely. 
Name your package ROOT.war and deploy it. (Someone correct me if I am wrong 
here.)


 I figured it should be / and not ?


No. See above.


 If I do Context path= docBase=store., then it works. But.

 http://localhost:8080/store/cart.faces works

 http://localhost/store/cart.faces works (via IIS)

 http://localhost:8080/cart.faces works

 http://localhost/cart.faces - error 404



 Any idea why the error only if using the root?




I don't use IIS but I would say it is a configuration issue in the 
connector, as you are connecting to two different apps in the first two URLs

than you are in the last two. And since both :8080 URLs work then Tomcat is 
working.

Out of curiosity is there any particular reason you are using IIS and not 
Tomcat alone?

Doug 



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



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



Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread David Haynes

Wade Chandler wrote:


--- [EMAIL PROTECTED] wrote:

 


I have and they put it down to being the Tomcat
application - not much use
at all!
On task manager it does indicate that tomcat is at
fault..
   

Another suggestion. Grab a copy of JBoss or Sun App Serv (or whatever 
you have handy) and see if the problem is reproduceable on one of those 
platforms. If so, the problem is clearly with the app, not the app 
server. Then send the software vendor an invoice for debugging their 
issues ;-)


-david-


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



Re: Redeploy a war host without reboot

2005-09-13 Thread David Delbecq
Hello

The easiest way is to have each virtual host with it's own webapp directory
(like webapps/ for default host, webapps-univaperta for the univaperta host).
In each virtualhost, copy the manager webapp (this can be downloaded
from tomcat webpage).
You should have something like webapps-univaperta/manager/ in your
directory structure afterwards. Start tomcat and point your browser
to http://www.univaperta.it/manager/html
login using the manager account (see manager 
doc for details at http://www.univaperta.it/manager/).
Inside this manager there is everything you need 
undeploy/deploy/start/stop webapps. Only the
webapps of current virtualhost will be listed :)

And no, you don't need to stop/restart tomcat to
reploy your war.

Le Mardi 13 Septembre 2005 18:05, Andrea Bondi a écrit :
 Hi to all,
 I've set up Tomcat v. 5.5.9 as the server for the domain
 www.univaperta.it
 This is a virtual host, not the only site in this server. Configuration
 is the following:
 
 Host
   appBase=webapps/univaperta
   name=www.univaperta.it
 Context
 docBase=
 path=
 reloadable=true
 
 WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
   WatchedResourceWEB-INF/web.xml/WatchedResource
 
 WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
   WatchedResourceWEB-INF/web.xml/WatchedResource
 
 WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
   WatchedResourceWEB-INF/web.xml/WatchedResource
 
 WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
   WatchedResourceWEB-INF/web.xml/WatchedResource
 /Context
 /Host
 
 The site works fine.
 The problem is that I develop this on another computer and deploy as a
 war (univaperta.war). For every update I have to follow this procedure:
 - undeploy the site from tomcat manager
 - restart tomcat
 - deploy the war file
 - restart tomcat
 
 Is there an easier way to do this?
 
 Thank you
 Andrea Bondi
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Can't change servlet path

2005-09-13 Thread David Thielen
Hi;

 

I have tried the following in context.xml (in webapps/store/WEB-INF and
META-INF):

 

Context path=/abc docBase=store debug=5 reloadable=true
crossContext=true

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

username=sa password=*
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver

 
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor

maxActive=8 maxIdle=4/

/Context

 

But http://localhost:8080/abc/ fails while http://localhost:8080/store/
works. What am I doing wrong?

 

Also, does context.xml go in WEB-INF or META-INF?

 

Thanks - dave

 

 



RE: Can't change servlet path

2005-09-13 Thread David Thielen
Hello;

I am using Tomcat 5.5 (which is really nice).

1) I have no Context nodes in server.xml

2) Tomcat 5.5\conf\context.xml is:
Context
WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

3) Tomcat 5.5\webapps\store\META-INF\context.xml is:
Context path=/abc docBase=store debug=5 reloadable=true
crossContext=true
Resource name=jdbc/storeDB auth=Container
type=javax.sql.DataSource username=sa password=*
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor maxActive=8 maxIdle=4/
/Context

Yet http://localhost:8080/abc fails and http://localhost:8080/store
succeeds.

I've read all the docs and it seems to me this is supposed to work.

What am I missing

Thanks - dave


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 3:59 PM
To: Tomcat Users List
Subject: RE: Can't change servlet path

 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Subject: Can't change servlet path
 
 I have tried the following in context.xml (in 
 webapps/store/WEB-INF and META-INF):

Please read the very explicit doc:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

(Since you didn't bother to tell us which Tomcat version you're using,
you'll need to adjust the above URL appropriately.)

In particular, the above says:

In addition to nesting Context elements inside a Host element, you can
also store them:
* in the individual $CATALINA_HOME/conf/context.xml file: the
Context element information will be loaded by all webapps
* in the individual
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file:
the Context element information will be loaded by all webapps of that
host
* in individual files (with a .xml extension) in the
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory
* if the previous file was not found for this application, in
individual file at /META-INF/context.xml inside the application files

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.  Instead,
put them in the META-INF/context.xml directory of your WAR file or the
conf directory as described above.

If you are using 5.5, also note the following for the path attribute:

The value of this field must not be set except when statically defining
a Context in server.xml, as it will be infered [sic] from the filenames
used for either the .xml context file or the docBase.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Can't change servlet path

2005-09-13 Thread David Thielen
Hi;

I'm sorry - I saw all the notes about don't put anything in server.xml and
so skipped over that part.

Out of curiosity, three questions:

1) Why is this forced in server.xml when otherwise we are supposed to put
everything in our META-INF?

2) In this case, is the context.xml in my META-INF used also? In other
words, should I put the JDBC Resource node in the Context node in
server.xml or in my context.xml?

3) While /abc now works, /store still does too. Is this by design?

Thanks again - dave


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 5:42 PM
To: Tomcat Users List
Subject: RE: Can't change servlet path

 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't change servlet path
 
 3) Tomcat 5.5\webapps\store\META-INF\context.xml is:
   Context path=/abc docBase=store debug=5 reloadable=true
 crossContext=true
   /Context
 
 What am I missing

To repeat (3rd time today):

 If you are using 5.5, also note the following for the path attribute:
 
 The value of this field must not be set except when 
 statically defining a Context in server.xml, as it will
 be infered [sic] from the filenames used for either the
 .xml context file or the docBase.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Problem making my servlet the default servlet (instead of ROOT)

2005-09-13 Thread David Thielen
Hi;

 

If I do Context path=/ docBase=store., then
http://localhost:8080/cart.faces  returns an error 404.

 

I figured it should be / and not ?

 

 

If I do Context path= docBase=store., then it works. But.

http://localhost:8080/store/cart.faces works

http://localhost/store/cart.faces works (via IIS)

http://localhost:8080/cart.faces works

http://localhost/cart.faces - error 404

 

Any idea why the error only if using the root?

 

??? - thanks - dave



Re: Trying to connect tomcat5 with postgresql database

2005-09-12 Thread David Smith
Depends on how you are deploying your app.

1) If deploying as an expanded folder, name the context.xml file after
your webapp and place it in conf/Catalina/localhost.  For example, if
your app is called tutorial, it would have it's Context element in the
file $CATALINA_BASE/conf/Catalina/localhost/tutorial.xml where
$CATALINA_BASE is the top level of your tomcat installation.

2) If deploying as a .war file, the file is named 'context.xml' and
placed in the META-INF directory of the war archive.  Tomcat will read
it when deploying the application.

--David

Mattier, Ricardo wrote:

Where should the context.xml file be placed, and what else should go in
this file?  I'll rename my jar file to see if that works too?  Thanks! 


Rick Mattier
Systems Analyst II
Wind River Systems
Canton: 781 364-2002
Nashua 603 897-2084
Email: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 6:16 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

And make sure the driver you downloaded matches your server version.
Also, for some reason, my setup wouldn't work until I renamed the driver
to postgresql.jar from pg74.216.jdbc3.jar.


  

Hi Rick --

Resource auth=Container
  description=PostgresSQL Connection Pool
  name=jdbc/postDB type=javax.sql.DataSource
  driverClassName=org.postgresql.Driver
  url=jdbc:postgresql://localhost:5432/test
/

Good, just make sure you get the rest of the parameters in there like 
username= and password=x.  The ResourceParams elements 
are not used in tomcat 5.5.  Also you mentioned this is in server.xml.



  

It should be inside the Context element of the context.xml file used



  

in your deployment.

  resource-ref
   res-ref-namejdbc/postDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

The web.xml looks good.  The only other thing I can think of is to be 
sure the driver jar file is in common/lib.


Edoardo Panfili wrote:



I miss a part of my web.xml

===
web-app
resource-ref
descriptionpostgreSQL Datasource/description
res-ref-namejdbc/lisy/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

display-namelisy/display-name

..

==

Edoardo


Mattier, Ricardo wrote:

  

I duplicated your configuration for the server.xml file, and I came



  

up with the same error.
-Original Message-
From: Edoardo Panfili [mailto:[EMAIL PROTECTED] Sent: Saturday, 
September 10, 2005 7:49 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

This is my configuration server.xml 

Resource name=jdbc/guidebook auth=Container 
type=javax.sql.DataSource/
ResourceParams name=jdbc/lisy
parameter
namefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceF
actor
y/value
/parameter
parameter
namedriverClassName/namevalueorg.postgresql.Driver/value
/parameter
parameter
nameurl/namevaluejdbc:postgresql://127.0.0.1:5432/lisy/value


/parameter
parameter
nameusername/namevalueUNAME/value
/parameter
parameter
namepassword/namevaluePWD/value
/parameter
parameter
nameinitialSize/namevalue3/value
/parameter
parameter
namemaxActive/namevalue5/value
/parameter
parameter
namemaxIdle/namevalue5/value
/parameter
  parameter
nameminIdle/namevalue3/value
/parameter
parameter
namemaxWait/namevalue-1/value
/parameter
parameter
nameremoveAbandoned/namevaluetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/namevalue60/value
/parameter
parameter
namelogAbandoned/namevaluetrue/value
/parameter
/ResourceParams

= conde inside the servlet

Context ambiente =(
Context) new InitialContext().lookup(java:comp/env);

DataSource pool = (DataSource) ambiente.lookup(jdbc/lisy);

Connection c=pool.getConnection();

==

I am using Postgres 7.4 and Tomcat 5.0

Edoardo



Mattier, Ricardo wrote:



Hello,   I'm currently working with Tomcat5 on Solaris10 x86 
machine.  I'm running into problems when trying to access a 
postgresql 8.0.1 database on the local machine. Cannot create JDBC
  


  

driver of class '' for connect URL null'  is the error I receive 
when trying to establish
  

a connection.



Here's the snipet of code I used in my .jsp:
Context ctx = new InitialConection();

DataSource ds = 
(DataSource)ctx.lookup(java:comp/env/jdbc/postDB);

Connection con = ds.getConnection();

I noticed it would compile fine if I remove

Re: Trying to connect tomcat5 with postgresql database

2005-09-12 Thread David Haynes

Rick,
Until you are comfortable with all this, may I suggest you download the 
NetBeans IDE (if company policy allows it) and see how they are setting 
everything up? NetBeans has a good template for a war distributed 
web-app and gives you a friendly way to deploy your war file to a TomCat 
server - either the one that is supplied (5.5.7) or one of your choosing 
(requires some minimal setting of preferences).


At that point, you may add the postgresql drivers and datasource and see 
how it all bolts together.


-david-

p.s. If you need further help with the datasource context, email me and 
I'll show you how it works for me.


Mattier, Ricardo wrote:


For now, I placed a test .jsp file in the $CATALINA_HOME/webapps/ROOT
directory.  I haven't deployed a .war file yet.   



Rick Mattier
Systems Analyst II
Wind River Systems
Canton: 781 364-2002
Nashua 603 897-2084
Email: [EMAIL PROTECTED]
 




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



Asking Again: What's the best way to mix html jsp

2005-09-12 Thread David Thielen

Hi;

I have websites which are 95% html and 5% jsp/jsf. Any suggestions on the
best way to mix this? What I have always done to date is put the jsp/jsf
stuff under the Tomcat webapps dir and the rest under the IIS
inetpub/wwwroot dir. It's a little disjointed during development but seems
to work great in production.

? - thanks - dave


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



Asking again: Final questions: Default pages

2005-09-12 Thread David Thielen

Hi;

I have multiple domains on my website (IIS). I would like to do the
following.

When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
the root of a specific webapp of mine.

In other words, all requests for a .jsp (or .faces) page is mapped to the
same servlet regardless of the domain. And that the servlet name is not
needed as part of the url.

How can I do this?

Thanks - dave


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



RE: Asking again: Final questions: Default pages

2005-09-12 Thread David Thielen
Hi;

What I am trying to do is beable to have a url of www.windward.net/cart.jsp
instead of www.windward.net/stroe/cart.jsp. Is there any way to get the
servlet name out of the url for the default servlet?

Thanks - dave


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: Asking again: Final questions: Default pages

Hi,

Just don't bother putting the domain in the mapping from IIS to Tomcat, e.g

/*.jsp=ajp13

would capture both domain requests and forward to Tomcat.

Allistair.

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 12 September 2005 17:03
 To: 'Tomcat Users List'
 Subject: Asking again: Final questions: Default pages
 
 
 
 Hi;
 
 I have multiple domains on my website (IIS). I would like to do the
 following.
 
 When a user goes to http://www.windward.net/cart.jsp or
 http://www.windwardreports.com/cart.jsp that it then loads 
 the jsp page in
 the root of a specific webapp of mine.
 
 In other words, all requests for a .jsp (or .faces) page is 
 mapped to the
 same servlet regardless of the domain. And that the servlet 
 name is not
 needed as part of the url.
 
 How can I do this?
 
 Thanks - dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential
and may be privileged. This email is intended solely for the named recipient
only; if you are not authorised you must not disclose, copy, distribute, or
retain this message or any part of it. If you have received this message in
error please contact the sender at once so that we may take the appropriate
action and avoid troubling you further.  Any views expressed in this message
are those of the individual sender.  QAS Limited has the right lawfully to
record, monitor and inspect messages between its employees and any third
party.  Your messages shall be subject to such lawful supervision as QAS
Limited deems to be necessary in order to protect its information, its
interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS
Limited cannot guarantee that attachments are virus free or compatible with
your systems and does not accept any liability in respect of viruses or
computer problems experienced.
/FONT


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



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



Re: Trying to connect tomcat5 with postgresql database

2005-09-11 Thread David Smith
-ref-namejdbc/postDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

Thanks in advance!
-Rick Mattier

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






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


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






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




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


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



RE: Final questions: Default pages

2005-09-11 Thread david
Hello;

I'm sorry but I don't understand your answer.

Thanks - dave


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Sunday, September 11, 2005 7:48 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Final questions: Default pages


David Thielen [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi;



 I have multiple domains on my website (IIS). I would like to do the
 following.



 When a user goes to http://www.windward.net/cart.jsp or
 http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
 the root of a specific webapp of mine.



 In other words, all requests for a .jsp (or .faces) page is mapped to the
 same servlet regardless of the domain. And that the servlet name is not
 needed as part of the url.



 How can I do this?


Simplest is to Alias one or the other to your real VHost.  With TC 5.5.10+

you can also use useIPVHosts=true on the Connector to use whatever IIS 
sends for SERVER_NAME as the Host name for mapping (really don't know, and

care even less how this will work :).



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



Re: AJP connector maxthreads problem

2005-09-10 Thread David Wall


1) We have only a moderately busy site with about 500 new visitors 
entering from outside every day, so it would have thought it would be 
fairly difficult for them to use up all the 75 connections at the same 
time, but I do have some programmes that create their own threads, 
though in a fairly limited way. In your expert view are 75 jk2 
connections sufficient for this kind of moderate use, or is it likely 
I've some kind of problem I've got to get to the bottom of?
I've been through my recent new applications, and there really is 
nothing that could have created this problem recently.



It sure sounds like something is not releasing the threads.  In low 
volume sites, having 75 concurrent requests would be high.  It sounds 
like they are not being properly released when done.




2) I've set connectionTimeout=2, which seems to be what everybody 
else was setting it to, can I reduce this without any problem? It 
seems quite long, 20 seconds, why hang on to connections for so long, 
or is there a lot of overhead in creating them?


I believe this value is how long Tomcat will wait to receive the actual 
HTTP requests after it establishes the connection.  So 20 seconds is 
more than adequate.  Making it too low may cause people are slower dial 
up or the like to get problems.




3) If I want to, can I increase my max connections to 125 without any 
qualms? - This would appear to be the simplest solution here.



That would certainly work, but if you are running out because threads 
are not being released, it just means you'll run out later than before.


Good luck,
David

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



  1   2   3   4   5   6   7   8   9   10   >