Re: mod_jk or webapp on solaris with apache2

2003-10-28 Thread Bill Barker

"David Bishop" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> See subject :-)  This is actually a two-parter, though...
>
> 1)  Which should I use?  We are running apache2 and tomcat on solaris, on
the
> same machine.  The tomcat usage is fairly light (a small percentage of the
> total usage of the server).  We've been running using apache1 and webapp
for
> over a year now, and have been fairly happy with it.  The only reason that
we
> are moving up to apache2 is because we want to do all of our ldap
> authentication within apache, and pass the info along to tomcat.
According
> to some archived postings to this list, that can only be accomplished
using
> apache2.  While we're moving however, I'm reconsidering using mod_jk2.
Any
> thoughts?
>

I believe the the default build for Apache2 on Solaris is still pre-fork, so
you should still be able to eck out a few more months with mod_webapp.
However, if you have an Apache2 that is not pre-fork, you are already dead
:).

mod_jk2 has a lot of promise, but if you need to move to production in the
very near term, I'd stick with mod_jk personally (since mod_jk2 isn't GA at
the moment).  If you have a few months horizon to move to production, then
by all means, try mod_jk2.

> 2)  Whichever one we go with, I'll probably need some kind soul to help us
out
> with getting working binaries.  I've used and admin'ed Apache+Tomcat for
> going on two years now, and I have *never* successfully compiled and used
the
> apache connector module.  Basically, even when I manage to get it compiled
(a
> very tricky business) it ends up complaining about missing symbols, or
just
> segfaulting, or   Thus, everytime I've had to rely upon the kindsess
of
> strangers to send me their working modules, and I use those.  In this
case,
> I'm using apache 2.0.47 and Tomcat 4.1.27.  Apache was compiled with gcc
> 3.3.1, and I'm on Solaris 8/Sparc.  If someone has a system vaguely
> resembling that setup, and wants to send me their copy of mod_webapp.so or
> mod_jk2.so, that would be simply wonderful.  And no, the binary connector
> modules available from the website don't work.  They don't appear to have
> been updated for several releases of apache, and who knows what they were
> compiled with...
>

On Solaris, you need up-to-date versions of the GNU tools (e.g. libtool,
autoconf), and need to have the GNU make ahead of the Solaris make in the
path.  But, otherwise I've never had a problem building mod_jk(2) on
Solaris.

> Many thanks for the great programs, and any advice/tips/pointers that you
> offer!
>
> -- 
> D.A.Bishop




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



Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Gerald Stampfel
I am working in a windows environment.

You mean setting my environment variable %classpath% by doing SET CLASSPATH
= "..." ?

I have done that and it still doesn't work.

-
Gerald S.

- Original Message - 
From: "Jay Garala" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:14 PM
Subject: RE: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.


> Make sure u have $JDK/lib/tools.jar in your classpath
>
> -Original Message-
> From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: Error: Unable to find a javac compiler; com.sun.tools.javac.Main
is
> not on the classpath.
>
>
> Hi folks,
>
> i got the following error message:
>
> --
--
> --
>
> 2003-10-28 21:58:08 Info: Compile:
>
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
> /index_jsp.java
>
>
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
>
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
>
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
>
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
>
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
>
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
>
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
>
rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
>
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
>
gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
>
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
>
ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
>
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
>
mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
>
C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
>
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
>
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
>
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
>
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
>
arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
>
at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
> -tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-
to
>
mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
>
at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
>
pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
>
ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
>
ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
>
/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
>
jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
>
speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
>
/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE
>
B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB
> -INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/
je
>
tspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/
>
webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme
>
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.j
>
ar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.
>
0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logg
>
ing-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/comm
>
ons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/e
>
cs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcr
>
um-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
>
hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta
> -oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/j
ak
>
arta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/li
>
b/jcs-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
>
jdbc-se2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jet
>
speed-1.4-b4.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/l
>
og4j-1.2.6.j

Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Gerald Stampfel
It definitely points to a jdk and $JAVA_HOME/lib/tools.jar does exist.

-
Gerald S.

- Original Message - 
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:51 PM
Subject: Re: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.


> Gerald,
>
> > i got the following error message:
>
> [snip]
>
> > Exception compiling Unable to find a javac compiler;
> > com.sun.tools.javac.Main is not on the classpath.
> > Perhaps JAVA_HOME does not point to the JDK
> >
> > JAVA_HOME points to the correct JDK.
>
> Are you sure it points to a JDK and not a JRE? Often, people install the
> JDK which comes with a JRE and then point JAVA_HOME to the wrong one. If
> there's no $JAVA_HOME/lib/tools.jar, then your install is either
> incorrect (JRE instead of JDK) or broken.
>
> -chris
>
>
> -
> 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: Windows freeze...

2003-10-28 Thread Kwok Peng Tuck
Run as service instead :D

Leo Larraquy wrote:

It ´s a good idea, and  but my client is Microsoft-mind-ahead
- Original Message -
From: "Dov Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 7:22 PM
Subject: Re: Windows freeze...
 

Fdisk
Install linux
:)

On 10/28/03 2:25 PM, "Leo Larraquy" <[EMAIL PROTECTED]> wrote:

   

Hi people, I`ve got a really simple question but a can`t solve on my
 

own.
 

On Windows, when an applicacion throws an Exception, for the first time,
Tomcat freezes, until I hit the keyboard or I do something on the DOS
 

console
 

that appears when Tomcat starts up.
But it doesn`t happen on Linux! I`ve been told that Windows losses
 

control on
 

that new window, and it can`t print the stackTrace, or even a
 

"System.out",
 

until you do something to activate that window again.
Is there some way to solve this??
Thanks in advance.
Leonardo Lopez.


 

-
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: JDBC Realm

2003-10-28 Thread Gardner, David [IT]
Hello,

Please let me explain a little more. It is the password that the JDBC realm
uses to connect to the database that should be encrypted for example
connectionPassword="foobar" should look something like
connectionPassword="3dc69416b0783cac9f3dda37b6bb0862". I have been able to
deal with user passwords fine using MD5. We have a policy of no developer
access to production and staging environments. Thus any passwords in
configuration files such as the server.xml require encryption. However I
have since created a solution.

I have created my own class that extends
org.apache.catalina.realm.RealmBase. It works in a similar way to the tomcat
JDBCRealm. I made it available in the tomcat server classpath under
server/lib. I have configured server.xml like..

   

The connectionName="FooBar" uses a JDBC connection pool I have written that
supports password encryption. Hence I no longer have clear text passwords in
my config file server.xml.

In fact maybe this raises a point that it appears that all passwords in
config files for tomcat are clear text. For example by looking at the doco
for JNDI data sources the configs for JDBC connection pooling using DBCP
also have clear text passwords. See ..

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how
to.html


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 29 October 2003 1:28 AM
To: Tomcat Users List
Subject: Re: JDBC Realm 


Can you please explain this a little better.

You have in your database a list of all your user's passwords encrypted
using MD5.  Do you also have a clear text copy of them?  Then you want to
encrypt this clear text copy for use in your configuration files?

If you don't already have a cleartext copy of the passwords you are going to
have to get your users to submit them as your MD5 version is useless.  You
could amend your application to read the password, store it in the clear,
then compare it using MD5.  Then as they all log in they will have given you
a copy of their password.

Andoni.

- Original Message -
From: "Gardner, David [IT]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 3:15 AM
Subject: JDBC Realm


> I have a JDBC Realm configured against a sybase database and it works
fine.
> See below I have changed the details for obvious security reasons.
>
> debug="99"
>  driverName="com.sybase.jdbc2.jdbc.SybDriver"
>  connectionURL="jdbc:sybase:Tds:foo.au.bar.com:666/foo_bar"
>  connectionName="foobar" connectionPassword="foobar"
>  userTable="User" userNameCol="userName" userCredCol="password"
>  userRoleTable="UserRole" roleNameCol="roleName"
digest="MD5"/>
>
> I also have the user passwords encrypted using MD5 and this works fine.
> However we have a need to have all clear text passwords encrypted in
> configuration files. I need this realm to work with the connectionPassword
> value foobar encrypted. Does anyone know if this has been done and is
there
> a patch of some sort available?
>
>
>
> David Gardner
> Software Developer
> Cititech
> Level 11, 2 Park Street
> Sydney NSW Australia 2000
>
> Phone: (+612) 8225 4803
> Fax: (+612) 8225
> Email: [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: Form Double Submit Detection

2003-10-28 Thread Tom Parker
On Tue, 2003-10-28 at 23:40, Adam Hardy wrote:

> I don't store the token in the session. When the form submits, I check 
> the session for a hashmap, & if the token is not in the hashmap, I allow 
> the transaction and then put the token in the hashmap.

Interesting. You store the successful tokens so they can't be used
again, and ignore the tokens that are never returned to the server. This
would be more efficient for the case where the user views but never
submits more forms than they view and do submit. I'll have to analyse my
traffic some time and see what my users are doing.

Currently I've implemented the opposite, I keep track of all the tokens
and drop those that the user returns. I also drop all tokens older than
2 hours (which means the user has 2 hours to submit any particular form
before the token goes away and they can't). (and obviously I store them
in the session so they all go away when the session does)

I like your solution better than mine.


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



Re: Tomcat 5 Problem with finding servlet class

2003-10-28 Thread Christopher Schultz
All,

java.lang.NoSuchMethodError: 
javax.servlet.ServletConfig.getServletName()Ljava/lang/String;


This method is not part of the servlet specification:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/index.html
How did you compile it in the first place?
I'm sorry; I was looking at ServletContext, not ServletConfig.

Anyhow, I don't think you should be explicitly setting any classpaths 
for anything. You should just dump all your JAR files into WEB-INF/lib 
and start Tomcat without any further configuration changes.

Note that putting servlet.jar into WEB-INF/lib is a mistake. Tomcat will 
probably refuse to load thar JAR anyways, so you might be okay (I know 
it does on mine .. oops :)

-chris

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


Re: Windows freeze...

2003-10-28 Thread Filip Hanik
run tomcat as a service
- Original Message -
From: "Leo Larraquy" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 2:50 PM
Subject: Re: Windows freeze...


It ´s a good idea, and  but my client is Microsoft-mind-ahead
- Original Message -
From: "Dov Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 7:22 PM
Subject: Re: Windows freeze...


> Fdisk
> Install linux
>
>
> :)
>
>
> On 10/28/03 2:25 PM, "Leo Larraquy" <[EMAIL PROTECTED]> wrote:
>
> > Hi people, I`ve got a really simple question but a can`t solve on my
own.
> > On Windows, when an applicacion throws an Exception, for the first time,
> > Tomcat freezes, until I hit the keyboard or I do something on the DOS
console
> > that appears when Tomcat starts up.
> > But it doesn`t happen on Linux! I`ve been told that Windows losses
control on
> > that new window, and it can`t print the stackTrace, or even a
"System.out",
> > until you do something to activate that window again.
> > Is there some way to solve this??
> > Thanks in advance.
> > Leonardo Lopez.
> >
> >
> >
>
>
> -
> 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: [OT]Virus sent to Tomcat User list.

2003-10-28 Thread Jens Skripczynski
Hi,

afaik it is a different reason.

The virus searches for valid email adresses and sends itsself to those.

So if a member is subscribed to the list, and a virus sends himself to the
list with the 'From: ' adress of a valid user it will be passed to the
members.

If he is not subscribe the message will be sent to the admin of the list for
approval.
Nathan Smith:
> Attached is a file stating that Norton Antivirus removed an executable
> because it contained a virus. Is somebody just trying to be malicious or is
> someone so naive that they would recieve such a file from someone through
> the tomcat-user list???
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 29, 2003 1:50 AM
> Subject: Hey man, long not see you
> 
> 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

> Norton AntiVirus removed the attachment: anti-trojan.exe.
> The attachment was infected with the [EMAIL PROTECTED] virus.

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

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

Computers are like airconditioners: They stop working 
properly if you open windows.


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



Tomcat 5 Problem with finding servlet class

2003-10-28 Thread Paresh Varatkar
I have my jars in following manner.

webapps\gf\bin\ + 

webapps\gf\WEB-INF\lib\my jars 
webapps\gf\*.jsp, *.htmls

I can not move the jars in bin as I have no control over code and they refer /bin/path
in their code.

To make this work with Tomcat 3.2.4 I have to only set classpath before starting 
Tomcat.
I do the same with Tomcat 5 I get error which suggests that its not finding 
servlet.jar.
which is there in webapps\gf\bin\servlet.jar.

Regards
Paresh

java.lang.NoSuchMethodError: 
javax.servlet.ServletConfig.getServletName()Ljava/lang/String;
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1402)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:150)
at javax.servlet.GenericServlet.init(GenericServlet.java:266)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3853)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4168)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:831)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:511)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:890)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:523)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)







-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 1:54 PM
To: Paresh Varatkar
Subject: Re: Tomcat 5 Problem with finding servlet class


Paresh,

> I have this third party code (servelets and adapter code) which we
> are licensed to use as base but not license to change. I was able to
> write application arou

Re: Windows freeze...

2003-10-28 Thread Leo Larraquy
It ´s a good idea, and  but my client is Microsoft-mind-ahead
- Original Message -
From: "Dov Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 7:22 PM
Subject: Re: Windows freeze...


