Vedr.: Tomcat iis and ntlm

2004-03-22 Thread Thomas Nybro Bolding
Hi Warren,
assuming you have setup the ISAPI redirector correct and has IIS serving 
JSP/Servlets through port 80 make sure you have added 
request.tomcatAuthentication=false to your jk2.properties file.

/Thomas




Warren Black [EMAIL PROTECTED]
21-03-2004 21:53
Besvar venligst til Tomcat Users List

 
Til:[EMAIL PROTECTED]
cc: 
Vedr.:  Tomcat iis and ntlm



Hi,
I am trying to pass a users ntlm credentials from iis to tomcat but they
always appears as NULL. I believe there is a mod to tomcat to fix this.

Can anyone point me in the right direction?

regards

Warren


Okana Systems Limited
mailto:[EMAIL PROTECTED]
mobile: +44 (0)7958 706580

This message is intended for the named person only. In the event you 
receive
this message in error then please notify the sender and delete all copies 
of
this message. The information contained in the message may be confidential
and therefore you must not distribute the information in any way. Views
contained in this message are those of the sender.




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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT



Jetspeed classpath?

2004-03-22 Thread Vi
Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

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


RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?


Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

-
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: Jetspeed classpath?

2004-03-22 Thread Vi
:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:
You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?
Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

-
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: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
can't find blah
Can you be more specific?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:03
À : Tomcat Users List
Objet : Re: Jetspeed classpath?


:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:

You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?


Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

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



Re: Jetspeed classpath?

2004-03-22 Thread Vi
Sorry, here they are:
HelloWorldPortlet.java:5: package org.apache.jetspeed.portal.portlets 
does not exist
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
  ^
HelloWorldPortlet.java:9: package org.apache.ecs does not exist
import org.apache.ecs.ConcreteElement;
 ^
HelloWorldPortlet.java:11: package org.apache.ecs does not exist
import org.apache.ecs.StringElement;
 ^
HelloWorldPortlet.java:15: cannot find symbol
symbol: class AbstractInstancePortlet
public class HelloWorldPortlet extends AbstractInstancePortlet
  ^
HelloWorldPortlet.java:19: cannot find symbol
symbol  : class ConcreteElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
   public ConcreteElement getContent (RunData runData)
  ^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : class StringElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
   return (new StringElement (Hello World! # + getID()));
   ^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : method getID()
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
   return (new StringElement (Hello World! # + getID()));
 ^
7 errors

STOCKHOLM, Raymond wrote:

can't find blah
   

Can you be more specific?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:03
À : Tomcat Users List
Objet : Re: Jetspeed classpath?
:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:
 

You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?
Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

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



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


RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
org.apache.jetspeed.portal.portlets.* is located in jetspeed.jar
In your webapp, you need jetspeed.jar in WEB-INF/lib, 
along with the various jars used by jetspeed (quite a lot...)

Are the errors you get displayed in the jetspeed.log file ?

Note : 
Jetspeed is delivered as a war (jetspeed.war)
that you only need to put in your $TOMCAT/webapps.
Did you manage to access the default jetspeed home page ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:15
À : Tomcat Users List
Objet : Re: Jetspeed classpath?


Sorry, here they are:
HelloWorldPortlet.java:5: package org.apache.jetspeed.portal.portlets 
does not exist
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
   ^
HelloWorldPortlet.java:9: package org.apache.ecs does not exist
import org.apache.ecs.ConcreteElement;
  ^
HelloWorldPortlet.java:11: package org.apache.ecs does not exist
import org.apache.ecs.StringElement;
  ^
HelloWorldPortlet.java:15: cannot find symbol
symbol: class AbstractInstancePortlet
public class HelloWorldPortlet extends AbstractInstancePortlet
   ^
HelloWorldPortlet.java:19: cannot find symbol
symbol  : class ConcreteElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
public ConcreteElement getContent (RunData runData)
   ^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : class StringElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
return (new StringElement (Hello World! # + getID()));
^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : method getID()
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
return (new StringElement (Hello World! # + getID()));
  ^
7 errors

STOCKHOLM, Raymond wrote:

can't find blah


Can you be more specific?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:03
À : Tomcat Users List
Objet : Re: Jetspeed classpath?


:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:

  

You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?


Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

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


  



-
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: Jetspeed classpath?

2004-03-22 Thread Vi
Hi, yes. Everything is ok now. I put jetspeed jars where they need to 
be, and redifined classpath.
Thanks for help. :)

STOCKHOLM, Raymond wrote:

org.apache.jetspeed.portal.portlets.* is located in jetspeed.jar
In your webapp, you need jetspeed.jar in WEB-INF/lib, 
along with the various jars used by jetspeed (quite a lot...)

Are the errors you get displayed in the jetspeed.log file ?

Note : 
Jetspeed is delivered as a war (jetspeed.war)
that you only need to put in your $TOMCAT/webapps.
Did you manage to access the default jetspeed home page ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:15
À : Tomcat Users List
Objet : Re: Jetspeed classpath?
Sorry, here they are:
HelloWorldPortlet.java:5: package org.apache.jetspeed.portal.portlets 
does not exist
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
  ^
HelloWorldPortlet.java:9: package org.apache.ecs does not exist
import org.apache.ecs.ConcreteElement;
 ^
HelloWorldPortlet.java:11: package org.apache.ecs does not exist
import org.apache.ecs.StringElement;
 ^
HelloWorldPortlet.java:15: cannot find symbol
symbol: class AbstractInstancePortlet
public class HelloWorldPortlet extends AbstractInstancePortlet
  ^
HelloWorldPortlet.java:19: cannot find symbol
symbol  : class ConcreteElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
   public ConcreteElement getContent (RunData runData)
  ^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : class StringElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
   return (new StringElement (Hello World! # + getID()));
   ^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : method getID()
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
   return (new StringElement (Hello World! # + getID()));
 ^
7 errors

STOCKHOLM, Raymond wrote:

 

can't find blah
  

 

Can you be more specific?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:03
À : Tomcat Users List
Objet : Re: Jetspeed classpath?
:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:


   

You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?
Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name *.jar  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

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


   



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


java.util.zip.ZipException error message

2004-03-22 Thread Chris Daly
hi

i'm trying to stop tomcat 4.1 (bin/shutdown.sh) and getting the following 
error (unix sun machine)

java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:110)
at java.util.jar.JarFile.init(JarFile.java:115)
at java.util.jar.JarFile.init(JarFile.java:57)
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1216)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:221)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:153)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: 
java.util.zip.ZipException: error in opening zip file
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1246)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:221)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:153)

i have one application which has its context path set in server xml (ie the 
app is not a folder from the tomcat ROOT directory), and am building 
another app which is created simply via putting the folder in the server 
root directory ie webapps/ROOT/library.  there is also a search servlet -

http://www.servletsuite.com/servlets/search.htm which i am trying to run 
from the webapps/ROOT/lbrary/WEB-INF directory (ie web.xml)

any ideas ?

cheers

chris 

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


Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Harry Mantheakis
Hello

Does anyone know if it is possible to use the Tomcat Manager tasks in Ant
over HTTPS?

I had everything working beautifully over HTTP, then I got the bright idea
to get Manager to work off HTTPS only, and now my Ant tasks are all broken.

I re-set Ant's Manager ULR to HTTPS//:...:8443/... But I get this error:

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
No trusted certificate found

Sadly, certificates are still a mystery to me. I rolled my own as per the
Tomcat how-to, and for my development needs that was fine, but I never got
past that stage.

Now I am running my own server, and I have got to bite this bullet. Any
pointers would be much appreciated!

Regards

Harry Mantheakis
London, UK


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



RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-03-22 Thread Bodycombe, Andrew
Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj 

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:400
1,10.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TestWeb from URL
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
doLoad
SEVERE: ClassNotFoundException while loading persisted sessions:
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Gregor . Kovac




Importing CA's certificate to cacerts($JAVA_HOME/jre/lib/security) should
resolve your problem. Password for cacerts is changeit

Best regards,
  Kovi

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac |[EMAIL PROTECTED]   |

|  In A World Without Fences Who Needs Gates?  |
|  Experience Linux.   |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~



   
   
  Harry Mantheakis 
   
  [EMAIL PROTECTED] Za:  Tomcat Users List
  
  erve.co.uk [EMAIL PROTECTED]  
  
  kp:  
   
  22.03.2004 11:52Zadeva:  Ant and Tomcat Manager 
over HTTPS  
  Prosim, odgovorite za
   
  Tomcat Users List  
   
   
   
   
   




Hello

Does anyone know if it is possible to use the Tomcat Manager tasks in Ant
over HTTPS?

I had everything working beautifully over HTTP, then I got the bright idea
to get Manager to work off HTTPS only, and now my Ant tasks are all broken.

I re-set Ant's Manager ULR to HTTPS//:...:8443/... But I get this error:

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
No trusted certificate found

Sadly, certificates are still a mystery to me. I rolled my own as per the
Tomcat how-to, and for my development needs that was fine, but I never got
past that stage.

Now I am running my own server, and I have got to bite this bullet. Any
pointers would be much appreciated!

Regards

Harry Mantheakis
London, UK


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



mod_jk2, lb_factor question

2004-03-22 Thread Torsten Henschel
Hi,

can anybody describe me the values of lb_factor.

lb_factor=1
lb_factor=10

Which value means more requests for the worker?
Normaly 10, but the worker with value 1 recieves 99% of requests, but not
all!

Regards

Torsten

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



How does Tomcat work?

2004-03-22 Thread Bernd Kauling
Hello list,

i am a 18 year old student from germany, who 
needs some information about the tomcat server.
How does it work? 
Do you have some background information i may can use?

I would be pleased, for every little hint on this topic.

thanks :)


regards: Bernd


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



RE: How does Tomcat work?

2004-03-22 Thread STOCKHOLM, Raymond
go and check the documentation online : 
(tomcat 4.1) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
or
(tomcat 5.0) http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

An excellent book : O'Reilly', Tomcat The Definitive Guide


-Message d'origine-
De : Bernd Kauling [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 12:52
À : [EMAIL PROTECTED]
Objet : How does Tomcat work?


Hello list,

i am a 18 year old student from germany, who 
needs some information about the tomcat server.
How does it work? 
Do you have some background information i may can use?

I would be pleased, for every little hint on this topic.

thanks :)


regards: Bernd


-
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: How does Tomcat work?

2004-03-22 Thread Bernd Kauling
Whooaa

many thanks :)

regards: Bernd

Am Mon, 2004-03-22 um 12.55 schrieb STOCKHOLM, Raymond:
 go and check the documentation online : 
 (tomcat 4.1) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
 or
 (tomcat 5.0) http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
 
 An excellent book : O'Reilly', Tomcat The Definitive Guide
 
 
 -Message d'origine-
 De : Bernd Kauling [mailto:[EMAIL PROTECTED]
 Envoy : lundi 22 mars 2004 12:52
  : [EMAIL PROTECTED]
 Objet : How does Tomcat work?
 
 
 Hello list,
 
 i am a 18 year old student from germany, who 
 needs some information about the tomcat server.
 How does it work? 
 Do you have some background information i may can use?
 
 I would be pleased, for every little hint on this topic.
 
 thanks :)
 
 
 regards: Bernd
 
 
 -
 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]



Dynamic class reloading and memory reclaiming

2004-03-22 Thread Allistair Crossley
Hi Guys

I am able to generate an OutOfMemoryException on Tomcat by recompiling the main 
servlet of my application which forces Tomcat to reload my web application from 
scratch (i.e all the application scope objects and so on). 

Is it correct that Tomcat will not reclaim the memory that the old loaded classes had 
handles on?

This is certainly the observable behaviour and I was wondering if there is an 
explanation for it. 

Thanks, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Philipp Taprogge
Hi!

Harry Mantheakis wrote:
Does anyone know if it is possible to use the Tomcat Manager tasks in Ant
over HTTPS?
snip
Now I am running my own server, and I have got to bite this bullet. Any
pointers would be much appreciated!
Firstly, it would be nice if you could start your own thread next time 
instead of highjacking an existing one with your question.

As for your problem: is SSL not working altogether or is it just ant 
complaining? Can you access the manager via a browser using https?

	Phil

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


Deployment strategy in a clustered environment

2004-03-22 Thread Hubbert, Thomas
Hi, 
I'm looking for a deployment strategy for my production server which enables
me to deploy new code without terminating all the user sessions. I was
thinking about using two tomcat 5 instances and set up in memory session
replication, but I still don't know what to do after I stopped the first
instance and deployed the new code. If I restart the app it would try to get
the session information from the other tomcat instance running the old code,
which would probably result in some exceptions, wouldn't it?! Can I
deactivate (and reactivate) session replication at runtime?

Also is there any way on telling modjk (currently using version 1.2) not to
send requests for new sessions but still forward already existing sessions
(with a valid jvmroute) to the tomcat instance still running the old code
version? This way I could shutdown the second tomcat after all the sessions
are closed by the users (or timed out). 

Cheers
Thomas

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



Re: http://localhost/ works but http://ip address/ doesn't

2004-03-22 Thread Parsons Technical Services
Ted,

Last thing first. I did find you can set the IP with address=??? in the
server.xml. Check for this. Unless you have a specific need to you can
remove it.

Now in case that is not the issue:

  Sitting at you windows box that is running TC you can open IE and access
  http://localhost but if you try to access http://yourMachinesIP it
fails.

 Right

You keep mentioning the linksys, so I have to ask, are you trying to use the
actual IP of you machine (192.168.1.100) or the public IP assigned to the
Internet side of the Linksys (assuming it is connected to the Internet)?


  From a command prompt ping localhost. Then ping the IP of your machine.

 Both return a response.  I'm using the Linksys router BEFSR41 with port
 forwarding enabled for port 80.


 
  Notice that localhost resolves to 127.0.0.?
 
  Do an ipconfig /all from the command promrt. Confirm the IP of your
 machine.

 This shows 192.168.1.100 as the IP for my machine.

 
  Are you running ANY firewall software? Disable it on a temporary basis
to
  test.

 Not sure how to cleanly disable the Linksys firewall protection.

  Then configure it to allow http port 80 traffic through.

 Port forwarding is enabled for port 80 (http).


There are primarily three cases that can happen with your setup:

1.
Call http://localhost-- no response
Call http://machineIP-- no response
Call http://publicIP-- no response

Tomcat is not running.
Firewall on machine is blocking all IP traffic(rare but can happen).
TCP/IP stack is corrupt.

Since localhost works this is not the issue with yours.

2.
Call http://localhost-- response
Call http://machineIP-- no response
Call http://publicIP-- no response

Tomcat is misconfigured. Address setting for IP other than machine IP.
Firewall is enabled/running on machine(not external unit).

3.
Call http://localhost-- response
Call http://machineIP-- response
Call http://publicIP-- no response

External firewall is misconfigured.
Machine firewall is misconfigured. (Some firewalls treat requests to
yourself as localhost and do not filter them. Try accessing http:/machineIP
from another machine on the network if available.)

Confirm which category you fall into. Then check the items listed.

What version of windows are you running?

If 2000 or higher go into network connection properties and select the
Ethernet adapter that is connected to your linksys. Click on the advanced
tab and confirm that the box beside firewall is NOT checked.

If you are category three and the machine firewall is off then you have a
problem with your Linksys.

Doug



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



RE: internal error (); ServletException: Error instantiating servlet; StackOverflowError

2004-03-22 Thread Rostislav Svoboda
Shapira, Yoav wrote:
Well, thanks for providing a bit of entertainment as we head into the
weekend
:) you're welcomed :)