> Fdisk
> Install linux
>
>
> :)
>
>
> On 10/28/03 2:25 PM, "Leo Larraquy" <[EMAIL PROTECTED]> wrote:
>
> > Hi people, I`ve got a really simple question but a can`t solve on my
own.
> > On Windows, when an applicacion throws an Exception, for the first time,
> > Tomcat freezes, until I hit the keyboard or I do something on the DOS
console
> > that appears when Tomcat starts up.
> > But it doesn`t happen on Linux! I`ve been told that Windows losses
control on
> > that new window, and it can`t print the stackTrace, or even a
"System.out",
> > until you do something to activate that window again.
> > Is there some way to solve this??
> > Thanks in advance.
> > Leonardo Lopez.
> >
> >
> >
>
>
> -
> 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: Needed more support for catalina.base in Bootstrap

2003-10-28 Thread Jean-Francois Arcand
In Tomcat 5, you can customize the location of the common/lib, endorsed, 
etc.  Just take a look at $CATALINA_HOME/conf/catalina.properties. 
Double check that to see if you can do what you want :-)

-- Jeanfrancois

Rodrigo Ruiz wrote:

Thanks for your responses, I will follow your suggestions :-)

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 3:16 PM
Subject: RE: Needed more support for catalina.base in Bootstrap
 

Howdy,
What Steve said is right on target.  Your patch is not likely to make it
into the tomcat code base ;)
A couple of other pointers, however:
- Patches are always welcome -- so thanks for contributing ;)
- Don't attach them to messages: open a bugzilla enhancement request and
attach your patch, or better yet, a diff file from current sources to
your patch, in the bugzilla issue.
- You may wish to discuss the need for and intent of your patch on the
dev list before writing the patch itself.
- If you intend to contribute more, which I hope is the case, please
read the guidelines for getting involved with jakarta:
http://jakarta.apache.org/site/getinvolved.html
Yoav Shapira
Millennium ChemInformatics
   

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 7:19 AM
To: Tomcat Users List
Subject: Re: Needed more support for catalina.base in Bootstrap
 

From: Rodrigo Ruiz <[EMAIL PROTECTED]>
   

Recently I have been trying to install and configure an OGSA server
(www.globus.org) deployed over a Tomcat container. The problem I have
   

is
   

that it requires a lot of Tomcat customization: additional connectors
   

in
   

the
 

server.conf, additional jars in the common/lib, common/endorsed and
server/lib directories, conf/web.xml modifications, and so.
In order to keep track of these changes, I decided to use a shared
   

Tomcat
   

installation, and do all the dirty business in a separated Tomcat
   

instance,
 

pointing CATALINA_BASE to it. Doing this I noticed that there was no
   

place
 

for putting my common/lib and server/lib jars.
   

This sounds backwards.  When using separate CATALINA_HOME and
CATALINA_BASE locations,
CATALINA_HOME -

the "central" location.  Classes used by tomcat (server and common
respositories) are taken from this location.  You'll also use the bin
directory for this location.
CATALINA_BASE -

the "lightweight" installations.  These contain web applications,
their own logs, own configuration files, and make use of their own
"shared" class repositories.  If you think about it, this makes
sense: separate CATALINA_BASEs can have different web applications,
so the set of web application library depencies can vary from one
CATALINA_BASE to the next.
 

Digging in the source code, I found that CATALINA_BASE is not used at
   

all
   

when building the common and catalina class loaders.
   

That's correct.  CATALINA_BASE uses the shared class loader, and
CATALINA_HOME uses common and server.
--
Steve
-
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]
 



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


Re: Windows freeze...

2003-10-28 Thread Justin Ruthenbeck
At 01:03 PM 10/28/2003, you wrote:
Could you recomend me any Windows version to avoid this?
Is there some way to send the output of the console to a file?? if not, is
it possible to always click  in that console so as to left the
selection-mode "unselected"??
Turn off QuickEdit in your DOS Console window -- it will make output 
always appear in the console and you won't see this freezing 
problem.  Simple.  See the previous message for how to do it.

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


Re: Session vs. Application Replication

2003-10-28 Thread Filip Hanik
question 1: yes you could do it
question 2: no one has done it

- Original Message - 
From: "Karthik Duddala" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 1:30 PM
Subject: Re: Session vs. Application Replication







Thanks, Filip. So, my next obvious question is, Is there a way we could
replicate data in the application context? If so , has anyone implemented
it?

Thanks much
Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881



   
 "Filip Hanik" 
 <[EMAIL PROTECTED] 
 om>To 
   "Tomcat Users List" 
 10/28/2003 04:20  <[EMAIL PROTECTED]>
 PM cc 
   
   Subject 
 Please respond to Re: Session vs. Application 
   "Tomcat Users   Replication 
   List"   
 <[EMAIL PROTECTED] 
  rta.apache.org>  
   
   
   




just different ways of looking at it.
if you are saying that "application" replication is to replicate the data
in
the application context, then no, it doesn't do that,

Filip

- Original Message -
From: "Karthik Duddala" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 1:17 PM
Subject: RE: Session vs. Application Replication







Thanks, Yoav. Appreciate all your help.
Pardon my Ignorance, but, how is session scope the same as application
scope?


Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881




 "Shapira, Yoav"
 <[EMAIL PROTECTED]
 .com>  To
   "Tomcat Users List"
 10/28/2003 04:06  <[EMAIL PROTECTED]>
 PM cc

   Subject
 Please respond to RE: Session vs. Application
   "Tomcat Users   Replication
   List"
 <[EMAIL PROTECTED]
  rta.apache.org>








Howdy,
Since HTTP is stateless, session replication is enough for servlet
webapps to achieve clustering.  That is, session replication =
application replication.  If you're using more J2EE than servlets, e.g.
EJBs, your app server will (hopefully) allow for clustering itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Karthik Duddala [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 4:01 PM
>To: Tomcat Users List
>Subject: RE: Session vs. Application Replication
>
>
>
>
>
>
>Can we, using tomcat's clustering, somehow replicate not only session
>information for a given user (which would allow that user to transition
>amongst the servers as traffic increases) but also maybe the
application ??
>
>Thanks
>
>Karthik Duddala
>Developer - Web Team
>Commerce Technologies
>Ph. 518-886-0700 x. 3881
>
>
>-
>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]


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

Re: Windows freeze...

2003-10-28 Thread Dov Rosenberg
Fdisk
Install linux


:)


On 10/28/03 2:25 PM, "Leo Larraquy" <[EMAIL PROTECTED]> wrote:

> Hi people, I`ve got a really simple question but a can`t solve on my own.
> On Windows, when an applicacion throws an Exception, for the first time,
> Tomcat freezes, until I hit the keyboard or I do something on the DOS console
> that appears when Tomcat starts up.
> But it doesn`t happen on Linux! I`ve been told that Windows losses control on
> that new window, and it can`t print the stackTrace, or even a "System.out",
> until you do something to activate that window again.
> Is there some way to solve this??
> Thanks in advance.
> Leonardo Lopez.
> 
> 
> 


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



mod_jk or webapp on solaris with apache2

2003-10-28 Thread David Bishop
See subject :-)  This is actually a two-parter, though...

1)  Which should I use?  We are running apache2 and tomcat on solaris, on the 
same machine.  The tomcat usage is fairly light (a small percentage of the 
total usage of the server).  We've been running using apache1 and webapp for 
over a year now, and have been fairly happy with it.  The only reason that we 
are moving up to apache2 is because we want to do all of our ldap 
authentication within apache, and pass the info along to tomcat.  According 
to some archived postings to this list, that can only be accomplished using 
apache2.  While we're moving however, I'm reconsidering using mod_jk2.  Any 
thoughts?

2)  Whichever one we go with, I'll probably need some kind soul to help us out 
with getting working binaries.  I've used and admin'ed Apache+Tomcat for 
going on two years now, and I have *never* successfully compiled and used the 
apache connector module.  Basically, even when I manage to get it compiled (a 
very tricky business) it ends up complaining about missing symbols, or just 
segfaulting, or   Thus, everytime I've had to rely upon the kindsess of 
strangers to send me their working modules, and I use those.  In this case, 
I'm using apache 2.0.47 and Tomcat 4.1.27.  Apache was compiled with gcc 
3.3.1, and I'm on Solaris 8/Sparc.  If someone has a system vaguely 
resembling that setup, and wants to send me their copy of mod_webapp.so or 
mod_jk2.so, that would be simply wonderful.  And no, the binary connector 
modules available from the website don't work.  They don't appear to have 
been updated for several releases of apache, and who knows what they were 
compiled with...

Many thanks for the great programs, and any advice/tips/pointers that you 
offer!

-- 
D.A.Bishop

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



Re: Windows freeze...

2003-10-28 Thread Erik Wright
I run my production server on Linux so I've never bothered to try, but a 
quick google search shows:

http://www.mattkelli.com/tech/tomcat/ntservice.htm

and

http://web.bvu.edu/staff/david/tcservcfg/

-e

Leo Larraquy wrote:

I`ve never done that, that`s the a fine way to avoid the problem,  could you
tell me how to do it?
 

It's a problem with Windows and has nothing to do with Tomcat. More
specifically, it's a problem with the DOS terminal program. The reason
it doesn't happen on linux is because linux has better terminal
emulators than windows.
Anyway, why run a production server in a console? Shouldn't you have it
installed as a service?
Erik

--
http://www.spectacle.ca/
The New Online Source for Live Music in Montreal
.::514.286.1699::.
   



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


Re: Windows freeze...

2003-10-28 Thread Leo Larraquy
I`ve never done that, that`s the a fine way to avoid the problem,  could you
tell me how to do it?

Thanks
- Original Message -
From: "Erik Wright" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 6:48 PM
Subject: Re: Windows freeze...


> Leo Larraquy wrote:
>
> >Excuse me about not beeing happy with your response, I understand that
your
> >not the person who made Tomcat, but I really can`t understand why Linux
> >doesn`t have these problem and Windows does.
> >
> >
> It's a problem with Windows and has nothing to do with Tomcat. More
> specifically, it's a problem with the DOS terminal program. The reason
> it doesn't happen on linux is because linux has better terminal
> emulators than windows.
>
> Anyway, why run a production server in a console? Shouldn't you have it
> installed as a service?
>
> Erik
>
> --
> http://www.spectacle.ca/
> The New Online Source for Live Music in Montreal
> .::514.286.1699::.
>
>
>
> -
> 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: Windows freeze...

2003-10-28 Thread Leo Larraquy
I guess thats a fine answer
- Original Message - 
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 5:37 PM
Subject: Re: Windows freeze...


> Leo,
> 
> > On Windows, when an applicacion throws an Exception, for the first
> > time, Tomcat freezes, until I hit the keyboard or I do something on
> > the DOS console that appears when Tomcat starts up.
> 
> I've had this "problem" before. It turns out that in some DOS windows,
> when you click on them, they suspend the console output because the
> mouse is in "selection" mode.
> 
> Pressing  gives you miles of queued-up output. It's like turning 
> on scroll lock on a real console.
> 
> Just try not to click *inside* the DOS box when you switch to it. 
> Instead, head for the title bar, of better yet, ignore your mouse and 
> use ALT-TAB :)
> 
> -chris
> 
> 
> -
> 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: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Christopher Schultz
Gerald,

i got the following error message:
[snip]

Exception compiling Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
JAVA_HOME points to the correct JDK.
Are you sure it points to a JDK and not a JRE? Often, people install the 
JDK which comes with a JRE and then point JAVA_HOME to the wrong one. If 
there's no $JAVA_HOME/lib/tools.jar, then your install is either 
incorrect (JRE instead of JDK) or broken.

-chris

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


Re: Windows freeze...

2003-10-28 Thread Erik Wright
Leo Larraquy wrote:

Excuse me about not beeing happy with your response, I understand that your
not the person who made Tomcat, but I really can`t understand why Linux
doesn`t have these problem and Windows does.
 

It's a problem with Windows and has nothing to do with Tomcat. More 
specifically, it's a problem with the DOS terminal program. The reason 
it doesn't happen on linux is because linux has better terminal 
emulators than windows.

Anyway, why run a production server in a console? Shouldn't you have it 
installed as a service?

Erik

--
http://www.spectacle.ca/
The New Online Source for Live Music in Montreal
.::514.286.1699::.


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


Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStat ement.java:1082)

2003-10-28 Thread Vladimer Shioshvili
Alexander,

can you post the code that actually uses the parameter?

At 04:35 PM 10/28/2003, you wrote:
More to that
The form will not be submitted if value is null (checked by JavaScript)
So i think it is related to server request
Thanks
On Saturday 30 August 2003 04:57 pm, Alex Pomansky wrote:
> It will be true for first run but it works on first and does not on second
> with same input
>
> Thanks
> - Original Message -
> From: "Christopher Schultz" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 4:45 PM
> Subject: Re: (OT)
> oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatemen
>t .java:1082)
>
> > Alexander,
> >
> > Next time, please post this to a Java or JDBC or Oracle mailing list.
> > This is unrelated to Tomcat.
> >
> > > I have a servlet that getting post request from form with
> > > enctype="multipart/form-data" as part of the form is file
> > > upload. On the first run it works OK, on the second i am
> > > getting:
> > >
> > > java.lang.NullPointerException
> >
> > What is the value of the string that you are passing to setString? Is it
> > null? If it is, then I'd call this expected behavior.
> >
> > If you want to set the value of a column to NULL then you must use
> > PreparedStatement.setNull().
> >
> > Sheesh, at a 615 level course you should be checking for nulls.
> >
> > -chris
> >
> >
> > -
> > 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]

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Alexander Pomansky
More to that
The form will not be submitted if value is null (checked by JavaScript)
So i think it is related to server request

Thanks
On Saturday 30 August 2003 04:57 pm, Alex Pomansky wrote:
> It will be true for first run but it works on first and does not on second
> with same input
>
> Thanks
> - Original Message -
> From: "Christopher Schultz" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 4:45 PM
> Subject: Re: (OT)
> oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatemen
>t .java:1082)
>
> > Alexander,
> >
> > Next time, please post this to a Java or JDBC or Oracle mailing list.
> > This is unrelated to Tomcat.
> >
> > > I have a servlet that getting post request from form with
> > > enctype="multipart/form-data" as part of the form is file
> > > upload. On the first run it works OK, on the second i am
> > > getting:
> > >
> > > java.lang.NullPointerException
> >
> > What is the value of the string that you are passing to setString? Is it
> > null? If it is, then I'd call this expected behavior.
> >
> > If you want to set the value of a column to NULL then you must use
> > PreparedStatement.setNull().
> >
> > Sheesh, at a 615 level course you should be checking for nulls.
> >
> > -chris
> >
> >
> > -
> > 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: Tomcat 5 Problem with finding servlet class