Look in your Login servlet class for infinite loops or infinite
recursion.  This has nothing to do with tomcat's classes and it's far
from being a tomcat bug.
it was a sneaky recursive declaration:
   file A.java:public class A { B b= new B(); }
   file B.java:public class B { A a= new A(); }
thanks for the tip Yoav!

EOF

Bost

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


Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Parsons Technical Services
Phil,

Harry DID start his own. He may have used the same subject line as an old
message, but nothing existing in the last few months.

Yeah I know, time for an afternoon nap or some caffeine.

Doug

- Original Message - 
From: Philipp Taprogge [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 7:16 AM
Subject: Re: Ant and Tomcat Manager over HTTPS


 Hi!

 Harry Mantheakis wrote:
  Does anyone know if it is possible to use the Tomcat Manager tasks in
Ant
  over HTTPS?
 snip
  Now I am running my own server, and I have got to bite this bullet. Any
  pointers would be much appreciated!

 Firstly, it would be nice if you could start your own thread next time
 instead of highjacking an existing one with your question.

 As for your problem: is SSL not working altogether or is it just ant
 complaining? Can you access the manager via a browser using https?

 Phil


 -
 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: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Philipp Taprogge
Hi!

Parsons Technical Services wrote:
Harry DID start his own. He may have used the same subject line as an old
message, but nothing existing in the last few months.
I am sorry, but he did not. Quoting from the headers:

Philipp Taprogge wrote:
Subject: Programmatically deploying webapps
Message-Id: [EMAIL PROTECTED]
Harry Mantheakis wrote:
Subject: Programmatically deploying webapps
Message-Id: [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]

What he did is he opened my original posting and then hit the reply 
button. This causes a new mail composition window to open, and works 
just like composing a new mail to the given address, but invisible to 
the user, most MUAs include In-Reply-To: or Reference: headers that 
are used to display the threads.

It's no big deal, but most people who do not use threaded display in 
their MUAs are unaware of this.

Regards

	Phil

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


RE: catalina logs

2004-03-22 Thread Shapira, Yoav

Hi,

 I understand that Tomcat has a logging API, I understand that
it's a wrapper around some other log package (log4j?).

Tomcat's logging is a mixture: it has its own Loggers and it uses
commons-logging as well.  As time goes on, we've converting more and
more code to use commons-logging.

simple change I can make, maybe switching my System.out.println()
invocations to invoke some logger class?

Yes, use ServletContext#log instead of System.out.println and the output
will go to your context log.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Disable Coyote Connector at runtime?

2004-03-22 Thread Shapira, Yoav

Hi,
Sure.  See the pause(), stop(), destroy() methods of
org.apache.coyote.tomcat5.CoyoteConnector.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Andrew Clute [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:37 PM
To: [EMAIL PROTECTED]
Subject: Disable Coyote Connector at runtime?

Is there a way to turn off one of the Coyote connectors (specifically
the port 8009 one) at runtime?

What I am trying to accomplish is that I have a collection of JBoss
servers (with integrated Tomcat) that are clustered together using
mod_jk as the load balancer. Every once in awhile I want to remove one
of the instances from the cluster to do maintenance work, or maybe
deploy a new application to it to test inside a production server.

Obviously, I can shut the instance down, comment out the AJP13
connector, and restart the instance, and mod_jk won't sent requests
it's way, but I was hoping that there was someway to turn off the AJP13
connector at runtime, short of having to restart the server.

Thoughts?

Thanks
-Andrew


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Dynamic class reloading and memory reclaiming

2004-03-22 Thread Shapira, Yoav

Hi,
Boy, you sure are running into a lot of problems ;)  So many posts in
the past weeks...

I am able to generate an OutOfMemoryException on Tomcat by recompiling
the
main servlet of my application which forces Tomcat to reload my web
application from scratch (i.e all the application scope objects and so
on).

Is it correct that Tomcat will not reclaim the memory that the old
loaded
classes had handles on?

This is certainly the observable behaviour and I was wondering if there
is
an explanation for it.

It depends on how your classes maintain references.  Since the old
classloader is intact, static references from your servlets, for
example, will be kept.  Tomcat can't do anything about that, it's your
own bad design in the context of reloading webapps (it might be OK
design in a console java program).

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: HELP!

2004-03-22 Thread Shapira, Yoav

Hi,

After spending a lot of time just trying to do a simple thing like
configure Tomcat 3.2 to work with Apache 1.3, I'm beginning to rethink
using Tomcat! Here is my question.

I don't have an answer for your question, but a couple of tips:
- There aren't as many people using Tomcat 3.x on this list.  You will
get significantly more support (though not necessarily higher quality
support, as Senor Barker [Tomcat 3.x guru] is da man) if you use tomcat
4 or 5.

- Connecting Apache to Tomcat isn't necessarily a simple thing as you
claim, depending on your setup.  For example, it sounds like you're
throwing in a redirection or two as well.

- Using HELP! as a subject line is likely to make people ignore your
post as a newbie/whiny request: try a more descriptive subject line and
remember the points brought forth on
http://jakarta.apache.org/tomcat/faq/tomcatuser.html.

- There won't be much people can tell you about your problem unless you
post the relevant setup filers, e.g. server.xml/workers.properties, etc.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Image proccessing deployment problem, Give me some Idea's where to look.

2004-03-22 Thread Shapira, Yoav

Hi,
Try the MyEclipse mailing list (I'm assuming there is one).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 11:52 AM
To: [EMAIL PROTECTED]
Subject: Image proccessing deployment problem, Give me some Idea's
where to
look.

This is a weird problem, so please excuse me if this is not Tomcat
related because I'm not sure where the problem is.

Dev. Environment: Tomcat 5.0; IDE: MyEclipse, WinXP

Problem: Using Jmagik (ImageMagic) to process image files. Tomcat works
fine when I start Tomcat from the startup.bat and processes images
correctly. But, when I start and deploy to Tomcat within MyEclipse it
can't find the jmagic.jar file even though I have jmagic.jar in all the
library paths.

Any clues?

TIA


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: internal error (); ServletException: Error instantiating servlet; StackOverflowError

2004-03-22 Thread Shapira, Yoav

Hi,
Cool, glad to help ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rostislav Svoboda [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 8:23 AM
To: Tomcat Users List
Subject: RE: internal error (); ServletException: Error instantiating
servlet; StackOverflowError

Shapira, Yoav wrote:
 Well, thanks for providing a bit of entertainment as we head into the
 weekend

:) you're welcomed :)

 Look in your Login servlet class for infinite loops or infinite
 recursion.  This has nothing to do with tomcat's classes and it's far
 from being a tomcat bug.

it was a sneaky recursive declaration:
file A.java:public class A { B b= new B(); }
file B.java:public class B { A a= new A(); }

thanks for the tip Yoav!

EOF

Bost

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: java.lang.OutOfMemoryError

2004-03-22 Thread Shapira, Yoav

Hi,
You know, I remember the good old days on this list when people backed up claims and 
assertions with a bit of proof ;)  Show us a profiler snapshot (or sequence thereof), 
provide a test program to reproduce the problem, anything really more than an empty 
claim...

As to the original poster, use a profiler to see where your memory is allocated when 
you get the OutOfMemoryError.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 7:28 PM
To: Tomcat Users List
Subject: Re: java.lang.OutOfMemoryError

Sounds like the same memory leak problem I've been having.  The problem
is when new threads are created to handle concurrent connections.

Marco Pöhler wrote:
 Hi,

 I'm running tomcat 5.0.19  J2SDK1.4.2_03 on a suse linux 8.1. I wrote a
 really simple application, just one servlet and a few jsp pages, using
 dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have
to
 restart the tomcat to fix the problem. Here is the log entry:

 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]:
Servlet.service()
 for servlet mapperServlet threw exception
 java.lang.OutOfMemoryError

 Okay, I've investigated my source code for some kind of memory leak, but
 without any success. How can I found what the problem is ? Are there
tools
 which can help me ?

 thanks in advance

 Marco Poehler

 ---
 http://www.poehlerpoehler.de



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Configuration Help

2004-03-22 Thread LILES, DAVID (CONTRACTOR)
For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management console from 
the IP address:8080 and the two example web apps are working, both from the IP 
address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP address:8080/webapp 
and IP address/webapp, but when I attempt to access it from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address of the 
server and one host tag is set to the IP address. I have a second host tag that is 
set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level and in the 
web app I'm trying to get working I created a virtual directory named jakarta. I 
have made all the necessary registry entries required to support the .dll.

Thanks,
Dave

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



RE: Problem with tomcat talking to OpenEJB

2004-03-22 Thread Shapira, Yoav

Hi,

java.lang.NullPointerException
   at
org.apache.jsp.cardholder.account.statements_jsp._jspService(statements
_jsp
.
java:206)

Look at the java version of this JSP in tomcat's work directory.  That
will show you where the error occurs.  If I had to guess without even
looking, I'd say it's the JNDI context lookup that's throwing an NPE.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: mod_jk (with Apache 1.3.29) support for cronolog

2004-03-22 Thread Anbu
Hello folks,

I have been trying on making mod_jk 1.2.5 support for
cronolog but it has not come through. I modified the
mod_jk code so that we use the piped logging thru
mechanims like ap_open_piped_log(). 

 The cronolog processes are getting started. But the
directories and log files are not created.

When I use ErrorLog in Apache directive the
directories  files are created and cronolog works
fine. It does not work only for mod_jk.

Could anyone please help me on this?.

Thanks,
Kuloth

--- Anbu [EMAIL PROTECTED] wrote:
 
 Hello Team,
 
 The  mod_jk module from version 1.2.3 onwards (with
 Apache 2.0) has support for cronolog.
 
 I am trying to get it work on Apache 1.3.29 with
 mod_jk 1.2.5 (by porting the code from mod_jk.c of
 Apache 2.0). Alas I have tried quite good number of
 times and yet to succeed.
 
 Please let me know if anyone has tried the same or
 if someone could throw some light on the
 feasibililty. 
 
 Thanks in advance,
 
 Kuloth
 
  
 
  
 
  
 
 Do you Yahoo!?
 Yahoo! Mail - More reliable, more storage, less spam


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Parser error in web.xml

2004-03-22 Thread Edson Alves Pereira
Could someone explain why tomcat complain about it?

2004-03-22 10:54:06 ContextConfig[/osctrl-app] Parse error in application
web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'jsp' is not
unique
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2383)


Here´s my web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameosctrl/display-name
descriptionSite para controle de SSI/description


!--//--
context-param

param-nameCtx_osctrl.common.OS_cadastroUsuarioBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroUsuarioB
rhdnCTRL=IdhdnTitulo=usuário]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroPerfilBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroPerfilBr
hdnCTRL=IdhdnTitulo=perfil]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroGrupoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroGrupoBr
hdnCTRL=IdhdnTitulo=grupo]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroVinculoPerfilTelaBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroVinculoP
erfilTelaBrhdnCTRL=IdhdnTypeCTRL=numerohdnSizeCTRL=3hdnTitulo=vínculo de
perfil com telas]]/param-value
/context-param

!-- Cadastro geral: --
context-param

param-nameCtx_osctrl.common.OS_cadastroEquipeBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroEquipeBr
hdnCTRL=IdhdnTitulo=equipes de
trabalhohdnSizeCTRL=10hdnTituloCTRL=Equipe]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroRecursoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroRecursoB
rhdnCTRL=IdhdnTitulo=recursoshdnTypeCTRL=numerohdnSizeCTRL=3hdnTituloCT
RL=Recurso]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroDiretoriaBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroDiretori
aBrhdnCTRL=IdhdnTitulo=diretoriahdnSizeCTRL=3hdnTypeCTRL=numerohdnTitul
oCTRL=Diretoria]]/param-value
/context-param

context-param

param-nameCtx_osctrl.admin.OS_cadastroFaseBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroFaseBrhd
nCTRL=IdhdnTitulo=fasehdnSizeCTRL=3hdnTypeCTRL=numerohdnTituloCTRL=Fase]
]/param-value
/context-param

context-param

param-nameCtx_osctrl.admin.OS_cadastroSituacaoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroSituacaoB
rhdnCTRL=IdhdnTitulo=situaçãohdnSizeCTRL=3hdnTypeCTRL=numerohdnTituloCT
RL=Situacao]]/param-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroDeptoBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroDeptoBr
hdnCTRL=IdhdnTitulo=departamentohdnSizeCTRL=3hdnTypeCTRL=numerohdnTitulo
CTRL=Departamento]]/param-value
/context-param

context-param

param-nameCtx_osctrl.admin.OS_cadastroPatrocinadorBr/param-name

param-value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroPatrocina
dorBrhdnCTRL=IdhdnTitulo=pstrocinador de
projetoshdnSizeCTRL=4hdnTypeCTRL=numerohdnTituloCTRL=Patrocinador]]/par
am-value
/context-param

context-param

param-nameCtx_osctrl.common.OS_cadastroStatusBr/param-name


RE: Possible thread crossing

2004-03-22 Thread Shapira, Yoav

Hi,

One thing I have noticed is that there is only one java thread when I
start tomcat.  On a previous install there had been about 8.  Here is
the output of ps -ef relative to tomcat:
tomcat   13074 1  0 Mar11 ?00:00:32
/usr/local/java/bin/java
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
/usr/local/java/lib/t

Then your previous install was strange ;)  There's only one (per
instance of tomcat) OS-level thread.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Parser error in web.xml

2004-03-22 Thread Shapira, Yoav

Hi,
If you want to override's the JSP servlet definition in $CATALINA_HOME/conf/web.xml, 
give it a different name.  It's illegal to have to servlets with the same servlet-name 
in your web.xml (which is effectively merged at runtime with conf/web.xml).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:16 AM
To: 'Tomcat-User List'
Subject: Parser error in web.xml

   Could someone explain why tomcat complain about it?

2004-03-22 10:54:06 ContextConfig[/osctrl-app] Parse error in application
web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'jsp' is not
unique
   at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2383)


   Here´s my web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameosctrl/display-name
descriptionSite para controle de SSI/description


!--//--
   context-param

param-nameCtx_osctrl.common.OS_cadastroUsuarioBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroUsuario
B
rhdnCTRL=IdhdnTitulo=usuário]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.common.OS_cadastroPerfilBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroPerfilB
r
hdnCTRL=IdhdnTitulo=perfil]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.common.OS_cadastroGrupoBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroGrupoBr

hdnCTRL=IdhdnTitulo=grupo]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.common.OS_cadastroVinculoPerfilTelaBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroVinculo
P
erfilTelaBrhdnCTRL=IdhdnTypeCTRL=numerohdnSizeCTRL=3hdnTitulo=vínculo
de
perfil com telas]]/param-value
   /context-param

   !-- Cadastro geral: --
   context-param

param-nameCtx_osctrl.common.OS_cadastroEquipeBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroEquipeB
r
hdnCTRL=IdhdnTitulo=equipes de
trabalhohdnSizeCTRL=10hdnTituloCTRL=Equipe]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.common.OS_cadastroRecursoBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroRecurso
B
rhdnCTRL=IdhdnTitulo=recursoshdnTypeCTRL=numerohdnSizeCTRL=3hdnTituloC
T
RL=Recurso]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.common.OS_cadastroDiretoriaBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroDiretor
i
aBrhdnCTRL=IdhdnTitulo=diretoriahdnSizeCTRL=3hdnTypeCTRL=numerohdnTitu
l
oCTRL=Diretoria]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.admin.OS_cadastroFaseBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroFaseBrh
d
nCTRL=IdhdnTitulo=fasehdnSizeCTRL=3hdnTypeCTRL=numerohdnTituloCTRL=Fase
]
]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.admin.OS_cadastroSituacaoBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroSituacao
B
rhdnCTRL=IdhdnTitulo=situaçãohdnSizeCTRL=3hdnTypeCTRL=numerohdnTituloC
T
RL=Situacao]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.common.OS_cadastroDeptoBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.common.OS_cadastroDeptoBr

hdnCTRL=IdhdnTitulo=departamentohdnSizeCTRL=3hdnTypeCTRL=numerohdnTitul
o
CTRL=Departamento]]/param-value
   /context-param

   context-param

param-nameCtx_osctrl.admin.OS_cadastroPatrocinadorBr/param-name