2003-10-28 Thread Paresh Varatkar
No Sir,
The tediousness is not because of laziness to remove the code but because of usage of 
3rd party code,
which we are not licensed to change and which is path specific.

I know this makes things far difficult than normal ways of deployment, but I am 
willing to do whatsoever to make it work with Tomcat.

Regards
Paresh

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 11:47 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 Problem with finding servlet class



Howdy,

>As the application already have hard coded path references which are
too
>tedious to remove,

FYI, there are few better ways to get someone to think "this person is
not worth my time to help" than a sentence like the above...

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]


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



Re: Session vs. Application Replication

2003-10-28 Thread Karthik Duddala





Thanks, Filip. So, my next obvious question is, Is there a way we could
replicate data in the application context? If so , has anyone implemented
it?

Thanks much
Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881



   
 "Filip Hanik" 
 <[EMAIL PROTECTED] 
 om>To 
   "Tomcat Users List" 
 10/28/2003 04:20  <[EMAIL PROTECTED]>
 PM cc 
   
   Subject 
 Please respond to Re: Session vs. Application 
   "Tomcat Users   Replication 
   List"   
 <[EMAIL PROTECTED] 
  rta.apache.org>  
   
   
   




just different ways of looking at it.
if you are saying that "application" replication is to replicate the data
in
the application context, then no, it doesn't do that,

Filip

- Original Message -
From: "Karthik Duddala" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 1:17 PM
Subject: RE: Session vs. Application Replication







Thanks, Yoav. Appreciate all your help.
Pardon my Ignorance, but, how is session scope the same as application
scope?


Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881




 "Shapira, Yoav"
 <[EMAIL PROTECTED]
 .com>  To
   "Tomcat Users List"
 10/28/2003 04:06  <[EMAIL PROTECTED]>
 PM cc

   Subject
 Please respond to RE: Session vs. Application
   "Tomcat Users   Replication
   List"
 <[EMAIL PROTECTED]
  rta.apache.org>








Howdy,
Since HTTP is stateless, session replication is enough for servlet
webapps to achieve clustering.  That is, session replication =
application replication.  If you're using more J2EE than servlets, e.g.
EJBs, your app server will (hopefully) allow for clustering itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Karthik Duddala [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 4:01 PM
>To: Tomcat Users List
>Subject: RE: Session vs. Application Replication
>
>
>
>
>
>
>Can we, using tomcat's clustering, somehow replicate not only session
>information for a given user (which would allow that user to transition
>amongst the servers as traffic increases) but also maybe the
application ??
>
>Thanks
>
>Karthik Duddala
>Developer - Web Team
>Commerce Technologies
>Ph. 518-886-0700 x. 3881
>
>
>-
>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]


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




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



Re: Session vs. Application Replication

2003-10-28 Thread Filip Hanik
just different ways of looking at it.
if you are saying that "application" replication is to replicate the data in
the application context, then no, it doesn't do that,

Filip

- Original Message -
From: "Karthik Duddala" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 1:17 PM
Subject: RE: Session vs. Application Replication







Thanks, Yoav. Appreciate all your help.
Pardon my Ignorance, but, how is session scope the same as application
scope?


Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881




 "Shapira, Yoav"
 <[EMAIL PROTECTED]
 .com>  To
   "Tomcat Users List"
 10/28/2003 04:06  <[EMAIL PROTECTED]>
 PM cc

   Subject
 Please respond to RE: Session vs. Application
   "Tomcat Users   Replication
   List"
 <[EMAIL PROTECTED]
  rta.apache.org>








Howdy,
Since HTTP is stateless, session replication is enough for servlet
webapps to achieve clustering.  That is, session replication =
application replication.  If you're using more J2EE than servlets, e.g.
EJBs, your app server will (hopefully) allow for clustering itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Karthik Duddala [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 4:01 PM
>To: Tomcat Users List
>Subject: RE: Session vs. Application Replication
>
>
>
>
>
>
>Can we, using tomcat's clustering, somehow replicate not only session
>information for a given user (which would allow that user to transition
>amongst the servers as traffic increases) but also maybe the
application ??
>
>Thanks
>
>Karthik Duddala
>Developer - Web Team
>Commerce Technologies
>Ph. 518-886-0700 x. 3881
>
>
>-
>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]


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



RE: Session vs. Application Replication

2003-10-28 Thread Karthik Duddala





Thanks, Yoav. Appreciate all your help.
Pardon my Ignorance, but, how is session scope the same as application
scope?


Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881



   
 "Shapira, Yoav"   
 <[EMAIL PROTECTED] 
 .com>  To 
   "Tomcat Users List" 
 10/28/2003 04:06  <[EMAIL PROTECTED]>
 PM cc 
   
   Subject 
 Please respond to RE: Session vs. Application 
   "Tomcat Users   Replication 
   List"   
 <[EMAIL PROTECTED] 
  rta.apache.org>  
   
   
   





Howdy,
Since HTTP is stateless, session replication is enough for servlet
webapps to achieve clustering.  That is, session replication =
application replication.  If you're using more J2EE than servlets, e.g.
EJBs, your app server will (hopefully) allow for clustering itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Karthik Duddala [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 4:01 PM
>To: Tomcat Users List
>Subject: RE: Session vs. Application Replication
>
>
>
>
>
>
>Can we, using tomcat's clustering, somehow replicate not only session
>information for a given user (which would allow that user to transition
>amongst the servers as traffic increases) but also maybe the
application ??
>
>Thanks
>
>Karthik Duddala
>Developer - Web Team
>Commerce Technologies
>Ph. 518-886-0700 x. 3881
>
>
>-
>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]



RE: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Jay Garala
Make sure u have $JDK/lib/tools.jar in your classpath

-Original Message-
From: Gerald Stampfel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 4:11 PM
To: [EMAIL PROTECTED]
Subject: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is
not on the classpath.


Hi folks,

i got the following error message:


--

2003-10-28 21:58:08 Info: Compile:
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
/index_jsp.java
 
classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-to
mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WE
B-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB
-INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/je
tspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/
webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme
/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.j
ar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.
0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logg
ing-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/comm
ons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/e
cs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcr
um-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta
-oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jak
arta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/li
b/jcs-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/
jdbc-se2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jet
speed-1.4-b4.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/l
og4j-1.2.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mai
l.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.
jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/P
rogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;
/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:
/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/P
rogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programm
e/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/velocity-1.3

Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.

2003-10-28 Thread Gerald Stampfel
Hi folks,

i got the following error message:

--

2003-10-28 21:58:08 Info: Compile: 
javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\/index_jsp.java

classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activation.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-beanutils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/

Re: Windows freeze...

2003-10-28 Thread Leo Larraquy
Could you recomend me any Windows version to avoid this?
Is there some way to send the output of the console to a file?? if not, is
it possible to always click  in that console so as to left the
selection-mode "unselected"??
I`m asking you this because I`ve got no problem on doing this in my
company/work place.
But I`m thinking about this situation, that is likely posible, server is
restarted, the user clicks to start Tomcat , how can I advise him not to
click that window???
Excuse me about not beeing happy with your response, I understand that your
not the person who made Tomcat, but I really can`t understand why Linux
doesn`t have these problem and Windows does.

Thanks.

- Original Message -
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 5:37 PM
Subject: Re: Windows freeze...


> Leo,
>
> > On Windows, when an applicacion throws an Exception, for the first
> > time, Tomcat freezes, until I hit the keyboard or I do something on
> > the DOS console that appears when Tomcat starts up.
>
> I've had this "problem" before. It turns out that in some DOS windows,
> when you click on them, they suspend the console output because the
> mouse is in "selection" mode.
>
> Pressing  gives you miles of queued-up output. It's like turning
> on scroll lock on a real console.
>
> Just try not to click *inside* the DOS box when you switch to it.
> Instead, head for the title bar, of better yet, ignore your mouse and
> use ALT-TAB :)
>
> -chris
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Session vs. Application Replication

2003-10-28 Thread Shapira, Yoav

Howdy,
Since HTTP is stateless, session replication is enough for servlet
webapps to achieve clustering.  That is, session replication =
application replication.  If you're using more J2EE than servlets, e.g.
EJBs, your app server will (hopefully) allow for clustering itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Karthik Duddala [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 4:01 PM
>To: Tomcat Users List
>Subject: RE: Session vs. Application Replication
>
>
>
>
>
>
>Can we, using tomcat's clustering, somehow replicate not only session
>information for a given user (which would allow that user to transition
>amongst the servers as traffic increases) but also maybe the
application ??
>
>Thanks
>
>Karthik Duddala
>Developer - Web Team
>Commerce Technologies
>Ph. 518-886-0700 x. 3881
>
>
>-
>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: Windows freeze...

2003-10-28 Thread Justin Ruthenbeck
At 12:37 PM 10/28/2003, you wrote:
Leo,

On Windows, when an applicacion throws an Exception, for the first
time, Tomcat freezes, until I hit the keyboard or I do something on
the DOS console that appears when Tomcat starts up.
I've had this "problem" before. It turns out that in some DOS windows,
when you click on them, they suspend the console output because the
mouse is in "selection" mode.
Pressing  gives you miles of queued-up output. It's like turning 
on scroll lock on a real console.

Just try not to click *inside* the DOS box when you switch to it. 
Instead, head for the title bar, of better yet, ignore your mouse and 
use ALT-TAB :)
You can also turn off the "click inside dos-box freezes output" feature 
by turning *off* "QuickEdit Mode" in your dos-box properties 
settings.  Before I figured this out, I spun many cycles running back and 
forth between servers to investigate these hanging complaints.

justin 

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


RE: oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Shapira, Yoav

Howdy,
Can you prove the input is the same? ;)

BTW, Senor Schultz is probably right about marking this as off-topic.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Alexander Pomansky [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 3:46 PM
>To: Tomcat Users List
>Subject: Re:
>oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStat
emen
>t.java:1082)
>
>But it works on first run and does not on second with same input
>
>Thanks
>
>On Tuesday 28 October 2003 03:35 pm, Shapira, Yoav wrote:
>> Howdy,
>>
>> >java.lang.NullPointerException
>> >at
>>
>oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStat
>>
>> emen
>>
>> >t.java:1082)
>> >at cs615.lzp.SellForm.doPost(SellForm.java:34)
>>
>> I would look at your form, line 34, and maybe not call setString on
the
>> PreparedStatement object if the form input is null.  Or maybe call
>> setString with "".  Or maybe add other input validation before/after
the
>> form is submitted.
>>
>> 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]
>
>
>-
>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: Session vs. Application Replication

2003-10-28 Thread Karthik Duddala





Can we, using tomcat's clustering, somehow replicate not only session
information for a given user (which would allow that user to transition
amongst the servers as traffic increases) but also maybe the application ??

Thanks

Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881


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



Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Alex Pomansky
It will be true for first run but it works on first and does not on second
with same input

Thanks
- Original Message - 
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 4:45 PM
Subject: Re: (OT)
oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement
.java:1082)


> Alexander,
>
> Next time, please post this to a Java or JDBC or Oracle mailing list.
> This is unrelated to Tomcat.
>
> > I have a servlet that getting post request from form with
> > enctype="multipart/form-data" as part of the form is file
> > upload. On the first run it works OK, on the second i am
> > getting:
> >
> > java.lang.NullPointerException
>
> What is the value of the string that you are passing to setString? Is it
> null? If it is, then I'd call this expected behavior.
>
> If you want to set the value of a column to NULL then you must use
> PreparedStatement.setNull().
>
> Sheesh, at a 615 level course you should be checking for nulls.
>
> -chris
>
>
> -
> 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: oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Alexander Pomansky
But it works on first run and does not on second with same input

Thanks

On Tuesday 28 October 2003 03:35 pm, Shapira, Yoav wrote:
> Howdy,
>
> >java.lang.NullPointerException
> >at
> >oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStat
>
> emen
>
> >t.java:1082)
> >at cs615.lzp.SellForm.doPost(SellForm.java:34)
>
> I would look at your form, line 34, and maybe not call setString on the
> PreparedStatement object if the form input is null.  Or maybe call
> setString with "".  Or maybe add other input validation before/after the
> form is submitted.
>
> 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]


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



Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Christopher Schultz
Alexander,

Next time, please post this to a Java or JDBC or Oracle mailing list. 
This is unrelated to Tomcat.

I have a servlet that getting post request from form with 
enctype="multipart/form-data" as part of the form is file
upload. On the first run it works OK, on the second i am
getting:

java.lang.NullPointerException
What is the value of the string that you are passing to setString? Is it 
null? If it is, then I'd call this expected behavior.

If you want to set the value of a column to NULL then you must use 
PreparedStatement.setNull().

Sheesh, at a 615 level course you should be checking for nulls.

-chris

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


Re: Tomcat 5 to start automatically on linux at bootup

2003-10-28 Thread Oscar Carrillo
Also my page:

http://daydream.stanford.edu/tomcat/install_web_services.html

You can download one for apache, tomcat, and postgresql. It will probably 
be the same as the one Tim noted, except mine has a status command for 
tomcat that tells you how many threads/processes are running for tomcat.

I also have the LD_KERNE_ASSUME=2.2.5 set so that tomcat doesn't
occasionally crash due to the threading issues with RedHat.

Oscar

On Tue, 28 Oct 2003, Tim Funk wrote:

>  From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ...
> 
> http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
> 
> -Tim
> 
> Mark Tebong wrote:
> > Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
> > start it as a service automatically everytime the computer boots up.
> > Please can someone please provide a reference to information on how to do that or 
> > simply tell me how to do that?
> > Thanks MT
> > 
> 
> 
> -
> 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: oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Shapira, Yoav

Howdy,

>java.lang.NullPointerException
>at
>oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStat
emen
>t.java:1082)
>at cs615.lzp.SellForm.doPost(SellForm.java:34)

I would look at your form, line 34, and maybe not call setString on the
PreparedStatement object if the form input is null.  Or maybe call
setString with "".  Or maybe add other input validation before/after the
form is submitted.

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: Tomcat 5 Problem with finding servlet class

2003-10-28 Thread Christopher Schultz
Paresh,

I am using specific directories to deploy my jars.
You should probably be keeping all your JARs in your web app, or in a 
WAR file.

java.lang.NoSuchMethodError: javax.servlet.ServletConfig.getServletName()Ljava/lang/String;
This method is not part of the servlet specification:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/index.html
How did you compile it in the first place?

-chris

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


Re: Windows freeze...

2003-10-28 Thread Christopher Schultz
Leo,

On Windows, when an applicacion throws an Exception, for the first
time, Tomcat freezes, until I hit the keyboard or I do something on
the DOS console that appears when Tomcat starts up.
I've had this "problem" before. It turns out that in some DOS windows,
when you click on them, they suspend the console output because the
mouse is in "selection" mode.
Pressing  gives you miles of queued-up output. It's like turning 
on scroll lock on a real console.

Just try not to click *inside* the DOS box when you switch to it. 
Instead, head for the title bar, of better yet, ignore your mouse and 
use ALT-TAB :)

-chris

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


oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)

2003-10-28 Thread Alexander Pomansky
Hi!
I have a servlet that getting post request from form with 
enctype="multipart/form-data" as part of the form is file
upload. On the first run it works OK, on the second i am
getting:

java.lang.NullPointerException
at 
oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)
at cs615.lzp.SellForm.doPost(SellForm.java:34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:536)

PLEASE HELP!
Thanks

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



Re: ServletContextListener vs. InitServlet (was "modifying shutdown behaviour?")

2003-10-28 Thread Christopher Schultz
Yoav,

- ServletContextListener cannot flag that an error has occurred (other
than some type of logging)
You could throw a runtime exception, making the context unavailable in
tomcat.
Sure, but that's not very clean: the context startup just bombs. At 
least you get a "servlet unavailable" if you servlet doesn't startup 
properly.

True, but it's memory footprint isn't that big of a deal.
Could be a huge deal, depending on the servlet instance variables.  The
same is true for a listener.
So there's no difference in footprint, then :)

For some containers, it doesn't matter whether the servlet is mapped or
not, or servlets are mapped automatically.  Even if the performance hit
is tiny, it's still there, and there for every request.  At many
concurrent requests, it could become an issue.
Fair enough.

True.  Whether one considers that a drawback is a personal
consideration, along the lines of those poor souls who still have to run
JDK 1.1 ;)
Ugh. Or non-Swing GUIs. 

I've only seen one brain-dead servlet container ever create more than
one instance of a servlet: that was JRun 2.x.something. That wasn't
it's worst problem :)
Why would it be brain-dead to create more than one instance of a
servlet?
I can't think of a single reason to instantiate more than one instance 
of a servlet. (Unless you're using the SingleThreadModel thing; it seems 
like that marker interface exists only to allow newbie programmers to 
avoid understanding threading and local variables).

Oh, I just meant more heterogeneity.
Hmm... I guess that depends on the project, the people, other variables.
Of course. However, we did get the question "How do I cleanup after 
shutdown?". The servlet API only takes about 15 minutes to browse 
completely...

-chris

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


RE: Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Justin Ruthenbeck
At 09:46 AM 10/28/2003, you wrote:
As far as I can remember there have been posts in this
list, where people said that they have seen different
session objects within the same session.
This was explained with the fact that there is a session
facade which can change anytime. So the session should
be a quite weak monitor to rely on. (But as I said,
this is not my experience, it's just something I've read)
My be it's time for a developer to shed some light on this.
The point is not really whether Tomcat does or doesn't give you the same 
HttpSession facade every time.  The point is that this is an *internal* 
implementation decision that can change at any time.  And even if it's 
never changed for Tomcat, you can't rely on it for other servlet 
containers.

My personal preference (and I've seen the benefits in multiple projects 
I've worked on), is to *not* rely on objects out of my control for 
functionality such as this.  What happens when you need to put an 
additional front end on your code to support WebServices, for example -- 
you still want to rely on any object in the javax.servlet package?  Don't 
think so.

If your project is limited in nature, then assume Tomcat and use an 
object in the session.  If you're building a complex, wide application, 
create your own synchronization framework (or use something pre-built but 
unrelated to J2EE).  It'll give you maximum flexibility when you start to 
support other appservers, clustering, client types, etc.

  ;)

justin


> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 6:34 PM
> To: Tomcat Users List
> Subject: Re: Session exclusivity (was Form Double Submit Detection)
>
>
> So, it looks like the Catalina folks feel like the session is okay to
> synchronize on, but I agree that one shouldn't bet the farm on a
> "session" being a good monitor.
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php

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


RE: Tomcat 5 Problem with finding servlet class

2003-10-28 Thread Shapira, Yoav

Howdy,

>As the application already have hard coded path references which are
too
>tedious to remove,

FYI, there are few better ways to get someone to think "this person is
not worth my time to help" than a sentence like the above...

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: Tomcat 5 to start automatically on linux at bootup

2003-10-28 Thread Mark Tebong
thank you Tim

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 2:35 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 to start automatically on linux at bootup


 From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ...

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

-Tim

Mark Tebong wrote:
> Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
> start it as a service automatically everytime the computer boots up.
> Please can someone please provide a reference to information on how to do that or 
> simply tell me how to do that?
> Thanks MT
> 


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


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



[OT]Virus sent to Tomcat User list.

2003-10-28 Thread Nathan Smith
Attached is a file stating that Norton Antivirus removed an executable
because it contained a virus. Is somebody just trying to be malicious or is
someone so naive that they would recieve such a file from someone through
the tomcat-user list???

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:50 AM
Subject: Hey man, long not see you


> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Norton AntiVirus removed the attachment: anti-trojan.exe.
The attachment was infected with the [EMAIL PROTECTED] virus.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5 to start automatically on linux at bootup

2003-10-28 Thread Tim Funk
From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ...

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

-Tim

Mark Tebong wrote:
Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
start it as a service automatically everytime the computer boots up.
Please can someone please provide a reference to information on how to do that or 
simply tell me how to do that?
Thanks MT


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


Tomcat 5 Problem with finding servlet class

2003-10-28 Thread Paresh Varatkar
Hi Guys,
I am deploying application in tomcat in different way.
As the application already have hard coded path references which are too tedious to 
remove,
I am using specific directories to deploy my jars.
I am setting classpath manually.
This all works excellent with Tomcat 3.2.4
With Tomcat 5, In catalina.bat file I am changing classpath in same way.
At the end it shows correct classpath set as follows

CLASSPATH=C:\j2sdk_nb\j2sdk1.4.2\lib\tools.jar;c:\Tomcat\bin\bootstrap.jar;c:\To
mcat\webapps\gf\bin\activation.jar;c:\Tomcat\webapps\gf\bin\B2BObjects.jar;c:\To
mcat\webapps\gf\bin\com.ibm.mq.iiop.jar;c:\Tomcat\webapps\gf\bin\com.ibm.mq.jar;
c:\Tomcat\webapps\gf\bin\com.ibm.mqbind.jar;c:\Tomcat\webapps\gf\bin\fesi.jar;c:
\Tomcat\webapps\gf\bin\jaas.jar;c:\Tomcat\webapps\gf\bin\jai_codec.jar;c:\Tomcat
\webapps\gf\bin\jai_core.jar;c:\Tomcat\webapps\gf\bin\jcert.jar;c:\Tomcat\webapp
s\gf\bin\jndi.jar;c:\Tomcat\webapps\gf\bin\jnet.jar;c:\Tomcat\webapps\gf\bin\js.
jar;c:\Tomcat\webapps\gf\bin\jspengine.jar;c:\Tomcat\webapps\gf\bin\jsse.jar;c:\
Tomcat\webapps\gf\bin\ldap.jar;c:\Tomcat\webapps\gf\bin\ldapbp.jar;c:\Tomcat\web
apps\gf\bin\lotusxsl.jar;c:\Tomcat\webapps\gf\bin\mail.jar;c:\Tomcat\webapps\gf\
bin\mlibwrapper_jai.jar;c:\Tomcat\webapps\gf\bin\prgn.jar;c:\Tomcat\webapps\gf\b
in\providerutil.jar;c:\Tomcat\webapps\gf\bin\sck.jar;c:\Tomcat\webapps\gf\bin\se
rvlet.jar;c:\Tomcat\webapps\gf\bin\tools.jar;c:\Tomcat\webapps\gf\bin\webserver.
jar;c:\Tomcat\webapps\gf\bin\xml.jar;c:\Tomcat\webapps\gf\bin\xml4j.jar;;c:\Tomc
at\bin\fcpassword.dll

and starts tomcat correctly.


Still I get the error below.
Can anyone guess correct reason.

java.lang.NoSuchMethodError: 
javax.servlet.ServletConfig.getServletName()Ljava/lang/String;
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1402)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:150)
at javax.servlet.GenericServlet.init(GenericServlet.java:266)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3853)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4168)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:831)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:511)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:890)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:523)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase

Windows freeze...

2003-10-28 Thread Leo Larraquy
Hi people, I`ve got a really simple question but a can`t solve on my own.
On Windows, when an applicacion throws an Exception, for the first time, Tomcat 
freezes, until I hit the keyboard or I do something on the DOS console that appears 
when Tomcat starts up.
But it doesn`t happen on Linux! I`ve been told that Windows losses control on that new 
window, and it can`t print the stackTrace, or even a "System.out", until you do 
something to activate that window again. 
Is there some way to solve this?? 
Thanks in advance. 
Leonardo Lopez.




character sets showing as ?

2003-10-28 Thread chad kellerman
Hey guys, 
   I moved a few tomcat Apps from a 6.2 server to a 7.3 server.  Running
the same version of Tomcat.  But now the character sets that are
displayed are coming out as ? ..  They are all spanish character sets. 
I tried changing to the character set to utf-8 from iso-8859-1 but still
it comes up.

  Anyone ever seen this before?  Maybe point me in the right direction.



Thanks,
Chad  










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



Tomcat 5 to start automatically on linux at bootup

2003-10-28 Thread Mark Tebong
Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
start it as a service automatically everytime the computer boots up.
Please can someone please provide a reference to information on how to do that or 
simply tell me how to do that?
Thanks MT

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



Re: Factory methods.

2003-10-28 Thread Micael
They create objects -- the are an object factory/maker.

At 05:05 PM 10/28/2003 +0530, you wrote:
Why are some methods called factory methods?
e.g. prepareStatement() in java.sql.PreparedStatement
-
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: ServletContextListener vs. InitServlet (was "modifying shutdown behaviour?")

2003-10-28 Thread Shapira, Yoav

Hola,

>- ServletContextListener cannot flag that an error has occurred (other
>than some type of logging)

You could throw a runtime exception, making the context unavailable in
tomcat.

>- Servlets have their own init parameters specified in the web.xml
file.
>If you use a listener, you have to share the global ones. If your
filter
>and something else happen to have the same name for the configuration
>parameter, you have no resource but to modify the source. (The solution
>to this, of course, is to use names that are highly likely to be
unique,
>like pre-pending your package name onto the parameter)

Filters have their own parameters, like servlets.  But if you mean that
you could have context parameters with the same names but different
value: yeah, you could, and that'd be confusing at best.

>> - The footprint of a servlet in memory is bigger
>
>True, but it's memory footprint isn't that big of a deal.

Could be a huge deal, depending on the servlet instance variables.  The
same is true for a listener.

>> - Another servlet adds to request mapping overhead, reducing
performance
>
>Most often, init servlets aren't mapped to anything, so there's no
>performance hit. The performance hit would be marginal anyhow, given
the
>matching alrogithm. You'd incur maybe one String.equals comparison per
>request. Comparing strings that don't have the same length is pretty
quick.

For some containers, it doesn't matter whether the servlet is mapped or
not, or servlets are mapped automatically.  Even if the performance hit
is tiny, it's still there, and there for every request.  At many
concurrent requests, it could become an issue.

>However, you must be running a servlet container which supports the 2.3
>API in order to use ServletContextListener (unless you implement
>something like it yourself for older containers).

True.  Whether one considers that a drawback is a personal
consideration, along the lines of those poor souls who still have to run
JDK 1.1 ;)

>I've only seen one brain-dead servlet container ever create more than
>one instance of a servlet: that was JRun 2.x.something. That wasn't
it's
>worst problem :)

Why would it be brain-dead to create more than one instance of a
servlet?

>Oh, I just meant more heterogeneity. Most people have servlets. One
more
>servlet isn't a big deal. Adding something completely different
>(although much more suited for the job) creates (a small amount of)
>confusion within the project.

Hmm... I guess that depends on the project, the people, other variables.

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: ServletContextListener vs. InitServlet (was "modifying shutdown behaviour?")

2003-10-28 Thread Christopher Schultz
Yoav,

If you have a servlet which initializes resource for your context (like
an InitServlet), you can simply implemnent the "destroy" method to
release your resources.
This may be easier than writing a ServletContextListener, and has fewer
moving parts.
I would strongly disagree ;)  The container is free to destroy and
reload any servlet, including load-on-startup servlets, at any time it
deems such action necessary.
If you need something done on shutdown or startup or both, it's much
cleaner to write a listener for that purpose than a servlet, for
multiple reasons.
There are also some reasons not to do this. Here's one.

- ServletContextListener cannot flag that an error has occurred (other 
than some type of logging)
- Servlets have their own init parameters specified in the web.xml file. 
If you use a listener, you have to share the global ones. If your filter 
and something else happen to have the same name for the configuration 
parameter, you have no resource but to modify the source. (The solution 
to this, of course, is to use names that are highly likely to be unique, 
like pre-pending your package name onto the parameter)

- The footprint of a servlet in memory is bigger
True, but it's memory footprint isn't that big of a deal.

- Another servlet adds to request mapping overhead, reducing performance
Most often, init servlets aren't mapped to anything, so there's no 
performance hit. The performance hit would be marginal anyhow, given the 
matching alrogithm. You'd incur maybe one String.equals comparison per 
request. Comparing strings that don't have the same length is pretty quick.

- Servlets are not supposed to be written only for init/destroy
functionality, ServletContextListeners are expressly designed for this
purpose
However, you must be running a servlet container which supports the 2.3 
API in order to use ServletContextListener (unless you implement 
something like it yourself for older containers).

- It's a lot easier to mess up thread-safety in a servlet (which of
course may have multiple instances in memory) than in a listener.
I've only seen one brain-dead servlet container ever create more than 
one instance of a servlet: that was JRun 2.x.something. That wasn't it's 
worst problem :)

Thread safety shouldn't be a problem if you're initializing things at 
startup. I'd say that if you're capable of screwing up a servlet, you're 
equally capable of screwing up a listener ;)

The moving parts claim you make -- I'm not sure I understand that.  Mind
elaborating? ;)
Oh, I just meant more heterogeneity. Most people have servlets. One more 
servlet isn't a big deal. Adding something completely different 
(although much more suited for the job) creates (a small amount of) 
confusion within the project.

-chris

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


4.1.27 Session problem on Solaris

2003-10-28 Thread Jeff Tulley
We are seeing an issue that has the same symptoms as if I were trying to
do load balancing but not getting sticky sessions -namely that our
application every once in a while starts thinking that the session is
not authenticated and prompts on every other request for a login.
The difference here is that we are only dealing with one tomcat
instance, so there is no load balancing in the picture.  (It is just
easier to describe this way since the symptoms are the same).

We have an L4 switch up front, and then requests go straight to
Tomcat's HTTP connectors.  This is Tomcat 4.1.27 on Solaris (9?)

If the browser where the problem is seen is closed down and the user
logs in again in a different browser, the application goes back to
behaving correctly.  So far we have only seen this over HTTPS, though we
are trying to duplicate the problem without the L4 switch and non HTTPS.
 This problem is also very intermittent.

Does anybody have any idea what could cause such a thing to happen?


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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



RE: Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Ralph Einfeldt
As far as I can remember there have been posts in this 
list, where people said that they have seen different 
session objects within the same session.

This was explained with the fact that there is a session 
facade which can change anytime. So the session should 
be a quite weak monitor to rely on. (But as I said,
this is not my experience, it's just something I've read)

My be it's time for a developer to shed some light on this.

> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 6:34 PM
> To: Tomcat Users List
> Subject: Re: Session exclusivity (was Form Double Submit Detection)
> 
> 
> So, it looks like the Catalina folks feel like the session is okay to 
> synchronize on, but I agree that one shouldn't bet the farm on a 
> "session" being a good monitor.
> 

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



Re: Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Christopher Schultz
Ralph,
BTW: In my version of tomcat (4.0.3) jasper generates
code for the jsp's that synchronizes on the session 
to access session attributes. Is the current version 
doing the same ?
I'm using 4.1.27 and yes, is does synchronize on the session object that 
it gets (I'm only including the relevant parts):

javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
	.
	.
	.
  _jspxFactory = JspFactory.getDefaultFactory();
  pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
  session = pageContext.getSession();
	.
	.
	.
  synchronized (session) {
test = (Object) pageContext.getAttribute("test", 
PageContext.SESSION_SCOPE);
	.
	.
	.
	}

So, it looks like the Catalina folks feel like the session is okay to 
synchronize on, but I agree that one shouldn't bet the farm on a 
"session" being a good monitor.

-chris

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


RE: JSP generated HTML code squashed in one line

2003-10-28 Thread Ralph Einfeldt
I think it's not MSIE that is confused.

What you see are serverside exceptions. 
(At least I think they are)

I guess something in the generated java is 
confusing javac.

What kind of linefeeds do you use in the jsp? 
(Just CR or CR/LF)

> -Original Message-
> From: Baer Peter Christoph Alexander 
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 6:16 PM
> To: '[EMAIL PROTECTED]'
> Cc: Kokemueller Detlef; Al-Khwlani Khaled
> Subject: JSP generated HTML code squashed in one line
> 
> 
> XP. That is,
> the first line of the generated HTML is very long. This 
> appears to confuse
> MSIE: We see lots of runtime exceptions regarding missing 
> closing braces
> ("}").
> On another machine, running Windows 2000, an apparently identical
> installation works just fine. No such runtime errors.
> 

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



Re: Source of JSP returned to user

2003-10-28 Thread Jean-Francois Arcand
Or download JDK 1.4.2_02 (the bug has been fixed in _02)

-- Jeanfrancois

Larry Isaacs wrote:

Since JDK 1.4.2 is being used, try the workaround specified
for (you will need to register to see the bug):


which is:

   Specify -Dsun.io.useCanonCaches=false to the JVM.

Or, try JDK 1.4.1 which doesn't have the cannon cache feature.

HTH.
Larry
P.S. Partial bug description from the bug report above:

For an existing file, getCanonicalPath() sometimes can produce
a pathname whose case doesn't match that of the existing file's pathname.
This doesn't matter in terms of being able to access the file, but it appears
that some applications, such as TomCat, depend on getting the correct case.
Sometimes the answer for the same input is inconsistent.
 

-Original Message-
From: Jon O'Sullivan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 7:32 AM
To: '[EMAIL PROTECTED]'
Subject: Source of JSP returned to user



Hi,

I have accidentally discovered a way that Tomcat can serve 
the source code
of a JSP file. 

Running Tomcat 4.1.27 standalone, JDK 1.4.2,  Win XP Pro. 
and also Win 2K
Server

Mostly the default configuration, but using port 80 rather 
than 8080. 

pointing my browser to http://localhost/examples/jsp/num/numguess.jsp
returns the page as expected for the number guess example
but http://localhost/examples/jsp/num/numguess.JSP 
and other combinations such as
http://localhost/examples/jsp/num/numguess.JSp and
http://localhost/examples/jsp/num/numguess.Jsp

give a file download window for the source of numguess.jsp.

Is there a workaround for this?

Best Regards
Jon
  

__
__
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
__
__
   

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



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


Re: Tomcat 5 & JBoss

2003-10-28 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:

Is there any way to run JBoss with Tomcat 5 instead of 4.1.27?
I'm using JBoss 3.2.2.
I would like to switch to 5 because of the hotswap debugging feature.
You have to get the source, and build. There will be a TC 5 SAR in the 
output dir for the Tomcat module.

Using it is not straightforward, though:
- you have to replace the servlet & JSP API JARs in lib
- you should add commons-logging to your system classpath to avoid problems
--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Jean-Max,

I was wrong assuming that one needs a mod_jk2 needs to bear the exactly 
same version number as the Apache2. I didn't even give it a try, because 
I read it at several places in the apache docs. I got mod_jk2 running 
now, with kind assistance of Asif Chowdhary, as you probably hab been 
able to read in the list.

I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put 
into the diffrent config files:

httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
Then I added a worker2.properties in Apache/conf/ like this:

[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log
[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0
# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0
[channel.socket:localhost:8010]
port=8010
host=127.0.0.1
debug=0
# Example socket channel, explicitly set port and host.
# [channel.socket:localhost:8009]
# port=8009
# host=127.0.0.1
# Example UNIX domain socket
# [channel.un:/usr/local/tomcat/work/jk2.socket]
# tomcatId=localhost:8009
# debug=0
# define the worker
[ajp13:localhost:8010]
#channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket
# To use the TCP/IP socket instead, just comment out the above
# line, and uncomment the one below
channel=channel.socket:localhost:8010
# define the worker
# Announce a "status" worker
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8010
[uri:/javaroom/*]
worker=ajp13:localhost:8010
[status:status]

[status:]
info=Status worker,displays run time informations
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=status:status
[uri:/status/*]
worker=status:status
# end of workers2.properties

Finally, I configured this Connector in the Tomcat server.xml:
---


I hope this helps you get it running.

Regards,
-Florian




Jean-Max Estay wrote:

Florian,

What a good news ! And where did you find this specif. ?

Many many  many thanks

And much more thanks


[EMAIL PROTECTED]  
http://www.ima.uco.fr/personnes/estay
Institut de Mathematiques Appliquees
Universite Catholique de l'Ouest
44,46 rue Rabelais
BP 808
49008 ANGERS Cedex 01
France
tel +33 2 41 81 67 05
fax +33 2 41 81 67 00



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


JSP generated HTML code squashed in one line

2003-10-28 Thread Baer Peter Christoph Alexander
Hi,

we have a problem here that looks pretty strange to us. We have extensively
searched the mail archive and we googled a lot, but found no suitable
information. Should we nevertheless ask something obvious, please forgive
us.

Here is the problem:
Tomcat 4.0.6 LE generates HTML pages with a lot of the code compressed into
a single line, when running on *some* machines under Windows XP. That is,
the first line of the generated HTML is very long. This appears to confuse
MSIE: We see lots of runtime exceptions regarding missing closing braces
("}").
On another machine, running Windows 2000, an apparently identical
installation works just fine. No such runtime errors.

We found another difference in the work directory tree. The filenames of the
servlets on the Win XP machines start with _0002 and contain this string a
number of times each. On the Win2k computer we have just jspname$jsp.java as
the name of the generated servlet.

We don't know, if the two phenomena are connected, and we are absolutely
clueless what the differences are caused by. 

If anyone of could give us a hint of how to make the Win XP installations
work as properly as the Win2k instance, your help will be greatly
appreciated!

Our environments are: Windows 2000 (works fine) and Windows XP (sucks),
J2SDK 1.4.2_01 from Sun and Tomcat 4.0.6 LE.

Many thanks in advance!

Regards

Peter Bär

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



RE: Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Ralph Einfeldt

To be honest, I'm not shure.

As I'm currently not really using tomcat (or another
servlet conainer that works with session facades) I 
have not thought or tried enough to be shure.

For those who want to be very shure, there is still 
the option to synchronize on something outside of 
the session.

BTW: In my version of tomcat (4.0.3) jasper generates
code for the jsp's that synchronizes on the session 
to access session attributes. Is the current version 
doing the same ?
(Just define a session bean in a jsp and have a look 
at the source in the work dir )

> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 5:37 PM
> To: Tomcat Users List
> Subject: Session exclusivity (was Form Double Submit Detection)
> 
> Well, not always. Because of threading and memory issues with 
> the JVM, 
> one thread might put something into the session, but another thread 
> cannot see that new data, yet. On the other hand, one thread 
> could be in 
> the process of putting something in the session, and the 
> second thread 
> could think that it's a valid object, when it might not be.
> 
> (Stupid JVM relativity... :)
> 
> Does a synchronized block constitute a complete memory boundary? Must 
> the thread sync everything with main memory? I thought it only had to 
> synchronize the data associated with the monitor itself.
> 
> -chris
> 
> 
> -
> 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: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Asif Chowdhary
There is tomcat book from Oreilly which is very helpful.
I am using that Tomcat the Definite guide.

Asif

-Original Message-
From: Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 11:59 AM
To: Tomcat Users List
Subject: Re: mod_jk2 binary for Apache 2.0.47/Win


Hi Asif,

I get it up and running, finally. Many thanks for your help. I wonder: 
you don't know of a resource on configuring this strange animal, 
workers2.properties, by any chance? I found my current configuration by 
rather poking in the fog, tweaking your file here and there. This is not 
the most predictable of all methods, perhaps.

Regards,
-Florian

Asif Chowdhary wrote:

> No I dont have that file in the conf directory. The documentation is very confusing.
> 
> It works fine
> 
> -Original Message-
> From: Florian Ebeling [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 10:56 AM
> To: Tomcat Users List
> Subject: Re: mod_jk2 binary for Apache 2.0.47/Win
> 
> 
> Hi Asif,
> 
> thanks for your answere. I didn't try the module with the non-matching 
> number. In fact, it does load. I read it several times, so I didn't 
> question this. However, are you sure you do not have a jk2.properties 
> file in your Tomcat /conf? The mod_jk2 documentation suggests there 
> should be two file.
> 
> -Florian
> 
> Asif Chowdhary wrote:
> 
> 
>>Hi,
>>
>>Apache 2.0.47 will work with mod_jk2 connector.
>>I have it working on my machine.
>>
>>In apache httpd.conf
>>
>>LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll)
>>
>>workers2.properties file in your apache2/conf/ directory
>>
>>#For the first tomcat listening on port 8009
>>
>>First instance of Web Services listening on port 9000
>>
>>[channel.socket:machine1:8009]
>>info=Ajp13 forwarding over socket
>>debug=20
>>tomcatId=tomcat1
>>
>>#Load Balancing Tomcat on port 9000
>>lb_factor=20
>>
>>
>>#Second tomcat on machine 2 port 9300
>>
>>
>>#[channel.socket:machine2:8009]
>>#info=Ajp13 forwarding over socket
>>debug=20
>>#tomcatId=tomcat2
>>
>>#Load Balancing tomcat port 9300
>>lb_factor=10
>>
>>[status:]
>>info=Status worker,displays run time informations
>>
>>[uri:/jkstatus/*]
>>info=Displaystatusinformationandcheckstheconfigfileforchanges.
>>group=status:
>>
>>
>>[uri:/examples/*]
>>info=Examplewebappinthedefaultcontext.
>>context=/examples
>>debug=20
>>
>>#Configure the shared memory file
>>[shm]
>>file=C:/apache/apache2/logs/shm.file
>>size=1048576
>>debug=0
>>
>>#End of Workers2.properties.
>>
>>In server.xml
>>
>> 
>>
>>
>>>minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" 
>>acceptCount="10" debug="0" connectionTimeout="2" useURIValidationHack="false" 
>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" /> 
>>
>>
>>
>>This is all you need to configure
>>
>>Asif
>>
>>
>>-Original Message-
>>From: Florian Ebeling [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, October 28, 2003 7:32 AM
>>To: Tomcat Users List
>>Subject: mod_jk2 binary for Apache 2.0.47/Win
>>
>>
>>Hi,
>>
>>I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and 
>>CoyoteConnector on the Java side. Nothing experimental here, so far.
>>
>>Problem is
>>1) the module needs to be compiled against exactly the same Apache 
>>version into which it is to be deployed later
>>2) the only binary Apache2 is 2.0.47
>>3) the only binary mod_jk2 is against 2.0.43
>>4) I don't have a MSVC compiler suite
>>5) The jakarta-connector documents say that only MSVC is possible, so I 
>>conclude MinGW or Cygwin won't be helpful here
>>
>>If anybody could point me to a solution to this it would be very helpful.
>>
>>Thanks and regards,
>>-Florian
>>
>>
>>
>>-
>>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: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi Asif,

I get it up and running, finally. Many thanks for your help. I wonder: 
you don't know of a resource on configuring this strange animal, 
workers2.properties, by any chance? I found my current configuration by 
rather poking in the fog, tweaking your file here and there. This is not 
the most predictable of all methods, perhaps.

Regards,
-Florian
Asif Chowdhary wrote:

No I dont have that file in the conf directory. The documentation is very confusing.

It works fine

-Original Message-
From: Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:56 AM
To: Tomcat Users List
Subject: Re: mod_jk2 binary for Apache 2.0.47/Win
Hi Asif,

thanks for your answere. I didn't try the module with the non-matching 
number. In fact, it does load. I read it several times, so I didn't 
question this. However, are you sure you do not have a jk2.properties 
file in your Tomcat /conf? The mod_jk2 documentation suggests there 
should be two file.

-Florian

Asif Chowdhary wrote:


Hi,

Apache 2.0.47 will work with mod_jk2 connector.
I have it working on my machine.
In apache httpd.conf

LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll)

workers2.properties file in your apache2/conf/ directory

#For the first tomcat listening on port 8009

First instance of Web Services listening on port 9000

[channel.socket:machine1:8009]
info=Ajp13 forwarding over socket
debug=20
tomcatId=tomcat1
#Load Balancing Tomcat on port 9000
lb_factor=20
#Second tomcat on machine 2 port 9300

#[channel.socket:machine2:8009]
#info=Ajp13 forwarding over socket
debug=20
#tomcatId=tomcat2
#Load Balancing tomcat port 9300
lb_factor=10
[status:]
info=Status worker,displays run time informations
[uri:/jkstatus/*]
info=Displaystatusinformationandcheckstheconfigfileforchanges.
group=status:
[uri:/examples/*]
info=Examplewebappinthedefaultcontext.
context=/examples
debug=20
#Configure the shared memory file
[shm]
file=C:/apache/apache2/logs/shm.file
size=1048576
debug=0
#End of Workers2.properties.

In server.xml

 

 



This is all you need to configure

Asif

-Original Message-
From: Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 7:32 AM
To: Tomcat Users List
Subject: mod_jk2 binary for Apache 2.0.47/Win
Hi,

I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and 
CoyoteConnector on the Java side. Nothing experimental here, so far.

Problem is
1) the module needs to be compiled against exactly the same Apache 
version into which it is to be deployed later
2) the only binary Apache2 is 2.0.47
3) the only binary mod_jk2 is against 2.0.43
4) I don't have a MSVC compiler suite
5) The jakarta-connector documents say that only MSVC is possible, so I 
conclude MinGW or Cygwin won't be helpful here

If anybody could point me to a solution to this it would be very helpful.

Thanks and regards,
-Florian


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


Scheduling Session clean up in a clustered environment

2003-10-28 Thread Karthik Duddala





Howdy,
  I want to schedule a session clean up in a tomcat 5.1 clustered
environment. How can i go about doing so?
My main concern is, will there be a conflict in the clean up as all the
nodes in the cluster could start doing the clean up.
Is there a concept of "primary" node in clustering from which we could
manage such admin tasks.

Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881


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



Re: Why not to create threads? (OT)

2003-10-28 Thread Christopher Schultz
Yoav,

The rest of the message aside, I had an only partially related question:

(and a poor one at that :)). But the fact that
many servlet-based applications end up going the way of the EJB, you
might want to play by their rules if you can.
Can you quote research that shows a large percentage of servlet-based
applications are eventually migrated to be EJB applications?
I only said "many", not a large percentage. I'm sure there's been more 
than one :)

Honestly, I'm not willing to conduct such a study and I was shooting my 
mouth off. Sometimes, servlet-based apps move to EJB containers. If 
that's your case, you might want to avoid creating your own threads.

To be safe no matter what, I avoid creating new ones at many (not all) 
costs. There's more than one way to do it (don't tell any of the Perl 
peeps out there that I'm stealing their line).

-chris

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


Re: Why not to create threads?

2003-10-28 Thread Tim Funk
You are allowed to create your own threads. But there are restrictions and 
limitations for user created threads such as ...
- They should not touch Request and Response objects
- The should be able to know when the servlet container stops if non-daemon 
so the jvm may gracefully terminate
- If daemon - have a quick shutdown(or appropriate) since the container may 
shutdown the moment all threads are done with their service() method (I 
probably got this wrong, but the spec describes this better)
- High perfomance containers are allowed to "restrict" thread creation
- All of the fun concurrency issues

-Tim

[EMAIL PROTECTED] wrote:

Because the appliction server does this for you. 
If you interfere by using your own threads you could break stuff... (it's 
a spec violation too).
 


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


RE: Why not to create threads?

2003-10-28 Thread Shapira, Yoav

Howdy,
The rest of the message aside, I had an only partially related question:

>(and a poor one at that :)). But the fact that
>many servlet-based applications end up going the way of the EJB, you
>might want to play by their rules if you can.

Can you quote research that shows a large percentage of servlet-based
applications are eventually migrated to be EJB applications?

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]



Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Christopher Schultz
Ralph,

Does that mean that you 
can never have exclusive access to your own session?

Yes you can, but the only safe way is to synchronize
on an object inside the session, not the session itself.
Well, not always. Because of threading and memory issues with the JVM, 
one thread might put something into the session, but another thread 
cannot see that new data, yet. On the other hand, one thread could be in 
the process of putting something in the session, and the second thread 
could think that it's a valid object, when it might not be.

(Stupid JVM relativity... :)

Does a synchronized block constitute a complete memory boundary? Must 
the thread sync everything with main memory? I thought it only had to 
synchronize the data associated with the monitor itself.

-chris

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


RE: Hey man, long not see you

2003-10-28 Thread Gustavo Cebrian


***
Gustavo Cebrian
Quality Manager

Want to improve the ROI on your EAI project?
Download RV Tester and reduce your development 
and testing timescales by as much as 50%. 
http://www.greenhatconsulting.com/rvtester 

Green Hat Consulting Ltd.
107 Fleet Street, London EC4A 2AB
DDI +44 (0)20 7936 9495
Mobile +44 (0)7788 922291
http://www.greenhatconsulting.com
[EMAIL PROTECTED]
***




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 12:46
To: [EMAIL PROTECTED]
Subject: Hey man, long not see 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]



RE: Form Double Submit Detection

2003-10-28 Thread Ralph Einfeldt
Yes you can, but the only safe way is to synchronize
on an object inside the session, not the session itself.
Or to synchronize on a more global object (but this 
is not recommended as this might not scale well for 
sites with many users)

> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 11:56 AM
> To: Tomcat Users List
> Subject: Re: Form Double Submit Detection
> 
> 
> without ever giving it much thought. Does that mean that you 
> can never have exclusive access to your own session?
> 

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



Re: Why not to create threads?

2003-10-28 Thread Christopher Schultz
Chris,

Why should I be avoiding creating my own threads in a web
application?  I have a couple of scheduled components, and I'm not
sure how else I would implement them.
I realize ther sometimes it's just necessary, so I'm not trying to tell
you that you're wrong for creating threads. That being said...
First, HTTP is a connectionless protocol. We've only invented the
concept of the "session" to get around this feature. All transactions
should take place within the request-response model. That doesn't work
for all web sites, so we use sessions. Fine.
Second, managing your own threads within a servlet-type of environment
is tough. You have to make sure that you don't create too many threads,
or that they don't take up too much processing time, that you don't lose
track of them, etc. You appear to have a very domesticated daemon thread
that's almost unrelated to responding to requests, no?
Third, the J2EE EJB specification for Enterprise JavaBeans specifically
forbids it. You aren't supposed to be creating your own threads because
you're not suppsosed to know where your code is running. Sure, on one
machine, it's running right there, in the same VM you thought it was
going to start in. However, in a clustered environment, your code may be
running on a completely different server.
There's actually a lot of fascism when it comes to the EJB spec. Among
other things, you're not supposed to do any of the following:
- Create your own threads
- Instantiate any of the classes in the java.io package directly
Now, I know that not everyone is running an EJB container, and that J2EE
is a ton of specifications and services, of which EJB is only one
(and a poor one at that :)). But the fact that
many servlet-based applications end up going the way of the EJB, you
might want to play by their rules if you can.
Note also that if you have a Servlet container that merely connects to
an EJB container then you are not bound to these restrictions. However,
many EJB containers also act as servlet containers, and they may impose
these restrictions across the board.
-chris

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


Re: Why not to create threads?

2003-10-28 Thread harm
Because the appliction server does this for you. 
If you interfere by using your own threads you could break stuff... (it's 
a spec violation too).

Also you should use an application server for scheduling components. (We 
use JBoss MXBeans for this purpose).

Regards,

Harm de Laat
Informatiefabriek
The Netherlands




Walker Chris <[EMAIL PROTECTED]> 
10/28/2003 05:05 PM
Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
'Tomcat Users List' <[EMAIL PROTECTED]>
cc

Subject
Why not to create threads?






Why should I be avoiding creating my own threads in a web application?  I
have a couple of
scheduled components, and I'm not sure how else I would implement them.

Chris


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 15:53
To: Tomcat Users List
Subject: Re: Number of processes and relationship to mod_jk, Apache,
tomcat


 If you avoid creating 
your 
own threads in your web application (which you should be avoiding 
anyway), you're generally okay.



The information in this e:mail and any attachments or any 
reproduction of this e:mail in whatever manner is confidential 
and for the use of the addressee(s) only.  If you are not the 
addressee then the distribution, use or reproduction of this 
e:mail or the information within it is strictly prohibited and 
may be unlawful.  If received in error please advise the 
sender and delete all record of it from your system. 
Although believed to be virus free, accurate and complete, 
responsibility for any loss or cost arising from its receipt or 
use or its incomplete or inaccurate transmission is hereby 
excluded to the fullest extent possible.


-
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: Replicating Application variables

2003-10-28 Thread Shapira, Yoav

Howdy,

>>>We have a web application with multiple sub-systems . viz. , Order
>>>Processing, Inventory Management etc., I need a way to isolate each
of
>>>these sub-systems.
>
>>Why don't you make them separate webapps?
>
>What are the advantages of having  separate webapps?
>We have a clustered environment and I need a way to replicate an
>application session across the multiple servers.

The advantages or disadvantages of breaking a large webapp into multiple
smaller one depend on the webapp itself.  If the subsystems you describe
can operate fairly independently of each other, they can be broken apart
for additional scalability and availability: it's easier to scale a
small application.  If, however, the multiple subsystem are really just
tightly integrated classes, you're probably better off leaving them
together.

Clustering products like Filip Hanik's will replicate sessions for you:
http://www.filip.net/tomcat/tomcat-javagroups.html

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: Apache cannot load jk2 (bis)

2003-10-28 Thread jmorace
Looks like you are trying to use the module built for Apache 1.3.27 with
an Apache 2 web server.  Try using the mod_jk2-2.0.43.dll binary instead.

Jonathan

On Tue, 28 Oct 2003, Jean-Max Estay wrote:

>Hello,
>
>I use the ${Apache2} in this mail for the path of my apache install
>directory.
>
>Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP
>Pro and Tomcat 4.1.27 on the same host,
>The file mod_jk2-1.3.27.dll  is in ${Apache2}/modules
>After creating the files stdout.log, stderr.log, jk2.shm,workers2.properties
>Apache is running OK on port 80, Tomcat OK on 8080
>When adding at the end of the Apache config file httpd.conf the lines
>
> LoadModule jk2_module modules/mod_jk2-1.3.27.dll
>
>I have, when testing the apache config, the error message
>JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le
>module spécifié est introuvable.
>(the required module was not found)
>
>After reading many and many Howto, news and html pages, I don't find the
>solution.
>I try by changing the name to mod_jk2.dll (in both, http.conf and file
>system).
>I have administration rigths.
>SSL module is not loaded
>
>Who can help me ?
>
>Dr Jean-Max Estay
>[EMAIL PROTECTED]
>http://www.ima.uco.fr/personnes/estay
>Institut de Mathématiques Appliquées
>Université Catholique de l'Ouest
>44,46 rue Rabelais
>BP 808
>49008 ANGERS Cedex 01
>France
>tel +33 2 41 81 67 05
>fax +33 2 41 81 67 00
>
>

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



RE: Why not to create threads?

2003-10-28 Thread Shapira, Yoav

Howdy,

>Why should I be avoiding creating my own threads in a web application?
I
>have a couple of
>scheduled components, and I'm not sure how else I would implement them.

It's OK to create and use threads as long as you're careful for
synchronization issues.  Threads are a powerful construct when used by
able developers but can cause very difficult problems to diagnose/debug
if not used carefully.

You should probably not write threading utilities from scratch.
Instead, use something like Doug Lea's concurrent library,
http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/int
ro.html, which will be part of the JDK 1.5 release.

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]



Why not to create threads?

2003-10-28 Thread Walker Chris
Why should I be avoiding creating my own threads in a web application?  I
have a couple of
scheduled components, and I'm not sure how else I would implement them.

Chris


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 15:53
To: Tomcat Users List
Subject: Re: Number of processes and relationship to mod_jk, Apache,
tomcat


If you avoid creating your 
own threads in your web application (which you should be avoiding 
anyway), you're generally okay.



The information in this e:mail and any attachments or any 
reproduction of this e:mail in whatever manner is confidential 
and for the use of the addressee(s) only.  If you are not the 
addressee then the distribution, use or reproduction of this 
e:mail or the information within it is strictly prohibited and 
may be unlawful.  If received in error please advise the 
sender and delete all record of it from your system.  
Although believed to be virus free, accurate and complete,  
responsibility for any loss or cost arising from its receipt or 
use or its incomplete or inaccurate transmission is hereby 
excluded to the fullest extent possible.


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



RE: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Asif Chowdhary
No I dont have that file in the conf directory. The documentation is very confusing.

It works fine

-Original Message-
From: Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:56 AM
To: Tomcat Users List
Subject: Re: mod_jk2 binary for Apache 2.0.47/Win


Hi Asif,

thanks for your answere. I didn't try the module with the non-matching 
number. In fact, it does load. I read it several times, so I didn't 
question this. However, are you sure you do not have a jk2.properties 
file in your Tomcat /conf? The mod_jk2 documentation suggests there 
should be two file.

-Florian

Asif Chowdhary wrote:

> Hi,
> 
> Apache 2.0.47 will work with mod_jk2 connector.
> I have it working on my machine.
> 
> In apache httpd.conf
> 
> LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll)
> 
> workers2.properties file in your apache2/conf/ directory
> 
> #For the first tomcat listening on port 8009
> 
> First instance of Web Services listening on port 9000
> 
> [channel.socket:machine1:8009]
> info=Ajp13 forwarding over socket
> debug=20
> tomcatId=tomcat1
> 
> #Load Balancing Tomcat on port 9000
> lb_factor=20
> 
> 
> #Second tomcat on machine 2 port 9300
> 
> 
> #[channel.socket:machine2:8009]
> #info=Ajp13 forwarding over socket
> debug=20
> #tomcatId=tomcat2
> 
> #Load Balancing tomcat port 9300
> lb_factor=10
> 
> [status:]
> info=Status worker,displays run time informations
> 
> [uri:/jkstatus/*]
> info=Displaystatusinformationandcheckstheconfigfileforchanges.
> group=status:
> 
> 
> [uri:/examples/*]
> info=Examplewebappinthedefaultcontext.
> context=/examples
> debug=20
> 
> #Configure the shared memory file
> [shm]
> file=C:/apache/apache2/logs/shm.file
> size=1048576
> debug=0
> 
> #End of Workers2.properties.
> 
> In server.xml
> 
>  
> 
> 
>  minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" 
> acceptCount="10" debug="0" connectionTimeout="2" useURIValidationHack="false" 
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" /> 
> 
> 
> 
> This is all you need to configure
> 
> Asif
> 
> 
> -Original Message-
> From: Florian Ebeling [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 7:32 AM
> To: Tomcat Users List
> Subject: mod_jk2 binary for Apache 2.0.47/Win
> 
> 
> Hi,
> 
> I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and 
> CoyoteConnector on the Java side. Nothing experimental here, so far.
> 
> Problem is
> 1) the module needs to be compiled against exactly the same Apache 
> version into which it is to be deployed later
> 2) the only binary Apache2 is 2.0.47
> 3) the only binary mod_jk2 is against 2.0.43
> 4) I don't have a MSVC compiler suite
> 5) The jakarta-connector documents say that only MSVC is possible, so I 
> conclude MinGW or Cygwin won't be helpful here
> 
> If anybody could point me to a solution to this it would be very helpful.
> 
> Thanks and regards,
> -Florian
> 
> 
> 
> -
> 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: TeraData DataSource

2003-10-28 Thread Christopher Schultz
Ken,
Has anyone been able to connect to a TeraData datasource using thier 
>>>driver?  I'm getting the following error.
>>
Did this exception have a "caused by" stack trace along with it?
>
"No suitable driver".  The TeraData .jar file is in the common/lib folder.
Sorry for my ignorance, but this is a DataSource *and* a JDBC driver all 
wrapped up in one?

What does your DataSource config look like -- you're creating it using 
server.xml entries, no?

The only thing I can think of is that you've misspelled or otherwise 
mistyped the classname of the JDBC driver.

-chris

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


Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 01:49 PM Morgan Pyne wrote:
And I actually find it a bit disturbing that in this day and age of somebody would 
be called "anal" about security for simply implementing their website 
via SSL :-) - I would  consider this to be a minimum requirement and only the first 
step for any website remotely interested in security. 

I wouldn't say just "simply implementing their website via SSL" - there 
are costs involved, both tangible in terms of server CPU and intangible 
in terms of the whole impression the website gives, as I mentioned earlier.

A website company, i.e. me, has only a finite amount of resources to 
spread around the various areas. Security is obviously right up there, 
but session-hijacking pales into the background compared with other 
attacks the website or the server might come under.

Maybe the comment about being anal was misplaced for others who have 
someone else to worry about the server security, but I've got to invest 
time and effort into firewalls, backups, databases, realms etc etc too.



Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi Asif,

thanks for your answere. I didn't try the module with the non-matching 
number. In fact, it does load. I read it several times, so I didn't 
question this. However, are you sure you do not have a jk2.properties 
file in your Tomcat /conf? The mod_jk2 documentation suggests there 
should be two file.

-Florian

Asif Chowdhary wrote:

Hi,

Apache 2.0.47 will work with mod_jk2 connector.
I have it working on my machine.
In apache httpd.conf

LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll)

workers2.properties file in your apache2/conf/ directory

#For the first tomcat listening on port 8009

First instance of Web Services listening on port 9000

[channel.socket:machine1:8009]
info=Ajp13 forwarding over socket
debug=20
tomcatId=tomcat1
#Load Balancing Tomcat on port 9000
lb_factor=20
#Second tomcat on machine 2 port 9300

#[channel.socket:machine2:8009]
#info=Ajp13 forwarding over socket
debug=20
#tomcatId=tomcat2
#Load Balancing tomcat port 9300
lb_factor=10
[status:]
info=Status worker,displays run time informations
[uri:/jkstatus/*]
info=Displaystatusinformationandcheckstheconfigfileforchanges.
group=status:
[uri:/examples/*]
info=Examplewebappinthedefaultcontext.
context=/examples
debug=20
#Configure the shared memory file
[shm]
file=C:/apache/apache2/logs/shm.file
size=1048576
debug=0
#End of Workers2.properties.

In server.xml

 

 



This is all you need to configure

Asif

-Original Message-
From: Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 7:32 AM
To: Tomcat Users List
Subject: mod_jk2 binary for Apache 2.0.47/Win
Hi,

I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and 
CoyoteConnector on the Java side. Nothing experimental here, so far.

Problem is
1) the module needs to be compiled against exactly the same Apache 
version into which it is to be deployed later
2) the only binary Apache2 is 2.0.47
3) the only binary mod_jk2 is against 2.0.43
4) I don't have a MSVC compiler suite
5) The jakarta-connector documents say that only MSVC is possible, so I 
conclude MinGW or Cygwin won't be helpful here

If anybody could point me to a solution to this it would be very helpful.

Thanks and regards,
-Florian


-
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: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Christopher Schultz
Is there any way to configure tomcat to enable its services (HTTP
request/responses ) to specific IP address(s) only?
I'm sure you can do something like Apache's:

Deny From All
Allow From 
... but that would require a restart.

Programmatically, you can do this by poking the "allowed" ip address 
into the application scope and then checking the ip address of each 
request against that address; reject those that don't match. (Please see 
the past 24 hours of discussions about IP blocking, AOL/corporate users, 
etc.).

Just remember that you might want to have the "ip changer" servlet be 
unprotected, or your could lock yourself out very easily :)

-chris

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


RE: How do I get off this list?

2003-10-28 Thread Vengurlekar, Mandar
Im trying to do that myself.
I tried the unsubscribe option, but the reply to email id doesnt work.

Thanks and Regards,
Mandar



-Original Message-
From: Adam Mantell [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 3:06 PM
To: [EMAIL PROTECTED]
Subject: How do I get off this list?


Hello,

 How do I get off this list?


Thanks,



 Adam

_
Concerned that messages may bounce because your Hotmail account 
has exceeded 
its 2MB storage limit? Get Hotmail Extra Storage! 
http://join.msn.com/?PAGE=features/es


-
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: Number of processes and relationship to mod_jk, Apache, tomcat

2003-10-28 Thread Christopher Schultz
Andrew,
I am trying to understand the relationship between applications in Tomcat,
the number of Tomcat processes, Apache mod_jk and the number of threads.

Apache: lsof -i tcp:80 | wc -l
This gives me 12 processes listening to port 80 (I checked these are related
to the number of Apache instances)
You should be able to predict this from the httpd.conf file. Do the 
numbers add up for Apache?

Tomcat direct port: lsof -i tcp:8080 | wc -l
This gives me 50 process that also correspond to the number of tomcat
instances running(i.e. the number of java instances I see in ps )
What UNIX flavor are you running? I know that in old versions of Linux, 
each pthread was shown as a separate process. Thus, it looked like many 
processes (really threads) all held the same resource. For example, they 
all had the same resident memory footprint (because the memory is 
shared) and they all were bound to the same ports.

In the later versions (mine being one of them, I've got kernel 2.4.20), 
they only show up as one process. Thus, I get this output:

[EMAIL PROTECTED] ]# /usr/sbin/lsof -i tcp:8009
COMMAND  PID   USER   FD   TYPE DEVICE SIZE NODE NAME
java9313 tomcat   15u  IPv4  69785   TCP *:8009 (LISTEN)
[EMAIL PROTECTED] ]#
I'm guessing that you're getting multiple lines that all look like this. 
Is this accurate? Only one process can bind to a port at any given time, 
so multiple processes (even with separate pids) might appear to be bound 
to that port.

Tomcat mod_jk port:
lsof -i tcp:8009 | wc -l
gives me 550
Again, see the discussion of the threads/processes above.

Also note that you may have many more threads that you thought you 
would. I recall that each (non-"nio") stream in Java requires a separate 
thread, so System.in, System.out, and System.err already give you three 
threads. Then, you've got the main thread, plus the thread pool to serve 
requests from remote clients. That may be large, although having that 
number higher than your Apache request processor limit is probably a waste.

Now I know that these numbers will change depending on load but I am trying
to understand the relationship.
Well, some numbers should not change. For example, there should be a 
hard limit on the number of Apache threads/processes running. You can 
tune that in httpd.conf.

For the Java process, it's harder to predict because of the way the VM 
retires threads and when your server is creating them. Ideally, new 
threads wouldn't be created at all because there would be a closed 
thread pool (unless you have a min and max thread pool size and the 
number of threads depends on load).

So my questions is how do the numbers relate to each other?
The number of Apache processes is usually completely unrelated to the 
java process counts (except that there will be more java threads than 
Apache processes :).

How does this effect performance?
Most of the "processes" are very lightweight. Apache is a lean, mean, 
web-serving machine so don't worry about that. What you should worry 
about is if your thread count continually goes up and never comes back 
down. You'd have a nasty resource leak, then. If you avoid creating your 
own threads in your web application (which you should be avoiding 
anyway), you're generally okay.

-chris

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


Re: TeraData DataSource

2003-10-28 Thread Ken . Martinson
"No suitable driver".  The TeraData .jar file is in the common/lib folder.

Thanks,
Ken Martinson
ext. 3048




Christopher Schultz <[EMAIL PROTECTED]> 
10/28/2003 10:26 AM
Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
Tomcat Users List <[EMAIL PROTECTED]>
cc

Subject
Re: TeraData DataSource






Ken,
> Has anyone been able to connect to a TeraData datasource using thier 
JDBC 
> driver?  I'm getting the following error.
 >
> java.sql.SQLException: Cannot create JDBC driver of class 
> 'com.ncr.teradata.TeraConnectionPoolDataSource' for connect URL 
> 'jdbc:teradata://sw72sqldv3:7060'

Did this exception have a "caused by" stack trace along with it?

-chris


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



**
Privileged and/or confidential information may be contained in this message. If you 
are not the addressee indicated in this message (or are not responsible for delivery 
of this message to that person) , you may not copy or deliver this message to anyone. 
In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, 
please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other 
information in this message that do not relate to the official business of the company 
 or its subsidiaries.
**


RE: Replicating Application variables

2003-10-28 Thread Karthik Duddala






>Howdy,

>>We have a web application with multiple sub-systems . viz. , Order
>>Processing, Inventory Management etc., I need a way to isolate each of
>>these sub-systems.

>Why don't you make them separate webapps?

>Yoav Shapira

What are the advantages of having  separate webapps?
We have a clustered environment and I need a way to replicate an
application session across the multiple servers.


Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881



   
 "Shapira, Yoav"   
 <[EMAIL PROTECTED] 
 .com>  To 
   "Tomcat Users List" 
 10/28/2003 10:02  <[EMAIL PROTECTED]>
 AM cc 
   
   Subject 
 Please respond to RE: Replicating Application 
   "Tomcat Users   variables   
   List"   
 <[EMAIL PROTECTED] 
  rta.apache.org>  
   
   
   





Howdy,

>We have a web application with multiple sub-systems . viz. , Order
>Processing, Inventory Management etc., I need a way to isolate each of
>these sub-systems.

Why don't you make them separate webapps?

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]




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



Re: TeraData DataSource

2003-10-28 Thread Christopher Schultz
Ken,
Has anyone been able to connect to a TeraData datasource using thier JDBC 
driver?  I'm getting the following error.
>
java.sql.SQLException: Cannot create JDBC driver of class 
'com.ncr.teradata.TeraConnectionPoolDataSource' for connect URL 
'jdbc:teradata://sw72sqldv3:7060'
Did this exception have a "caused by" stack trace along with it?

-chris

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


Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi Jean-Max,

this won't work, Apache accepts only modules with exactly matching 
version numbers.

I tried the mod_jk module, because this one is in sync with the Apache2 
release. You can get it here: 
http://www.apache.de/dist/jakarta/tomcat-connectors/jk/binaries/win32/

mod_jk is deprecated, I know. But it has been in production for a faily 
long time, so it shouldn't be too daring to use this.

To get it running, one has to do configuration in several places:

First, I created a file "workers.peroperties" in $TOMCAT_HOME/conf like 
this:

---
worker.list=worker1
worker.worker1.host=127.0.0.1
worker.worker1.port=8009
worker.worker1.type=ajp13
---
Then I added this to $APACHE_HOME/conf/httpd.conf, behind the section 
where all the othher "LoadModule ..." directives get listed.
---
LoadModule jk_module modules/mod_jk_1.2.5_2.0.47.dll
#AddModule  mod_jk_1.2.5_2.0.47.c
#AddModule  jk_module.c
#AddModule mod_jk.c
JkWorkersFile "c:/jakarta-tomcat-4.1.24/conf/workers.properties"
JkLogFile "C:/Programme/Apache Group/Apache2/logs/mod_jk.log"
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
---

- adjust path to your workers.properties here
- add path for a log file for the module here (eg. mod_jk.log)
Then, add this snippet to httpd.conf


ServerAdmin [EMAIL PROTECTED]
DocumentRoot "C:/Programme/Apache Group/Apache2/htdocs_javaroom"
ServerName javaroom
ErrorLog logs/javaroom-error.log
CustomLog logs/javaroom-access.log common
JkMount /*.jsp worker1
JkMount /javaroom/* worker1

- replace the virtual host server name with your server name
- replace "JkMount /javaroom/*" so that it specifies some webapp context 
of yours

And, finally, add the neccessary Tomcat Connector to your server.xml:


- I put it just behind 

Then restart Tomcat and Apache2 and ping your app.

One question remains: All the documentation, I consulted said one has to 
use a "AddModule ..." directive in the httpd.conf. But all the commented 
variants above prevent the apache from starting up at all. Do you have 
any idea what this might happen to mean?

-Florian

Jean-Max Estay wrote:

Hello,

I think we are in the same lock.
I don't know if you saw my mail in this thread. In a nutshell, I try to
connect Apache 2.0.47 (win32) with Tomcat via JK2 and use the only module I
identify : mod_jk2-1.3.27.dll.
And Apache can't load this module from this dll !
If you resolve your pb, please send me the trick. I will do if I find it
first.


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


Re: Hey man, long not see you

2003-10-28 Thread Joao Medeiros
Do we have an anti-virus software running on this list server? This 
message was infected...

--JM

[EMAIL PROTECTED] wrote:

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


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#restrict

In 4.1.X, I think this can be configured on the fly via the admin webapp. But 
4.0.X will need a restart.

-Tim

Hari Krishna ( Associate ) wrote:

Hi,

Is there any way to configure tomcat to enable its services (HTTP
request/responses ) to specific IP address(s) only ? If yes, Can these
configurations be made dynamically so that without restarting the tomcat
changes should be active? I am using Tomcat 4.0.1 and is a standalone. I
checked the tags and thier attributes of server.xml but couldn't find a
proper solution since I am not sure about the dynamic parameters.Can any one
help me out in this or suggest some pointers to go ahead?
 


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


RE: Replicating Application variables

2003-10-28 Thread Shapira, Yoav

Howdy,

>We have a web application with multiple sub-systems . viz. , Order
>Processing, Inventory Management etc., I need a way to isolate each of
>these sub-systems.

Why don't you make them separate webapps?

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: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Shapira, Yoav

Howdy,
RemoteAddressFilter, RTFM.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Hari Krishna ( Associate ) [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 28, 2003 9:59 AM
>To: Tomcat Users List
>Subject: Configuring tomcat to serve request from specific IP addresses
>
>Hi,
>
>Is there any way to configure tomcat to enable its services (HTTP
>request/responses ) to specific IP address(s) only ? If yes, Can these
>configurations be made dynamically so that without restarting the
tomcat
>changes should be active? I am using Tomcat 4.0.1 and is a standalone.
I
>checked the tags and thier attributes of server.xml but couldn't find a
>proper solution since I am not sure about the dynamic parameters.Can
any
>one
>help me out in this or suggest some pointers to go ahead?
>
>regards
>Hari
>
>
>DISCLAIMER:
>This message (including attachment if any) is confidential and may be
>privileged. Before opening attachments please check them for viruses
and
>defects. MindTree Consulting Private Limited (MindTree) will not be
>responsible for any viruses or defects or any forwarded attachments
>emanating either from within MindTree or outside. If you have received
this
>message by mistake please notify the sender by return  e-mail and
delete
>this message from your system. Any unauthorized use or dissemination of
>this message in whole or in part is strictly prohibited.  Please note
that
>e-mails are susceptible to change and MindTree shall not be liable for
any
>improper, untimely or incomplete transmission.
>
>-
>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]



Replicating Application variables

2003-10-28 Thread Karthik Duddala





We have a web application with multiple sub-systems . viz. , Order
Processing, Inventory Management etc., I need a way to isolate each of
these sub-systems.
One approach I have thought of is setting an Application variables which
then will be picked up the system and deny access to that particular
sub-system.

My question is : Can we replicate application variables like sessions? If
so, how can it be done?
Also, for clustering is there a master node or a controlling node ? The
reason i ask this question is, I need to know how to take care of session
clean ups. If I schedule session cleanups based on the session time stamp,
which node do i run it on? I cannot run it on every node as it will start
to run at the scheduled time on all nodes and create conflicts. Also, this
will help me decide my build strategy.


Environment: JBoss 3.2, TomCat 5.1

Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881


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



Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Hari Krishna \( Associate \)
Hi,

Is there any way to configure tomcat to enable its services (HTTP
request/responses ) to specific IP address(s) only ? If yes, Can these
configurations be made dynamically so that without restarting the tomcat
changes should be active? I am using Tomcat 4.0.1 and is a standalone. I
checked the tags and thier attributes of server.xml but couldn't find a
proper solution since I am not sure about the dynamic parameters.Can any one
help me out in this or suggest some pointers to go ahead?

regards
Hari


DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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



RE: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Asif Chowdhary
Hi,

Apache 2.0.47 will work with mod_jk2 connector.
I have it working on my machine.

In apache httpd.conf

LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll)

workers2.properties file in your apache2/conf/ directory

#For the first tomcat listening on port 8009

First instance of Web Services listening on port 9000

[channel.socket:machine1:8009]
info=Ajp13 forwarding over socket
debug=20
tomcatId=tomcat1

#Load Balancing Tomcat on port 9000
lb_factor=20


#Second tomcat on machine 2 port 9300


#[channel.socket:machine2:8009]
#info=Ajp13 forwarding over socket
debug=20
#tomcatId=tomcat2

#Load Balancing tomcat port 9300
lb_factor=10

[status:]
info=Status worker,displays run time informations

[uri:/jkstatus/*]
info=Displaystatusinformationandcheckstheconfigfileforchanges.
group=status:


[uri:/examples/*]
info=Examplewebappinthedefaultcontext.
context=/examples
debug=20

#Configure the shared memory file
[shm]
file=C:/apache/apache2/logs/shm.file
size=1048576
debug=0

#End of Workers2.properties.

In server.xml

 


 



This is all you need to configure

Asif


-Original Message-
From: Florian Ebeling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 7:32 AM
To: Tomcat Users List
Subject: mod_jk2 binary for Apache 2.0.47/Win


Hi,

I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and 
CoyoteConnector on the Java side. Nothing experimental here, so far.

Problem is
1) the module needs to be compiled against exactly the same Apache 
version into which it is to be deployed later
2) the only binary Apache2 is 2.0.47
3) the only binary mod_jk2 is against 2.0.43
4) I don't have a MSVC compiler suite
5) The jakarta-connector documents say that only MSVC is possible, so I 
conclude MinGW or Cygwin won't be helpful here

If anybody could point me to a solution to this it would be very helpful.

Thanks and regards,
-Florian



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



Number of processes and relationship to mod_jk, Apache, tomcat

2003-10-28 Thread Andrew Panagos
I am trying to understand the relationship between applications in Tomcat,
the number of Tomcat processes, Apache mod_jk and the number of threads.

For instance on a system I have the following
Apache 1.3.28, Tomcat 4.1.27, Java 1.4.2_02
I use the follow commands to see what is listening to different ports to get
an idea of what process or threads are running.
Apache: lsof -i tcp:80 | wc -l
This gives me 12 processes listening to port 80 (I checked these are related
to the number of Apache instances)

Tomcat direct port: lsof -i tcp:8080 | wc -l
This gives me 50 process that also correspond to the number of tomcat
instances running(i.e. the number of java instances I see in ps )

Tomcat mod_jk port:
lsof -i tcp:8009 | wc -l
gives me 550

I have included my condensed jk.properties and workers.properties files at
the end if that may help.
Now I now that these numbers will change depending on load but I am trying
to understand the relationship.

So my questions is how do the numbers relate to each other?
How does this effect performance?
How could I tune these numbers?

Now I have a vague understanding of how these relate but the numbers don't
add up for me. I have read the docs and searched for quite a while for a
better description.

Thanks

FILE: jk.properties

###
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %U %T %b"

## /examples1
Alias /examples1 /usr/local/tomcat/webapps/examples1

AllowOverride None
deny from all

JkMount /examples1/* worker1

## /ctrials
Alias /ctrials /usr/local/tomcat/webapps/ctrials

AllowOverride None
deny from all

JkMount /ctrials/* worker1

## /syndication
Alias /syndication /usr/local/tomcat/webapps/syndication

AllowOverride None
deny from all

JkMount /syndication/* worker1

## /fellowship
Alias /fellowship /usr/local/tomcat/webapps/fellowship

AllowOverride None
deny from all

JkMount /fellowship/* worker1

## /test
Alias /test /usr/local/tomcat/webapps/test

AllowOverride None
deny from all

JkMount /test/* worker1

# All jsp go to worker1
JkMount /*.jsp worker1
# All servlets goes to worker1
JkMount /*/servlet/ worker1


##

FILE: workers.properties

##
# Define some properties
workers.apache_log=/usr/local/apache/logs/
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java/
ps=/

# Define workers
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
#worker.worker1.cachesize=10
#worker.worker1.cache_timeout=300
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

# how many ms to wait for PONG after sending a PING for connection
worker.worker1.connect_timeout=2000
# how many ms to wait for PONG after sending a PING before posting data
worker.worker1.prepost_timeout=2000
# how long to wait for a reply after sending data before server considers
connection dead
worker.worker1.reply_timeout=180


##


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



Re: Needed more support for catalina.base in Bootstrap

2003-10-28 Thread Rodrigo Ruiz
Thanks for your responses, I will follow your suggestions :-)

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 3:16 PM
Subject: RE: Needed more support for catalina.base in Bootstrap


>
> Howdy,
> What Steve said is right on target.  Your patch is not likely to make it
> into the tomcat code base ;)
>
> A couple of other pointers, however:
> - Patches are always welcome -- so thanks for contributing ;)
> - Don't attach them to messages: open a bugzilla enhancement request and
> attach your patch, or better yet, a diff file from current sources to
> your patch, in the bugzilla issue.
> - You may wish to discuss the need for and intent of your patch on the
> dev list before writing the patch itself.
> - If you intend to contribute more, which I hope is the case, please
> read the guidelines for getting involved with jakarta:
> http://jakarta.apache.org/site/getinvolved.html
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, October 28, 2003 7:19 AM
> >To: Tomcat Users List
> >Subject: Re: Needed more support for catalina.base in Bootstrap
> >
> >> From: Rodrigo Ruiz <[EMAIL PROTECTED]>
> >
> >> Recently I have been trying to install and configure an OGSA server
> >> (www.globus.org) deployed over a Tomcat container. The problem I have
> is
> >> that it requires a lot of Tomcat customization: additional connectors
> in
> >the
> >> server.conf, additional jars in the common/lib, common/endorsed and
> >> server/lib directories, conf/web.xml modifications, and so.
> >>
> >> In order to keep track of these changes, I decided to use a shared
> Tomcat
> >> installation, and do all the dirty business in a separated Tomcat
> >instance,
> >> pointing CATALINA_BASE to it. Doing this I noticed that there was no
> >place
> >> for putting my common/lib and server/lib jars.
> >
> >This sounds backwards.  When using separate CATALINA_HOME and
> >CATALINA_BASE locations,
> >
> >CATALINA_HOME -
> >
> >  the "central" location.  Classes used by tomcat (server and common
> >  respositories) are taken from this location.  You'll also use the bin
> >  directory for this location.
> >
> >CATALINA_BASE -
> >
> >  the "lightweight" installations.  These contain web applications,
> >  their own logs, own configuration files, and make use of their own
> >  "shared" class repositories.  If you think about it, this makes
> >  sense: separate CATALINA_BASEs can have different web applications,
> >  so the set of web application library depencies can vary from one
> >  CATALINA_BASE to the next.
> >
> >
> >> Digging in the source code, I found that CATALINA_BASE is not used at
> all
> >> when building the common and catalina class loaders.
> >
> >That's correct.  CATALINA_BASE uses the shared class loader, and
> >CATALINA_HOME uses common and server.
> >
> >--
> >Steve
> >
> >-
> >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]



TeraData DataSource

2003-10-28 Thread Ken . Martinson
Has anyone been able to connect to a TeraData datasource using thier JDBC 
driver?  I'm getting the following error.

java.sql.SQLException: Cannot create JDBC driver of class 
'com.ncr.teradata.TeraConnectionPoolDataSource' for connect URL 
'jdbc:teradata://sw72sqldv3:7060'
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:541)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329)
at 
com.ibm.afeb.manager.DCSDatabaseManager.getConnection(DCSDatabaseManager.java:101)
at 
com.ibm.afeb.manager.DCSDatabaseManager.getConnection(DCSDatabaseManager.java:83)
at 
com.shaw.ssfs.component.SSFSUser.insertAuditRecord(SSFSUser.java:247)
at com.shaw.ssfs.component.SSFSUser.login(SSFSUser.java:307)
at 
com.shaw.swat.security.SWATLogin.processRequest(SWATLogin.java:203)
at 
com.ibm.afeb.manager.DCSSessionManager.processRequest(DCSSessionManager.java:187)
at com.ibm.afeb.servlet.DCSServlet.doPerform(DCSServlet.java:131)
at com.ibm.afeb.servlet.DCSServlet.doPost(DCSServlet.java:198)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)


Thanks,
Ken Martinson**
Privileged and/or confidential information may be contained in this message. If you 
are not the addressee indicated in this message (or are not responsible for delivery 
of this message to that person) , you may not copy or deliver this message to anyone. 
In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, 
please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other 
information in this message that do not relate to the official business of the company 
 or its subsidiaries.
**


  1   2   >