param-
value![CDATA[/osctrl/jsp/cadastro/cadastroDefaultFrm.jsp?hdnBrowser
=cadastro/cadastroEditBr.jsphdnFormAction=osctrl.admin.OS_cadastroPatrocin
a

RE: Tomcat Deployment question

2004-03-22 Thread Shapira, Yoav

Hi,
The server doesn't need your .java files, only the compiled class files.
You can put them in the WEB-INF/classes (as-is, .class files) or
WEB-INF/lib (packaged in a jar file) directory of your webapp.  You need
to define and map your servlet in your WEB-INF/web.xml file.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Kayley Ma [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 21, 2004 6:33 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Deployment question

Hi all,

For a deployed WebApp with a applet and a servlet (I already generated
a
WAR
in JBuilder), where should i put my servlet so that Tomcat knows where
to
find it?

Current this is how my system is set up.  Using JBuilder, I created a
WebApplication where I direct  the defaultroot folder to the location
of my
applet files. Then within my WebApplication, I created a servlet that
the
applet should communicate with. Then a WAR is generated when I build in
JBuilder.  I then deploy this WAR file into Tomcat5 using the
TomcatManager.
However, when I select the HTML file, I can see that my applet is
running
but it can't communicate with the servlet and I get a java error that
saids
filenotfound.

So what is it that I'm doing wrong? Where should I put my servlet.java
and
servlet class so that Tomcat can find it?

Thank you!

Kay



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: tomcat and css

2004-03-22 Thread Graham Reeds
 Thank you, you answered my question - I was looking for how tomcat
 serves css files.

I had noticed something strange.  With Tomcat 3.2.1 running locally
(http://localhost etc...), if I referenced a CSS file from a
href=/mycss.css tomcat doesn't actually return it, though it works if you
upload your file and access it from the web.  Remove the slash and it works
both ways though you can't still can't access the css file if it is outside
the directory the html is in.  It confused me no end and eventually uploaded
to show a friend - hey-presto - worked fine.

G.


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



Install Tomcat 5

2004-03-22 Thread lkiankok
Hi,

I am trying to install tomcat version 5.
After running jakarta-tomcat-5.0.19.exe, the tomcat does not seem to start. I checked 
the services Apache Tomcat, and try to start it.
It returns a message Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respons to the start or control request in a timely 
fashion.

Kindly help.
Thanks.
Lim Kian Kok.:-)

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



Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Parsons Technical Services
Phil,

In other words DON'T use the reply to when starting a new thread. Got It!

Was unaware of that one. Haven't played with mail enough yet. Next on my
to-do list.

Now where was that old shoe I was saving for such an occasion.

I stand corrected.

Doug

- Original Message - 
From: Philipp Taprogge [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 8:55 AM
Subject: Re: Ant and Tomcat Manager over HTTPS


 Hi!

 Parsons Technical Services wrote:
  Harry DID start his own. He may have used the same subject line as an
old
  message, but nothing existing in the last few months.

 I am sorry, but he did not. Quoting from the headers:

 Philipp Taprogge wrote:
 Subject: Programmatically deploying webapps
 Message-Id: [EMAIL PROTECTED]

 Harry Mantheakis wrote:
 Subject: Programmatically deploying webapps
 Message-Id: [EMAIL PROTECTED]
 In-Reply-To: [EMAIL PROTECTED]
 

 What he did is he opened my original posting and then hit the reply
 button. This causes a new mail composition window to open, and works
 just like composing a new mail to the given address, but invisible to
 the user, most MUAs include In-Reply-To: or Reference: headers that
 are used to display the threads.

 It's no big deal, but most people who do not use threaded display in
 their MUAs are unaware of this.

 Regards

 Phil


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



Dynamic Class reloading and out of memory

2004-03-22 Thread Allistair Crossley
Yoav,

I do apologise if it appears I am being prolific with problems and I do apologise if 
this is over critical, but it is testamount to the lack of quality documentation on 
Tomcat (and jakarta projects in general it has to be said) that has resulted in my not 
understanding how Tomcat is working in certain respects and the reason I feel I must 
request help from the list. This seems to be a general problem across all development 
projects as far as I can see and I suppose the fact that Tomcat is opensource does not 
motivate its developers to write properly about the product.

If the mechanism by which tomcat reloads a web application creates a new classloader 
and allows the old one to be left intact with its references, then I would say that 
should be documented. I mean I randomly selected a tomcat 5 documentation page and 
found this highly useful description of a web context

Context - In a nutshell, a Context is a web application. 
Term2 - This is it. 
Term3 - This is it! 

Fantastic.

I don't really want to be looking the Tomcat sources to understand how it address 
dynamic classloading or memory handling, maybe I'm missing the point and should 
motivate my company to purchase a commercial app server. I think a lot of people come 
up against this since most posts on this list could be addressed through 
documentation. Anyway, that is a different issue altogether..I am eagerly awaiting the 
Professional Tomcat 5.0 book due out soon!!

My classes maintain references as static singletons using a registry. I do not 
consider this to be bad design at all contrary to your supposition. In fact, the 
application is architected around J2EE architecture design patterns. 

The part of your answer that was useful was to hear that the class loader is left 
intact, and therefore if this is case I understand why I may eventually get to an 
OutOfMemoryException. 

Further, I will not be allowing reloading of webapps when the product goes live and 
the product does not have outofmemory issues so long as the webapp is left without 
reloading.

Thank you for your help, and sorry to be critical. ADC.

-- snip --
It depends on how your classes maintain references.  Since the old
classloader is intact, static references from your servlets, for
example, will be kept.  Tomcat can't do anything about that, it's your
own bad design in the context of reloading webapps (it might be OK
design in a console java program).

Yoav Shapira


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Install Tomcat 5

2004-03-22 Thread LILES, DAVID (CONTRACTOR)
I have experienced the same problem periodically... Oddly as it sounds, I've resolved 
the problem by re-booting the server

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 8:34 AM
To: [EMAIL PROTECTED]
Subject: Install Tomcat 5


Hi,

I am trying to install tomcat version 5.
After running jakarta-tomcat-5.0.19.exe, the tomcat does not seem to start. I checked 
the services Apache Tomcat, and try to start it.
It returns a message Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respons to the start or control request in a timely 
fashion.

Kindly help.
Thanks.
Lim Kian Kok.:-)

-
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: Dynamic Class reloading and out of memory

2004-03-22 Thread Shapira, Yoav

Hi,

Further, I will not be allowing reloading of webapps when the product
goes
live and the product does not have outofmemory issues so long as the
webapp
is left without reloading.

Even though your app is architected perfectly you won't allow reloads?
;)  That's a good practice.

Thank you for your help, and sorry to be critical. ADC.

It's not a problem, criticize all you want.  When you feel like lifting
a constructive finger and addressing any of your concerns yourself, we'd
be glad to review and accept any enhancement (docs or code) you submit.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



request/response headers

2004-03-22 Thread Koes, Derrick
What is the magic set of non-SSL request and/or response headers for a
security-constrained servlet to download a pdf stream in IE 6 SP1?

 

Netscape 7.1 works fine as a client, so I'm certain there is something I'm
missing that is particular to IE.

 

Thanks,

Derrick

 

 

 

This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Harry Mantheakis
Hi Phil

 Firstly, it would be nice if you could start your own thread next time
 instead of hijacking an existing one with your question.

I am sorry you thought I had hijacked a thread - I thought I had started a
new one! (Did you have a thread with the same subject name?)

 As for your problem: is SSL not working altogether or is it just ant
 complaining? Can you access the manager via a browser using https?

Just Ant complaining, with the exception I mentioned:

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
No trusted certificate found

I can access the manager via SSL with my browser. That all works fine.

Ant is unhappy.

Kind regards

Harry


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



Difference between Basic Form authentication ??

2004-03-22 Thread Halcyon62 .
Hi all

What is the difference between Basic  Form authentication ??

Is it possible to pass the j_username  j_password in the very first request 
to avoid the forward to a login page (or a popup window) 

Eric.

_
MSN Premium helps eliminate e-mail viruses. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines

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


Garbage collector

2004-03-22 Thread Rob Wichterman
I was wondering if anyone had a preference in which garbage collector to
use.  I am currently using -XX:+UseConcMarkSweepGC but I was wondering
which would be considered the best or most commonly used. 

 

Thanks



Re: Configuration Help

2004-03-22 Thread Adrian Lanning
Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.

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]



Multiple login-config in the web.xml ?

2004-03-22 Thread Halcyon62 .
Hi

Is it possible to map a login-config to a URL pattern ?

Example:

assign a FORM login-config to URL that starts by /admin/*
and assign a BASIC long-config to URL that start with /download/*
Thanks

Eric.

_
MSN Premium helps eliminate e-mail viruses. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines

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


RE: Configuration Help

2004-03-22 Thread Adam Fowler
400 Bad request
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Generally Tomcat generates error HTML pages that have Apache Tomcat in
hge letters at the top, so you should be getting them if its Tomcats
fault.

If you're using a URL like http://wibble.com/mydir then ensure you have
configured the context to be /mydir and NOT /mydir/ 

As an aside, you can change the URL Tomcat uses to send back error info by
adding the appropriate error-code tags in your server.xml.

Hope that helps,

Regards,

Adam.

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: 22 March 2004 15:15
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.

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]



RE: Configuration Help

2004-03-22 Thread LILES, DAVID (CONTRACTOR)
Adrian,

The 400 error is indicating that the page has been moved, server might not be 
available... blah, blah

This URL will display the web app I'm working with...
http://66.80.144.156/dynamichostings/
But if I try this URL I get the error
http://dev.dynamichostings.com

I think I'm close I just don't know what configuration change I need to make at this 
point. I've been told that by mapping the isapi_redirector2.dll in IIS it should 
work

There has to be someone else who is successfully using IIS and Tomcat 5 out there

-Original Message-
From: Adrian Lanning [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:15 AM
To: Tomcat Users List
Subject: Re: Configuration Help


Hey Dave,

I'm a little fuzzy on my errors.  Is 400 from iis or tomcat?  Does tomcat
work with the urls in standalone mode?

Adrian

- Original Message - 
From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:17 AM
Subject: Configuration Help


For over a week I have been unable to get Tomcat 5 configured with IIS 5.

I know the Tomcat server is working because I can get to the management
console from the IP address:8080 and the two example web apps are working,
both from the IP address:8080/servlet-examle  and without the port...

I have created a web app instance which I can access from the IP
address:8080/webapp and IP address/webapp, but when I attempt to access it
from the URL I get a 400 error.

In the server.xml file the engine tag is configured to use the IP address
of the server and one host tag is set to the IP address. I have a second
host tag that is set to the URL I want to serve.

Can anyone help explain what I need to do in order to access the web app by
the URL?

In IIS I have configured the isapi_redirector2.dll at the root server level
and in the web app I'm trying to get working I created a virtual directory
named jakarta. I have made all the necessary registry entries required to
support the .dll.

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]



AW: Garbage collector

2004-03-22 Thread Hubbert, Thomas
Hi Rob, 

I tried using the incremental gc mode which - in my case - led to a worse
result than using the default gc mode. Currently I'm using the default mode
for our production application and I'm not having any problems with it. But
as with any other configuration I'm sure there is no best way (and the
most commonly used one is probably the default one). Maybe tools like JMeter
or OptimizeIt will help you find the mode which fits your needs best...

Regards, 
Thomas 

-Ursprüngliche Nachricht-
Von: Rob Wichterman [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 22. März 2004 16:08
An: [EMAIL PROTECTED]
Betreff: Garbage collector


I was wondering if anyone had a preference in which garbage collector to
use.  I am currently using -XX:+UseConcMarkSweepGC but I was wondering
which would be considered the best or most commonly used. 

 

Thanks


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



HPjmeter

2004-03-22 Thread Michael Südkamp
Hi,

Are there any experiences with the profiling tool HPjmeter available from 
http://www.hp.com/products1/unix/java/hpjmeter with Tomcat?

I can run it but the result shows a lot of Tomcat internals and I find it difficult to 
get any useful info about my web-app.

Michael


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



Login by parameters (no prompts)

2004-03-22 Thread jginter
The application we are building allows file downloads from our UI. 
However, we also want users to be able to download these files using WGET 
from a command-line (perhaps as part of a script), like this:

  WGET 192.168.1.1/do/download?id=1

However, these file downloads are subject to authentication and should be 
restricted to certain user roles.

We have already implemented a JDBCRealm and everything works very well 
within the UI. The problem is that we can't figure out how to get Tomcat 
to invoke authentication without a prompt.  At first, we thought that 
adding j_username and j_password as part of the URL might do the 
trick.  No such luck.  We looked through the documentation and couldn't 
find any suggestions (unless we missed something along the way).

What we want to be able to do is have the user provide the username and 
password as part of the URL, like this:

  WGET 192.168.1.1/do/download?id=1username=bobpassword=secret

I know that we could always extend Tomcat with our own code, but I'd 
really like to avoid having to do that.  I haven't been allowing any 
platform-specific code into the product and I don't want to start now. The 
use of a JDBCRealm was a compromise that was supposed to reduce the coding 
effort.  Please tell me that there is a way around this issue that doesn't 
require coding Tomcat extensions.

Thanks for any help you guys might be able to give me.
Jonathan.

RE: Disable Coyote Connector at runtime?

2004-03-22 Thread Clute, Andrew
Thanks for the information...I didn't realize that the connector in
Tomcat5 was now an Mbean. So, that should make it easier.

Now, the next question is, is there any admin interface to control the
lifecycle of that Mbean yet? Or would I need to do it programmatically?

My ultimate goal would be to be able to use the Mbean, maybe from the
Jboss jmx console to turn the Connector off and on.



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 9:05 AM
To: Tomcat Users List
Subject: RE: Disable Coyote Connector at runtime?


Hi,
Sure.  See the pause(), stop(), destroy() methods of
org.apache.coyote.tomcat5.CoyoteConnector.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Andrew Clute [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:37 PM
To: [EMAIL PROTECTED]
Subject: Disable Coyote Connector at runtime?

Is there a way to turn off one of the Coyote connectors (specifically 
the port 8009 one) at runtime?

What I am trying to accomplish is that I have a collection of JBoss 
servers (with integrated Tomcat) that are clustered together using 
mod_jk as the load balancer. Every once in awhile I want to remove one 
of the instances from the cluster to do maintenance work, or maybe 
deploy a new application to it to test inside a production server.

Obviously, I can shut the instance down, comment out the AJP13 
connector, and restart the instance, and mod_jk won't sent requests 
it's way, but I was hoping that there was someway to turn off the AJP13

connector at runtime, short of having to restart the server.

Thoughts?

Thanks
-Andrew


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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



Does tomcat has an embeddable version like Jetty webserver?

2004-03-22 Thread Ikonne, Ike

Hi all,

I would like to know if tomcat has an embeddable version like Jetty
webserver provide?

Thanks,

Ike


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



Re: Tomcat Deployment Question

2004-03-22 Thread k2ma


Hi Shapira,

thanks so much for your help! right now, i've edited my web.xml file but my
applet still can't make the connection to the servlet.

3 addition questions:

1. I would need to open an URL connection in my applet to the servlet...
what URL would I give it?  ie how do i make the connection from my applet to
the servlet in my applet code.  right now i have:
URL servletURL = new URL(this.getDocumentBase(),
WEB-INF/classes/webblowwebapp1/BlowDesignServlet);

but i'm getting the error: java.io.FileNotFoundException:
http://127.0.0.1:8080/WebBlow1/WEB-INF/classes/webblowwebapp1/BlowDesignServlet

2. u mentioned that i should put my servlet class files in the
WEB-INF/classes... i built my WebApplication in JBuilder so it actually
doesn't have this structure but rather
C:\WebBlowWebApp1\classes\webblowwebapp1\servlet.class - is this ok or
should i manually change the structure?  (but then i notice that once my WAR
file generated by JBuilder is put into tomcat/webapp, my class file is in
WebBlow1(name of my application to be
deployed)/WEB-INF/classes/webblowwebapp1(name of webApplication i built in
jbuilder)/servletname.   is this correct?

3. does this web.xml file look correct?
---
?xml version=1.0 encoding=UTF-8?

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

web-app

servlet

servlet-nameblowdesignservlet/servlet-name

servlet-classwebblowwebapp1.BlowDesignServlet/servlet-class

/servlet

servlet-mapping

servlet-nameblowdesignservlet/servlet-name

url-pattern/blowdesignservlet/url-pattern

/servlet-mapping

/web-app



my servlet.java is located C:\WebBlowWebApp1\src\webblowwebapp1.

thank you so very very much - i'm very new at this and i really appreciate
the help!

cheers,
~Kayley~
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 9:24 AM
Subject: RE: Tomcat Deployment question



 Hi,
 The server doesn't need your .java files, only the compiled class files.
 You can put them in the WEB-INF/classes (as-is, .class files) or
 WEB-INF/lib (packaged in a jar file) directory of your webapp.  You need
 to define and map your servlet in your WEB-INF/web.xml file.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Kayley Ma [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 21, 2004 6:33 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat Deployment question
 
 Hi all,
 
 For a deployed WebApp with a applet and a servlet (I already generated
 a
 WAR
 in JBuilder), where should i put my servlet so that Tomcat knows where
 to
 find it?
 
 Current this is how my system is set up.  Using JBuilder, I created a
 WebApplication where I direct  the defaultroot folder to the location
 of my
 applet files. Then within my WebApplication, I created a servlet that
 the
 applet should communicate with. Then a WAR is generated when I build in
 JBuilder.  I then deploy this WAR file into Tomcat5 using the
 TomcatManager.
 However, when I select the HTML file, I can see that my applet is
 running
 but it can't communicate with the servlet and I get a java error that
 saids
 filenotfound.
 
 So what is it that I'm doing wrong? Where should I put my servlet.java
 and
 servlet class so that Tomcat can find it?
 
 Thank you!
 
 Kay
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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




This mail sent through www.mywaterloo.ca

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



RE: Does tomcat has an embeddable version like Jetty webserver?

2004-03-22 Thread Shapira, Yoav

Hi,
Sure, see the Embedded class JavaDoc at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/index.
html.  It also points you to an example usage supplied with tomcat.

I won't get into an argument over who had an embedded version first,
tomcat or jetty ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Ikonne, Ike [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:40 AM
To: '[EMAIL PROTECTED]'
Subject: Does tomcat has an embeddable version like Jetty webserver?


Hi all,

I would like to know if tomcat has an embeddable version like Jetty
webserver provide?

Thanks,

Ike


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



SocketException and NullPointerException

2004-03-22 Thread Hollerman Geralyn M
Folks,
I have 2 errors in my catalina.out that I'm trying to chase down, and for both 
I've about come up with zero in terms of figuring out what's causing them and/or 
how to fix them. I'd appreciate ANY ideas/suggestions/comments!

The first is of the form

Mar 22, 2004 8:38:32 AM org.apache.tomcat.util.net.TcpWorkerThread runIt
SEVERE: Remote Host /xxx.xxx.xxx.xxx SocketException: Invalid argument
This one shows up somewhat sporadically - some days there will be several, other 
days, none.

The second looks like

StandardWrapperValve[uPortal]: Servlet.service() for servlet uPortal threw exception
java.lang.RuntimeException: java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427)
at 
org.jasig.portal.utils.SAX2FilterImpl.endDocument(SAX2FilterImpl.java:684)
at 
org.jasig.portal.utils.SAX2BufferImpl.outputBuffer(SAX2BufferImpl.java:210)
at org.jasig.portal.UserInstance.renderState(UserInstance.java:538)
at org.jasig.portal.UserInstance.writeContent(UserInstance.java:180)
at 
org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:246)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
[...] (I can give you the full trace, but it's long and ugly - I think you get 
the idea here)

Now, I know this one has something to do with the XML parser and probably the 
stylesheet used - something that's passed is null for some reason, and as far as 
the program is concerned, it shouldn't be. What could cause this? I get this 
error from our production system - I'm running the same version of Tomcat 
(5.0.16) on a development system as well, and the error never shows up there. I 
have the same versions of XML parsers on both boxes - the .class files in them 
that are used in the stack trace (like TransformerImpl) are the same on both 
systems (yes, I checked.). I'd really like to get this fixed - the server 
appears to start-up fine, with no errors listed.

Thanks for any feedback!!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat under Windows: deploying applications with shortcuts to other folders

2004-03-22 Thread Ashraf
Hi all,
I'd like to have shortcuts to folders/files outside
Tomcat installation added to my Tomcat application. Is
this possible under windows? This would be similar to
symbolic links in unix.

Thanks,
Ashraf

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: bindaddress configuration??

2004-03-22 Thread Emerson Cargnin
any answer for this question?

Emerson Cargnin wrote:
I need to setup tomcat to listen to a different IP address (a virtual 
one create with ifconfig linux command)? I did it once a long time ago, 
nut don't remember exactly how to do it...

I remember that this was a property at some node of server.xml :)

thanks



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: bindaddress configuration??

2004-03-22 Thread D'Alessandro, Arthur
address For servers with more than one IP address, this attribute
specifies which address will be used for listening on the specified
port. By default, this port will be used on all IP addresses associated
with the server.
 
From:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html 

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 11:31 AM
To: Tomcat Users List
Subject: Re: bindaddress configuration??

any answer for this question?

Emerson Cargnin wrote:
 I need to setup tomcat to listen to a different IP address (a virtual 
 one create with ifconfig linux command)? I did it once a long time
ago, 
 nut don't remember exactly how to do it...
 
 I remember that this was a property at some node of server.xml :)
 
 thanks
 


-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


-
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: bindaddress configuration??

2004-03-22 Thread Shapira, Yoav

Hi,
See the address attribute of the Connector element.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 11:31 AM
To: Tomcat Users List
Subject: Re: bindaddress configuration??

any answer for this question?

Emerson Cargnin wrote:
 I need to setup tomcat to listen to a different IP address (a virtual
 one create with ifconfig linux command)? I did it once a long time
ago,
 nut don't remember exactly how to do it...

 I remember that this was a property at some node of server.xml :)

 thanks



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat Deployment Question

2004-03-22 Thread k2ma


As u said, I changed my URL according to your advice but unfortunately, now
there is another exception: java.io.EOFException... does this mean that my
servlet file can be found now?

Also, i now manually put my servlet class in:

C:\WebBlowWebApp1\defaultroot\WEB-INF\classes\webblowwebapp1\BlowDesignServl
et

but i wonder if the servlet class should fall DIRECTLY into the classes
folder rather than be in the webblowwebapp1 sub folder.

when i rebuild to generate the WAR in JBuilder, it recognizes my manual
changes to the structure, right?

It's fine.  Why are you using the 2.2 DTD?

I donno what 2.2DTD is.. I just copied that off somewhere.. what should i be
using instead?

Thank you so VERY much!
~Kayley~



This mail sent through www.mywaterloo.ca

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



RE: request/response headers

2004-03-22 Thread Koes, Derrick

Setting Cache-control to private resolves the problem for IE 6 SP1.

-Original Message-
From: Koes, Derrick 
Sent: Monday, March 22, 2004 9:51 AM
To: '[EMAIL PROTECTED]'
Subject: request/response headers

What is the magic set of non-SSL request and/or response headers for a
security-constrained servlet to download a pdf stream in IE 6 SP1?

 

Netscape 7.1 works fine as a client, so I'm certain there is something
I'm
missing that is particular to IE.

 

Thanks,

Derrick

 

 

 

This electronic transmission is strictly confidential to Smith  Nephew
and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



IIS/Tomcat ISAPI - First request OK, next requests fail

2004-03-22 Thread Mariusz Stankiewicz
Hi,
 
I've been looking for a solution to this problem everywhere, and I can't
seem to find out what I've done wrong.
 
I'm using IIS5.0/Win2kServer and Tomcat 5.
 
I've set up isapi_redirect.dll all well and good, following all the
doco's online.
 
The problem I have is, the first request comes through as follows in my
log:
 
2004-03-22 16:13:19 192.168.1.49 - GET /jakarta/isapi_redirect.dll - 200
386 HTTP/1.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.N
ET+CLR+1.0.3705) -
 
Note: /Jakarta/isapi_redirect.dll has a code of 200.  Although the JSP
file comes through fine on the client side.
 
When I do the next request I get the following:
 
2004-03-22 16:13:19 192.168.1.49 - GET /index.jsp - 404 4203 HTTP/1.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.N
ET+CLR+1.0.3705) -
 
Note this time, doesn't bother looking at isapi_redirect.dll and errors
out on 404...
 
 
Once I restart IIS, I run into the same problem, 1st request works, 2nd
(and later) request fails.
 
I've read a few people had similar problems, but nobody had an answer.
Does anybody have any ideas?
 
Thanks,
 
Mariusz.
 
 
 

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



Connector build error

2004-03-22 Thread Rick Lutowski
Am trying to build the .so connector to integrate tomcat 4.1.30
with apache 2.0.48 on debian linux.  Both tomcat and apache are
up and running just fine individually, but need a mod_jk2.so
Ajp13 connector to get a servlet working.

The current connectors source distribution 
jakarta-tomcat-connectors-jk2-2.0.2-src
fails as follows:

--

$ cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk
jk$ ant
Buildfile: build.xml

detect:
 [echo]  jakarta-tomcat-connectors 

prepare:

BUILD FAILED
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105:
 Warning: Could not find file
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar
 to copy.

---

Sure enough, build/lib does not contain any tomcat-coyote.jar file.
In fact, lib is totally empty.  The current connector source distro
appears to be missing some needed files.

Well, all I need is the binary connector, so let's just try:



jk$ ant native
Buildfile: build.xml

jkant:

BUILD FAILED
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:232:
 srcdir
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/jkant/java
 does not exist!



Turns out it is looking for a file jkant/java/ant.tasks,
which also does not exist in the current distro.

Can anyone supply
1. tomcat-coyote.jar
2. ant.tasks
 
or, better stiil

3. A complete version of the connectors source distro that works?

Thanks very much.

PS: apache 2.0.48 built flawlessly using 'make' on debian.
Real slick!  The connectors source should do at least as
well since it is java-based (and java is less error prone 
than c ;-)

-- 
Rick Lutowski
Principal, JReality
[EMAIL PROTECTED]
http://www.jreality.com

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



RE: Connector build error

2004-03-22 Thread Adam Fowler
Hi,

This made me a bit miffed too. The developers have changed the
jk/native2/README.txt to explain how to do it natively. Here is the post to
the dev list below.

If you get some annoying message saying could not find library -lapr-0
then fear not. You either:
a) edit the jk/native2/server/apache2/Makefile file. Line 57 I think where
it says -lapr-0 and change it to -lapr. then run make again.
b) Install libapr-0.

I chose the first option and it worked fine. It puts the so file in
/build/jk2/apach2/ tho so be warned. Its a horrible horrible hack but it
will allegedly be fixed in the upcoming 2.0.4 release.

Adam.


Information on building mod_jk2:

  Starting with 2.0.4, APR is mandatory for jk2. For Apache 2.0
  or greater jk2 will use APR that was used to build Apache 2.0.
  For Apache 1.3, jk2 must build APR and APR_UTIL from source. 

DSO build instructions for Unix-like systems:

  The compiler used to build jk2 must match the one used to build
  Apache. You may need to set an environment variable before 
  configuring such as CC=cc. `apxs -q CC` will tell you what 
  compiler was used for Apache.

  The most straightforward way to configure jk2 is to use apxs 
  that comes with Apache. Linux distributions may need to have 
  additional rpm's installed such as Apache2 devel rpm, 
  httpd-devel or apache2-devel or for Apache 13, Apache devel 
  rpm, httpd-devel or apache-devel depending on your 
  distribution.

  Example Apache2 build and install:

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/your/path/to/apxs
make
cd ../build/jk2/apache2
apxs -n jk2 -i mod_jk2.so

  Example Apache13 build and install:

apr and apr-util will be configured and built for you while
configuring and building jk2. There is no need to separately
configure and build them. 

  cd jakarta-tomcat-connectors/jk/native2
  ./configure --with-apxs=/your/path/to/apxs \
  --with-apr=/your/path/to/apr-source \
  --with-apr-util=/your/path/to/apr-util-source
  make
  cd ../build/jk2/apache13
  apxs -n jk2 -i mod_jk2.so

NOTE: pthread support may be automatically detected and built
into apr. If apache13 was not built with pthread support, you
can either disable it by adding --disable-apr-threads while
configuring, or load the pthread library in httpd.conf using
the LoadFile directive.

  Optional configure arguments (for 1.3 and 2.0):

If you want to have JNI support, add --with-jni and be sure
to have the JAVA_HOME environment variable point to your Java
Environment. This will build inprocess jni support into
mod_jk2.so and additionally build libjkjni.so. libjkjni.so
can be used by tomcat to provide support for channel unix and
should be installed in the apache libexec dir. Use 
`apxs -q LIBEXECDIR` if you are unsure of its location. 
Libjkjni.so will be located in the same directory as 
mod_jk2.so after building with this option.

If you want to have PCRE (Perl Compatible Regular
Expressions) support for jk2 uri directives, add --with-pcre
while configuring.


-Original Message-
From: Rick Lutowski [mailto:[EMAIL PROTECTED]
Sent: 22 March 2004 17:01
To: Tomcat Users List
Subject: Connector build error


Am trying to build the .so connector to integrate tomcat 4.1.30
with apache 2.0.48 on debian linux.  Both tomcat and apache are
up and running just fine individually, but need a mod_jk2.so
Ajp13 connector to get a servlet working.

The current connectors source distribution 
jakarta-tomcat-connectors-jk2-2.0.2-src
fails as follows:

--

$ cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk
jk$ ant
Buildfile: build.xml

detect:
 [echo]  jakarta-tomcat-connectors 

prepare:

BUILD FAILED
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-j
k2-2.0.2-src/jk/build.xml:105: Warning: Could not find file
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-j
k2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar to copy.

---

Sure enough, build/lib does not contain any tomcat-coyote.jar file.
In fact, lib is totally empty.  The current connector source distro
appears to be missing some needed files.

Well, all I need is the binary connector, so let's just try:



jk$ ant native
Buildfile: build.xml

jkant:

BUILD FAILED
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-j
k2-2.0.2-src/jk/build.xml:232: srcdir
/fs/hdb9/hdc4/home/gnu/net/www/apache/connectors/jakarta-tomcat-connectors-
jk2-2.0.2-src/jk/jkant/java does not exist!



Turns out it is looking for a file jkant/java/ant.tasks,
which also does not exist in the current distro.

Can anyone supply
1. tomcat-coyote.jar
2. ant.tasks
 
or, better stiil

3. A complete version of the connectors source distro that works?

Thanks very much.

PS: apache 2.0.48 built flawlessly using 

Bind webapp to virtual host

2004-03-22 Thread harm
Hi all,

Sorry if this has been asked a million times before. 

Is it possible to bind a webapp to a specific virtualhost. So something 
like:

www.myhost1.com --- /webapp1.war
www.myhost2.com --- /webapp2.war

And if so, how can this be achieved? Especially, if I use the integrated 
Tomcat in JBoss (3.2.3) and the packages are in an ear file.

So something like this:

www.myhost1.com --- /myear.ear/webapp1.war

Regards,

Harm de Laat
Informatiefabriek
The netherlands.

RE: Bind webapp to virtual host

2004-03-22 Thread Adam Fowler
Not sure if its been asked before but...

JBoss has the file:

jboss/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml

that contains the Tomcat server.xml file. Just edit this and add two Host
entries as described here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

If you want that deployed you'd prolly have to create a modified
jbossweb-tomcat.sar file and deploy that. I'm afraid I have no idea how to
do this (yet, I have to do this soon at work!)

Hope that helps (and works, else I'm stuffed!).

Adam.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 22 March 2004 17:12
To: [EMAIL PROTECTED]
Subject: Bind webapp to virtual host


Hi all,

Sorry if this has been asked a million times before. 

Is it possible to bind a webapp to a specific virtualhost. So something 
like:

www.myhost1.com --- /webapp1.war
www.myhost2.com --- /webapp2.war

And if so, how can this be achieved? Especially, if I use the integrated 
Tomcat in JBoss (3.2.3) and the packages are in an ear file.

So something like this:

www.myhost1.com --- /myear.ear/webapp1.war

Regards,

Harm de Laat
Informatiefabriek
The netherlands.


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



Apache + Tomcat + MOD_JK on different machines

2004-03-22 Thread Hari Om
I am using Apache 2.0.47 and Tomcat 4.1.27 on my SuSE Linux. I had 
configured my mod_jk and it works just great! (My Web and App Server were on 
same box)

Now I have a Web Server and App Server on a different box and was wondering 
what changes do I have to make to MOD_JK for the Integration to work.

My old settings were:
--
httpd.conf
--
LoadModule jk_module modules/mod_jk.so
ServerName abc.com
Include /usr/local/tomcat4/conf/auto/mod_jk.conf

  JkWorkersFile /usr/local/apa2047/conf/workers.properties
  JkLogFile /usr/local/apa2047/logs/mod_jk.log
  JkLogLevel debug

  JkMount /examples ajp13
  JkMount /examples/* ajp13

workers.properties

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
Now that I have both APACHE and TOMCAT on DIFFERENT Boxes, I was wondering 
what changes do I have to make for the above to work.

My Web Server is xyz.com and my App Server is abc.com. I have mod_jk 
configured in my Web Server.

My new HTTPD.CONF file is:
My NEW settings are:
--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com
Include conf/mod_jk.conf

  JkWorkersFile conf/workers.properties
  JkLogFile logs/mod_jk.log
  JkLogLevel debug

  JkMount /examples ajp13
  JkMount /examples/* ajp13

workers.properties (on Web Server)

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5
_
Get rid of annoying pop-up ads with the new MSN Toolbar – FREE! 
http://clk.atdmt.com/AVE/go/onm00200414ave/direct/01/

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


Server_response_Close error message...

2004-03-22 Thread Bond


Hello all,

  We are getting an error on our website, and we can't
seem to find any info about it, hope someone here can
help.

We have Tomcat Version 4.1.27 integrated with IIS 5

We are getting the following error:

The server closed the connection while reading the
response.  Contact your System Administrator.
(SERVER_RESPONSE_CLOSE)

It happens in random occurrence, I've tried to look at
the logs, but nothing jumps out at me there.  Just
wondering if anybody had seen this or might no what
this means.

Thanks in advance


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



RE: Bind webapp to virtual host

2004-03-22 Thread harm
Thanks for your quick response...

Unfortunatly this does not work...

If I add a host entry I get the message:
docBase has to be a WAR file

I think it might complain because I used a exploded (unzipped) variant of 
my package.

But, when i add something like this:

host name=www.myhost1.com docBase=jmx-console.war/

Then i still get the same message

The JMX console is for sure a valid WAR archive!

Any suggestions?

Regards,

Harm de Laat
Informatiefabriek
The Netherlands






Adam Fowler [EMAIL PROTECTED] 
22-03-2004 18:21
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
'Tomcat Users List' [EMAIL PROTECTED]
cc

Subject
RE: Bind webapp to virtual host






Not sure if its been asked before but...

JBoss has the file:

jboss/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml

that contains the Tomcat server.xml file. Just edit this and add two Host
entries as described here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

If you want that deployed you'd prolly have to create a modified
jbossweb-tomcat.sar file and deploy that. I'm afraid I have no idea how to
do this (yet, I have to do this soon at work!)

Hope that helps (and works, else I'm stuffed!).

Adam.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 22 March 2004 17:12
To: [EMAIL PROTECTED]
Subject: Bind webapp to virtual host


Hi all,

Sorry if this has been asked a million times before. 

Is it possible to bind a webapp to a specific virtualhost. So something 
like:

www.myhost1.com --- /webapp1.war
www.myhost2.com --- /webapp2.war

And if so, how can this be achieved? Especially, if I use the integrated 
Tomcat in JBoss (3.2.3) and the packages are in an ear file.

So something like this:

www.myhost1.com --- /myear.ear/webapp1.war

Regards,

Harm de Laat
Informatiefabriek
The netherlands.


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




How to write file into webapp directory?

2004-03-22 Thread Jonathan Melhuish
A FileOutputStream writes by default to the Tomcat bin directory.  
What's the easiest way to write a file into the current webapp folder?

TIA,

Jon

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


Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-22 Thread Joseph Shraibman
I know, I ran a few hundred lynx's at a time.

Ralph Einfeldt wrote:
To your question: I don't know.

Having a delay in the jsp (or servlet) isn't enough to
enshure concurrent requests. You have to do something 
on the calling site to enforce this.

If you just call lynx as in your example, lynx will
wait until the response is there. So if you delay the 
jsp, you just delay the return of lynx.

So you have either to run more than one instace of your 
script at the same time or to extend the scrip in a way
that it runs several lynx instances at the same time.

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


Re: How does Tomcat work?

2004-03-22 Thread Jonathan Melhuish
Bernd Kauling wrote:

Hello list,

i am a 18 year old student from germany, who 
needs some information about the tomcat server.
How does it work? 
Do you have some background information i may can use?
 

Yes, loads - http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

If, after having read it, you have any more specific questions, I'm sure 
this group would be happy to help.

Cheers,

Jon

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


JSP encoding problems

2004-03-22 Thread Edson Alves Pereira
Hello folks, I created my JSP pages with JspC in the right encoding
and i can ensure everything is ok, but when i see them already compiled in
my web browser they show me a lot of encoding errors. All is made with ant,
any hint?

Regards,
Edson


RE: How to write file into webapp directory?

2004-03-22 Thread Edson Alves Pereira
I think that the easyer way is to use, getRealPath( ).

 --
 De:   Jonathan Melhuish[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  segunda-feira, 22 de março de 2004 15:02
 Para: Tomcat Users List
 Assunto:  How to write file into webapp directory?
 
 A FileOutputStream writes by default to the Tomcat bin directory.  
 What's the easiest way to write a file into the current webapp folder?
 
 TIA,
 
 Jon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: How to write file into webapp directory?

2004-03-22 Thread Shapira, Yoav

Hi,
From a servlet,
String path = getServletContext().getRealPath(/);
File myFile = new File(path, myFileName.txt)
...

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jonathan Melhuish [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:02 PM
To: Tomcat Users List
Subject: How to write file into webapp directory?

A FileOutputStream writes by default to the Tomcat bin directory.
What's the easiest way to write a file into the current webapp
folder?

TIA,

Jon

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat5 service on Windows

2004-03-22 Thread Jonathan Melhuish
Daryl Stultz wrote:

Tomcat Users List [EMAIL PROTECTED] writes:
 

Hi,
Not, tomcat doesn't require a JRE ;)  It requires a JDK, always has.
And the location of the JDK installation is not hard-coded anywhere.
   

Are you sure?  I know the JRE is installed as a part of the Java SDK, 
but I think you'll find that if you remove the JRE, Tomcat will break in 
exactly the way that Daryl describes.  As I understand it, Tomcat runs 
using the JRE but requires the Java SDK to actually compile the JSP 
pages.  Please correct me if I'm wrong, it's the only way I'll learn ;-)

Cheers,

Jon

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


Re: Install Tomcat 5

2004-03-22 Thread Jonathan Melhuish
[EMAIL PROTECTED] wrote:

Hi,

I am trying to install tomcat version 5.
After running jakarta-tomcat-5.0.19.exe, the tomcat does not seem to start. I checked the services Apache Tomcat, and try to start it.
It returns a message Could not start the Apache Tomcat service on Local Computer.
Error 1053: The service did not respons to the start or control request in a timely fashion.
 

Make sure you've got the JRE installed correctly.  You may need to 
reboot the machine after you've installed it (even if it doesn't prompt 
you to) before you are able to run Tomcat.  Annoying, I know (especially 
if other users are logged on), but hey, that's Windows ;-)

Cheers,

Jon

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


Re: Tomcat under Windows: deploying applications with shortcuts to other folders

2004-03-22 Thread Jonathan Melhuish
Ashraf wrote:

Hi all,
I'd like to have shortcuts to folders/files outside
Tomcat installation added to my Tomcat application. Is
this possible under windows? This would be similar to
symbolic links in unix.
 

Have you tried making shortcuts, to see if it will follow them?

Sorry for stating the bleeding obvious, it's one of my many annoying 
habits ;-)

Cheers,

Jon

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


RE: How does Tomcat work?

2004-03-22 Thread Merrill, Roxann

I am going to be one of those people with very little understanding of
Tomcat and how it works, so I am glad to read the response that there are
people on this list willing to assist the newbes
Roxann :)

-Original Message-
From: Jonathan Melhuish [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:06 PM
To: Tomcat Users List
Subject: Re: How does Tomcat work?


Bernd Kauling wrote:

Hello list,

i am a 18 year old student from germany, who 
needs some information about the tomcat server.
How does it work? 
Do you have some background information i may can use?
  

Yes, loads - http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

If, after having read it, you have any more specific questions, I'm sure 
this group would be happy to help.

Cheers,

Jon

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


-
This e-mail is the exclusive, private and confidential property of the sender. The
information contained in it is intended solely for the use of the sender and the
intended recipient. If you are not the intended recipient you are hereby advised that
any unauthorized disclosure, copying, distribution or the taking of any action in
reliance on the contents of this message is strictly prohibited. If you have received
this e-mail in error, please notify us immediately by telephone (call the USF
Corporation Technical Support Center at 1-800-753-4563) and then destroy this
document and any copies in any form immediately.  Finally, the recipient should
check this email and any attachments for the presence of viruses. USF Corporation
accepts no liability for any damage caused by any virus transmitted by this email.
-

Re: Install Tomcat 5

2004-03-22 Thread Emerson Cargnin
I had the same problem under windows 2000. It just sounds strange (the 
public JRE suggestion) becouse the service worked nicely for tomcat 4.1...

thanks
Emerson
BTW, where can I find some docs about the configure shortcut that tomcat 
5 has???

Jonathan Melhuish wrote:
[EMAIL PROTECTED] wrote:

Hi,

I am trying to install tomcat version 5.
After running jakarta-tomcat-5.0.19.exe, the tomcat does not seem to 
start. I checked the services Apache Tomcat, and try to start it.
It returns a message Could not start the Apache Tomcat service on 
Local Computer.
Error 1053: The service did not respons to the start or control 
request in a timely fashion.
 

Make sure you've got the JRE installed correctly.  You may need to 
reboot the machine after you've installed it (even if it doesn't prompt 
you to) before you are able to run Tomcat.  Annoying, I know (especially 
if other users are logged on), but hey, that's Windows ;-)

Cheers,

Jon

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: bindaddress configuration??

2004-03-22 Thread Emerson Cargnin
do I have to change other nodes of server.xml file? or just the http 
connector is enough

Ok I added the address property to Server too, but when I try to start 
apache (http) i got the error:

[Mon Mar 22 15:15:24 2004] [crit] (98)Address already in use: make_sock: 
could not bind to port 80

I used the following command to add the new address :

ifconfig eth0:1 10.9.6.85

I remember that it has worked before.

My ifconfig output:

eth0   Encapsulamento do Link: Ethernet  Endereço de HW 
00:02:A5:D8:DC:0D
  inet end.: 10.9.7.58  Bcast:10.9.255.255  Masc:255.255.0.0
  endereço inet6: fe80::202:a5ff:fed8:dc0d/64 Escopo:Link
  UP BROADCASTRUNNING MULTICAST  MTU:1500  Métrica:1
  RX packets:2489168 errors:0 dropped:0 overruns:0 frame:0
  TX packets:942721 errors:0 dropped:0 overruns:0 carrier:0
  colisões:0 txqueuelen:100
  RX bytes:304408590 (290.3 Mb)  TX bytes:1063913650 (1014.6 Mb)
  IRQ:5 Endereço de E/S:0x1000 Memória:fe20-fe200038

eth0:1 Encapsulamento do Link: Ethernet  Endereço de HW 
00:02:A5:D8:DC:0D
  inet end.: 10.9.6.85  Bcast:10.255.255.255  Masc:255.0.0.0
  UP BROADCASTRUNNING MULTICAST  MTU:1500  Métrica:1
  IRQ:5 Endereço de E/S:0x1000 Memória:fe20-fe200038

Any clues???

D'Alessandro, Arthur wrote:
address For servers with more than one IP address, this attribute
specifies which address will be used for listening on the specified
port. By default, this port will be used on all IP addresses associated
with the server.
 
From:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html 

-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 11:31 AM
To: Tomcat Users List
Subject: Re: bindaddress configuration??

any answer for this question?

Emerson Cargnin wrote:

I need to setup tomcat to listen to a different IP address (a virtual 
one create with ifconfig linux command)? I did it once a long time
ago, 

nut don't remember exactly how to do it...

I remember that this was a property at some node of server.xml :)

thanks






--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to write file into webapp directory?

2004-03-22 Thread Jonathan Melhuish
Shapira, Yoav wrote:

Hi,
From a servlet,
String path = getServletContext().getRealPath(/);
File myFile = new File(path, myFileName.txt)
 

Yay!   :-)

Thank you ever so much, you've just saved me a lot of stress!  I can go 
home now, happy that I've actually acheived something today :-)

Cheers,

Jon

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


Re: Ant and Tomcat Manager over HTTPS - Done!

2004-03-22 Thread Harry Mantheakis
Hi Kovi

Thanks for the tip!

That sorted me out :-)

It took a little while (Googling, etc.) but I finally got the whole thing to
work.

One thing I had to do - and this is just for the record - was to make sure
that my certificate's 'common name' was exactly the same as my server's host
name.

When Java's 'keytool' asks What is your first and last name you have to
enter the server's host name (!)

It took a bit of head-scratching to figure that one out, but I suppose that
is not an issue with a proper certificate.

Many thanks again!

Harry Mantheakis
London, UK

 Importing CA's certificate to cacerts($JAVA_HOME/jre/lib/security) should
 resolve your problem. Password for cacerts is changeit
 
 Best regards,
 Kovi
 
 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
 | Gregor Kovac |[EMAIL PROTECTED]   |
 
 |  In A World Without Fences Who Needs Gates?  |
 |  Experience Linux.   |
 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


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



Re: Tomcat under Windows: deploying applications with shortcuts to other folders

2004-03-22 Thread Hans
Hi,
about 99,9% sure it will not follow them, because it sees shortcuts as 
files not as folders.
Does it have to be a shortcut, or is it just a folder outside the tomcat 
root that you want to access ?
That would have to be defined in the configuration files most probably.

grtz
Hans
At 18:15 22/03/2004 +, Jonathan Melhuish wrote:
Ashraf wrote:

Hi all,
I'd like to have shortcuts to folders/files outside
Tomcat installation added to my Tomcat application. Is
this possible under windows? This would be similar to
symbolic links in unix.
Have you tried making shortcuts, to see if it will follow them?

Sorry for stating the bleeding obvious, it's one of my many annoying 
habits ;-)

Cheers,

Jon

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


Database connection going from servlet to a bean

2004-03-22 Thread Tom K
I am going from a html--servlet--output to a jsp--javabean--jsp
configuration.
 
In my servlet I connect via JNDI like this:
public void init(ServletConfig config) throws ServletException{
super.init(config);
  try{
  Context env = (Context) new
InitialContext().lookup(java:comp/env);
  pool = (DataSource) env.lookup(jdbc/app1);
 
  if (pool == null)
throw new ServletException(`jdbc/app1' is an unknown
DataSource);
  }catch (NamingException e) {
throw new ServletException(e);
  }
 
How would I connect using a JSP? Or would this be done in the javabean?
 
TIA
 
Tom K.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
My server .xml is set out of the box with: unpackWARs=true 
autoDeploy=true
If I copy a war file to webapps when there is an active session present 
i get this error:

IOException while loading persisted sessions: 
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: 
org.apache.commons.logging.impl.Log4JLogger

I don't see any sessions in work/Catalina/localhost/myapp and I don't 
have any idea why I would be serializing 
org.apache.commons.logging.impl.Log4JLogger.

do I have some permissions problem?   I am using linux and tc 5.0.19, I 
am running tomcat as myself and I can read and write all of the tc 
directories.

also when I stop tomcat I don't see the active session saved?

I' pretty perplexed.
mas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Shapira, Yoav

Hi,
Make sure all your session attributes are serializable: namely, do not
put your logger in the session.  Grep your code for session.setAttribute
calls (and/or the JSP equivalent if you're using JSPs) to quickly
ascertain this.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:10 PM
To: Tomcat Users List
Subject: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger

My server .xml is set out of the box with: unpackWARs=true
autoDeploy=true
If I copy a war file to webapps when there is an active session present
i get this error:

IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger

I don't see any sessions in work/Catalina/localhost/myapp and I don't
have any idea why I would be serializing
org.apache.commons.logging.impl.Log4JLogger.

do I have some permissions problem?   I am using linux and tc 5.0.19, I
am running tomcat as myself and I can read and write all of the tc
directories.

also when I stop tomcat I don't see the active session saved?

I' pretty perplexed.
mas


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Login by parameters (no prompts)

2004-03-22 Thread Jacob Kjome
Well, if it were BASIC Auth, then you'd just do this (over SSL, of course, to
hide the clear text username/password)...

https://myusername:[EMAIL PROTECTED]

If the username and password are valid, there will be no prompt for username or
password.  You'll get right to the resource.

Jake

Quoting [EMAIL PROTECTED]:

 The application we are building allows file downloads from our UI.
 However, we also want users to be able to download these files using WGET
 from a command-line (perhaps as part of a script), like this:
 
   WGET 192.168.1.1/do/download?id=1
 
 However, these file downloads are subject to authentication and should be
 restricted to certain user roles.
 
 We have already implemented a JDBCRealm and everything works very well
 within the UI. The problem is that we can't figure out how to get Tomcat
 to invoke authentication without a prompt.  At first, we thought that
 adding j_username and j_password as part of the URL might do the
 trick.  No such luck.  We looked through the documentation and couldn't
 find any suggestions (unless we missed something along the way).
 
 What we want to be able to do is have the user provide the username and
 password as part of the URL, like this:
 
   WGET 192.168.1.1/do/download?id=1username=bobpassword=secret
 
 I know that we could always extend Tomcat with our own code, but I'd
 really like to avoid having to do that.  I haven't been allowing any
 platform-specific code into the product and I don't want to start now. The
 use of a JDBCRealm was a compromise that was supposed to reduce the coding
 effort.  Please tell me that there is a way around this issue that doesn't
 require coding Tomcat extensions.
 
 Thanks for any help you guys might be able to give me.
 Jonathan.

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



RE: Database connection going from servlet to a bean

2004-03-22 Thread Mike Curwen
There is a jspInit() method in a JSP that you can 'override' by doing:

%!

public void jspInit() {


}

%

So the answer for 'how' is; the same way


 -Original Message-
 From: Tom K [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 12:58 PM
 To: [EMAIL PROTECTED]
 Subject: Database connection going from servlet to a bean
 
 
 I am going from a html--servlet--output to a 
 jsp--javabean--jsp configuration.
  
 In my servlet I connect via JNDI like this:
 public void init(ServletConfig config) throws ServletException{
 super.init(config);
   try{
   Context env = (Context) new 
 InitialContext().lookup(java:comp/env);
   pool = (DataSource) env.lookup(jdbc/app1);
  
   if (pool == null)
 throw new ServletException(`jdbc/app1' is an 
 unknown DataSource);
   }catch (NamingException e) {
 throw new ServletException(e);
   }
  
 How would I connect using a JSP? Or would this be done in the 
 javabean?
  
 TIA
  
 Tom K.
  
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
  
 


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



Re: Login by parameters (no prompts)

2004-03-22 Thread David Smith
Hi. 

Time to go from lurker to contributer:

Ummm that's not conformant to RFC spec and it's being discontinued 
in IE (90+% of your clients right there).  I wouldn't recommend putting 
username/password info in the URL anyway.

-David

Jacob Kjome wrote:

Well, if it were BASIC Auth, then you'd just do this (over SSL, of course, to
hide the clear text username/password)...
https://myusername:[EMAIL PROTECTED]

If the username and password are valid, there will be no prompt for username or
password.  You'll get right to the resource.
Jake

Quoting [EMAIL PROTECTED]:

 

The application we are building allows file downloads from our UI.
However, we also want users to be able to download these files using WGET
from a command-line (perhaps as part of a script), like this:
 WGET 192.168.1.1/do/download?id=1

However, these file downloads are subject to authentication and should be
restricted to certain user roles.
We have already implemented a JDBCRealm and everything works very well
within the UI. The problem is that we can't figure out how to get Tomcat
to invoke authentication without a prompt.  At first, we thought that
adding j_username and j_password as part of the URL might do the
trick.  No such luck.  We looked through the documentation and couldn't
find any suggestions (unless we missed something along the way).
What we want to be able to do is have the user provide the username and
password as part of the URL, like this:
 WGET 192.168.1.1/do/download?id=1username=bobpassword=secret

I know that we could always extend Tomcat with our own code, but I'd
really like to avoid having to do that.  I haven't been allowing any
platform-specific code into the product and I don't want to start now. The
use of a JDBCRealm was a compromise that was supposed to reduce the coding
effort.  Please tell me that there is a way around this issue that doesn't
require coding Tomcat extensions.
Thanks for any help you guys might be able to give me.
Jonathan.
   

-
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: Database connection going from servlet to a bean

2004-03-22 Thread Tom K
Mike thanks for the feedback, but is this the practical solution? For
example, I am using a connection pool, the init is only done once, the
bean does the processing, after the processing it done (that is the
beans set their properties) the results are forwarded to another jsp
for viewing, so where do I release my connection back into the pool?

TIA

Tom K.




-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:31 PM
To: 'Tomcat Users List'
Subject: RE: Database connection going from servlet to a bean

There is a jspInit() method in a JSP that you can 'override' by doing:

%!

public void jspInit() {


}

%

So the answer for 'how' is; the same way


 -Original Message-
 From: Tom K [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 12:58 PM
 To: [EMAIL PROTECTED]
 Subject: Database connection going from servlet to a bean
 
 
 I am going from a html--servlet--output to a 
 jsp--javabean--jsp configuration.
  
 In my servlet I connect via JNDI like this:
 public void init(ServletConfig config) throws ServletException{
 super.init(config);
   try{
   Context env = (Context) new 
 InitialContext().lookup(java:comp/env);
   pool = (DataSource) env.lookup(jdbc/app1);
  
   if (pool == null)
 throw new ServletException(`jdbc/app1' is an 
 unknown DataSource);
   }catch (NamingException e) {
 throw new ServletException(e);
   }
  
 How would I connect using a JSP? Or would this be done in the 
 javabean?
  
 TIA
  
 Tom K.
  
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
  
 


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



Re: Connector build error

2004-03-22 Thread Rick Lutowski
Adam Fowler wrote:
 
 Hi,
 
 This made me a bit miffed too. The developers have changed the
 jk/native2/README.txt to explain how to do it natively. Here is the post to
 the dev list below.
 
 If you get some annoying message saying could not find library -lapr-0
 then fear not. You either:
 a) edit the jk/native2/server/apache2/Makefile file. Line 57 I think where
 it says -lapr-0 and change it to -lapr. then run make again.
 b) Install libapr-0.
 
 I chose the first option and it worked fine. It puts the so file in
 /build/jk2/apach2/ tho so be warned. Its a horrible horrible hack but it
 will allegedly be fixed in the upcoming 2.0.4 release.


Yes, this works.

Also, apache 2.0.48 contains an apr-0 lib, so the -1apr hack 
was not necessary with 2.0.48

Thanks for the assistance!

-- 
Rick Lutowski
Principal, JReality
[EMAIL PROTECTED]
http://www.jreality.com

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



Re: Login by parameters (no prompts)

2004-03-22 Thread jginter
Thanks for the quick reply.

Although this might work for BASIC authentication, we need to use FORM 
authentication so that the UI (which is 90% of our user access) can be 
validated properly (i.e., with nice forms, etc).  Is it possible that your 
suggestion might work even though we are set for FORM authentication?  Or 
can we configure Tomcat to use different authentication types for 
different URLs?

Thanks.
Jonathan.





Jacob Kjome [EMAIL PROTECTED]
03/22/2004 02:17 PM
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Login by parameters (no prompts)


Well, if it were BASIC Auth, then you'd just do this (over SSL, of course, 
to
hide the clear text username/password)...

https://myusername:[EMAIL PROTECTED]

If the username and password are valid, there will be no prompt for 
username or
password.  You'll get right to the resource.

Jake

Quoting [EMAIL PROTECTED]:

 The application we are building allows file downloads from our UI.
 However, we also want users to be able to download these files using 
WGET
 from a command-line (perhaps as part of a script), like this:
 
   WGET 192.168.1.1/do/download?id=1
 
 However, these file downloads are subject to authentication and should 
be
 restricted to certain user roles.
 
 We have already implemented a JDBCRealm and everything works very well
 within the UI. The problem is that we can't figure out how to get Tomcat
 to invoke authentication without a prompt.  At first, we thought that
 adding j_username and j_password as part of the URL might do the
 trick.  No such luck.  We looked through the documentation and couldn't
 find any suggestions (unless we missed something along the way).
 
 What we want to be able to do is have the user provide the username and
 password as part of the URL, like this:
 
   WGET 192.168.1.1/do/download?id=1username=bobpassword=secret
 
 I know that we could always extend Tomcat with our own code, but I'd
 really like to avoid having to do that.  I haven't been allowing any
 platform-specific code into the product and I don't want to start now. 
The
 use of a JDBCRealm was a compromise that was supposed to reduce the 
coding
 effort.  Please tell me that there is a way around this issue that 
doesn't
 require coding Tomcat extensions.
 
 Thanks for any help you guys might be able to give me.
 Jonathan.

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




RE: Database connection going from servlet to a bean

2004-03-22 Thread Shapira, Yoav

Hi,

Mike thanks for the feedback, but is this the practical solution? For
example, I am using a connection pool, the init is only done once, the
bean does the processing, after the processing it done (that is the
beans set their properties) the results are forwarded to another jsp
for viewing, so where do I release my connection back into the pool?

Your question is a good argument for having the bean retrieve the
connection, do its processing, and release the connection.  The results
you're forwarding can't be a java.sql.ResultSet, as that keeps the
connection open, but some other object containing the processed results.

Hand-in-hand with this approach goes the practice of getting a handle to
your connection pool in a ServletContextListener.  The listener can make
a getConnectionPool() or getConnection() method available for use by
your beans.  This approach has several advantages over the servlet init
(or jspInit for a JSP) design, all of which have been discussed in the
past on this list so if you're interested you can search the archives.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Database connection going from servlet to a bean

2004-03-22 Thread Mike Curwen
I think any object that has a connection can 'release' it back to the
pool, simply by calling connection.close().  And no, the method I
outlined isn't practical or a best practice, but if you were
insistent on doing stuff in a JSP, that's how I'd do it (and have done
it *meep*) ;)
 

 -Original Message-
 From: Tom K [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 1:40 PM
 To: 'Tomcat Users List'
 Subject: RE: Database connection going from servlet to a bean
 
 
 Mike thanks for the feedback, but is this the practical 
 solution? For example, I am using a connection pool, the init 
 is only done once, the bean does the processing, after the 
 processing it done (that is the beans set their properties) 
 the results are forwarded to another jsp for viewing, so 
 where do I release my connection back into the pool?
 
 TIA
 
 Tom K.
 
 
 
 
 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 22, 2004 1:31 PM
 To: 'Tomcat Users List'
 Subject: RE: Database connection going from servlet to a bean
 
 There is a jspInit() method in a JSP that you can 'override' by doing:
 
 %!
 
 public void jspInit() {
 
 
 }
 
 %
 
 So the answer for 'how' is; the same way
 
 
  -Original Message-
  From: Tom K [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 22, 2004 12:58 PM
  To: [EMAIL PROTECTED]
  Subject: Database connection going from servlet to a bean
  
  
  I am going from a html--servlet--output to a
  jsp--javabean--jsp configuration.
   
  In my servlet I connect via JNDI like this:
  public void init(ServletConfig config) throws ServletException{
  super.init(config);
try{
Context env = (Context) new
  InitialContext().lookup(java:comp/env);
pool = (DataSource) env.lookup(jdbc/app1);
   
if (pool == null)
  throw new ServletException(`jdbc/app1' is an
  unknown DataSource);
}catch (NamingException e) {
  throw new ServletException(e);
}
   
  How would I connect using a JSP? Or would this be done in the
  javabean?
   
  TIA
   
  Tom K.
   
  
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
   
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
  
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
  
 
 
 -
 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: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
Shapira, Yoav wrote:

Hi,
Make sure all your session attributes are serializable: namely, do not
put your logger in the session.  Grep your code for session.setAttribute
calls (and/or the JSP equivalent if you're using JSPs) to quickly
ascertain this.
 

This is a very simple application in struts.  My only session attributes 
are a String , an Integer ,  an ArrayList  and a String[].  the struts 
form beans, are
DyanValidatorForm which are serializable.

Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:10 PM
To: Tomcat Users List
Subject: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
My server .xml is set out of the box with: unpackWARs=true
autoDeploy=true
If I copy a war file to webapps when there is an active session present
i get this error:
IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
I don't see any sessions in work/Catalina/localhost/myapp and I don't
have any idea why I would be serializing
org.apache.commons.logging.impl.Log4JLogger.
do I have some permissions problem?   I am using linux and tc 5.0.19, I
am running tomcat as myself and I can read and write all of the tc
directories.
also when I stop tomcat I don't see the active session saved?

I' pretty perplexed.
mas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >